The Fuzion Language

@fuzionlang.bsky.social

A language that unifies concepts to improve productivity and to use tools for performance and correctness.

Safety for concurrency finally takes shape for Fuzion @fuzion@ŧypes.pl: An easy answer to concurrency issues is to rely on libraries that implement inter-thread communication mechanisms like channels. 🧵1/9…

ch  := concur.channel (interval i32)   # jobs channel
res := concur.channel i32              # results channel

(1..nthreads)
    .map t->
      concur.threads.env.spawn ()->
        res <- ch.as_list
                 .map count_sym
                 .sum
    .for_each ignore       # use result to ensure threads get spawned