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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of grain

grain

Photo of level language

level language

Related news:

News photo

Bend: a high-level language that runs on GPUs (via HVM2)

News photo

HigherOrderCO releases the first high-level language that runs on GPUs

News photo

BlackRock, Grain Near Phoenix Tower Stake Buy