logoalt Hacker News

troymclast Sunday at 2:01 PM4 repliesview on HN

I made a poster showing how one might write a Hello World program in 39 different programming languages, and even different versions of some common languages like Java:

https://troymcconaghy.blog/2025/01/13/39-hello-world-program...


Replies

pronlast Sunday at 2:34 PM

Nice, but as of JDK 25 (the preview JEP 445 has become the permanent JEP 512), the canonical Hello World in Java is:

    void main() {
        IO.println("Hello World");
    }
show 3 replies
realolast Sunday at 5:45 PM

This is super cool! Now someone should make a similar poster with Hello World sent to a serial port.

Bonus points if it is a RS485 port.

Some language that seem to look good might show their true ugly face...

throwaway150last Sunday at 2:11 PM

Cool poster! If you don't mind me asking, would you share what tools you use to create this poster? You've got syntax highlighting going on there too. What did you use for that?

show 1 reply
pmdrlast Sunday at 4:00 PM

Objective C is by far the weirdest on that list.

show 2 replies