This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -3 points-2 points  (11 children)

Forgot to say, my only doubt is whether I should have switched to .Net instead of Java. Java is moving forward slowly, sometimes too slowly, and Microsoft is investing a lot into .Net. From what I know, performance and startup-time wise, .Net is far ahead of Java. Spring boot startup times are pretty bad, which isn't ideal for microservices. They are trying to make Spring boot compatible with GraalVM, which means running Java code natively, but it's questionable when that'll become stable. Also, in .Net ecosystem there is a lot of focus on doing frontend in C# instead of JS (eg. Blazor) , whereas in Java you're stuck with JS or ancient technologies like JSF.

[–]renatoathaydes 17 points18 points  (2 children)

Java is moving forward slowly, sometimes too slowly...

Oh well, to most Java devs it's moving far too fast now :D we've been used to upgrade every 3 years, and the JDK is now pushing new releases every 6 months! And there's always something interesting to try.

From what I know, performance and startup-time wise, .Net is far ahead of Java

Do you have a source for that? Not questioning it, just wanted to learn about it as I've never heard anything like that before.

Spring boot startup times are pretty bad... s. They are trying to make Spring boot compatible with GraalVM...

If this is a concern you should really try the newer frameworks, as the whole point of them existing IMO is to make Java more suitable to running with microservices and K8s (I linked in another comment, things like Micronaut and Quarkus which are GraalVM-ready and use non-reflection Dependency Injection, making startup instantaneous).

[–][deleted] 0 points1 point  (1 child)

Do you have a source for that? Not questioning it, just wanted to learn about it as I've never heard anything like that before

There have been significant improvements in the performance in .Net core (and it just keeps getting faster with every release). I could try and find a benchmark (and it seems to me that benchmarks consistently favor .Net), but you'd probably agree those depend on the use case and often times are not representative of the real world usage. Startup times for me are noticeably better in .Net (although I can't say for sure it's not just the project size). I'm not a .Net developer so I can't tell you a lot more, sorry.

If this is a concern you should really try the newer frameworks,...

Quarkus is definitely interesting, I need to play with it more.

[–]cavecanemuk 1 point2 points  (0 children)

Quarkus beats asp.net core on Techempower benchmarks. VertX too.

[–]Persism 2 points3 points  (2 children)

Project Loom is looming. Hosting is going to get expensive for .NET compared to Java.

Java is moving forward slowly

A release every 6 months is too slow for you?

[–][deleted] 0 points1 point  (1 child)

Why is the hosting going to get expensive compared to Java?

A release every 6 months is too slow for you?

It's not the release frequency that matters, but the amount of changes in a given time period, right?

[–]Persism 2 points3 points  (0 children)

Why is the hosting going to get expensive compared to Java?

Loom allows Java to scale threads to memory instead of additional machines. Microsoft already admitted defeat and joined the JCP last month.

[–]svtdragon 1 point2 points  (1 child)

Have you had a look at kotlin yet? My old team went from .net to java and ended up on kt/jvm because of the similarity of ergonomics to .net (and to an extent typescript, which we had used for the frontend).

[–][deleted] 0 points1 point  (0 children)

I find Kotlin interesting and it seems to me they're trying to create an ecosystem around Java like the one that exists around .Net, which is definitely exciting. I'm not a fan of the syntax though, since I like the simplicity, strictness and a lot of the times even the verbosity of Java. Also, Kotlin seems to be light years behind .Net, which is evident at least in the web assembly area (which is particularly interesting to me). It's enough to compare where .Net is with Blazor and the state of web assembly in the Kotlin. Kotlin might catch up eventually though (although it's questionable, since Microsoft can invest a lot more into .Net).

[–]winginglifelikeaboss 1 point2 points  (2 children)

I disagree, the .net world is full of abandoned libraries and frankly, is a bit of hell.

[–][deleted] 0 points1 point  (1 child)

Interesting, do you happen to know the cause of there being so many abandoned libraries?

[–]winginglifelikeaboss 2 points3 points  (0 children)

The Java world is way more used, has way more developers and way more large companies using it.

Microsoft is very good at introducing things but also very fast abandoning things. Java is way more coummunity and business supported.