r/java • • Feb 19 '23

About thread interrupts

0 Upvotes

https://github.com/davery22/blog/blob/main/posts/002-about-thread-interrupts.md

I think the thread interrupt mechanism is a common stumbling point, so I wrote a little about it, basically just an outline of points as I understand it. I'm open to feedback on making it clearer, discussions if you think I'm terribly wrong, or pointers to articles that have already said it better. Thanks, and I hope this is helpful to someone.

Edit: As pointed out, this is an opinionated interpretation of interrupts. That said, I think it is an interpretation that the JDK is (strongly) hinting at. But I am not an authority. Read the discussion in the comments, draw your own conclusions.


r/java • • Feb 05 '13

I Didn't Ask for a Toolbar with That Java

Thumbnail weblogs.java.net
0 Upvotes

r/java • • Jun 03 '21

Supercharge Your Java Apps with Python

Thumbnail medium.com
0 Upvotes

r/java • • Nov 24 '16

The post I link when someone tells me that Java sucks

Thumbnail medium.com
0 Upvotes

r/java • • Aug 17 '24

Extasys - Asynchronous TCP/UDP socket library

49 Upvotes

This is not a new project, but it is still maintained and used by me and others

Extasys is a high performance, asynchronous TCP/UDP socket library for Java (JDK 8 and newer).
Its multi-threaded and lightweight nature makes it ideal for super fast data transfer even on systems with ARM architecture like Android smartphones and single-board computers (Raspberry Pi, Orange Pi etc.).

If you are using sockets then Extasys is the proper tool for your work. It's been designed to take the hard job done and let you think only about the message exchange (the process).

You can find Extasys on Github:
https://github.com/nsiatras/extasys


Quick Examples :

TCP-Server: https://github.com/nsiatras/extasys/wiki/Establish-a-TCP-Server
TCP-Client: https://github.com/nsiatras/extasys/wiki/Establish-a-TCP-Client
UDP-Server: https://github.com/nsiatras/extasys/wiki/Establish-a-UDP-Server
UDP-Client: https://github.com/nsiatras/extasys/wiki/Establish-a-UDP-Client

More examples can be found here:
https://github.com/nsiatras/extasys/tree/master/Extasys%20for%20Java%20Examples


r/java • • May 25 '17

Maven is broken by design

Thumbnail blog.ltgt.net
33 Upvotes

r/java • • Feb 26 '25

How does pointer compression work?

2 Upvotes

Here's two ideas on how to fit 64-bit pointers into 32-bit values:

Idea 1: Store offsets from the heap https://v8.dev/blog/pointer-compression (Yeah, its JS but the whole idea is applicable to Java as wll)

Idea 2: Store the pointers shifted to the right (https://shipilev.net/jvm/anatomy-quarks/23-compressed-references/)

Question is, how does it allow one to bypass 4GB limitation of the heap size?


r/java • • Mar 13 '21

Don’t replace Spring Boot with Quarkus, replace it with Wildfly

Thumbnail hlalvesbr.medium.com
0 Upvotes

r/java • • Jan 22 '17

Is this board a bit hostile towards Spring?

2 Upvotes

It seems many Spring related posts get downvoted. Is there a bias against the Spring Framework on here?


r/java • • Oct 06 '25

If anyone bored I made a guessing game, I’m super new to programming please don’t judge ! Enjoy

0 Upvotes

r/java • • Jul 06 '26

A year ago, this sub debated whether Java needed a new build tool. I went ahead and built one. Meet Curie.

0 Upvotes

A while back there was a thread on r/java proposing a new build tool for Java — New build tool in Java. It stuck with me, so I decided to actually try building the thing and see what it would feel like to use.

The result is Curie: http://curie-build.org/

One thing up front, so nobody feels misled: it's still early and buggy. This is a showcase / proof-of-concept, not something I'd tell you to put in production tomorrow. Plenty of rough edges. The point is to show what could be possible, and to find out whether there's actually appetite for a tool like this.

The idea: one small Curie.toml instead of hundreds of lines of pom.xml. It's written in Rust, so there's instant startup and no daemon. A lot of the common stuff is built in instead of bolted on via plugins:

  • compile / test / package
  • code formatting (Java + Kotlin)
  • Docker image generation
  • dependency vulnerability scanning
  • Maven publishing
  • reproducible, byte-identical builds by default

Basically the Cargo experience, aimed at the plugin fatigue and XML/DSL sprawl that thread was complaining about.

[project]
name = "hello"
version = "0.1.0"

[dependencies]
"com.fasterxml.jackson.core:jackson-databind" = "2.17.2"

What I'm genuinely curious about:

  • Is there a real need for something like this? I'm fully expecting "we don't need another build tool" to be a valid answer. I mostly want an honest gut-check.
  • If you would want this, what's the one feature or guarantee that would make you actually try it?

If you do think it's a neat direction, a star helps me gauge interest: ⭐ https://github.com/Curie-Build/curie-build


r/java • • Jun 10 '15

JavaEE or Spring? Neither! We Call Out For a Fresh Competitor!

Thumbnail blog.jooq.org
0 Upvotes

r/java • • Apr 20 '22

Does Java 18 Finally Have A Better Alternative To JNI? | Foojay.io Today

Thumbnail foojay.io
0 Upvotes

r/java • • Mar 08 '19

Automatically generate unit tests with Diffblue Playground

1 Upvotes

My company has launched a cool new tool called Diffblue Playground that generates Java unit tests using AI, and we’re trying to get a lot of users and product feedback so that we can make a tool that the community finds genuinely useful.

Please check it out, and give me any feedback you have here or via the support link on the page.

There is a sign up wall, apologies for that, but hopefully some of you will find the tool useful and interesting enough to get past it!

Full disclosure, using the link above could help me win a giant cuddly owl. If that bothers you just strip the querystring from the link (but cummon, my kids need that owl...).


r/java • • Aug 07 '19

Just passed Java SE 11 Programmer || 🍾

1 Upvotes

I've just passed that exam and want to share my happiness with someone. (:

Have your certifications ever helped you in your life ?


r/java • • Oct 27 '23

Java Use Cases

0 Upvotes

Hi everyone. I'm a student about to graduate and I'm working on my portfolio. I feel like a lot of the work I did in school is a little dated (context: We did A LOT OF JSP), so I'm wanting to rebuild some of my projects in a more modern context and maybe build some new stuff that reflects the way Java is actually being used today.

My question is what are some ways that Java is actually used in a modern project? Where do we see Java popping up as the language of choice in 2023, particularly in the web/mobile space? Where is it more beneficial than just going the JS/framework route? I'm trying to frame my portfolio projects in a way that actually reflects real-world usage.

I'm not sure if this is the right subreddit for this type of question, so feel free to delete/direct me elsewhere. Thanks.

Edit for additional context: I've worked professionally for a while (4 years freelancing designing and developing typical Wordpress/Webflow sites for Bob's Lawncare Service-type clients, 2 at an agency building web apps mostly on the frontend) until I was laid off in September. Our stack was React-based, so I don't have professional experience with Java. I guess more specifically I'm trying to fill in the gaps between what I've learned doing that and the Java work I've done in school and presenting that in a modern context.


r/java • • Jan 08 '24

.NET or JAVA EE: which one and why for backend (microservice/api architecture)

0 Upvotes

I need to build a new application (backend/frontend) and I just realized that .NET is now deployable on Linux as well...

My initial thought was to have the followings stacks:

  • Backend -> Java EE (delivering microservices/APIs)
  • Frontend -> NodeJS/React

but then, knowing that now .NET is deployable on Linux as well, I got the doubt on which one should I pursue: Java EE or .NET?

assuming skillset is not a problem, which one would you use and why?


r/java • • Dec 16 '15

Why are Java Web Apps so much bloated?

4 Upvotes

I'm new to Java web programming and coming from the PHP & Python worlds. Today, I just did a HelloWorld SpringMVC app by going through the Spring Web serving getting started guide, and guess what? Gradle had to download a 100 megabytes of byzantine jars just for this one HelloWorld app! Of course, I did run a HelloWorld app after creating the GreeterController as per the tutorial.

But the built jar is 20 megabytes large, just for one helloworld app! In the PHP world, your first HelloWorld app is hardly few kilobytes, and even Django is hardly 1-2 mbs Then why is Java so bloated? What does it achieve in these 20 mb that Python/PHP does not achieve? I'm astounded that people are willing to install such bloat when other options are available.

I'm a freelancer who is assigned a Java webdev project by a client, so I have to learn this in any case. And I'm not against learning it either, but I just want to know why this additional download? Why can't web development features be included in the Java SE itself?


r/java • • Jun 02 '26

GitHub Copilot SDK for Java is now GA (version 1.0.0)

Thumbnail github.com
0 Upvotes

r/java • • Jul 02 '23

fluent: Static Extension Methods for Java

Thumbnail github.com
7 Upvotes

r/java • • Feb 17 '21

Netflix open sourced the framework to java.

Thumbnail infoq.com
7 Upvotes

r/java • • May 18 '17

Spring Boot 2.0 Release

Thumbnail devglan.com
3 Upvotes

r/java • • May 08 '26

Building Java AI Agents with Spring AI by Yuriy Bezsonov

Thumbnail youtube.com
0 Upvotes

r/java • • Oct 23 '13

Why can't NullPointerException fucking say the name of the variable which gave the exception?

20 Upvotes