当前位置:网站首页>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】
Click
Follow 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
边栏推荐
猜你喜欢

测试基础整合-测试分类、软件质量模型、测试流程、测试用例、测试点划分方法、缺陷、例子

MySQL中的基数是啥?

聊聊这个SaaS领域爆火的话题

自定SvgIcon公用组件

证实了,百度没有快照了

Three key expectations for the crypto market in August Price moves north?Still expected to be in turmoil

6000 字+,帮你搞懂互联网架构演变历程!

苹果开发「AI 建筑师」GAUDI:根据文本生成超逼真 3D 场景!

ECCV 2022 | 基于关系查询的时序动作检测方法

Windows服务器如何防止黑客入侵的安全设置
随机推荐
2021年12月电子学会图形化四级编程题解析含答案:质数判断器
2021年12月电子学会图形化四级编程题解析含答案:森林运动会
49 万奖金等你来拿!第四届实时计算 Flink 挑战赛启动,Beyond Stream Processing!
无内鬼,来点干货!SQL优化和诊断
【网络结构】VGG
JS基础--判断
rust编程基础
DC-DC 2C (40W/30W) JD6606SX2 power back application
地球自转加快
一通骚操作,我把SQL执行效率提高了10000000倍!
devops-2:Jenkins的使用及Pipeline语法讲解
Ark server opening tutorial win
取消转义字符(r)
指令重排以及案例
教你如何获取微信公众号历史文章链接
php中接口、抽象类以及接口和抽象类区别详解
【数据库数据恢复】SqlServer数据库无法读取的数据恢复案例
PHP高级面试题 - 第二天
问题5:发现缺陷怎么办?缺陷的类型有哪些?
STM32H743VIT6配置ADC为1M采样率