30 subscribers
79 photos
16 videos
10 files
83 links
In this channel, I will wrote my personal thoughts, experiments on different PLs and mathematics
Download Telegram
package main

type Nat enum {
zero
succ(Nat)
}

type Bool enum {
false
true
}

// Ask the compiler what the parameter is.
func isZero(n _) Bool {
switch n {
case zero: return true
case succ(k): return false
}
}

// Two labelled holes, so the answers can be told apart.
func twice(n ?operand) ?result {
return succ (succ n)
}

// A hole in a local, with something in scope around it.
func plusOne(n Nat) Nat {
var m _ = succ n
return m
}
holes-demo.ml:14:15: found hole '_' standing for Nat
holes-demo.ml:22:14: found hole '?operand' standing for Nat
holes-demo.ml:22:24: found hole '?result' standing for Nat
in scope:
n : Nat
holes-demo.ml:28:11: found hole '_' standing for Nat
in scope:
n : Nat
package main

@extern("fmt.Println")
func println(s String#) Unit#

@extern("os.Exit")
func exit(code GoInt#) Unit#

const greeting String# = "hello, world"


Basic Go FFI is ready😍
shit, I didn't know it is possible to detect ipv6 for servers and connect over ssh. Claude is getting dangerous 🙈🙈🙈
🤣1
A junior dev: What is the benefit of Emacs over GoLand?
Me: You can say managers my emacs is hang
if you used >9999 year as a value in PostgreSQL, Go can not read it
This media is not supported in your browser
VIEW IN TELEGRAM
Definition Tiyin := Z.

Definition Percent := Z.

Definition pct (a : Tiyin) (p : Percent) : Tiyin :=
Z.quot (a * p) 10000.
vibe coding results are everywhere
Forgejo is the best git repository ever
λ
Photo
My agent is so nervous and confused my name
λ
Photo
Full infra is ready to use. Fully nix based and self-hosted 🤩

The only problem is a power outage with my infra)
Memos test

↗ memos
Again Github is down ...

↗ memos