Willow Compiler Flags Hidden Blocking Calls and Maps Safe Parallelism

Willow is an experimental statically typed language compiled to native code via Cranelift, with a garbage collector and lightweight tasks. Its compiler rejects code that calls a helper which waits on a channel while holding a lock, reporting the transitive wait and suggesting a fix. The same effect analysis powers a parallelism command that labels each statement as provably independent or as a barrier with named reasons and certainty levels. Where the compiler cannot determine safety, it reports the uncertainty rather than guessing. The author demonstrates this on a lock-and-channel function and on independent loop-free calls to show what the analysis can prove.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in