-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Self-hosting Compiler #17
Comments
Bootstraped? |
Hi @Ronsor , Thanks for the suggestion! Yes I've thought about the idea. It's a non-trivial undertaking given the many targets wax supports, and wax itself being a not particularly convenient language to write a compiler in. Of course it's super cool to be self-hosted from a philosophical / "because I can" perspective (indeed what language designer doesn't want their language to be self-hosted :), but it also has somewhat limited practical value from the user's standpoint. So I'll probably work on it when I have spare time. Let's keep this issue open as a reminder to myself, and maybe for discussing implementation of such a compiler if people are interested/want to contribute. Hi @Rabios , no worries, and yup, wax has all the basic string operations, please check out https://github.com/LingDong-/wax/blob/main/QUICKSTART.md#strings Thanks |
@LingDong- sounds like a challenge :) I've made a start with the example program below - not much yet, but it can express a limited source tree and write it back out to output. Next steps:
Would that be something you'd be interested in taking a pull request for? Context - I have a software synthesizer project implemented in Golang and with the signal processing and UI code transpilled to javascript, demo here: I've never quite been satisfied with the amount of control I have over the javascript output, so I have been looking for an implementation language which can target at least C (for native builds), and javascript - maybe wax could be it. Really pleased to have found you project as this has to be the cleanest and smallest Lisp style dialect and implementation I've seen anywhere. Thanks -- (@define NODE_EXPR 0) |
As the title implies, make wax self-hosting by rewriting it in itself.
The text was updated successfully, but these errors were encountered: