Tons of these tools I use are from these guys (among 2f30). Small, predictable, usable, such as pointtools and catpoint. Sfeed for RSS, scc for gopher and so on, and smu for markdown from git repos > html.
QBE – Compiler Back End
11–20 of 29 posts
Re: QBE – Compiler Back End
#12I really like QBE but I hope they will make it a true library because I don't want to launch a subprocess to compile a program.
Re: QBE – Compiler Back End
#13Earlier quoted context omitted.
> I did that Can you contribute it? I don't see it listed as an official backend.
> Can you contribute it? I don't see it listed as an official backend. I don't think anyone wants AI generated contribution to QBE (neither do I).
Re: QBE – Compiler Back End
#14Cool project, and FWIW it's like one Claude prompt to add MIPS support to this. I did that and then was able to compile my little custom language to the N64.
> it's like one Claude prompt to add MIPS support to this Can you provide the code somewhere? Is it complete? Does it really work? I have a hard time to believe that an LLM really can generate a complete and working backend for a target architecture with "one prompt". From my experience with such tools, by the end of the day it takes longer until it covers all edge cases and actually works than when writing it myself…
https://gist.github.com/SuperDisk/1aa50263a773143c82a39d4771...
Re: QBE – Compiler Back End
#15Cool project, and FWIW it's like one Claude prompt to add MIPS support to this. I did that and then was able to compile my little custom language to the N64.
> I did that Can you contribute it? I don't see it listed as an official backend.
It's certainly fun as a toy though!
Re: QBE – Compiler Back End
#16I really like QBE but I hope they will make it a true library because I don't want to launch a subprocess to compile a program.
This is exactly my gripe unfortunately, it feels like needless fragility. IIRC the author has said they believe it wouldn't be too difficult to patch QBE to work as a library, but from what I've seen the code is somewhat terse and eccentric.
IMO when the intended usage is AOT with an external assembler, which is another subprocess, text-based IO is actually the more natural approach.
Re: QBE – Compiler Back End
#17Re: QBE – Compiler Back End
#18Earlier quoted context omitted.
> it's like one Claude prompt to add MIPS support to this Can you provide the code somewhere? Is it complete? Does it really work? I have a hard time to believe that an LLM really can generate a complete and working backend for a target architecture with "one prompt". From my experience with such tools, by the end of the day it takes longer until it covers all edge cases and actually works than when writing it myself…
The backend is only ~1300 lines. QBE is a super simple project which is why adding a backend to it worked so well. I just pointed Claude at the existing RISC-V backend for reference and it whipped up the MIPS one. It really does work, though there might be bugs I didn't run into. I compiled an Amiga MOD player, written in my language, to the N64 and it worked fine, if that gives you an idea of how stress tested it wa…
Re: QBE – Compiler Back End
#19I really like QBE but I hope they will make it a true library because I don't want to launch a subprocess to compile a program.
Re: QBE – Compiler Back End
#20https://news.ycombinator.com/item?id=48058644
There’s also cproc which has a few HN posts about it.
https://news.ycombinator.com/item?id=24076603 https://news.ycombinator.com/item?id=28242024 https://news.ycombinator.com/item?id=32466098 https://news.ycombinator.com/item?id=25273918