News for hackers. Stuff that matters.
Re:Java at Alibaba [pdf] by ninjakeyboard on Monday October 09, 2017 @09:33AM (#15433614)
Java is well suited to very large projects only because developers are "commodity." With the modern language updates, the core java collections library is really broken for modern multi-paradigm programming. There are no true immutable collections in the core lib which makes Java really show its age with the newer language features compared to other more modern languages such as scala. Functions are bolted on as "Single Abstract Method" classes, which make functions essentially syntactic sugar instead of a first class language feature. Java9 makes some improvements but I wouldn't consider using Java for any new projects unless I was at a big enterprise that can only hire really cheap developer and needs to hire a whole lot of em really fast.
Re:Java at Alibaba [pdf] by koevet on Monday October 09, 2017 @09:47AM (#15433717)
I fail to see the connection between cheap developers and Java not being a truly functional language (which it never claimed or tried to be).
Re:Java at Alibaba [pdf] by andonisus on Monday October 09, 2017 @09:50AM (#15433746)
What kind of applications are you building that really require immutable collections and functional programming? In my opinion, Java is best suited for running web servers (and thus microservices), where the work doesn't really require any functional programming at all.
Re:Java at Alibaba [pdf] by erokar on Monday October 09, 2017 @10:09AM (#15433900)
Web servers' performance benefit from concurrent programming models. Concurrent programming is certainly possible in Java, but Java/JVM is not particularly well suited for it compared to other languages/VMs, e.g. Erlang.
Re:Java at Alibaba [pdf] by andonisus on Monday October 09, 2017 @11:14AM (#15434470)
The concurrency model you use is heavily dependent on the scale of your application. Java is just fine for the typical web server stack.
Re:Java at Alibaba [pdf] by ram_sankar83 on Tuesday October 10, 2017 @04:44AM (#15440310)
Inferences: Java developers are dumb, commodity. Scala/Haskell devs are smart and get things done in 100x speed. Conclusion: Ignore this comment
Re:Java at Alibaba [pdf] by ninjakeyboard on Wednesday October 11, 2017 @12:44PM (#15451098)
Commodity doesn't mean dumb. There is a general set of skills that most java developers have, and there are a lot of people that have them. So you can replace a developer with another one fairly easily. It's much harder to do with scala. And much harder with elixir or haskell.
Re:Java at Alibaba [pdf] by knightofmars on Monday October 09, 2017 @09:46AM (#15433703)
In a "not big enterprise" environment, what would you choose instead?
Re:Java at Alibaba [pdf] by ninjakeyboard on Tuesday October 10, 2017 @04:46PM (#15445185)
I'm a scala engineer. I also work with elixir a bit but Scala is preferred.