News for hackers. Stuff that matters.
Re:How to Compile Java into Native Binaries with Mill and Graal by jeswin on Tuesday February 04, 2025 @12:38AM (#42928464)
> To me this is a huge downside. One of the reasons I like Go

C# with NativeAOT might be an easier path for Java developers. Some might like the expressiveness as well over Go.

Re:How to Compile Java into Native Binaries with Mill and Graal by brabel on Tuesday February 04, 2025 @02:54AM (#42929424)
I've been using Dart instead. Not too far from Java, but can compile to executable without any cerimony.
Re:How to Compile Java into Native Binaries with Mill and Graal by pragmatick on Tuesday February 04, 2025 @01:45AM (#42928912)
I don't think you'd be a Java developer anymore.
Re:How to Compile Java into Native Binaries with Mill and Graal by neonsunset on Tuesday February 04, 2025 @03:10AM (#42929542)
That made me laugh out loud for some reason haha

Indeed!

Re:How to Compile Java into Native Binaries with Mill and Graal by pjmlp on Tuesday February 04, 2025 @06:07AM (#42930901)
Why not?

Both ecosystems complement themselves, some stuff Java ecosystem does much better than .NET, like multiple implementations, with various kinds of GC and JIT implementations, wider support of hardware deployments, tooling like Graal, industry standards, IDE implementations, a mobile OS,...

Other things the .NET ecosystem does better, support for value types, low level programming, SIMD, desktop development, game engines.

To this day they keep copying features from each other, and if either C# or Java isn't one's taste, there are still several other options on each platform.

Hence why I am confortably at home using them both, complemented by JS/TS for FE, and C++ for fiddling with their runtimes, or plugging into native libraries.

Re:How to Compile Java into Native Binaries with Mill and Graal by neonsunset on Tuesday February 04, 2025 @06:30PM (#42940813)
What features is C# copying from Java?
Re:How to Compile Java into Native Binaries with Mill and Graal by pjmlp on Wednesday February 05, 2025 @02:26AM (#42945104)
Most of C# 1.0 for starters, given that it was born from the lawsuit and J++ extensions, J/Direct, COM interop, events and Windows Foundation Classes.

More recently, default interface methods, apparently the ongoing discriminate union design seems to now be settling on similar Scala/Java approach, I still have to spend some time delving into it.

Not delving now on the CLR, versus the various JVM implementations, regarding GC, JIT, PGO, tiered compilation, escape analysis,...

Re:How to Compile Java into Native Binaries with Mill and Graal by josefx on Tuesday February 04, 2025 @02:50PM (#42937634)
How is the cross platform UI situation on C#? Anything official?
Re:How to Compile Java into Native Binaries with Mill and Graal by neonsunset on Tuesday February 04, 2025 @06:27PM (#42940775)
There is a good selection of multi-platform GUI frameworks: AvaloniaUI, Uno Platform, MAUI and smaller more focused alternatives.