On Friday, 12 October 2018 at 19:43:25 UTC, Sebastiaan Koppe
wrote:
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/eqneqstmwfzugymfe...@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 ;)
Awesome work! I remember that, at some point the
https://glimmerjs.com/ authors wanted to write their vm in rust
for better performance. It looks like D is a new option for such
projects.
Bogdan