1 回答

TA貢獻(xiàn)1773條經(jīng)驗 獲得超3個贊
Scala除了縱向發(fā)展外(Scala本身語言的擴展), 也在橫向的發(fā)展, 比如Scala.js將Scala語言引入到Javascript中,它可以將Scala語言編譯成javascript。因此有理由相信,這個即將發(fā)布的項目可以將Scala代碼編譯成本機代碼,這樣就可以脫離虛擬機直接運行了。
這個項目會在接下來的幾個月發(fā)布,但是在即將舉行的紐約 Scala Days會議上, Denys Shabalin會介紹一個主題 "Scala Goes Native", 內(nèi)容為:
Scala has historically been a JVM-centric programming language. The situation has started to change with appearance of the Scala.js that opened a door of front-end development to Scala programmers. This talk will expand the horizons of Scala even more. We’re going to announce a new ahead-of-time compiler and lightweight managed runtime designed specifically for Scala.
可以看到Scala native會提供一個編譯器和一個輕量級的受管的運行時,看起來類似Golang,編譯的程序會自帶這個輕量級的運行時,負(fù)責(zé)垃圾回收。
添加回答
舉報