News for hackers. Stuff that matters.
Re:Only 1 in 10 Oracle Java users want to stay with Big Red by caspper69 on Wednesday January 29, 2025 @01:06PM (#42868725)
I know HN is not the place for this (because Microsoft), but I really like C#.

The ecosystem has been MIT since 2016, and the last few releases have been solidifying the AOT proposition.

It just has so many features that allow it to compete with C/C++ on the low level, but it also provides exceptional high level niceties (which admittedly can be slow, some LINQ for example).

I know it's not fashionable, especially in a Linux-centric world, but I have used it extensively for many years (on essentially every platform), and it's lightweight (in most instances) and has the features and tooling to make development less stressful.

Every time I use Java, it just feels overwhelming and slow.

Re:Only 1 in 10 Oracle Java users want to stay with Big Red by jeroenhd on Wednesday January 29, 2025 @02:43PM (#42870119)
I like C# too, but both languages seem to perform pretty similarly in my experience. The biggest difference seems to come from third party libraries being more optimized in one framework than the other.

Once Project Loom receives some more love (I believe that's scheduled for the next LTS, Java 25) I'll be very interested to see how Java's green threads will compare to C#'s async/await. I think Java's model may help programmers write more optimal code easier, but only if they can pull off their scheduling improvements.

C# does have massive advantages when calling native code, though. Java FFI is always just kind of a pain and C# FFI is pretty much trivial.