
Reddit » Java
3,996 FOLLOWERS
Looking for a technical discussion zone related to Java programming? This subreddid can be your place. Ask other members about the software you can use to program Java, share the biggest problem occurring in Java, or talk about anything of your interest concerning the language.
Reddit » Java
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
Reddit » Java
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
Reddit » Java
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
Reddit » Java
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
Reddit » Java
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
Reddit » Java
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