Stream: wasm

Topic: Feedback wanted on a WASM compiler


view this post on Zulip Tim Dinsdale (Sep 22 2020 at 19:57):

Hey! I hope this is the right place, apols if not. From late last year to sorta mid this year I worked on an experimental language that compiles down to WASM. The result of that is a tiny compiler at about the same conceptual level as C. I even ported Doug Lee's malloc into it (but I will not lie, I have hardly tested the port at all so it probably has many bugs). It has you know generics and linker support and some other things, but honestly it's not much more than a toy.

I showed it to some people who asked me where I was going with it, and I didn't know; so I put together a whitepaper that I think describes where it should go, which is a much higher level language than C. Based on what I built, I am fairly sure that everything in the whitepaper is buildable right now, except that it relies on a garbage collector which the prototype does not (using malloc as it does).

So I am looking for feedback, really, primarily on the whitepaper here but if you are curious the full repo contains the thing I built, including the malloc port. (This was my first Rust project so the code is probably janky as heck - sorry if it grinds your gears). Thanks for taking the time to read this!

Hobby WASM compiler project that has gotten out of control, send help - theidiotmachine/WA1
Hobby WASM compiler project that has gotten out of control, send help - theidiotmachine/WA1
Hobby WASM compiler project that has gotten out of control, send help - theidiotmachine/WA1

Last updated: Dec 23 2024 at 12:05 UTC