What′s new in Java 24
Reddit » Java
by /u/Xadartt
2d ago
submitted by /u/Xadartt [visit reddit] [comments ..read more
Visit website
A potentially silly idea -- What if we could launch source code .jar files?
Reddit » Java
by /u/davidalayachew
2d ago
JEP 330 gave us single-file source code programs. Aka, I can have a abc.java file, and just call java abc.java, and it will run without me calling javac beforehand. JEP 458 expanded this, by allowing us to reference other classes from that single class, allowing us to make as many classes as we want, run them from a single class file, and no calls to javac are necessary -- just call java abc.java. Here is my silly idea. What if we could package those source files in a .jar file, do your typical jar file config to make it runnable, then just ran it? The above 2 JEP's gave reasons why compiling ..read more
Visit website
Propagating OpenTelemetry context when using Virtual Threads & Structured Concurrency
Reddit » Java
by /u/adamw1pl
2d ago
submitted by /u/adamw1pl [visit reddit] [comments ..read more
Visit website
Using Model Context Protocol (MCP) with Spring AI - Piotr's TechBlog
Reddit » Java
by /u/piotr_minkowski
2d ago
submitted by /u/piotr_minkowski [visit reddit] [comments ..read more
Visit website
Location4j: A Java library for efficient geographical lookups without external APIs. 🌎
Reddit » Java
by /u/tomayt0
2d ago
Hi r/java community, I wanted to share my library location4j which just hit version 1.0.6. The latest version now fully supports the Java Module System (JPMS) and requires Java 21+. What is location4j? It's a lightweight Java library for geographical data lookups (countries, states, cities) that: Operates completely offline with a built-in dataset (no API calls) Handles messy/ambiguous location text through normalization Uses optimized hash map lookups for fast performance Supports Java 21 features Why I built it I was scraping websites that contained location data and constantly ran into p ..read more
Visit website
Strategies for Efficiently Parallelizing JVM Test Suites
Reddit » Java
by /u/lihaoyi
2d ago
submitted by /u/lihaoyi [visit reddit] [comments ..read more
Visit website
Simple, privacy-focused API monitoring & analytics for Spring Boot
Reddit » Java
by /u/itssimon86
2d ago
Hey Java community! I’d like to introduce you to my indie product Apitally, a simple API monitoring, analytics and request logging tool for Spring Boot with a privacy-first approach. Apitally's key features are: 📊 Metrics & insights into API usage, errors and performance, for the whole API, each endpoint and individual API consumers. Uses client-side aggregation and handles unlimited API requests (even on the free plan). 🔎 Request logging allows users to find and inspect individual API requests and responses, including headers and payloads (if enabled). This is optional and works independ ..read more
Visit website
I created an Interpreted Language using Java
Reddit » Java
by /u/nonFungibleHuman
2d ago
Pitón is an Interpreted Programming Language built for educational purposes, inspired in Python and without identation. https://github.com/martinKindall/piton/tree/main Hi everyone, I was learning the basics of Context Free Grammars, Lexers and so on. I built this for fun and learning. There was not so much up to date docu on how to use jflex and cup together so I hope this helps someone in the future. Got to say that Claude AI helped me on the way with some heavy lifting. I know this is just a pretty simplistic language, but still powerful in some ways. Any feedback is welcome. Edit: Only el ..read more
Visit website
We've Made It into the JFX-Central Blogpost!
Reddit » Java
by /u/YogurtclosetLimp7351
2d ago
https://preview.redd.it/dc6q27yfb4pe1.png?width=1259&format=png&auto=webp&s=34b2414d3b6acc123200169d0171f0f71b0739e3 We feel very honored that our small project got recognized by the JFX-Central! Thank you Reddit! submitted by /u/YogurtclosetLimp7351 [visit reddit] [comments ..read more
Visit website
What are reasons not to use virtual threads?
Reddit » Java
by /u/king_lambda_2025
2d ago
I do realize virtual threads are not "magic". They don't instantly make apps super fast. And even with Java 24 there are still some thread pinning scenarios. However, from what I know at this point, I feel every use of threads should be virtual threads. If my workload doesn't benefit from it, or if thread pinning happens, then I just don't gain performance. Even if there are no gains, there is no harm from defaulting to it and further optimizations can be made later on. The question here is are there downsides? Are there potential problems that can be introduced in an application when virtual ..read more
Visit website

Follow Reddit » Java on FeedSpot

Continue with Google
Continue with Apple
OR