1 回答

TA貢獻1773條經驗 獲得超3個贊
Scala除了縱向發展外(Scala本身語言的擴展), 也在橫向的發展, 比如Scala.js將Scala語言引入到Javascript中,它可以將Scala語言編譯成javascript。因此有理由相信,這個即將發布的項目可以將Scala代碼編譯成本機代碼,這樣就可以脫離虛擬機直接運行了。
這個項目會在接下來的幾個月發布,但是在即將舉行的紐約 Scala Days會議上, Denys Shabalin會介紹一個主題 "Scala Goes Native", 內容為:
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,編譯的程序會自帶這個輕量級的運行時,負責垃圾回收。
- 1 回答
- 0 關注
- 621 瀏覽
添加回答
舉報