Kotlin 1.8.20 发布

1,272次阅读
没有评论

Kotlin 1.8.20 版本已经发布,以下是该版本的一些亮点:

  • 新的 Kotlin K2 编译器更新
    • 拥有一个预览版的序列化插件
    • 为 JS IR 编译器提供 Alpha 支持
  • 新的实验性 Kotlin/Wasm
    • Kotlin/Wasm(Kotlin WebAssembly)在这个版本中进入实验阶段
    • wasm32 Kotlin/Native 相比,编译速度更快,因为 Kotlin/Wasm 不需要使用 LLVM
    • wasm32 相比,与 JS 的互操作性和与浏览器的整合更容易,这要归功于 Wasm 垃圾收集
  • 在 Gradle 中默认采用新的 JVM 增量编译
    • 从 Kotlin 1.7.0 开始,增量编译的新方法已经可以使用了,如今则是默认可以使用。你不再需要在你的 gradle.properties 中指定 kotlin.incremental.useClasspathSnapshot=true 来启用它。
  • 针对 Kotlin/Native 的更新
    • 以下目标在 Kotlin 1.8.20 中已被废弃,并将在 1.9.20 中被移除:
      • iosArm32
      • watchosX86
      • wasm32
      • mingwX86
      • linuxArm32Hfp
      • linuxMips32
      • linuxMipsel32
  • 在 Kotlin 多平台中预览 Gradle 复合构建的情况
    • 从 1.8.20-RC2 开始,Kotlin 多平台支持 Gradle 复合构建。复合构建允许你将单独的项目或同一项目的一部分的构建纳入一个单一的构建。
  • 改进了 Xcode 中 Gradle 错误的输出
    • 从 Kotlin 1.8.20-RC2 开始,Xcode 可以解析 Kotlin/Native 编译器的输出。此外,如果 Gradle 构建失败,你将在 Xcode 中看到一条附加错误消息。在大多数情况下,它有助于确定根本问题。
  • 在标准库中对 AutoCloseable 接口的实验性支持
    • AutoCloseable接口已添加到通用标准库中,以便您可以使用一个通用接口为所有库关闭资源。
  • 在标准库中对 Base64 编码的实验性支持

更多详情可查看:https://kotlinlang.org/docs/whatsnew1820.html

Read More 

正文完
可以使用微信扫码关注公众号(ID:xzluomor)
post-qrcode
 0
评论(没有评论)

文心AIGC

2023 年 4 月
 12
3456789
10111213141516
17181920212223
24252627282930
文心AIGC
文心AIGC
人工智能ChatGPT,AIGC指利用人工智能技术来生成内容,其中包括文字、语音、代码、图像、视频、机器人动作等等。被认为是继PGC、UGC之后的新型内容创作方式。AIGC作为元宇宙的新方向,近几年迭代速度呈现指数级爆发,谷歌、Meta、百度等平台型巨头持续布局
文章搜索
热门文章
潞晨尤洋:日常办公没必要上私有模型,这三类企业才需要 | MEET2026

潞晨尤洋:日常办公没必要上私有模型,这三类企业才需要 | MEET2026

潞晨尤洋:日常办公没必要上私有模型,这三类企业才需要 | MEET2026 Jay 2025-12-22 09...
面向「空天具身智能」,北航团队提出星座规划新基准丨NeurIPS’25

面向「空天具身智能」,北航团队提出星座规划新基准丨NeurIPS’25

面向「空天具身智能」,北航团队提出星座规划新基准丨NeurIPS’25 鹭羽 2025-12-13 22:37...
钉钉又发新版本!把 AI 搬进每一次对话和会议

钉钉又发新版本!把 AI 搬进每一次对话和会议

钉钉又发新版本!把 AI 搬进每一次对话和会议 梦晨 2025-12-11 15:33:51 来源:量子位 A...
商汤Seko2.0重磅发布,合作短剧登顶抖音AI短剧榜No.1

商汤Seko2.0重磅发布,合作短剧登顶抖音AI短剧榜No.1

商汤Seko2.0重磅发布,合作短剧登顶抖音AI短剧榜No.1 十三 2025-12-15 14:13:14 ...
MEET2026挤爆了,AI圈今年最该听的20+场演讲&对谈都在这

MEET2026挤爆了,AI圈今年最该听的20+场演讲&对谈都在这

MEET2026挤爆了,AI圈今年最该听的20+场演讲&对谈都在这 西风 2025-12-11 15:...
最新评论
ufabet ufabet มีเกมให้เลือกเล่นมากมาย: เกมเดิมพันหลากหลาย ครบทุกค่ายดัง
tornado crypto mixer tornado crypto mixer Discover the power of privacy with TornadoCash! Learn how this decentralized mixer ensures your transactions remain confidential.
ดูบอลสด ดูบอลสด Very well presented. Every quote was awesome and thanks for sharing the content. Keep sharing and keep motivating others.
ดูบอลสด ดูบอลสด Pretty! This has been a really wonderful post. Many thanks for providing these details.
ดูบอลสด ดูบอลสด Pretty! This has been a really wonderful post. Many thanks for providing these details.
ดูบอลสด ดูบอลสด Hi there to all, for the reason that I am genuinely keen of reading this website’s post to be updated on a regular basis. It carries pleasant stuff.
Obrazy Sztuka Nowoczesna Obrazy Sztuka Nowoczesna Thank you for this wonderful contribution to the topic. Your ability to explain complex ideas simply is admirable.
ufabet ufabet Hi there to all, for the reason that I am genuinely keen of reading this website’s post to be updated on a regular basis. It carries pleasant stuff.
ufabet ufabet You’re so awesome! I don’t believe I have read a single thing like that before. So great to find someone with some original thoughts on this topic. Really.. thank you for starting this up. This website is something that is needed on the internet, someone with a little originality!
ufabet ufabet Very well presented. Every quote was awesome and thanks for sharing the content. Keep sharing and keep motivating others.
热评文章
预见未来:96位前沿先锋超万字核心观点总结,抢抓未来产业新高地

预见未来:96位前沿先锋超万字核心观点总结,抢抓未来产业新高地

预见未来:96位前沿先锋超万字核心观点总结,抢抓未来产业新高地 henry 2025-12-11 10:27:...
Meta公开抄阿里Qwen作业,还闭源了…

Meta公开抄阿里Qwen作业,还闭源了…

Meta公开抄阿里Qwen作业,还闭源了… Jay 2025-12-11 11:48:25 来源:量子位 Ja...
MEET2026挤爆了,AI圈今年最该听的20+场演讲&对谈都在这

MEET2026挤爆了,AI圈今年最该听的20+场演讲&对谈都在这

MEET2026挤爆了,AI圈今年最该听的20+场演讲&对谈都在这 西风 2025-12-11 15:...
钉钉又发新版本!把 AI 搬进每一次对话和会议

钉钉又发新版本!把 AI 搬进每一次对话和会议

钉钉又发新版本!把 AI 搬进每一次对话和会议 梦晨 2025-12-11 15:33:51 来源:量子位 A...