Java, Kotlin and the JVM
25 subscribers
20 photos
2 videos
117 links
Java, Kotlin, Gradle, Maven, JDKs, Spring and the whole JVM ecosystem tips & tricks. 🇪🇸 & 🇬🇧
Download Telegram
https://docs.gradle.org/8.9/release-notes.html

This release improves error and warning reporting for variant issues during dependency resolution. It also exposes structural details of Java compilation errors for IDE integrators, making it easier to analyze and resolve issues.
A virtual thread is not mapped 1:1 to a dedicated OS-level thread. Rather, we can think of it as a task that is scheduled to a fork-join thread pool. When a virtual thread enters a blocking call, like waiting for a Future, it relinquishes the OS thread it occupies and simply remains in memory until it is ready to resume. In the meantime, the OS thread can be reassigned to execute other VTs in the same fork-join pool

https://netflixtechblog.com/java-21-virtual-threads-dude-wheres-my-lock-3052540e231d
Java 23 will support Primitive Types in Patterns, instanceof, and switch as a preview feature. Preview features are a way of gathering feedback about the future of the language. If you are using pattern matching on boxes types take the time to test this preview feature.

https://openjdk.org/jeps/455

#java #openjdk #jep
1
Support nullness markers on Java types to indicate that a type rejects or deliberately allows nulls. This is a preview language feature.


https://bugs.openjdk.org/browse/JDK-8303099

#java #openjdk #jep
🤨1
https://quarkus.io/blog/quarkus-and-leyden/

#java #quarkus #leyden

Leyden is not a replacement for GraalVM native images but rather a substantial evolution of the JVM, and we expect it to bring some benefits to native images as well.
Old but still interesting article on how unused topics (even if it is empty) impacts the Kafka cluster

we need to understand how unused topics can cause pressure on Kafka. Like many other storage systems, all Kafka topics have a retention period, meaning that for any unused topics, the data will be purged after a period of time and the topic will become empty. A common question here is, “How could empty topics affect Kafka?”


#kafka

https://engineering.linkedin.com/content/engineering/en-us/blog/2022/topicgc_how-linkedin-cleans-up-unused-metadata-for-its-kafka-clu
There are several ways of keeping a cache up to date, lately CDC tools like Debezium has become trendy, and I liked this presentation where they combine Debezium, Infinispan, and Quarkus. They also shared code you can check and run.

📹https://www.youtube.com/watch?v=zOOFMHAjoPI
💻https://github.com/debezium/debezium-examples/tree/main/distributed-caching
Intresting article on how to write a language analyzer in #java

They have wrriten a Lua analyzer using ANTLR v4, they describe main components of a language parser and they implement the actual code. Really interesting.



https://dev.to/anogneva/how-to-develop-code-analyzer-in-48-hours-9ap