Hacker News new | ask | show | jobs
by Muromec 392 days ago
That's a lot of wasm and beam. I tried to do it the other way -- compile beam straight to wasm and it seems to work in straightforward cases, producing wasm binaries in kilobytes sizes. With wasm fx it's even possible to do processes natively. You can find the link in bio.

Cool thing would be to somehow wire it up to liveview to make it possible to run some parts on the frontend side transparently.

I'm not doing any active development on it right now, but it looked pretty doable when I tried last time.

1 comments

I think it is Firefly's approach (https://github.com/GetFirefly/firefly). They put a lot of work into it, but never made it fully functional, and it's not maintained anymore. So I agree that you get smaller binaries this way, but I believe we can get to acceptable sizes too, without creating and maintaining a custom compiler.