Settings

Theme

Crystal 1.20.0 Is Released

crystal-lang.org

16 points by sdogruyol · 4 comments

Reader

2 threads
yxhuvud

Execution contexts closing in to being enabled by default is a big one. As is the io_uring based event loop that is also finally getting merged (even though that one is also hidden behind flags).

samuell

So the execution model is now even more similar to Go's one, with the M:N scheduling, IIUC?

I much like to hear that, as I found Crystal to provide pretty much exactly the same concurrency primitives as Go, but with a much nicer syntax, as I compared here:

https://livesys.se/posts/crystal-concurrency-easier-syntax-t...

  • yxhuvud

    One big difference is that go hides all access to creating threads from the user, while execution contexts allow you to spin up dedicated thread(s) to solve a particular purpose.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection