this post was submitted on 18 Feb 2024
515 points (96.7% liked)

Programmer Humor

19187 readers
1159 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 1 year ago
MODERATORS
 

Insert <it's not much but it's honest work> meme. It only supports ints and bools, some logic and simple arithmetics and it compiles to Java but damn was it hard to get that far.

Can you guess what everything does?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 8 points 7 months ago (1 children)

Does it compile into JVM bytecode or Java source code?

JVM bytecode is one of the most infuriating IRs I ever had the displeasure to work with, and if you managed to make a compiler for that, I applaud you.

[–] [email protected] 7 points 7 months ago (1 children)

Fortunately I generate Java source code from it. However MPS generates both source and byte code when you build the solution. For some reason I can't get the byte code to run though, but the source code does, so I don't care too much.

[–] [email protected] 4 points 7 months ago

That sounds about right for JVM bytecode... In any case, great work!