r/programmingcirclejerk • u/camelCaseIsWebScale Just spin up O(n²) servers • Aug 11 '26
The smallest possible [Java] program (just a single line to exit) requires things like java.time.chrono.JapaneseChronology
https://news.ycombinator.com/item?id=19170911
235
Upvotes
106
u/camelCaseIsWebScale Just spin up O(n²) servers Aug 11 '26
263
u/Snarwin Aug 11 '26
"Write once, run everywhere" enjoyers when they find out that "everywhere" includes Japan.
85
u/Jannik2099 Aug 11 '26
Achieve full coverage with this one simple trick!
27
u/psioniclizard Aug 11 '26
Cool so my SIM card probably has java.time.chrono JapaneseChronology on it?
20
u/aikii gofmt urself Aug 11 '26
Look at least JapaneseChronology is not subject to supply chain attacks
41
u/TheCommieDuck Zygohistomorphic prepromorphism Aug 11 '26
bloat >:(
bloat, japan <3
22
u/PmMeCuteDogsThanks_ Aug 11 '26
Yes, pretty sure Japan is included in "everywhere"
6
u/stone_henge Tiny little god in a tiny little world Aug 13 '26
Without it, how will the program know not to exit until the boss has left for the day?
4
u/Spez_is-a-nazi Aug 11 '26
It used to be a lot worse.
4
u/gplgang DO NOT USE THIS FLAIR, ASSHOLE Aug 11 '26
Read the top comment in the HN post
1
u/Jumpy-Locksmith6812 Aug 12 '26 edited Sep 23 '26
Excepteur esse quis nostrud consequat elit commodo laborum deserunt culpa sunt reprehenderit. Ipsum amet culpa mollit laborum tempor sint ut eiusmod est ipsum laboris est cupidatat elit officia ad. Pariatur ullamco irure officia anim consequat irure. Dolor magna ut cupidatat consequat cupidatat fugiat ad sunt reprehenderit cupidatat amet lorem.
[rhr:2:hjpta24q]
-1
u/gnahraf Aug 12 '26
It's true, it's defined in the java.base module, so it's almost always shipped; but it's not true that it is necessarily loaded when a java program runs (as the original post implies).