News for hackers. Stuff that matters.
Re:The Top Programming Languages 2023 by hackernoteng on Monday September 11, 2023 @08:32AM (#37466268)
Java is king. Take away all the AI batch stuff and Python would shrink more. Putting python in production for online applications has many issues (trust me, I know). Java is very robust, performs well, tons of mindshare, pretty good frameworks (Spring Boot, Quarkus), and very good IDE support.
Re:The Top Programming Languages 2023 by manfre on Monday September 11, 2023 @08:41AM (#37466368)
> Take away all the AI batch stuff and Python would shrink more.

Odd statement. Take away spring boot and Java would shrink more.

Re:The Top Programming Languages 2023 by valbaca on Monday September 11, 2023 @05:32PM (#37474005)
AI is in a hype-cycle. Spring boot isn't
Re:The Top Programming Languages 2023 by mathisfun123 on Tuesday September 12, 2023 @01:11AM (#37477120)
Lol so people are getting PhDs in hype? I think not. It's also been like 10-15 years at this point. Me thinks springboot will disappear before pytorch.
Re:The Top Programming Languages 2023 by dzonga on Monday September 11, 2023 @08:38AM (#37466341)
the jvm is a powerful platform. but java itself sucks. yeah massive ecosystem. library for everything.

but if thre's one thing that embodies complexity for the sake of complexity its java.

java is also pragmatic. you're less likely to lose hair using java than python.

but java sucks -- you've a lot of "come-from" statements that you can't easily grasp the code. maybe it's me just being a dumb mofo

Re:The Top Programming Languages 2023 by sailorganymede on Monday September 11, 2023 @08:38AM (#37466332)
Kotlins been magical for working w/ too!
Re:The Top Programming Languages 2023 by adolph on Monday September 11, 2023 @08:39AM (#37466347)
> Take away all the AI batch stuff and Python would shrink more.

Isn’t that a but like saying “Take away all that enterprise stuff and Java would shrink more?”

Re:The Top Programming Languages 2023 by The-loan-wolf on Monday September 11, 2023 @09:12AM (#37466735)
Context here is "general purpose language" so yeah if you take away AI from python, python will decrease more
Re:The Top Programming Languages 2023 by armchairhacker on Monday September 11, 2023 @08:52AM (#37466491)
Java has:

- A decent type system, which makes it better than Python, JavaScript, R

- Runtime errors with good stack traces instead of UB for things like invalid casts or null dereference, which makes it better than C++

- Automatic memory management without complex borrowing rules, which makes it (arguably, for some situations) better than Rust

- The JVM targets many different platforms and Java programs often “just work”, which makes it better than Swift

- Decent abstraction, which makes it better than Go

- Large ecosystem, which makes it better than Dart or Nim or Zig

- C#? I’m not sure, C# is a lot like Java. IMO what Java has which is better than C# is Kotlin and better JetBrains support

Now Java isn’t perfect. In fact I prefer Kotlin (always), Rust (despite the increased difficulty), and Swift (if the platform allows) as general-purpose languages. But unlike those, Java is one of the ancient big languages everyone knows about, and compared to the others (JavaScript, Python, C++) it’s the best general-purpose language by far.

Re:The Top Programming Languages 2023 by pjmlp on Monday September 11, 2023 @12:46PM (#37469929)
There is a certain irony that outside Windows, the best .NET IDE is based on the JVM.

All because of politics.

Re:The Top Programming Languages 2023 by myth_drannon on Monday September 11, 2023 @09:20AM (#37466848)
Oracle owns Java which cancels any pros of that language.
Re:The Top Programming Languages 2023 by xwowsersx on Monday September 11, 2023 @09:59AM (#37467373)
Oracle does not own the Java programming language itself. Java is an open-source language, and Oracle primarily maintains Java SE and Java EE platforms implementation. But, there are other implementations and open-source versions of Java, e.g. OpenJDK, which are not owned by Oracle.