this post was submitted on 16 Sep 2025
238 points (96.5% liked)

Programmer Humor

26373 readers
1682 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Kazumara@discuss.tchncs.de 12 points 19 hours ago (2 children)

that’s just how they are made.

Can confirm, even the little training compiler we made at Uni for a subset of Java (Javali) had a backend and frontend.

I can't imagine trying to spit out machine code while parsing the input without an intermediary AST stage. It was complicated enough with the proper split.

[–] LeFantome@programming.dev 3 points 8 hours ago

I have built single pass compilers that do everything in one shot without an AST. You are not going to get great error messages or optimization though.

[–] BuboScandiacus@mander.xyz 11 points 19 hours ago

I can imagine;