News for hackers. Stuff that matters.
Re:Deno 1.4 by kybernetikos on Sunday September 13, 2020 @03:22PM (#24463231)
It's just so different, lots of people could claim different killer features. A strong contender for one section of the community might be the first class typescript support. Other people might like the way you can run so much from a single executable.

Anyway, node is a pretty mature platform now, if it dies, it'll die like java-the-language is dying. Very very slowly, and with parts of its platform holding out much longer than other parts. Or alternatively it'll evolve and slowly adopt things from other ecosystems.

I don't think we're at the stage where we can say that a bet on deno is definitely right, but it has a lot of interesting ideas and lots of people will be picking it up where they can.

If you're interested in the difference between node and deno, check out the talk '10 things I regret about Node' https://www.youtube.com/watch?time_continue=1&v=M3BM9TB-8yA&...

Re:Deno 1.4 by throwaway189262 on Sunday September 13, 2020 @09:56PM (#24465966)
Java is still the best choice for many backend systems. C# and Go still don't have nearly the breadth of open source libraries available. And performance between the three is very similar, besides Java's new GC's are far better.

For a majority of enterprise type integrations, which I would argue are the majority of software projects, Java and C# are still the only viable choices. And I don't see that changing any time soon. Go and JS haven't really touched that space despite widespread use for webapps.

If you need a big enterprise MMORPG type system with tendrils reaching across the cosmos into your stagnant data ponds, creaky AS400, and React customer facing mirage, Java is the legendary weapon. It's your only choice, your destiny.

Re:Deno 1.4 by ornornor on Monday September 14, 2020 @01:37AM (#24467115)
> React customer facing mirage

Nice

Re:Deno 1.4 by silentprog on Sunday September 13, 2020 @03:28PM (#24463269)
Since when is java slowly dieing?
Re:Deno 1.4 by kybernetikos on Sunday September 13, 2020 @05:00PM (#24463914)
Well, part of my point is that it's very very slow, and because of that, there are all kinds of points I could pick for 'since when'.

Maybe I'd pick when apple removed the default install from mac os, or maybe I'd pick when browsers made it impossible to run applets, or maybe I'd pick when the major java IDEs started pushing other languages like kotlin or xtend, or maybe I'd pick the oracle acquisition (never a good thing), or maybe I'd pick the release of go - a language squarely targetting pretty much the only niche that java has left (enterprise development of servers by mixed ability teams), maybe I'd pick the point when java development felt like it became more like configuring metadata for frameworks than actually coding, or maybe I'd pick when google started showing kotlin as the default language for developing on Android rather than Java.

Here's google trends for java: https://trends.google.com/trends/explore?date=all&geo=US&q=j...

Java-the-language is not going away any time soon, but if you expect it to do anything except decline, I think the future will be disappointing.

Re:Deno 1.4 by pjmlp on Sunday September 13, 2020 @05:39PM (#24464158)
Yep, so much decline with 80% of the mobile phones, even if it is based on Android Java, on top of which do you think all Android tools run on?

Then do you think the likes of SAP, Adobe, Amazon, Azure, Ricoh, Gemalto, PTC, Azul,.... are going to port their golden eggs to Go now?

Re:Deno 1.4 by sinsterizme on Sunday September 13, 2020 @06:23PM (#24464432)
This doesn’t refute his point, Java the language is separate from the JVM. And those big companies will follow the decreasing Java usage trend due to developer supply and demand. Anecdotally, it seems pretty obvious some of those companies are already doing this by writing new stuff in other, better languages when possible! To me that’s a good indicator a language is slowly dying, maybe you use a different definition.
Re:Deno 1.4 by andyroid on Sunday September 13, 2020 @06:44PM (#24464558)
Pretty much any language running on the JVM will make it dead simple to import and use libraries written in Java - in fact one of the main reasons to choose the JVM is the huge amount of high quality libraries available. So while true that Java != JVM, it’s not as simple as that either.
Re:Deno 1.4 by pjmlp on Monday September 14, 2020 @12:36AM (#24466793)
Most JVM implementations are around 80% Java with some C++ for the JIT/AOT and GC, GraalVM and JikesRVM have even bigger percentage.

It is an illusion to use JVM without touching or understanding Java works.

Re:Deno 1.4 by andykx on Monday September 14, 2020 @01:14AM (#24466993)
I mean, I know tons of Scala and Clojure devs who don’t touch Java at all in their day to day work. I don’t think the user(s) above were referring to the implementation of the JVM.
Re:Deno 1.4 by pjmlp on Monday September 14, 2020 @02:35AM (#24467429)
Then something blows on their face and they are completely lost, because they don't know what powers their code or the boilerplate magic that they generate to pretend to be Java for the JVM.

I have seen a couple of those guys, where I get called to sort out their problems.

Re:Deno 1.4 by afiori on Monday September 14, 2020 @03:45PM (#24474273)
But this is still compatible with Java slowly dying. It is possible that in a future Java role in the JVM will share some similarities with C's role in CPython.
Re:Deno 1.4 by vfistri2 on Tuesday September 15, 2020 @05:13AM (#24479292)
Nop they’ll probabbly just buy new software that is built on smth like go
Re:Deno 1.4 by snazz on Sunday September 13, 2020 @03:58PM (#24463488)
Java mindshare has been dying for a long time. That said, it's still taught in schools and all sorts of companies still use it (including "cool" ones like Google and Apple).
Re:Deno 1.4 by nzly on Sunday September 13, 2020 @11:39PM (#24466533)
It is nothing about Java or even mindshare, it is all about money, shareholders, new companies, or even just have to reshape a wheel again. This type of subject is a pseudo-proposition. When many people are using Java, some guys need to create something new (may not really new) to gain the financial interest. Of course they have to pick up something bad about Java or whatever languages and then fill his new stuff in the marketplace, but actually nothing really new. C, C++, Java, Php, Ruby, Python and do on. When everyone is familiar with something or know something for long, the capital and money stop moving, which is bad for game players such as new companies in Silicon Valley and money makers from Wall Street.
Re:Deno 1.4 by The_Colonel on Sunday September 13, 2020 @04:26PM (#24463707)
Java mindshare might be slowly shrinking but it is very, very far from dying.
Re:Deno 1.4 by rektide on Sunday September 13, 2020 @04:41PM (#24463810)
I'd ask, what is sustaining java? Where are the replacement techies picking up the torch, where are youngsters seeing java?

I have some answers. It's not a lost cause. Death is not likely, & I do appreciate a lot of java (cdi rocks, microprofile is doing great, performance is good, it has excellent big data tools & many serious pieces of infra are built with it). But how java can retain liveliness, over time, & how the experience & knowledge base continues, is a real challenge. Being on Android helps a lot but also it's a radically different immensely unlike the server side world, with its own elaborate platform specific architectures & libraries. There's not a lot of places java has a hold on UI/ux centered systems, outside Android, so it risks becoming too invisible.

Re:Deno 1.4 by SiVal on Monday September 14, 2020 @01:23AM (#24467047)
"Where are youngsters seeing java?"

Funny you should ask that. If a high school kid takes Advanced Placement (AP) Computer Science in the US (including the kids here in my neighborhood in Silicon Valley), the only language taught is Java. Kids who want my help with their programming projects or classes here in the Valley, even the undergrad CS majors at Stanford, are always going to ask about one of three languages: Python, JavaScript, or Java.

In the shadow of the Apple spaceship, the iPhone is exactly as Apple intends: an appliance for you to communicate with friends and buy things from Apple, certainly not a computer for you to program. Nobody ever asks me about Swift. If you want to program a computer--sorry, "code"--it's always and only Python, JavaScript, or Java.

Re:Deno 1.4 by pjmlp on Sunday September 13, 2020 @05:43PM (#24464175)
When SAP rewrites their stack to something else other than Java, Amazon or Alibaba stop contributing to Java, then I start worrying.

Microsoft decided that Java death is so imminent that they are now an OpenJDK contributor, collaborate with Red-Hat on VSCode Java support, have bought jClarity and Java has first class support on Azure.

Re:Deno 1.4 by doteka on Sunday September 13, 2020 @07:45PM (#24464924)
I guess a Roman, asked circa 300 AD how he feels about the decline of the empire, would have replied similarly.

Java’s mindshare just isn’t where the exciting things in this field are happening. It’s more the domain of overengineered “big data” platforms and clunky enterprise software. Yes, SAP employs a ton of java developers I’m sure, but many devs would rather switch careers than work on anything resembling a crufty ERP.

Thus, the ecosystem stagnates, due to the dead see effect - everyone who could push it forward into new areas has no interest being anywhere near it. And stagnation is a long, drawn out death all the same. It still has a ton of momentum, and millions of outsourcing devs who only know Java, so it will be with us for a while - but make no mistake, the decline started quite a while ago.

Re:Deno 1.4 by rektide on Monday September 14, 2020 @12:50PM (#24472309)
Personally I find the Java engineering to be excellent & not overblown, & I appreciate so many of their patterns. Making Service Provider Interfaces for everything? Epic awesomely powerful. Maven? Shockingly regular & predictable & clear, although what a lot of the plugins do is wild. I really don't understand most people's grief & complaints about Java, they seem abstract & emotional, but I for one don't mind typing, & don't feel bogged down in JAva.

There's some good words in the grandparent about who uses Java, that I respect a lot & holds enormous truth.

I don't know anything about COBOL. But neither do any of my programmer friends. But COBOL is also far from dead, yet it might as well be to the rest of the programming world, I feel like. It has no mutual impact, it's too far removed from the regular happenings, & I'm not sure how or where dialog would open.

So yes, like, I think the Roman example is really good. Communication are getting cut off, people are stuck. Things might be good here, but the world is regressing to a pre-Romanized status, with little overland travel, unable to harvest the breadth & intelligence of the many great citizens, that Java used to be a contributing key part of.

I don't think Java is stagnant or dead, it's not so glum. Micro-profile is being wonderful. DropWizard is a very lovely quite popular scene still. But right now, Java's presence in the AP Computer Science curriculum is doing an enormous amount of heavy lifting for Java, and once that dam breaks- and it doesn't seem like there are many fitting replacements atm, with all the nice neoclassical columns & facades to make the language feel academic/computer-science-y- it's gonna be harder days for Java, & the weakness within, the being more cut off, is going to hurt.

Re:Deno 1.4 by pjmlp on Monday September 14, 2020 @12:33AM (#24466773)
On my domains only Java or .NET stand a chance to win RFPs, and if anything .NET is the one having troubles, because many are unsure what Microsoft actually wants to do with it, and slowly pissed with the multiple rewrites where there is always something left behind.

I only see RFPs for Java based technology going up.

Re:Deno 1.4 by yrio on Monday September 14, 2020 @07:52AM (#24469055)
Do you think .NET is currently being badly managed compared to Java? And do you think it will negatively affect .NET's long term future?
Re:Deno 1.4 by pjmlp on Monday September 14, 2020 @10:49AM (#24470797)
Kind of, Microsoft seems to trying to fix UWP, while trying to turn .NET into a cross platform runtime that has an eco-system that has been Windows only for the last 20 years.

So while they are doing lots of nice performance improvements, there are plenty of business not so happy that their 20 year investments don't run on .NET Core, and if a rewrite is needed (e.g. WCF vs gRPC) then why not just jump into something else.

Just see the lengthy roadmap, and the considerations that not everyone was happy with "AOT" (packing everything into an exe that unzips on execution).

https://github.com/dotnet/designs/blob/main/accepted/2020/fo...

Also check the repositories from Project Reunion, it is pretty much WIP right now.

Re:Deno 1.4 by lenkite on Tuesday September 15, 2020 @02:36AM (#24478461)
Most of the world uses Java, including "happening" companies. Please be highly aware of HN bias. If one only reads HN, one can get a highly distorted view of the reality of software engineering.
Re:Deno 1.4 by dragonwriter on Tuesday September 15, 2020 @02:42AM (#24478502)
> Most of the world uses Java, including "happening" companies.

On the contrary, even boring enterprises often don't actively use Java. Sure, lots of places do, but lots of places have either never adopted or dropped (or at least relegated to certain legacy systems) Java, especially, on the enterprise side, places that at some point became largely Microsoft shops, where even if they've since moved beyond that, they probably didn't go back to Java except maybe for any Android work.

Re:Deno 1.4 by lenkite on Tuesday September 15, 2020 @11:16AM (#24482129)
I guess you are in a different bubble. Netflix's backend is mostly all Java, Apple Backend (apple media products engineering) is Java based. Neither of these companies will ever become a Microsoft shop.
Re:Deno 1.4 by j-pb on Monday September 14, 2020 @02:11AM (#24467303)
When big banks stop maintaining their cobol bases, then I'll start worrying about the death of cobol.

SAP is a backwater for programmers. They're at least 20 years behind the curve.

Re:Deno 1.4 by pjmlp on Monday September 14, 2020 @02:32AM (#24467407)
Plenty of programmers dream of SAP level salaries.

Do you know that several JVM optimizations have been contributed by them?

I for one, rather work with SAP than dealing with npm ecosystem.

Re:Deno 1.4 by j-pb on Monday September 14, 2020 @07:43AM (#24469016)
The fact that you bring up salaries perfectly represents everything wrong with SAP.

A job is more than a money maker, it's a platform for expressing yourself.

SAP wouldn't understand that though, so they hire the mediocre (to write Java, a language explicitly designed to cater to less capable programmers) to produce joyless, soulless stuff. Of course they pay well, they have big customers with no taste for good work, but plenty of money, nobody in their right mind would take on a SAP job if the money wouldn't make up for the grueling tedium.

If you think that it's either SAP or node, oh boy, thats a false dicotomy of hilarious proportions.

And BTW, I've heard that Cobol salaries are quite high too.

Re:Deno 1.4 by pjmlp on Monday September 14, 2020 @10:50AM (#24470804)
Artists express themselves, Software Engineers get the job done and go home.

Yeah, ironically COBOL is more modern than C in language features, yet C seems to still be quite appreciated for a 50 years old language.

Re:Deno 1.4 by j-pb on Monday September 14, 2020 @04:02PM (#24474465)
The way you get the job done is also an expression of yourself. There is never only one way to do things.

The issue is that if you work for a company like SAP, you most likely don't have enough personal flavour to come to interesting or meaningfull solutions. If you don't have passion, be it even for correctness, you'll build mediocre things.

Germany paid SAP millions for their Covid tracking app. Reaearchers had already worked out a protocol for them, apple and google had already implemented it. All they had to do was write a simple frontend and be done.

But politicians decided that such a big and important job, needs to go to big and important companies like SAP and T-SYSTEMS, for millions of euros.

SAP tried to be cool and agile, they even forced their employees to create github profiles (something none of the had done prior).

In the end they delivered a month too late, with critical bugs. And millions of server maintenance fees.

A system that was already 90% implemented, with network requirements that can be satisfied by fiber to the home connections, or a single S3 instance.

Why? Because they used mediocre people, who didn't have enough passion to create github profiles. Because they used the least common denominator, Java, and reinvented stuff that was already implemented. And because everybody just wanted to get the job done and go home, no expression of self involved.

But hey, I heard they pay good.

Re:Deno 1.4 by rektide on Monday September 14, 2020 @12:52PM (#24472333)
We are building the noosphere here. We don't all have to wear that mantle, but some of us should have hopes and ambitions in our jobs. They don't even have to be consuming, but simply seeing this as an ongoing continual project seems due. We're coming close to RFC10000. No one goes home. We strive to open possibilities for humanity so we can all each keep exploring & going further.

Edit: oh good to see you again pjmlp, after last week. We fell to different sides then too, but I have continually enjoyed your writing, & again, while I talk & disagree, I would also not say you are wrong. You are more than correct, in the vast amount of cases. But I would suggest that this field in particular must also be heads up looking up & about, that just a job doesn't fully describe us all.

Re:Deno 1.4 by lenkite on Tuesday September 15, 2020 @02:37AM (#24478468)
Also add Apple and Netflix to that list.
Re:Deno 1.4 by spiritwander on Monday September 14, 2020 @12:04AM (#24466645)
java is not platform-dependent,it is a platform..
Re:Deno 1.4 by andai on Sunday September 13, 2020 @03:31PM (#24463293)
It's been 3 billion devices for twenty years :)
Re:Deno 1.4 by findjashua on Sunday September 13, 2020 @05:33PM (#24464119)
JVM as a platform is doing just fine, but other JVM languages seem to be taking over Java’s territory:

1. Kotlin replaced Java for Android development

2. Scala has become the primary language for some of the major tools in the data stack - spark, kafka etc

I’m sure there are other examples as well

Re:Deno 1.4 by pjmlp on Sunday September 13, 2020 @05:41PM (#24464167)
Java is going away from JVM as much as UNIX is loosing C.

1. Politics due to how Google screwed Sun with Android Java

2. Scala is a tiny dot on JVM world and it remains to be seen how Scala 3.0 will be taken up, specially if Python like syntax is actually adopted

Re:Deno 1.4 by reader_mode on Sunday September 13, 2020 @06:34PM (#24464508)
Well UNIX (or Linux more importantly) is "losing" C, C++ and more recently Rust are slowly displacing it. It's still probably going to be the ABI everything is based on but the language itself is not a first choice for many and that number is increasing over time.

Is that what you were implying ? It doesn't sound like it from the rest of the comment because you seem to disagree that Java is losing mindshare on JVM.

Re:Deno 1.4 by pjmlp on Monday September 14, 2020 @12:29AM (#24466756)
First get a UNIX clone to take over the world written in something else other than C.
Re:Deno 1.4 by bitwize on Monday September 14, 2020 @02:27AM (#24467389)
Re:Deno 1.4 by pjmlp on Monday September 14, 2020 @02:33AM (#24467415)
That is not an UNIX.

Having some level of POSIX compliance doesn't turn an OS into UNIX, unless you mean Windows is a UNIX as well.

Re:Deno 1.4 by pjmlp on Sunday September 13, 2020 @05:37PM (#24464139)
It is a HN thing, on my circles the choice is only Java or .NET and it isn't going to change for years to come.

Java is dying so fast than nowadays even Microsoft contributes to OpenJDK, having bought jClarity in the process.

Re:Deno 1.4 by nullsense on Sunday September 13, 2020 @09:25PM (#24465691)
Where I am it's largely dominated by Java and .NET with bits of other languages here and there.

I jumped ship to .NET after Oracle changed their licencing. I don't like them as a vendor and don't want to be tied to them.

Java will still live to a pretty ripe old age but it does feel like it's a little over the hill nowadays.

Re:Deno 1.4 by pjmlp on Monday September 14, 2020 @12:47AM (#24466844)
As if Microsoft would be an angel vendor.

.NET Core also doesn't run in all platforms where there is a Java implementation and not everyone is happy to rewrite their .NET Framework into Core, while Microsoft is in mix of leaving again stuff behind like the ongoing discussions about CoreRT, .NET Native, Project Reunion, MAUI vs Blazor vs WPF vs Forms show.

Re:Deno 1.4 by nullsense on Monday September 14, 2020 @02:43AM (#24467468)
Cool. I'm happy enough with it all, so that's me sorted.
Re:Deno 1.4 by lenkite on Tuesday September 15, 2020 @02:41AM (#24478492)
The problem with .NET is that Microsoft have a proven history of seeing the next shiny over the hill and dropping support for existing frameworks and libs while the "new and improved" framework is rolled out. See ! This way is better! Well, until the next better way comes up within a few years.

I know of teams who have moved to Java simply to avoid the churn. Many folks prefer the boring but stable Java ecosystem.

Re:Deno 1.4 by Shorn on Sunday September 13, 2020 @10:10PM (#24466056)
You're on HN.

If it's not growing explosively - it's dead.

Do I really need a "/s" here?

Re:Deno 1.4 by alephu5 on Monday September 14, 2020 @03:12AM (#24467645)
As well as this, I think it's also perceived to be a clunky old language. Our modern languages have much more ergonomic build systems, are much less verbose and have coding conventions tailored to modern tastes.

This is important, so I predict that over the next few years, as the 20-30 year olds of today gain more senior positions, they're going to choose python, JavaScript, kotlin, golang or rust for new projects.