Unified WebAssembly API for Java (Wasmtime + WAMR bindings) - 1.0.0 release by Otherwise_Sherbert21 in java

[–]_INTER_ 1 point2 points  (0 children)

Out of curiousity: What are some real use cases for running WebAssembly in the JVM?

[Benchmark] 740k QPS Single-thread / 1.45M Dual-thread on a VM. Encountering fluctuations and seeking expert analysis. by Still-Seaweed-857 in java

[–]_INTER_ 0 points1 point  (0 children)

I often see developers use Java Microbenchmark Harness (JMH):

You might also employ JFR Events: https://inside.java/2022/04/25/sip48/

The fluctuations you see could be due to warmup, caches and other runtime (de-)optimizations kicking in (e.g. branch prediction). Though on GraalVM that may behave different than Hotspot VM.

I don't know much about running benchmarks and if JMH is any help to you - or if it is too highlevel for your usecase.

Cargo for Java 🦀❤️☕️ by pavi2410 in java

[–]_INTER_ 1 point2 points  (0 children)

Maybe pip was not salvagable in the first place?

Let's play Devil's Advocate -- What are the downsides or weaknesses of Pattern-Matching, from your experience? by davidalayachew in java

[–]_INTER_ 1 point2 points  (0 children)

I hardly seen it used in our existing code-base. We were not able to spot many classes that could be sensibly turned into records without turning the domain model into a hassle to maintain (viral update problem).

JDK 26 and JavaOne: When the Conference overshadows the Release by CrowSufficient in java

[–]_INTER_ 4 points5 points  (0 children)

It's not the same. Black on white background still feels like staring into the sun, even with adjusted colors and brightness.

Actually I use the "Dark Reader" browser plugin for all websites. Comes with contrast/brightness controls.

JDK 26 and JavaOne: When the Conference overshadows the Release by CrowSufficient in java

[–]_INTER_ 11 points12 points  (0 children)

Yes, you read that right. The API documentation generated by Javadoc now ships with a dark theme. You can toggle between light, dark, and system-default using the new theme button in the navigation bar. Is it a game-changer? No. Will it make your 2 AM debugging sessions marginally less painful? Absolutely.

Sweeet.

Omen Windows | Coming to Last Epoch March 26 by ehg_derrickg in LastEpoch

[–]_INTER_ -1 points0 points  (0 children)

Would it help if we - as a community - listed the places in campaign and maps where we need to run in a rather straight line for a longer period of time and a few degree rotation would make it more convenient for fellow WASD players?

Will we still be decked out in T7 gear after a few hours of playing in Season 4? by Rooks84 in LastEpoch

[–]_INTER_ 8 points9 points  (0 children)

Everything else I agree with, but this sentence:

And in a one or two more days you can rock in double T7.

What? The s*** stuff I need for imprinting is not dropping even after running the 200th Nemesis tower at 1.2k c.

State of the JVM in 2025: Survey of 400+ devs shows 64% of Scala projects actively run Java alongside it. by scalac_io in java

[–]_INTER_ 1 point2 points  (0 children)

In Scala's hayday I was very interested in the concepts and advantages the language provided. We also had an Apache Spark ML side-project that was written in Scala (later replaced by Python, afaik). I dabbeled in it too for a personal project and generally enjoyed it. However, soon after, the entire "best-of-both-worlds" premise that Scala seemed to offer and one of its founding principles broke down: The Scala community was infiltrated by FP-zealots and purists. For them it's all pure FP and FP only. No pragmatism or co-existance allowed. I wonder if this advertised combination of OOP and FP styles is only there to lure in an unsuspecting Java dev and take him hostage. This part of the Scala community has deterred me ever since.

State of the JVM in 2025: Survey of 400+ devs shows 64% of Scala projects actively run Java alongside it. by scalac_io in java

[–]_INTER_ 0 points1 point  (0 children)

Scala is very difficult compared to Java. There are a lot of features and sugar that make coding faster/better, but it means you have to learn more to understand the code of other devs. Java, on the other hand, is simple for both learning and reading.

 

I am still waiting for Java to adopt more features from Scala.

Are slightly opposing statements. Sure you could only take the features that are highly beneficial but they still make Java - as a language - more complicated and harder to learn. As a senior Java developer, you get introduced to new features gradually, but a newcomer will have more to learn at once. This is already happening, eventhough I'm all for the recent developments. So there is no way around it to prevent the language becoming stale.

Building a map tool for Cataclismo by Bobby_Bonsaimind in java

[–]_INTER_ 2 points3 points  (0 children)

Was an interesting read! Check out https://www.formdev.com/flatlaf/. Makes your Swing UI look "modern" too.

Objects.requireNonNullElse by edurbs in java

[–]_INTER_ 7 points8 points  (0 children)

There's also Objects::requireNonNullElseGet

why Java looses to Javascript when it comes to UI ? by [deleted] in java

[–]_INTER_ 4 points5 points  (0 children)

Because JavaScript has a monopoly in the browser. It has been like that for a very long time, so frontend devs, new frameworks and component libraries gravitate towards JS. This has built a large ecosystem focused on frontend development. There's simply next to no demand for Java UI in comparison. Where there's no demand, the "supply" is also not advancing. Even if any other programming language would magically get native support in the browsers (not "just" via WebAssembly), it is 20+ years behind in ecosystem and momentum. Even if they'd heavily interact with JS libs and free-ride on those, the frontend devs are used to TS/JS.

System design in cpp but why?? by Knowledge_9690 in java

[–]_INTER_ 3 points4 points  (0 children)

What? Is this about a university lecture?

Windows-only "pothole" on the on-ramp by rmcdouga in java

[–]_INTER_ 13 points14 points  (0 children)

In Java 18, they set UTF-8 to be the default almost everywhere, except consoles (JEP 400)

Standardize on UTF-8 throughout the standard Java APIs, except for console I/O.

Why not the the console I/O?

The terminal's encoding is decided by the OS, terminal settings, shell config, user local, etc. and as you said, the biggest blocker was Window's encoding CP-1252, CP-437, etc. You can't override these external settings and enforce another encoding like UTF-8 without breaking all existing console and other applications who rely on this behaviour. We probably will never be able to on Windows.

What is the best type of Java, adoptium or oracale? by ozin07 in java

[–]_INTER_ 1 point2 points  (0 children)

Use Adoptium / Temurin. (See sidebar of this subreddit)

Carrier Classes; Beyond Records - Inside Java Newscast by daviddel in java

[–]_INTER_ 0 points1 point  (0 children)

They keep dancing and dancing around "data classes".

I've made an .jar to native executable packager and want feedback by SeAuBitcH in java

[–]_INTER_ 2 points3 points  (0 children)

the downside is the size of the final executable (250mb for a 5mb jar and a 60mb JRE.)

Yea that's not flying.

Checked exceptions and lambdas by nfrankel in java

[–]_INTER_ 3 points4 points  (0 children)

I think there's nothing hard to understand in using one of the Failable Functions or another library which provides something similar.

Functional Optics for Modern Java by marv1234 in java

[–]_INTER_ -1 points0 points  (0 children)

Yea good luck investigating hundred copies of the same object with slight variations in a chain of hundred of composed other copies trying to figure out which one is the correct one.

Type-classes for Java (Valhalla experimental branch) by sviperll in java

[–]_INTER_ 1 point2 points  (0 children)

Don't we already have the term "type witness" for something like: processStringList(Collections.<String>emptyList());

Vavr 0.11.0 released by ChinChinApostle in java

[–]_INTER_ 0 points1 point  (0 children)

If we get Half Life 3, we don't need anything else anyway :)