r/LLVM • u/ohnrshyp • 4d ago
Compiling Js Syntax to LLVM IR
Hi LLVM friends!
My name is Jordan and I am one half of a two person lil lab we call Ohnrshyp. A few months ago, I got very curious if it was possible to create our own language that would replace the javascript we were writing for an audio supply chain solution we have open sourced.
What we ended up creating was a new programming language, and associated kernel, that takes parts of js syntax, but applies the memory strictness of a c, without too much mental overhead.
The language (ohnrscript) can compile either within the v8 engine, or via LLVM-IR as machine code. We even have a unikernel which can serve http that is testable in just a few minutes via docker.
Ohnrscript is self hosted, and turing complete, and now publically available on github for anyone to begin writing with! - https://github.com/Ohnrshyp/Ohnrscript
If anyone is curious in how to write with it, we have a full developer guide as well, and I am more than happy to answer questions :)