Earlier quoted context omitted.
Oracle's builds of Java are open source as well. The OpenJDK codebase is shared across all of the vendors that provide builds.
Thanks! So why would I pick Oracle's implementation?
Java 18 / JDK 18: General Availability
41–50 of 304 posts
Re: Java 18 / JDK 18: General Availability
#42Earlier quoted context omitted.
Oracle's builds of Java are open source as well. The OpenJDK codebase is shared across all of the vendors that provide builds.
Thanks! So why would I pick Oracle's implementation?
Side note: Avoid EBS at all costs if you can, unless you like spending money on consultants and like crappy obfuscated processes.
Re: Java 18 / JDK 18: General Availability
#43This is tangential and possibly too open ended to be productive but worth a shot anyway. Why is Java so popular? I know of a major Silicon Valley company that's migrating their backend to it. Why Java over other languages? Or maybe there's not really other viable options? I'm speaking as someone who spent the last 6 years focused on frontend web technology.
- Java has great ecosystem support
- JVM is very performant
- Java has well understood quirks
- Reasonably mature build system
- Good deploy story
I wouldn’t use Java for a web server but I like it very much for many other things.
I think Scala + Play does a good job for JVM web frameworks but I’d use a Typescript thing (or just Rails)
There are downsides to Java. Bit and byte manipulation are annoying, for instance. But I’m still happy with it.
Re: Java 18 / JDK 18: General Availability
#44Earlier quoted context omitted.
The language is simple. Reasonable performance, lots of opportunities to tune that performance without changing code. Great error handling. Works across all platforms in most cases. The tooling has a long standing reputation for being incredible, given what Eclipse and Jetbrains have done for the community. It integrates nicely with native code, and is easy enough to interface with (compared to e.g. Node.js and pytho…
Great error handling? What does that mean? Checked exceptions seem cool at first, but are really just nonsense… as your only real way of dealing with this is: 1. Catch, log and rethrow, or 2. Wrap as a runtime exception (so you don’t have to change every method signature up to main()) Sure, there’s option 3: catch and handle… but this is used 1/50 times, and the ergonomics of (2) overwhelm the utility of this. BTW, v…
Re: Java 18 / JDK 18: General Availability
#45Here's the openjdk page which includes links to details of all new features: https://openjdk.java.net/projects/jdk/18/
This one looks interesting: "JEP 400: UTF-8 by Default": https://openjdk.java.net/jeps/400 It sounds like a good idea, but I can imagine lots of downstream breakage, some of it not immediately obvious, with apps that make bad assumptions. Edit: The risks section of the linked doc above does explain some of that, and there is some notable risk.
You're not wrong, which is probably why they did it in this release.
JDK 17 was an LTS release, and 18 isn't. The next LTS will be JDK 21 in September 2023:
* https://www.oracle.com/java/technologies/java-se-support-roa...
This presumably gives folks times to adjust before jumping between LTSes in production.
Re: Java 18 / JDK 18: General Availability
#46This is tangential and possibly too open ended to be productive but worth a shot anyway. Why is Java so popular? I know of a major Silicon Valley company that's migrating their backend to it. Why Java over other languages? Or maybe there's not really other viable options? I'm speaking as someone who spent the last 6 years focused on frontend web technology.
I think it has a relative speed performance over languages that are interpreted (runtime). It also has an ecosystem of tooling to monitor and profile built both into the JDKs and by teams across Silicon Valley (eg first class bazel support). I’m in one of these companies now, and while I’m certainly productive using Java, it’s also got huge downside in the community which these companies don’t really care about. Neve…
Re: Java 18 / JDK 18: General Availability
#47This is tangential and possibly too open ended to be productive but worth a shot anyway. Why is Java so popular? I know of a major Silicon Valley company that's migrating their backend to it. Why Java over other languages? Or maybe there's not really other viable options? I'm speaking as someone who spent the last 6 years focused on frontend web technology.
Because Java is stable and mature, has well-understood performance, is statically-typed, has a proven track record when it comes to backwards compatibility, is reasonably fast and has lots of library and tooling support. Additionally lots of people know it. Some complain about verbosity. It's really a non-issue particularly in a modern IDE and not worth making a language decision over. Not everything has to be new an…
I understand though, that in more recent versions of Java this is taken care of for you.
Re: Java 18 / JDK 18: General Availability
#48Earlier quoted context omitted.
Oracle's builds of Java are open source as well. The OpenJDK codebase is shared across all of the vendors that provide builds.
Thanks! So why would I pick Oracle's implementation?
Most of the big vendors are running the TCK tests to certify compatibility as well.
Re: Java 18 / JDK 18: General Availability
#49Earlier quoted context omitted.
Great error handling? What does that mean? Checked exceptions seem cool at first, but are really just nonsense… as your only real way of dealing with this is: 1. Catch, log and rethrow, or 2. Wrap as a runtime exception (so you don’t have to change every method signature up to main()) Sure, there’s option 3: catch and handle… but this is used 1/50 times, and the ergonomics of (2) overwhelm the utility of this. BTW, v…
Was referring more to structured stack traces. You're able to shoot yourself in the foot in any language's error handling system - quite trivially at that.
Re: Java 18 / JDK 18: General Availability
#50Earlier quoted context omitted.
Oracle's builds of Java are open source as well. The OpenJDK codebase is shared across all of the vendors that provide builds.
Thanks! So why would I pick Oracle's implementation?
https://en.wikipedia.org/wiki/Google_LLC_v._Oracle_America,_....