Regardless, very cool!
io fn starve_main(chan[int] alive) { log "signalling main"; alive <| 1; log "starving main"; let int i = 0; while (true) { i += 1; } }
`io fn`, there were three effects: io, state, and unsafe. There was also pure, for functions with no effect.
chan for channels. <| was a "semi-synchronous message send," it blocked if the queue was full.
square brackets for generics
int was two's compliment signed integer with machine dependent size
log for printing to the screen
Regardless, very cool!