r/java • u/UmbraShield • May 18 '26
Why is stuff in Java named after Indonesian places?
Lombok, Jakarata
Any special reason?
r/java • u/UmbraShield • May 18 '26
Lombok, Jakarata
Any special reason?
r/java • u/mooreds • May 18 '26
r/java • u/asm0dey • May 18 '26
Hi folks, I made a thing and wanted to share it here since the backend is all Java.
First, quick context for anyone who hasn't run into Slidev before. Slidev is a markdown-based slide framework aimed at developers. Instead of dragging text boxes around in Keynote or PowerPoint, you write your deck as Markdown: code blocks render with syntax highlighting and live execution, you get Vue components for diagrams and interactive bits, and the deck itself is a static site you can deploy anywhere. It's become the default tool a lot of conference speakers reach for when their talk has more code than bullet points.
Slidev is great, but it doesn't have a built-in way to poll the audience. For a long time, if I wanted live voting in a talk, my options were Poll Everywhere (paid, and its nicest integration is with Google Slides, which I'd rather not use) or just asking people to raise their hands (at best, imprecise).
Sooo, I wrote slidev-polls: a self-hostable live polling backend with a Slidev addon. You drop a <PollResults …> component onto a slide, and when you advance to that slide, the question opens for voters automatically. Audience members join from a phone or laptop with no install; results animate on the slide in your deck's theme as they vote.
The backend stack is Java 25, Spring Boot 4, jOOQ for type-safe SQL, Flyway for migrations, and Server-Sent Events for the live tally fan-out. The whole thing builds into a single fat-JAR; the voter and admin SPAs are bundled in as static assets and served from the same port. Storage is either PostgreSQL (prod) or H2 in file mode (single-container, good for self-hosting a single talk). One Flyway migration set with the {vendor} placeholder covers both, and jOOQ's dialect is auto-detected from the JDBC URL. Auth is Spring Session for presenters, an HttpOnly cookie for voters, and a separate bearer-token filter for the Slidev addon to talk to the backend. Every successful main build pushes a backend image to GHCR (but of course, there are proper tags too).
Even if Slidev isn't your thing, a few backend pieces in here might be worth a look on their own: parallel database migrations on PostgreSQL, an SSE implementation that fans live tallies out to every connected viewer, some jOOQ/SQL tricks around generated columns and per-vendor migration paths, and a per-poll dynamic CORS allowlist that locks a leaked deck out of the real poll. Stealing any of those for your own project is fair game.
Repo: https://github.com/asm0dey/slidev-polls
One thing worth saying about how it was built: I wrote it with Claude. Every line and every bug is mine. I reviewed the backend line by line, so I trust my eye there. The frontends are Vue 3 + Vite, and I'm not a frontend person (at least not a modern frontend, IYKWIM) — I own the concept and the code, but I'm a worse bug-spotter on that side.
Give it a spin in your next talk if you need to interact with the audience, and if you spot something weird in the Java code, please open an issue, I'd love to hear it.
r/java • u/eniac_g • May 17 '26
Just shipped v0.7.0 of Bob (https://github.com/jonas-grgt/bob), a lightweight builder generator for Java.
New since v0.6.0:
r/java • u/Frequent-County-4172 • May 17 '26
Oracle recently announced "Monthly Critical Security Patch Updates" (CSPUs).
Will this influence how the JDK handles releases and vulnerability disclosure?
r/java • u/AlyxVeldin • May 16 '26
r/java • u/brunocborges • May 14 '26
r/java • u/anish2good • May 13 '26
This is one of the common reddit comment I received for all jsp pages it's still the best things to do may be need a little bit of marketing
r/java • u/SelfRobber • May 13 '26
The last couple of months, I ended up implementing idempotency in 2 different Spring Boot projects back to back.
As I was implementing it in the second project, I decided to look up any existing solutions/libraries for Java/Spring Boot, but I honestly couldn't find one that felt clean and flexible enough for what I needed (and what most people probably need).
So I decided to build my own and open source it.
I released it about a month ago:
Repository : https://github.com/josipmusa/idempotency4j
Maven spring boot starter : https://central.sonatype.com/artifact/io.github.josipmusa/idempotency-spring-boot-starter
The goal was to make idempotency implementations feel straightforward and easy, but also to not scope it only to spring boot or a certain storage implementation. The library has a core which can be used on any method with pluggable storage backends. It also has an integration with spring web (servlet-based for now) and a spring boot starter to simplify usage.
Usage example for a spring boot project:
@PostMapping("/payments")
@Idempotent
public ResponseEntity<Payment> createPayment(@RequestBody PaymentRequest request) {
// Runs exactly once per unique Idempotency-Key value.
// Subsequent identical requests get the stored response replayed.
return ResponseEntity.ok(paymentService.charge(request));
}Right now it supports:
Curious whether others have run into this same problem and whether this library helps solve it for them.
Open to any feedback, suggestions, or reviews.
r/java • u/gufranthakur • May 13 '26
A prototype 3D learning platform where users can view 3D models, break them down and control them in the virtual space using hand gestures. A project that was made for learning purposes. The project can be used as a learning / demonstration tool, showcasing inner workins of a topic or breakdowns.
It uses the desktop camera to capture video feed using a python process (being executed by Java). The python process uses websockets to send gestures to the Java libGDX applciation, and it responds accordingly.
Github repo :- https://github.com/gufranthakur/IdeaSpace
Let me know if you have any questions!
r/java • u/bbrother92 • May 13 '26
Could someone suggest the best way to process a large number of videos?Is it worth implementing this in Java, or would it be better to look into Python or C++ libraries instead?
r/java • u/josephottinger • May 13 '26
From BCN: Kirk Pepperdine has released gcsee-jma - a GC analysis tool. Not to be breathless about it, but dang it, GC analysis is one of the tasks I have right now, and this timing is awesome, and Kirk is one of the leaders in this field. Awesome stuff.
https://bytecode.news/posts/2026/05/kirk-pepperdine-ships-gc-log-analysis-tool
(FWIW, Kirk's both a friend and a co-worker from the past in real life - and I'm really happy to see him putting stuff like this out there for muggles like you and me to use. And I've already used it, if you're wondering.)
From their changelog:
We have removed final field mutations via reflection to comply with the new JDK flag --illegal-final-field-mutation=deny, and we are now fully compatible with JDK 26
We now offer official support for Quarkus’ newest LTS version, 3.33.
JobRunr v8 should now to be able to handle the same amount of recurring jobs as previous JobRunr versions.
Changes to the DatabaseCreater.getAllTableNames method should result in a substantial performance increase for databases with a large amount of tables.
JobRunr Pro adds trimException(Job, Exception) to JobServerFilter to intercept and optionally transform job exceptions.
The default implementation truncates oversized exceptions, defined as messages >4096 characters or stack traces >100 elements, recursively across all causes.
Reserve a fixed number of workers for your most critical jobs. This dynamic queue is lenient fixed: specific job types have dedicated workers assigned to them, but those jobs can also run on non-reserved threads when extra capacity is available.
Jobs waiting for an external signal can now be timed out to avoid waiting for a signal forever. This builds on the existing job timeout mechanisms.
If your server has long garbage collection cycles and it would result in multiple recurring jobs to be scheduled (as a recurring job was missed due to stop the world GC), this can now be configured whether to have only 1 recurring job (new behaviour) or all recurring jobs (those that were missed)
r/java • u/Mirko_ddd • May 12 '26
Dear colleagues, (almost) every day someone creates a project and shares it here.
Beautiful projects, niche projects, simple side projects, and sometimes real gems.
I don't have a project to share today, but I'd like you to tell me about that gem you found here in this sub (or maybe a non-mainstream project you stumbled upon on GitHub) that you can't live without, that improved your workflow, or that solved a big problem.
It would be ideal if the project wasn't yours, but if it is, please specify so and provide a brief description. Today's goal is to discover how to improve as engineers and do a little show-and-tell to keep us updated and discover cool things.
What do you think? Go wild!
PS: of course, a piece of Java software.
r/java • u/davidalayachew • May 11 '26
r/java • u/josephottinger • May 11 '26
David Lloyd wrote up https://word-bits.flurg.com/posts/the-new-reflection-varhandle-fundamentals/ - a walk through VarHandle as he's done for MethodHandle before, and IMO it's some highly informative stuff. With that said, he dropped "off heap access" in there and left it there, so I wrote it up myself:
https://bytecode.news/posts/2026/05/david-m-lloyd-varhandle-fundamentals
r/java • u/wakingrufus • May 08 '26
Hello Java friends. I have a Netflix TechBlog post out today about the Nebula ArchRules project. I hope you find it useful. I am happy to answer questions about it in this thread.
r/java • u/rodolfo-mendes • May 07 '26
r/java • u/rodolfo-mendes • May 08 '26
r/java • u/kevindewald • May 06 '26
Hey everyone!
It has been a while since the last update, but we have been working hard on making the Java bindings for SimpleBLE even more reliable for production environments.
For those who don’t know, SimpleBLE is a cross platform Bluetooth library with a very simple API that just works, allowing developers to easily integrate it into their projects without much effort, instead of wasting hours and hours on development.
We have been working on the Java bindings to make them feel more natural for developers and more robust to use in real applications. These are not flashy changes, but hopefully show our commitment towards becoming the trusted option for Bluetooth development for Java.
If you want to try it out, you can look at the SimpleJavaBLE examples on GitHub and see for yourself how easy it is to get started.
We added support for CompletableFuture wrappers around blocking operations. This should make SimpleJavaBLE much easier to fit into the rest of an application using async flows without having to build extra wrappers first.
We also made an important change to the JNI layer. JNI API calls are now safely wrapped so that C++ exceptions are caught and bubbled up as Java RuntimeExceptions instead of crashing the JVM.
Another small change that makes the bindings nicer to work with is that EventListener interfaces now provide default empty implementations, so if you only care about one callback, you can implement that one and move on.
We also cleaned up a few rough edges across platforms. The missing macOS x64 .dylib artifact is now fixed, JNI symbol issues have been resolved, and the jvm.dll initialization conflicts some users were seeing on Windows have been addressed.
SimpleBLE is licensed under the Business Source License 1.1 (BUSL 1.1) and is free for non commercial use. We gladly offer free licenses for small projects, so do not hesitate to reach out. Java licenses are currently on a special offer for companies interested in shaping SimpleJavaBLE, so if you are interested in a commercial license, hit us up!
If you’re building BLE products or projects, we’d love to hear from you.
Want to know more about SimpleBLE's capabilities or see what others are building with it? Ask away!
r/java • u/sideEffffECt • May 05 '26