The Grain programming language

For those of us interested in WebAssembly, a relatively new runtime that’s available in modern browsers and in Nodejs, it’s been interesting to watch the explosion of new programming languages that have come out targeting this platform. Lately I’ve been experimenting with AssemblyScript, a nice language with a very familiar syntax (basically it’s a subset of Typescript).

I’ve also been looking at Grain.

The Grain language looks like a more functionally oriented language than AssemblyScript (more like Elm, Purescript and Reason) but with a JavaScript like syntax mixed with more powerful functional concepts such as algebraic types, pattern matching, etc. The language is small and seems pretty quick to learn.

https://grain-lang.org/