upvote
> and being able to compile to JavaScript

Apparently it is not that difficult to add different compiler backends. There was a presentation [0] recently about adding wasm support as a compiler target. The implementation was quite far along, including support for the wasm component model.

[0] https://www.youtube.com/watch?v=UQ0--ODjiDk

reply
Just to add a slight correction here, support for the wasm component model wasn't added in the target I wrote
reply
That was a misunderstanding then, thank you for correcting.
reply