glebbash
Joined 2 years ago
Joined 2 years ago
Here is the source for the allocator: https://github.com/glebbash/LO/blob/81f96bb09e3a0b1455b32497...
It also links to where I learned how to build the "proper" allocator from scratch.
Hmm, I haven't thought about it the license actually, I would default to MIT, but wanted to keep the number of files minimal in repo, hehe.
Will figure it out asap, thanks.
For includes to work compiler uses WASI which can be implemented in the browser. LO playground and VSCode extension use this approach. Playground link: https://glebbash.deno.dev/lo-playground/ and source: https://github.com/glebbash/glebbash.dev/blob/main/static/lo...
I think the superset of WAT idea is very viable and someone more comfortable with s-expressions should explore that for sure.
As for now, you can check the examples folder and explore the compiler sources, tried to keep everything simple.
I've been working on integrating it with WASM-4 runtime this past week. And with minimal changes to the compiler I created this demo game: https://rawcdn.githack.com/glebbash/LO/da8305293f5438967619e...
Game source here: https://github.com/glebbash/LO/blob/main/examples/test/demos...
You would write a compiler in the language that is the closest to your perfect. Trying to fix the original language by making a "clone" of it and adding/removing features to your liking.
That is what I want to change here by making a very simple language that if someone would like they could just fork it and add/remove the needed features instead of building one from scratch.
If this idea won't work then at least a very simple compiler would be a good learning resource, so a win win anyways.