←back to thread

Java Hello World, LLVM Edition

(www.javaadvent.com)
200 points ingve | 1 comments | | HN request time: 0s | source
Show context
troymc ◴[] No.46181738[source]
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(4): >>46181790 #>>46181936 #>>46182649 #>>46183494 #
pmdr ◴[] No.46182649[source]
Objective C is by far the weirdest on that list.
replies(2): >>46184102 #>>46188470 #
saagarjha ◴[] No.46188470[source]
Objective-C is basically Java so I wouldn’t call it that weird.
replies(1): >>46188475 #
gnabgib ◴[] No.46188475[source]
Objective-C is significantly (11 years) older than Java.

1984: https://en.wikipedia.org/wiki/Objective-C

1995: https://en.wikipedia.org/wiki/Java_(programming_language)

replies(1): >>46188529 #
saagarjha ◴[] No.46188529[source]
Correct, Java was designed with a strongly influence from Objective-C.
replies(1): >>46188549 #
gnabgib ◴[] No.46188549[source]
One might even say Java is basically Objective-C
replies(2): >>46189835 #>>46189853 #
1. pjmlp ◴[] No.46189853{6}[source]
Kind of, but with C++ syntax to make it more appealing,

https://cs.gmu.edu/~sean/stuff/java-objc.html