fngi
a readable language that grows from the silicon (by civboot)
qbe-rs
QBE IR in natural Rust data structures (by garritfra)
Our great sponsors
- InfluxDB - Collect and Analyze Billions of Data Points in Real Time
- Onboard AI - Learn any GitHub repo in 59 seconds
- SaaSHub - Software Alternatives and Reviews
fngi | qbe-rs | |
---|---|---|
1 | 27 | |
56 | 53 | |
- | - | |
10.0 | 0.0 | |
4 months ago | 3 months ago | |
C | Rust | |
The Unlicense | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
fngi
Posts with mentions or reviews of fngi.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-07.
-
Smallest possible self-hosting zig compiler
I've been writing my own language, fngi, which is inspired by Forth to create an extremely minimal language. However, I'm considering doing a rewrite and in so doing am taking a second look at some other languages.
qbe-rs
Posts with mentions or reviews of qbe-rs.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-01.
-
Toy C compiler, worth having an IR stage?
I really liked targetting QBE (https://c9x.me/compile/) as an IR, as it gave me lots of back-end optimisations for free 😊.
-
C or LLVM for a fast backend?
There is: QBE.
-
Made my first LLVM front-end… Now what?
You can try buildling you own backend like llvm. A good example or starting point is probably QBE since it is extremely small but very functional.
- Best book on writing an optimizing compiler (inlining, types, abstract interpretation)?
-
Rust port of B3 from WebKit, LLVM-like backend
How big is the whole backend? I've heard that it is small but I wanted to compare it to QBE which is around 8 KLoC and it is quite interesting too.
-
Few lesser known tricks, quirks and features of C
I think QBE might be what you're looking for?
-
Do you consider LLVM a complicated software? And are there any alternatives and how they compare to LLVM?
As far as I know, there is QBE, which is actually kinda underrated, and Cranelift, mainly designed for JIT compilation
Before that, I had spent a bit of time working with QBE, which is much simpler and really easy to write a frontend for. I switched to libgccjit though, because I got frustrated with a few of the things lacking from QBE (like the ability to easily keep track of where different variables live on the stack). I think for many hobby language projects, QBE would be a good option (my project was off the ground very fast using QBE, and I got pretty far before I ran into limitations I couldn't easily work around).
If one of your parameters is size/complexity of the backend and you prefer something smaller, have a look at qbe and cwerg
The alternatives are generally hidden inside of another compiler. The big exception seems to be qbe (https://c9x.me/compile/) however since the author appears to have written this code without peer review, it's not easy to read it's source code.
What are some alternatives?
When comparing fngi and qbe-rs you can also consider the following projects:
minivm - A VM That is Dynamic and Fast
ubpf - Userspace eBPF VM
cproc - C11 compiler (mirror)
well - The Future of Assembly Language. https://wellang.github.io/well/
mir - A lightweight JIT compiler based on MIR (Medium Internal Representation) and C11 JIT compiler and interpreter based on MIR
go.vm - A simple virtual machine - compiler & interpreter - written in golang
Som - Parser, code model, navigable browser and VM for the SOM Smalltalk dialect
Befunge - lang befunge 93 fast
Oberon - Oberon parser, code model & browser, compiler and IDE with debugger
asmjit - Low-latency machine code generation
wasmtime - A fast and secure runtime for WebAssembly
c4 - C in four functions