this post was submitted on 06 Jul 2025
40 points (84.5% liked)

Programmer Humor

24834 readers
924 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
all 4 comments
sorted by: hot top controversial new old
[–] ExLisper@lemmy.curiana.net 8 points 2 days ago (1 children)

Actually, in Java 24 it's:

void main() { println("Hello World"); }

[–] Akagigahara@lemmy.world 3 points 2 days ago

Oh that's interesting. It kinda reminds me of the C# top level statements feature.

This still creates the function main in the normal way, right?

[–] bacon_pdp@lemmy.world 2 points 2 days ago

The assembly would be:

Mov rax,1 Mov rdx, 0 Mov rsi, buffer Mov rdi, buffer.length Syscall Mov rax,57 Syscall