Kotlin 1.3.30 发布,改进性能和引入新特性

  

Kotlin 1.3.30 已发布,提供的内容包括 JVM 版本的 Kotlin 编译器,以及针对主要平台(Linux,macOS 和 Windows)的原生系统相关版本。这些二进制文件使用 Excelsior JET AOT 编译器(https://www.excelsiorjet.com/)构建,具有更快的启动时间,适用于构建小文件或脚本。

更新日志包括引入新特性、提升性能和修复 bug 等,主要是针对编译器、IDE、库和工具这几方面。

列举部分如下:

编译器

新特性

  • KT-19664 Allow more permissive visibility for non-virtual actual declarations
  • KT-29586 Add support for Android platform annotations
  • KT-29604 Do not implicitly propagate deprecations originated in Java

性能改进

  • KT-24876 Emit calls to java.lang.Long.divideUnsigned for unsigned types when target version is 1.8
  • KT-25974 'when' by unsigned integers is not translated to tableswitch/lookupswitch
  • KT-28015 Coroutine state-machine shall use Result.throwOnFailure
  • KT-29229 Intrinsify 'in' operator for unsigned integer ranges
  • KT-29230 Specialize 'next' method call for unsigned integer range and progression iterators

详情请查看 GitHub 发布公告

猜你喜欢

转载自www.oschina.net/news/105853/kotlin-1-3-30-released