Some explanations on I/O stuff:
- What is the difference between I/O-bound and CPU-bound tasks
- What is non-blocking I/O about (java.nio)
#java #io #nio
- What is the difference between I/O-bound and CPU-bound tasks
- What is non-blocking I/O about (java.nio)
#java #io #nio
Check out this JEP. They propose to enhance
#java #jep #instanceof
instanceof so it can be used like this:if (obj instanceof String s) {
// can use s here
} else {
// can't use s here
}#java #jep #instanceof
Check out the current state of Project Loom (lightweight threads, "virtual threads" as they call them) in Java.
#java #loom #coroutine
#java #loom #coroutine
Draft JEP on Primitive Objects.
It’s something like an immutable class without identity. Copy of such an object is an exact copy of that original object. And there are plans on treating
#java #jep #primitive
It’s something like an immutable class without identity. Copy of such an object is an exact copy of that original object. And there are plans on treating
int, boolean, etc. as primitive objects. We’re waiting for you, List<int>! #java #jep #primitive
Two for the price of one this time. Bruce Eckel (you’ll most probably know this guy, at least for the “Thinking in Java” book) in his post has criticized Gradle a bit, and Cédric Champeau (was building Groovy, is building Gradle) has tried to challenge Bruce’s points.
#gradle #java #groovy
#gradle #java #groovy
Bruceeckel
The Problem with Gradle
An interesting post in Git mailing list: creator of JGit describes, what they have to do in order to make their Java implementation of Git faster and why they are still slower than C implementation.
#git #c #java
#git #c #java
Check out this brave attempt to emulate union types in Java via checked exceptions.
#java #exception #type
#java #exception #type
Java, SQL and jOOQ.
Java’s Checked Exceptions Are Just Weird Union Types
This fun fact has been on my mind for a while, and a recent reddit thread about “Smuggling Checked Exceptions with Sealed Interfaces” made me write this post here. Namely, Java had unio…
Java Generics are Turing Complete.pdf
481.1 KB
Ladies and gentlemen, please welcome JEP 430: String Templates!
They've decided to bring something like string interpolation to Java, but to do it BETTER than everyone else.
The result is, well, quite surprising:
#java #language #jep
They've decided to bring something like string interpolation to Java, but to do it BETTER than everyone else.
The result is, well, quite surprising:
String s = STR."\{x} + \{y} = \{x + y}";#java #language #jep
Meet bld. New build system for Java, in Java. The goal is to be simple, predictable and understandable, without any magic funky business.
#build #java #tool
#build #java #tool
foojay
Introducing Bld: A New Pure Java Build System
We created bld because we're not really interested in build tools. We use them because we have to, but we'd rather just get on with coding.
On potential memory leak caused by double brace initialization (something along the lines of
#java #memory #leak
new HashMap<>() {{ ... }}) in Java. I believe I had to fix several such leaks in our app long time ago.#java #memory #leak
👍1