9 ms·
Java 27
- svcrunch 20d agoI've been using the Vector APIs for years now, and I'm still waiting for them to GA! They are useful for neural information retrieval (RAG, memory), which relies heavily on content vectorization and similarity matching using their dot products.
- taspeotis 20d agoKnock knock Who's there? long pause Java
- lazystone 20d agoOh, I see, jokes from 30 years ago!
- smrtinsert 19d agoWhat else are you supposed when keeping up with platforms proves too difficult!
- nairboon 20d agoAnd still funny today, not all jokes survive that long.
- Boereck 20d agoAlternatively: Knock, knock who's there It's the 90s, wanting their jokes back
- emil-lp 20d agoWhy do they want the jokes back?
- HelloUsername 20d agoThe long pause between the knock and the answer took 30 years
- nsxwolf 20d agoG1 is now the default garbage collector in 27.
- taspeotis 20d agoSorry I only just set -xXx360NoScopexXx=4G to run that latest version without hitting OOM and you are right, it is indeed quite fast with G1.
- paulddraper 20d agoYou misunderstand, xxx360NoScopexxx is now the default.
- azatom 20d agoIt's on you bc it was (arguably but still) dead 17 years ago. edit: don't get me wrong, i am not here to hate java, but bc i am also ... hm necrophil :)
- taspeotis 20d ago17 years is a rookie number. Take C# auto-properties, for example: 19 years ago! Now try asking, "When did Java get auto-properties?"
- marginalia_nu 20d agoNews at 11. Language that runs on the explicit design philosophy of letting other languages experiment first and then incorporating their lessons learned once the dust has settled is late to implement a feature.
- azatom 20d agoI never cared about those kind of syntax sugars. I was happy with IDE/static checkers, lombok, mapstruct, etc. I missed generators like that virtual threading for example. btw: i was referring a single point when oracle bought sun and "closed java".
- Betelbuddy 20d agoHigh Speed Trading team using Java looking puzzled .... https://lmax-exchange.github.io/disruptor/ https://lmax-exchange.github.io/disruptor/
- winrid 20d agoDon't put a 30gb heap on m4 boxes and you'll be okay
- hobo123 20d agoIf I'm not mistaken, OpenJ9 runtime offers some kind of precompilation and fast startup.
- mahboi 19d ago*OOM-kills 20 other programs on your PC while booting up*
- moomin 20d agoC# dev here: it’s amazing how different this is from a Microsoft release. First off, Oracle are doing versions at approximately twice the cadence. But also, and I’m guessing this is a function of the much larger Java audience: things rarely get two preview versions in a proper release. Updates in beta versions, yes, all the time. It also feels like Microsoft are bundling a lot more into the platform and leaving less to the community. Again, probably an artifact of the different sizes of the communities. Also, the page reads like an open source “We’re finished, we’re tired.” announcement rather than the razzmatazz of a Microsoft release.
- theandrewbailey 20d agoI never thought of Java being the 'move fast ~and break things~' alternative over .NET, but Java has a faster release schedule to get features out sooner.
- gf000 19d agoIt's pretty much the opposite. A fixed release schedule makes development more relaxed so it can be properly done, no need to rush for some release date. If it's not yet ready, there is 6 more months to get it merged.
- madduci 20d agoSeriously, how many are using always the latest releases of Java instead the LTS ones? With LTS ones you have ~2/3 years between the versions.
- throwaway91033 20d agoWe often use the latest version of Java at my work place. We haven't had any issues with upgrading, so there's no benefit of waiting for an LTS. There's no big process behind it either. The developers just quietly change the version as part of keeping the project up to date (BAU) It may be that we are shielded from edge cases because we are based on Spring, which is probably the most tested piece of software before new versions of Java are released. But it's my impression that the risk of upgrading to a new version of Java is not the same today as it was in the past. The only advantage of an LTS is that it is supported longer, so that you can postpone the upgrade if you really want. It's not as if the intermediate releases are inferior or less safe.
- aaronax 20d ago"The Java Story" documentary by CultRepo on YouTube is pretty great. A major topic is the release cadence which some other comments here are mentioning / joking about.
- arein3 20d agoProject Valhalla will go into Java 28 (next year, and preview version). Fingers crossed I'll manage to use null type safety in my lifetime.
- karussell 20d agoA first step of Valhalla that is ...
- rf15 20d agouniversal null type safety has sadly been discarded as a core concept of Valhalla in my Understanding; that being said, the proposals in Valhalla have null-safety as a side effect, but only under certain conditions.
- MrBuddyCasino 20d agoWhen (if) null safety ships, I‘m not sure I can justify using Kotlin any longer. Java simply got too nice.
- joe_mwangi 19d agoReally? I don't thinks so. There is a reason JEP 539 is in preview. There is a reason internal annotations exists in current valhalla jdk prototype and upcoming java 28 such as @jdk.internal.vm.annotation.NullRestricted, @jdk.internal.value.ValueClass.newNullRestrictedNonAtomicArray. Also, there is a reason value classes are allowed to be null. This is because nullness types will be a key factor to the java language.
- rf15 20d ago> Twelfth Incubator Are you sure this egg is actually viable? I mean, I'd love to see it, but...
- papercrane 20d agoThe JDK team made a decision awhile ago to hold the Vector API until value types are final. That's why the API has been incubating so long.
- Horffupolde 20d agoSerious question: when should one use Java for greenfield projects in 2026?
- kllrnohj 20d agoWhen you think a garbage collected language is a good fit for whatever you're building?
- kfir 20d agoWouldn't you go with golang in that case?
- topbanana 20d agoI would, or C#
- ndriscoll 20d agoGolang gives you none of nice features of a modern language while being about the same performance tier as Scala or Java, so there's basically no reason not to use Scala.
- eklavya 20d agoI ported a moderate sized java project to golang. Test suite runs order of magnitude faster now. There isn't much change in terms of the architecture. Pretty much the same algos and data structures. The whole dev tooling runs on a 16 gb mac without swapping now. I used vs code for both
- ndriscoll 20d agoIME they're both in a place where Rust is maybe ~40% faster for a decent CRUD web application server, but with go you need to write much lower level code to get there (e.g. using composable generic iterators will ruin your allocations, so it's all manual for loops). You can write idiomatic high level Scala and get the same performance. Which could be as simple as the go compiler offers no ability to force inlining and has way too low of a complexity threshold, but that basically makes reusable code unusable in high performance situations. The whole go team's philosophy tends to also revolve around assuming their users don't know what they're doing, which is annoying. Like an inline keyword: thinking you know better than me doesn't mean I'm not going to inline it; it means I'm going to manually write it inline myself in the code, and then think the language sucks because it's tedious, error-prone, and verbose. Or they tend to mark lots of stuff private for no reason, and e.g. with TLS 1.3 they just ignore your config because they think they know better, etc.
- aitoolcrux 20d ago[flagged]
- pineappletooth_ 20d agoStill pretty fun that here banks are still using Java 8, where i work they use java 17 and you can still find work requirements asking for java 7 (mostly in goverment entities)
- declan_roberts 20d agoThat's one benefit of using Java actually. You can always find Java developers.
- MisterMunchkin 19d agoBut why? Surely you can just run the original code on the new version?
- spopejoy 18d agoA big issue with java at big companies is that the JVM deployment is managed by sysadmin and devs can't touch it. To bless a java upgrade therefore means getting a defensive bureaucracy to take on risk, however miniscule, and since most Java improvements only help devs (rarely do they enable critical user-demanded features), sysadmins won't budge.
- liampulles 20d agoJava consistently introduces lots of exciting functionality into the language. That's a big part of my dislike and active avoidance of it.
- deleted 20d ago[deleted]
- tpoacher 20d agoIn the absence of a sarcasm tag, would you care to explain your reasoning?
- liampulles 19d agoI have a strong belief (mostly borne out by my years as Java dev) that the larger the possibility space of a language (and its ecosystem) the more room there is for inappropriate use and unclear code. Add time and an assortment of rolling devs of mixed ability level, and crap mounts faster then a "simpler" language. Let me be clear: Do I think it is possible to write good, clear, performant code in Java? Of course - Java can be used to write great software. The problem is that in Java there exist an extraordinary set of variations of a sufficient implementation, many of which are package protected abstract static horrors shows. And that will manifest over time if you add different individual developers. Else the project must engage in bureaucracy and control, where you have meetings over style conventions or hardline architects who come to constrain the joy of programming in the devs. Its much better when the language itself constrains you, then everyone can just move on. I feel Go, though certainly not perfect, meets this niche.
- liampulles 19d agoAlso - and this is very subjective - I find developers who have similarly low view of software development and high view of simple languages, to be very good team mates. We can laugh at the realities and move on pragmatically.
- 19d ago
- gtadesktop1 20d ago.
- paulsen 20d agoWhy do I need Kotlin, or Python, or C when Assembly is enough?
- gtadesktop1 20d agoYes true point. But why use Java? I mean you said another language that is an alternative for Java.
- paulsen 20d agoWell, ask yourself this, why use a hammer to drive a nail when a rock can do about the same? Same reasoning here, Java is "enough" in of a lot of areas that make it desirable for a lot of things, it is fast enough, stable enough, has lots of libraries and apis for a lot of things you may want to do, and the jvm makes it reasonably portable, among other things.
- cavoirom 18d agoJava is good at: - Runtime. - Standard library. - 3rd party libraries. - Frameworks. - DEV tools, debug tools, profiling tools. - Backed by big-tech, banks, governments. - Easy to find developers.
- okokwhatever 20d agoLove Java vs Hate Oracle... My life is a shit show
- znpy 19d agoJava is open source and you can get jvm and jdk from other vendors (eg: Red Hat). You can essentially live all your java life without ever interacting with Oracle.
- Good4boothee 19d agoI mean, thanks to crazy data center over-investment there is real chance that Oracle will need to sell some of their assets. Somehow I can't imagine many potential buyers that would be a good custodian of Java.
- vismit2000 19d agohttps://www.youtube.com/watch?v=m4-HM_sCvtQ https://www.youtube.com/watch?v=m4-HM_sCvtQ
- jan_m_savage 19d agoThis thread, which I read most of, reads like a 'how to be a language-war thread without explicitly being one'. :) Just use the language the (keeps putting) puts bread on your table. All languages have their own 'baggage'. Wrt to AI, I agree with pron's comments that for very large code bases, AI can't do 4$hit.
- Good4boothee 19d agoNot a fan of JEP-531, looks the repeat of Optional. Are we really so afraid of extending syntax that we are going to add a class instead of field modifier? private static final Logger log = Logger.getLogger(Whatever.class); This was already verbose enough that Lombok has @Log4j for it, adding `lazy` keyword in front of `final` won't make it any worse.
- exabrial 18d agoDo people just not type fast, ignorant of how IDEs work, or what exactly is the deal? I'd rather have the clarity of everything above. It tells me exactly what I need to know and what I can do with it.
- p32929 18d ago[flagged]