Re:Only 1 in 10 Oracle Java users want to stay with Big Red
by superjan on Wednesday January 29, 2025 @03:18PM
(#42870602)
I don’t disagree, but I was responding to a claim that the JVM has _all_ the advantages of fully native languages. Fully native allows you to choose to have no runtime, or a garbage collector, and in some environments (realtime, OS kernel, AAA games) that is overwhelmingly the preferred option.
[ Parent
| on HN ]
Re:Only 1 in 10 Oracle Java users want to stay with Big Red
by blibble on Wednesday January 29, 2025 @04:52PM
(#42871698)
in Java you can turn off the GC completely
and you can also compile to native code
Re:Only 1 in 10 Oracle Java users want to stay with Big Red
by shizzy0 on Wednesday January 29, 2025 @07:08PM
(#42873121)
You can in theory turn off gc but in practice no one does this because nearly everything is written with the assumption that allocations will be cleaned up by the gc. The compiler has no switches to help you run in a non-gc’d state. At best you can control when you run the gc.
Re:Only 1 in 10 Oracle Java users want to stay with Big Red
by blibble on Wednesday January 29, 2025 @07:16PM
(#42873179)
> nearly everything is written with the assumption that allocations will be cleaned up by the gc
zero garbage Java it is relatively common in algorithmic trading
> but in practice no one does this
that's funny, I could swear we do
Re:Only 1 in 10 Oracle Java users want to stay with Big Red
by CRConrad on Monday February 03, 2025 @02:56AM
(#42915952)
> Fully native allows you to choose to have no runtime, or a garbage collector,
Are you quite sure of that? I think you're getting stuff mixed up here. AFAICS, a native-compiled language might very well have mandatory garbage collection. Not that any such language immediately springs to mind, and I'm not even sure any do actually exist, but surely they could exist. The concepts "native compilation" and "garbage collection" are, AIUI, orthogonal.
Re:Only 1 in 10 Oracle Java users want to stay with Big Red
by actionfromafar on Monday February 03, 2025 @07:00PM
(#42925216)
There were/are a bunch of Java to native compilers.