Get the latest tech news
Grain: The High-Level Language Optimized for WebAssembly
The co-creator of Grain explains how the language is designed from the outset for WebAssembly, without the usual complexities and baggage.
Grain started as a passion project with a simple premise: It was 2017 and Philip Blair and Oscar Spencer wanted a high-level language that was easy to use and designed to compile to WebAssembly. Pattern matching in languages like OCaml, Grain and Rust means the compiler will alert the developer if an edge case is missed and a piece of data might break the program, he explained. Grain will become even more effective with efforts such as WasmGC (WebAssembly Garbage Collection), a proposal to add struct and array heap types, which means support for non-linear memory allocation.
Or read this on Hacker News