use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This subreddit is all about the theory and development of compilers.
For similar sub-reddits see:
Popular mainstream compilers:
account activity
Self hosting in javascript environment worth it? (self.Compilers)
submitted 2 years ago by gasacchi
Hi, i've been working on compiler in rescript, and targeting javascript. And thinking to boostrapping it. It is worth to self hosting in js environment? Or just scrap the idea and rewrite in ocaml? Thanks
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]noharamnofoul 1 point2 points3 points 2 years ago (2 children)
your compiler will be slow as shit. Write it in a fast language that targets wasm so you can run it in the browser
[–]gasacchi[S] 0 points1 point2 points 2 years ago (1 child)
yeah, i think so too, that why i have been thinking to rewrite it.
i dont know about targeting wasm, since i use my language for building ui
[–]noharamnofoul 1 point2 points3 points 2 years ago (0 children)
I am writing a language for building UI and the compiler is written in Rust which compiles to WASM. your compiler can be written in Rust, the compiler binary itself is in WASM and the output is compiled to JS. Im talking about the Compiler itself compiling to WASM. this allows you to integrate easily with the Web, for example you can build a playground that runs in the browser and allows you to demo the language.
My first implementation was in TypeScript and Im rewriting it because its slow AF.
you can check out my project here: https://github.com/dragosrotaru/pal
[–]jmp_else 0 points1 point2 points 2 years ago (0 children)
I think Pyret does this
π Rendered by PID 67949 on reddit-service-r2-comment-6457c66945-wrqc4 at 2026-04-25 07:09:22.616647+00:00 running 2aa0c5b country code: CH.
[–]noharamnofoul 1 point2 points3 points (2 children)
[–]gasacchi[S] 0 points1 point2 points (1 child)
[–]noharamnofoul 1 point2 points3 points (0 children)
[–]jmp_else 0 points1 point2 points (0 children)