1 min read

Moonbit

Moonbit
Photo by Emile Perron / Unsplash

Introduced Moonbit, a new programming language optimised for creating applications compiled to WebAssembly. The key development goals of Moonbit are to provide a simple syntax, high compilation speed, and generate compact and fast WebAssembly middleware code. Several code generation backends are provided, among which there are backends for JavaScript and native code.

The need for a new language is due to the fact that developing applications for WebAssembly in low-level languages such as C++ and Rust is difficult to learn and slows down development due to long compilation times. High-level languages such as Go are easier to learn and write programmes, but lag behind in terms of efficiency and compactness of the resulting code. Moonbit developers have tried to combine the best aspects of low-level and high-level languages, in the context of using them with WebAssembly technology.