mir
ubpf
Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
mir
-
Ravi is a dialect of Lua, with JIT and AOT compilers
MIR comes from the Rubyverse and isn't related to LLVM MLIR.
https://github.com/vnmakarov/mir?tab=readme-ov-file#mir
- Mir: Strongly typed IR to implement fast and lightweight interpreters and JITs
- Implementing Interactive Languages
- I developed a faster Ruby interpreter
-
Are Hoistings Possible for C++?
When you say a fork of LLVM, am I correct in assuming that you specifically mean a fork of Clang? I don't see how the compiler backend would affect support for language extensions, regardless of whether it's an exception to that such as Tcc, Cproc, the MIR C jitter, lacc, 8cc, 9cc, and chibicc. Most of those are not for production, excluding Cproc and Tcc (at least according to Suckless or Oasis).
-
Suggestion for a backend?
MIR
- Ask HN: Recommendation for general purpose JIT compiler
- How to learn compilers: LLVM Edition
- What instructions are needed for a language vm
-
Nelua Programming Language
> I wish C was scriptable
C kinda can be used as scripting language with MIR project https://github.com/vnmakarov/mir
It was released just a few days ago, and I've successfully use it as an alternative and fast C compiler with Nelua.
ubpf
-
Rust-Written Linux Scheduler Showing Promising Results for Gaming Performance
eBPF doesn't run in user space in the context of eBPF in the linux kernel. It's verified so that the kernel can be sure it won't loop forever and then gets JIT'ed and run in kernel space.
There are some user space BPF vms like https://github.com/iovisor/ubpf and Solana.
-
bpftime: Extending eBPF from Kernel to Userspace
ubpf: https://github.com/iovisor/ubpf
-
Ask HN: Recommendation for general purpose JIT compiler
The usual recommendation have been given. Now for more touristic approach what I would like to use if given excuse and time. All those options are mostly written in C:
- QBE [1] - small compiler backend with nice IL
- DynASM [2] - IIUC the laujit's backend, that can and is used by other languages
- uBPF - Userspace eBPF VM. Depending on your DSL the eBPF toolchain could fit your use-case, but this would probably be the biggest excursion.
[1] https://c9x.me/compile/
[2] https://luajit.org/dynasm.html
[3] https://github.com/iovisor/ubpf
-
how to build eBPF learning env on my Mac
There are eBPF-specific userspace implementations you can consider looking into but right now the best support for bpf would be the linux kernel so if the goal is learning you'll most likely want to run linux in a proper virtual machine (e.g. Qemu, VirtualBox, Parallels, etc.)
-
Bytecode for a Register Machine
This may be entirely irrelevant to what you are looking for, but a good widely used finite register-based VM is the eBPF VM in the Linux Kernel. The IOVisor uBPF project (https://github.com/iovisor/ubpf) is a version of the VM in user space.
What are some alternatives?
asmjit - Low-latency machine code generation
qbe-rs - QBE IR in natural Rust data structures
LuaJIT - Mirror of the LuaJIT git repository
Befunge - lang befunge 93 fast
Cwerg - The best C-like language that can be implemented in 10kLOC.
sljit - Platform independent low-level JIT compiler
ecl
minivm - A VM That is Dynamic and Fast
kcs - Scripting in C with JIT(x64)/VM.
LjTools - LuaJIT 2.0 bytecode parser, viewer, assembler and test VM. Lua 5.1 parser, IDE and debugger.
terra - Terra is a low-level system programming language that is embedded in and meta-programmed by the Lua programming language.
Som - Parser, code model, navigable browser and VM for the SOM Smalltalk dialect