Comment

Comment by pron

> How do you compile a Java library that uses native code? Python/Node/Ruby worlds know how, but OpenJDK ignores the question.

Because you compile it like any other Java library.

> How do you ship a Java library that uses native code? Python/Node/Ruby worlds know, but OpenJDK ignores the question.

It doesn't. jmod files and the jmod tool were added in JDK 9 precisely for that (and other things, too).

> If even the well funded OpenJDK developers working in Java can't outcompete the poorly funded OpenSSL devs working in an unproductive language, then what chance do other Java library devs have? None at all!

People aren't really rewriting OpenSSL in Python or JS, either, but high-level languages are many times more popular than low-level ones [1], and you're misreading the normal behaviour of a fragmented market, when it's worth it to compete and over what. I don't think any language today has a healthier library ecosystem than Java. That's not to say it's as good as wish it would be, but no one seems to do it better.

There is, however, a problem with build tools not supporting newer JDK features (that are coming faster now than before) and we'll need to do something about that.

[1]: https://www.devjobsscanner.com/blog/top-8-most-demanded-prog...

parent pron 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton