r/Compilers • u/ColdRepresentative91 • May 07 '26
I built a Custom Language, Compiler, Assembler, and RISC-V VM, all running in real in your browser, using Rust and EGUI.
I've been working on this project (and compilers / vm's in general) for a while now, and I thought it was finally proper enough to showcase. Some of the features:
- A custom systems language designed for explicit memory control, featuring manual memory management, pointers, (inline) structs, and generics.
- A full interactive compiler pipeline that you can watch in real-time.
- A built-in 5-stage pipelined CPU to execute the code.
- Compiles to actual RISC-V machine code (RV64IMAFD).
- Visualised live in browser using EGUI.
Github: https://github.com/LPC4/Full-Stack
Check out the live demo website here: lpc4.github.io/Full-Stack/
377
Upvotes
36
u/hukupaku May 08 '26
Sorry but, why everything these days looks vibecoded
13
u/Small_Ad3541 May 08 '26
OP, how much AI did you use?
10
u/Blueglyph May 08 '26
Nice vibe-coding. Another name on my block list.
19
u/mathisntmathingsad May 08 '26 edited May 08 '26
Cool! It doesn't look obviously AI generated (and I hate that I have to be skeptical of it), but if not amazing! Edit: someone pointed out 80k loc changes in one week I take it back
4
u/Revolutionary_Ad6574 May 08 '26
Too bad it's all AI. People don't seem to understand the point of projects is to get better at coding. You're not learning anything if Claude Core is writing every line.
4
u/LuisE3Oliveira May 09 '26
Another trash vibecoded
4
u/Duflo May 07 '26
This looks super cool, thanks for sharing the code!
1
u/BigTanuki64 May 09 '26
This is like posting a painting someone else made and pretending you did it.
1
u/Free-Switch-9871 Jun 03 '26
I didn't see many signs of AI generated code in the repo, really impressive project. I don't like the syntax but that's because i'm a C or Rust style syntax shill.
1
u/JeffD000 Jun 04 '26 edited Jun 10 '26
@OP,
Can you take a moment and turn this into a teaching moment on how to use AI? What AI tools did you use? Did you run them locally, or in the cloud? What was the cost?
Can you talk about your workflow at a high level? It would be nice to have some best practices, or even beginning prictices, for many of us out here who want to understand how to use AI effectively for a compiler project.
0
u/Curious_Analyst986 May 07 '26
Thanks a lot for the code. Upvoted!
0
u/Raagam2835 May 07 '26
Amazing!
0
u/Y_mc May 08 '26
I'm working on a similar project, excellent work💪🏼, I'm impressed. 🎉🎉
0
u/m0ntanoid May 08 '26
okay. Why?
-1
u/Falcon731 May 07 '26
Very nice.
-1
u/kar7mp5 May 08 '26
The project UI looks cool! Did you build the gui yourself?
1
u/Outside-Dot-5730 May 09 '26
Slop