1. 程式人生 > >Kotlin/Native v0.8 released

Kotlin/Native v0.8 released

We’re happy to announce the release of Kotlin/Native v0.8! The focus of this release is on:

  • safer concurrent programming
  • extending the stdlib functionality
  • better iOS development support.

Also, numerous bug-fixes and optimizations were implemented in this release.

AppCode and CLion Kotlin/Native plugins were updated to work with v0.8, along with minor performance and usability improvements.

Binaries can be downloaded from the following links: macOS, Linux, Windows

A Linux Snap package is also available.

GitHub release page is here.

Better concurrency support.

Before v0.8, Kotlin/Native applications were keeping the singleton object state local to a particular thread of execution, so the state of singleton objects on different threads could be non-synchronized. Now, extending the notion of freezing on singleton objects, we allow a shared immutable state.

For example, following code

will read the configuration file and can provide a Config.width property later on.  The Config file will be read once per process execution, and is available to any thread or worker. Once published, the object is frozen, and cannot be modified anymore (modification attempts will throw an InvalidMutabilityException).

Another feature intended for better concurrency support in Kotlin/Native is the atomic values and references. For example, to extend the above sample of a program-wide configuration by adding a potentially updateable program icon, we could do

Note, that operation is atomic, and icon data stored in an AtomicReference itself is frozen. This way we can ensure that the data updates are atomic, and all the other clients see a consistent state.

Library improvements.

With the release 0.8 standard library (kotlin.*) in Kotlin/Native is finally standardized with other platforms using expect/actual mechanism, and mostly (modulo reflection and some synchronization-related operations) matches other Kotlin flavors. Also, the standard random number generator and collection shuffling functions are now available, so there is no need to use platform-specific APIs to obtain random numbers anymore.

Other important JetBrains-provided libraries, like kotlinx.coroutines, kotlinx.serialization, and Ktor HTTP client are getting experimental Kotlin/Native support, which means it is possible to write an iOS app and Android application sharing the same REST API-related logic.

iOS support improvements.

We are working hard on making Kotlin/Native a viable iOS development technology, so in this release, we fixed few annoying problems preventing publishing to AppStore, a framework initialization problem and supported 32-bit ARM iOS, so that older devices can be used with Kotlin/Native as well.

Let’s Kotlin

相關推薦

Kotlin/Native v0.8 released

We’re happy to announce the release of Kotlin/Native v0.8! The focus of this release is on: safer concurrent programming extending the stdlib

Kotlin/Native 0.8.2 Released

We are happy to announce the 0.8.2 release of Kotlin/Native. In addition to the bug fixes and improvements, we have introduced support for Kot

Kotlin/Native v0.6 is Here!

We are pleased to announce Kotlin/Native v0.6 (Valentine’s Day release) of our toolchain. This is a major update, including the following feat

Datumbox Machine Learning Framework v0.8.1 released

Unfortunately the framework does not currently have an algorithm fo

Kotlin 1.3 Released with Coroutines, Kotlin/Native Beta, and more

You can read this blog post in other languages: Today we are releasing Kotlin 1.3 together with a set of accompanying libraries, build too

JavaEE應用基礎平臺 AOS-V0.1 RELEASED

交付 公安 代碼 分享 servlet 版本 用戶 環境 管理 寫在最前面 AOS是一個有著悠久歷史傳承和發揚的平臺。她的前世G4Studio自2010年公布V1.0版本號以來,先後經過多次版本號更新。並得到了一些小夥伴的認可和使用。但我們希望做得更好,走

社交系統ThinkSNS+ V0.8.7發布,“問答”功能千呼萬喚始出來

加載 blank cab www. mini 成功 登陸 推薦 sns 【摘要】社交系統ThinkSNS+又更了,本次跳過了0.8.6,直接發布0.8.7,新增功能主要有問答系統,問答系統主要有最新問答、精選、懸賞、熱門、全部以及話題;第三方登錄,含QQ登錄、微信登錄、微博

社交系統ThinkSNS+從V0.8.7到V0.8.9我們到底修復了多少個bug?

社交 普通 下滑 重復 功能 失敗 一次 文字 專家 【摘要】好久都沒有發布過更新播報了,因為之前我們一直把更新播報和版本發布放在了一起,由於最近兩個版本修復內容太多,所以獨立出來。 首先,我們看看iOS APP端,0.8.8以及0.8.9修復內容 V0.8.8 新增功能

微贊微擎V0.8以上版本:【資料庫讀寫分離】實戰教程 [複製連結]

http://www.efwww.com/forum.php?mod=viewthread&tid=4870   馬上註冊,下載更多原始碼,讓你輕鬆玩轉微信公眾平臺。 您需要 登入 才

IDEA執行kotlin native

今天試了下kotlin native,好久沒玩過這個玩意兒了。 然後建了一個kotlin native的工程 發現IDEA一直在說是多平臺專案 Kotlin Multiplatform Projects are an experimental feature. 執行kotlin na

JetBrains開發者日見聞(一)之Kotlin/Native 嚐鮮篇

簡述: 今天我們來講點Kotlin中比較時髦的東西,有的人可能會說:“不像你之前的風格啊,之前的文章不是一直在死扣語法以及語法糖背後祕密。當你還在死扣泛型語法的時候,別人的文章早就說了Kotlin/Native和Kotlin1.3的新特性”。瞬間感覺自己out了,今天我們就說說這些時髦的東西,也許你能看到一些

kafka producer API v0.8.2 是一個分水嶺

kafka v0.8.2是一個分水嶺,對於kafka v0.8.x以前的kafka producer API,用如下的import標頭檔案 //for kafka client before v0.8

Kotlin/Native Tech Preview: Kotlin without a VM

We are happy to announce the first Technology Preview of Kotlin/Native that compiles Kotlin directly to machine code. The Kotlin/N

kpc v0.8.0釋出,支援多框架的前端元件庫

   kpc是一個由金山雲前端團隊開發的支援多框架的前端元件庫,目前支援Intact/Vue/React。它可以讓你的團隊不同技術棧之間開發出來的產品保持設計互動統一 v0.8.0 更新日誌 Table支援匯出成csv格式並下載 Core Add TableCol

v12.2.8 released版本介紹--2019_7

v12.2.8 released是一個長期支援版本。網頁的介紹如下:https://ceph.com/releases/v12-2-8-released/ We’re glad to announce the next point release in the Luminous v12.2.X stable

Kotlin/Native Plugin for AppCode

Greetings Kotlin fans! Ever since we announced interoperability with Objective-C for Kotlin/Native, we’ve been getting lots of questions about

Application development in Kotlin/Native

In this blog post we are discussing development of Kotlin/Native applications. Today we take a look on basic video player, using FFMPEG audio/

React Native v0.56.0 最新版本更新日誌

react-native技術交流微信群,定期會分享react native 技術文章,移動技術乾貨,精彩文章技術推送。歡迎各位大牛,React Native技術愛好者加入交流!React Native v0.56.0 已釋出,這也是屬於 6 月的更新發布!FB開發團隊表示,自

使用Kotlin Native技術開發iOS應用

AppCode簡介 AppCode是JetBrains公司出品的用於開發Mac OS X以及iOS應用程式的整合開發環境,能夠支援Xcode專案的執行和除錯功能,併為Swift和Objective-C提供廣泛的技術支援。目前,AppCode只能執行在Mac O

Kotlin 一統天下?Kotlin/Native 開始支援 iOS 和 Web 開發

KotlinConf 大會宣佈了 Kotlin 1.2 RC 版,並宣佈 Kotlin/Native 已支援用於開發 iOS 應用和 Web 應用開發。 首屆官方舉辦的 Kotlin 專題會議 K