Java virtual threads hit with pinning issue
Info World
by
2d ago
Java’s virtual threads, introduced in JDK 21 in September 2023 to make it easier to write and maintain concurrent applications, has suffered from a “pinning” issue that arises with synchronized methods or synchronized statements.   Oracle detailed the virtual thread pinning issue this week on the Inside Java website. The two most common cases involve a virtual thread parking while in a synchronized method, and a virtual thread blocking when entering a synchronized method, because the object’s associated monitor is held by another thread. In both cases, the carrier or native thread is not ..read more
Visit website
Advanced profiling proposed for Java Flight Recorder
Info World
by
5d ago
Java’s profiling capabilities would be improved within the Java Flight Recorder (JFR), a tool for collecting diagnostic and profiling data in running Java applications, under a proposal floating in the OpenJDK community. Called Skogsluft, the project would introduce advanced profiling features to bridge the gap between Java and native code execution and offer more precise and flexible profiling options. Skogsluft would focus on three key enhancements, the proposal states: An improved stackwalker, capable of walking mixed Java and native stacks. This would provide developers with a more cohere ..read more
Visit website
Java Flight Recorder eyed for improvement
Info World
by
1w ago
Java’s profiling capabilities would be improved within the Java Flight Recorder (JFR), a tool for collecting diagnostic and profiling data in running Java applications, under a proposal floating in the OpenJDK community. Called Skogsluft, the project would introduce advanced profiling features to bridge the gap between Java and native code execution and offer more precise and flexible profiling options. Skogsluft would focus on three key enhancements, the proposal states: An improved stackwalker, capable of walking mixed Java and native stacks. This would provide developers with a more cohere ..read more
Visit website
Go language hits top 10 in the Tiobe index
Info World
by
1w ago
Google’s Go language, or golang, has reached its highest position ever in the Tiobe language popularity index. The language, now in the eighth ranked position for language popularity, has been on the rise for several years. Go, which is probably best known as the language used to develop Docker and Kubernetes, climbed to the top 10 in the Tiobe index a year ago, but its current position is the highest ever. To read this article in full, please click here ..read more
Visit website
Wasm-based CheerpJ runs Java in web browsers
Info World
by
3w ago
Leaning Technologies has released CheerpJ 3.0, a WebAssembly JVM that runs in modern web browsers. CheerpJ 3.0 is a full rewrite of CheerpJ that supports “very large” Java applications, such as IntelliJ IDEA and Minecraft, the company said in a February 1 announcement. Replacing 2022’s CheerpJ 2.3 as Leaning Technologies’ long-term supported version, CheerpJ 3.0 draws on lessons from seven years of enterprise and community use of CheerpJ, and from other WebAssembly-based projects such as CheerpX, an x86-to-WebAssembly virtualization system. To read this article in full, please click here ..read more
Visit website
Java proposal would scrap sun.misc.Unsafe memory access
Info World
by
3w ago
The memory access methods of Java’s sun.misc.Unsafe class would be deprecated for removal in a future release of the platform, under a JEP (JDK Enhancement Proposal) afoot in the OpenJDK community. Of the class’s 87 methods, 79 would be removed. These unsupported methods have had supported replacements since JDK 9, for accessing on-heap memory, and JDK 22, for accessing off-heap memory, the proposal states. Library developers are strongly encouraged to migrate from sun.misc.Unsafe to these supported replacements. Goals of the proposal include preparing for the removal of these memory access me ..read more
Visit website
Machine learning for Java developers: Machine learning data pipelines
Info World
by
3w ago
The article, Machine learning for Java developers: Algorithms for machine learning, introduced setting up a machine learning algorithm and developing a prediction function in Java. Readers learned the inner workings of a machine learning algorithm and walked through the process of developing and training a model. This article picks up where that one left off. You'll get a quick introduction to Weka, a machine learning framework for Java. Then, you'll see how to set up a machine learning data pipeline, with a step-by-step process for taking your machine learning model from development into prod ..read more
Visit website
Java proposal would streamline record creation
Info World
by
3w ago
In an effort to streamline code, Java would be enhanced with derived record creation, via a proposal that would provide a means to create record instances from existing records through a block of transformation code. The OpenJDK proposal authored by Oracle technical staff, titled “Derived Record Creation,” would streamlinescode by deriving a new record from an existing record, updating only components that need to change. The proposal notes that because records are immutable values, developers frequently build new records to reflect new data. The feature would enter Java in a preview state. To ..read more
Visit website
Java 23 begins to take shape
Info World
by
1M ago
Although not expected to arrive until September, Java Development Kit 23 already has been assigned its first feature, an enhancement to pattern matching. JDK 23 would follow JDK 22 by six months. JDK 22 is due in March with capabilities such as previews of structured concurrency and string templates. The OpenJDK page for JDK 23 lists a preview of primitive types in patterns, instanceof, and switch as the first feature targeted for the release. This JDK enhancement proposal would enhance pattern matching by allowing primitive type patterns in all pattern contexts. To read this article in full ..read more
Visit website
Machine learning for Java developers: Algorithms for machine learning
Info World
by
1M ago
Large language models like ChatGPT and Bard have raised machine learning to the status of a phenomenon. Their use for coding assistance has quickly earned these tools a place in the developer’s toolkit. Other use cases are being explored, ranging from image generation to disease detection.  Tech companies are investing heavily in machine learning, so knowing how to train and work with models is becoming essential for developers. To read this article in full, please click here ..read more
Visit website

Follow Info World on FeedSpot

Continue with Google
Continue with Apple
OR