Stream: cranelift

Topic: Compiling a DSL to WASM using Cranelift?


view this post on Zulip azorlogh (Oct 29 2025 at 19:12):

Hello! I'm wondering if it's possible to use cranelift as a backend to compile my language to WASM.

If I interpret this correctly that means it's not possible right?
Is it planned to be supported in the future?

(just for context, I'm making a live-coding audio synthesizer & would like to make an online playground)

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant - bytecodealliance/wasmtime
Live-coding modular synthesizer with JIT compilation

view this post on Zulip azorlogh (Oct 29 2025 at 19:28):

Ooh I just found the related issue: https://github.com/bytecodealliance/wasmtime/issues/2566
Before I searched for "wasm backend" on github but not "webassembly backend" and found nothing :sweat_smile:
So I guess it's wanted but not prioritized, got it

Feature Add a Cranelift backend that compiles to Webassembly. Benefit This would allow a compiler to run in the browser and compile code to run in the browser. Implementation No plan yet Alternativ...

Last updated: Dec 06 2025 at 07:03 UTC