Spasm - webassembly libary for single page applications

Sebastiaan Koppe mail at skoppe.eu
Fri Oct 12 19:43:25 UTC 2018


I like to announce Spasm https://github.com/skoppe/spasm

It is a webassembly library to develop single page applications 
and builds on my previous work 
(https://forum.dlang.org/post/eqneqstmwfzugymfewqo@forum.dlang.org).

It generates fast and small webassembly binaries. The example 
todo-mvc is only 5995 bytes (wasm) + 2199 bytes (html+js) when 
gzipped, and loads pretty fast 
(https://skoppe.github.io/spasm/examples/todo-mvc/)

Spasm can be used with dub and only requires a recent version of 
ldc. See the readme on github how to get started.

The library includes a webpack bootstrap project to build a 
production ready web page.

Spasm is written in betterC.

Next steps are:

- more js host bindings (xhr, localstorage, etc.)
- memory deallocation
- gather an angry mob to make phobos more betterC compatible ;)


More information about the Digitalmars-d-announce mailing list