albertcardona, to random
@albertcardona@mathstodon.xyz avatar

"I would have never thought moving away from a 10yr old JDK could be this smooth!" – Tiago Ferreira, author of the SNT plugin for neuronal tracing among others.

Curtis Rueden pushing forward the release of with – a huge upgrade from the decade-old java 8 that Fiji uses today.

Testers are reporting success even in new MacOS chipsets.

https://forum.image.sc/t/jaunch-a-new-java-launcher-test-fiji-with-java-21/92058/1

albertcardona, to Java
@albertcardona@mathstodon.xyz avatar

being prepped to run on 21: give it a try and please report any issues. See the post by Curtis Rueden at the image forum:
https://forum.image.sc/t/jaunch-a-new-java-launcher-test-fiji-with-java-21/92058/1

steely_glint, (edited ) to random
@steely_glint@chaos.social avatar

For those of you who base your (negative) view on 6 (or perhaps 8) I submit that there is modern you haven't seen and might like.

https://github.com/steely-glint/fxess/blob/4d7a212cec99b7326509f13c65232a615ca7aa8b/src/main/java/uk/co/westhawk/fxess/NextSun.java#L130

Those 20 lines grab a weather forecast, update the expires, parse the resulting json into a cache list of 'sunny hours' - then map-reduce the cache into a prediction of when it will next be sunny and for how long.

(used as info for car charging decisions)

All of this was much uglier in Java6

steely_glint,
@steely_glint@chaos.social avatar

Here's what the whole app looks like - running on a raspi next to the car charger.

This tells me at a glance the battery is fully charged, it is sunny now and will continue to be for 3 hours.
(using and )

anthony_goubard, to Java

I've created an open-source :java: Java library to make code using virtual-threads easier to write and to read.
Check it out on GitHub: https://github.com/japplis/Virtually

It's already in Maven repository.

#java #jdk21 #virtualthreads #projectloom #loom #opensource #apache #java21

vicki, to Java
@vicki@jawns.club avatar

Does anyone have any recommended reading about the context behind Java’s virtual threads, the system architecture behind them and the related systems concepts?

alexelcu, (edited ) to Java
@alexelcu@social.alexn.org avatar

When using Virtual Threads from Java 21, socket operations are now interruptible.

This is huge, and a detail that I missed, because this has been one big issue with Java's interruption protocol. Because it's socket operations that we usually want to interrupt, and we had to rely on forcefully closing the connection.

https://openjdk.org/jeps/444#Networking

dsw, to opensource German
@dsw@mastodontech.de avatar

In my open source projects I am still on the bottom right corner.

My projects are quite old and it will require a bigger effort to update them.

mreinhold, to Java
@mreinhold@mastodon.social avatar
tagir_valeev, to random
@tagir_valeev@mastodon.online avatar

Love coding simple inspections to migrate to new language features. Requires almost no thinking, yet adds clear user value.

mreinhold, to random
@mreinhold@mastodon.social avatar
loicmathieu, to Java French

What's new in Java 21 for us developers?
(both in French and English)
@java

https://www.loicmathieu.fr/wordpress/informatique/java-21-quoi-de-neuf/

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines