Get the latest tech news

Compiling Bigloo Scheme to WebAssembly


An exploration of compiling Scheme and potentially JavaScript to WebAssembly.

The function pointer's C type cannot precisely capture the actual behavior even with a uniform value representation, as the arity of the Scheme procedure needs to be represented. It's possible to work around this by using the EMULATE_FUNCTION_POINTER_CASTS Emscripten option to generate stubs that emulate the cast, but it adds significant overheads as the note (emphasis mine): For comparison, Guy Bedford quoted in the JS to Wasm article linked earlier suggested 5-6MB was a reasonable number for a Spidermonkey embedding.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of WebAssembly

WebAssembly

Related news:

News photo

Perspective: High-performance data visualization and analytics in WebAssembly

News photo

Show HN: I built a WASM-console using WebAssembly and tinygo

News photo

SimCity in the web browser using WebAssembly and OpenGL