asmjit | ubpf | |
---|---|---|
9 | 5 | |
3,805 | 752 | |
0.9% | 2.3% | |
8.0 | 8.5 | |
about 1 month ago | 3 days ago | |
C++ | C | |
zlib License | Apache License 2.0 |
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.
asmjit
-
The 6502 instruction set as a database
Some other instruction sets in some JSON: https://github.com/asmjit/asmjit/tree/master/db
-
30 years of DOOM: new code, new bugs
The attentive reader may notice that this code is from a third-party library. So, we didn't want to include it in the article at first. However, we found something interesting. In 2017, somebody opened an issue in the asmjit project: the GCC 7.2 compiler issued a warning to the code above. The project authors fixed it:
-
How do I get the registers of a process in C++?
You can use something like https://asmjit.com/ to generate and call x64 code at runtime.
- Ask HN: Recommendation for general purpose JIT compiler
-
Compiler Design in C++
But an easy to create a JIT would be to use https://github.com/asmjit/asmjit, which is used in RPCS3.
-
Are there any low level, cross platform assembly languages that allow jumping to non labels?
You could go the way of https://asmjit.com (or forth) and make it your assembler DSL on top of the low-level call.
-
C++ libraries for filtering collections and expression trees
But if you're willing to get closer to the hardware is https://github.com/bitfunnel/nativejit/ and https://asmjit.com/
- AsmJit
-
Wrapping dynamically generated void(*)() pointers in try-catch?
https://github.com/asmjit/asmjit is nice. But using a JIT seems like a sledgehammer working around a lacking design.
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?
fasmg - flat assembler g - adaptable assembly engine
qbe-rs - QBE IR in natural Rust data structures
mir - A lightweight JIT compiler based on MIR (Medium Internal Representation) and C11 JIT compiler and interpreter based on MIR
Befunge - lang befunge 93 fast
oneDNN - oneAPI Deep Neural Network Library (oneDNN)
sljit - Platform independent low-level JIT compiler
mlibc - Portable C standard library
minivm - A VM That is Dynamic and Fast
dynarmic - An ARM dynamic recompiler.
LjTools - LuaJIT 2.0 bytecode parser, viewer, assembler and test VM. Lua 5.1 parser, IDE and debugger.
Cwerg - The best C-like language that can be implemented in 10kLOC.
Som - Parser, code model, navigable browser and VM for the SOM Smalltalk dialect