qbe-rs | ish | |
---|---|---|
30 | 153 | |
66 | 16,032 | |
- | 1.2% | |
3.3 | 9.7 | |
8 months ago | 2 days ago | |
Rust | C | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
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.
qbe-rs
-
CBMC: C bounded model checker. (2021)
Another problem with LLVM I’ve heard about is that it’s intermediate language or API or something is a moving, informally-specified target. People who know LLVM internals might weigh in on that claim. If true, it’s actually easier to target C or a subset of Rust just because it’s static and well-understood.
Two projects sought to mitigate these issues by going in different directions. One was a compiler backend that aimed to be easy to learn with well-specified IL. The other aimed to formalize LLVM’s IL.
http://c9x.me/compile/
https://github.com/AliveToolkit/alive2
There have also been typed, assembly languages to support verification from groups like FLINT. One can also compile language-specific analysis with a certified to LLVM IL compiler. Integrating pieces from different languages can have risks. That (IIRC) is being mitigated by people doing secure, abstract compilation.
-
Odin Programming Language
> I think it uses a different backend than LLVM
harec uses https://c9x.me/compile/
-
Frontend for GCC?
Have you considered QBE?
- QBE – Compiler Back End
-
What do C programmers think of the Zig language in 2023?
I really hope other new projects (like QBE) can really grow and become widely used
-
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.
-
A whirlwind tour of the LLVM optimizer
You might be underestimating the accuracy of the CPU models LLVM uses.
For x86, the same data the code generator uses drives llvm-mca[1], which given a loop body can tell you the throughput, latency, and microarchitectural bottlenecks (decoding, ports, dependencies, store forwarding, etc.)—if not always precisely, then still not worse then IACA, the tool written at Intel by people who presumably knew how the CPUs work, unlike LLVM contributors and the rest of us who can only guess and measure. This separately for Haswell, Sandy Bridge, Skylake, etc.; not “x86”.
Now, is this the best model you can get? Not exactly[2], but it’s close enough to not matter. Do we often need machine code to be optimized to that level of detail? Perhaps not[3], and with that in mind you can shave at least a factor of ten off LLVM’s considerable bulk at the cost of 20—30% of performance[4,5]. But if you do want those as well, it seems that the complexity of LLVM is a fair price, or has the right order of magnitude at least.
(Frontend not included, C++ frontend required to bootstrap sold separately, at a similar markup compared to a C-only frontend with somewhat worse ergonomics.)
[1] https://llvm.org/docs/CommandGuide/llvm-mca.html
[2] https://www.uops.info/
[3] https://briancallahan.net/blog/20211010.html
[4] https://c9x.me/compile/
[5] https://drewdevault.com/talks/qbe.html
-
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)?
ish
-
Apple must open iPadOS to sideloading within 6 months, EU says
> Just imagine how much more versatile the iPad Pro would be if only you could run Linux VMs on it
After installing https://ish.app for Alpine Linux emulation on iPad, one immediately comes up with use cases, even though it's excruciatingly slow.
Hopefully Apple opens up the imminent M3 iPad Pros to run macOS and Linux VMs.
-
Homelab Adventures: Crafting a Personal Tech Playground
iSH
-
Ente: Open-Source, E2E Encrypted, Google Photos Alternative
They don't "allow" it, but most apps that need background execution just ask permission for geolocation tracking and pretend to use it, for example iSH[1]. There are a few activities that the app can do to prevent itself from being suspended when it goes out of focus, like playing sound, geolocation etc.
[1] https://github.com/ish-app/ish/issues/249#issuecomment-54433...
-
How to copy a file between devices?
Android: install termux, `pkg install openssh`, and preferably run `termux-setup-storage` to give it access to storage folders.
iOS: I think https://ish.app/ ?
-
How Virtualisation came to Apple Silicon Macs
This of course hasn't been true for years, eg: http://omz-software.com/pythonista/index.html
And you can run a C compiler (or anything) inside https://ish.app/ too.
-
ScummVM officially released in the App Store
False. iSH is an x86 "bytecode" emulator.
"Possibly the most interesting thing I wrote as part of iSH is the JIT. It's not actually a JIT since it doesn't target machine code. Instead it generates an array of pointers to functions called gadgets, and each gadget ends with a tailcall to the next function; like the threaded code technique used by some Forth interpreters."
https://github.com/ish-app/ish
-
Windows is now an app for iPhones, iPads, Macs, and PCs
There is an x86 virtual machkne running Linux available on the App Store now.
https://ish.app/
Now would Apple allow a full blown Windows VM is a different question
-
Stop EU Chat Control
There are plenty of solutions for running Python in an IDE on the iPad. There is an even an x86 emulator and a Linux terminal built on top of it in the App Store.
https://ish.app/
It can run anything that you can run on an x86 in user mode. I downloaded the AWS CLI (which requires Python) to run some tests
By the way, you were completely wrong about VSCode being written in .Net.
> That's just compiling the code to a native binary, which you would then have to go submit through Apple's store. How does that help for an IDE expected to allow you to test (i.e. execute) and debug the code you've just written ten seconds ago?
There is an existence proof that it could be done. If you ran iSH with remote VNC you could have a full IDE on a Mac.
> We can see right there some examples of what isn't allowed:
- ISH: Linux shell running on iOS/iPadOS, using usermode x86 emulation
- Lima: A nice way to run Linux VMs on Mac
What are some alternatives?
ubpf - Userspace eBPF VM
UTM - Virtual machines for iOS and macOS
mir - A lightweight JIT compiler based on MIR (Medium Internal Representation) and C11 JIT compiler and interpreter based on MIR
termux-packages - A package build system for Termux.
minivm - A VM That is Dynamic and Fast
box64 - Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices
c4 - C in four functions
AltStore - AltStore is an alternative app store for non-jailbroken iOS devices.
well - The Future of Assembly Language. https://wellang.github.io/well/
Code-Server - VS Code in the browser
wasmtime - A fast and secure runtime for WebAssembly
Blizzard-Jailbreak - An Open-Source iOS 11.0 -> 11.4.1 (soon iOS 13) Jailbreak, made for teaching purposes.