当前位置:网站首页>Awesome!Coroutines are finally here!Thread is about to be in the past
Awesome!Coroutines are finally here!Thread is about to be in the past
2022-08-03 15:33:00 【Brother migrant worker】
ClickFollow the official account, reply "1024" to get2TBLearning resources!
Produced | OSC Open Source Community (ID: oschina2013)
From the JDK 19 overview page, JDK 19 is in Rampdown Phase Two, the entire feature set has been frozen, and there will be no more changes to the JEP.
Java 19 has only 7 new features:

A brief introduction to the new features follows:
Record Mode (Preview)
Using Record Patterns to enhance the Java programming language to deconstruct record values, record patterns and type patterns can be nested, enabling powerful, declarative, and composable forms of data navigation and manipulation.
This is a preview language feature.
Linux/RISC-V porting
Porting the JDK to Linux/RISC-V, currently only supports the RV64GV configuration of RISC-V (generic 64-bit ISA with vector instructions).Support for other RISC-V configurations, such as the Generic 32-bit configuration (RV32G), may be considered in the future.
External Functions and Memory API (Preview)
Introduces an API through which Java programs can interoperate with code and data outside of the Java runtime.This API enables efficient calls to external functions (code outside the JVM) and safe access to external memory (memory not managed by the JVM), enabling Java programs to call native libraries and process native data without JNIvulnerability and danger.
This is a preview API.
Virtual Threads (Preview)
Introduces coroutines, or virtual threads, to the Java platform.Virtual threads are lightweight threads that can significantly reduce the workload of writing, maintaining, and observing high-throughput concurrent applications.This is a preview API, which was covered in detail by the stack leader.
Vector API (fourth hatch)
Introduces an API to express vector computations that compile reliably at runtime, optimizing vector instructions on supported CPU architectures to achieve better performance than scalar computations.
Switch Pattern Matching (Preview 3)
Enhance the Java programming language with pattern matching for switch expressions and statements, and extensions to the pattern language.Extending pattern matching into switch allows expressions to be tested against some patterns, so that complex data-oriented queries can be expressed concisely and safely.
This feature first appeared as a preview in Java 17, and Java 19 is the third preview.
Structured concurrency (incubation stage)
Simplifies multithreaded programming by introducing an API for structured concurrency, which treats multiple tasks running in different threads as a single unit of work, simplifying error handling, improving reliability, and enhancing observability.
This is an incubating API.
JDK 19 schedule:

Rampdown is mainly for bug fixing and testing.
Another interesting thing: starting with Java 16, the number of features per version is getting smaller:
Java 16: 17
Java 17: 14
Java 18: 9
Java 19: 7
Java 20 won't become 5 will it...
Related links: https://openjdk.org/projects/jdk/19/
Recommended reading Click on the title to jump
Speechless, another well-known project charged!Signed out
Bytes experienced a wave of departures...
The strongest king in the surveillance world, no one!
Replace UUID, faster and safer!
Still using Xshell?out, recommend a more modern terminal tool
Retweet Follow
Light up the "looking at" icon below
More people see
边栏推荐
- Windows服务器如何防止黑客入侵的安全设置
- 2021年12月电子学会图形化四级编程题解析含答案:新冠疫苗接种系统
- 深度学习——安装CUDA以及CUDNN实现tensorflow的GPU运行
- 问题10:注册页面的易用性测试?
- SwiftUI SQLite教程之了解如何在 SwiftUI 中使用 SQLite 数据库并执行 CRUD 操作(教程含源码)
- 动态链接库.dll、.so和静态库.a,cmake指令
- sql注入之报错注入(精简详细)
- How to play deep paging with hundreds of millions of data?Compatible with MySQL + ES + MongoDB
- 今日睡眠质量记录75分
- Neural networks, cool?
猜你喜欢
JS basics--judgment
深度学习——安装CUDA以及CUDNN实现tensorflow的GPU运行
2021年12月电子学会图形化四级编程题解析含答案:聪明的小猫
2021年12月电子学会图形化二级编程题解析含答案:绘制多边形
Phaser(二):小恐龙跑酷游戏
ECCV 2022 | Relational Query-Based Temporal Action Detection Methods
MMA安装及使用优化
Internship Road: Documenting Confusion in My First Internship Project
2021年12月电子学会图形化三级编程题解析含答案:跳高比赛
Taurus.MVC WebAPI 入门开发教程1:框架下载环境配置与运行(含系列目录)。
随机推荐
PWA 应用 Service Worker 缓存的一些可选策略和使用场景
How much does Ark Survival Evolved cost?
【网络结构】VGG
Taurus.MVC WebAPI 入门开发教程1:框架下载环境配置与运行(含系列目录)。
WMS软件国内主要供应商分析
2021年12月电子学会图形化四级编程题解析含答案:聪明的小猫
有希望就是好的
分布式系统与微服务的区别
JS handwritten call apply bind (detailed) (interview)
并发编程的核心问题
方舟开服教程win
深度学习——安装CUDA以及CUDNN实现tensorflow的GPU运行
开源一夏 | 打工人的第25天-曾经的考研人
新一代网状网协议T-Mesh无线通信技术优势介绍
Phaser(二):小恐龙跑酷游戏
AWS China SDN Connector
After the cnpm installation is successful, the prompt is not an internal and external command, nor is it a runnable command solution
程序员面试必备PHP基础面试题 – 第二十天
C#.NET 国密数字信封
ECCV 2022 | Relational Query-Based Temporal Action Detection Methods