Scala.js v0.1 發布,將Scala轉成JavaScript的編譯器
Scala.js將Scala代碼編譯成JavaScript,讓您完全可以用Scala編寫Web應用程序!注意! Scala.js仍處于試驗階段!
突出的特點是:
- Support all of Scala (including macros!), modulo a few semantic differences
- Very good interoperability with JavaScript code. For example, use jQuery and HTML5 from your Scala.js code, either in a typed or untyped way. Or create Scala.js objects and call their methods from JavaScript.
- Integrated with sbt (including support for dependency management and incremental compilation)
- Can be used with your favorite IDE for Scala
- Generates Source Maps for a smooth debugging experience (step through your Scala code from within your browser supporting source maps)
- Integrates Google Closure Compiler for producing minimal code for production.
今天我們發布了 Scala.js 的首個版本,這個項目是在今年六月份的時候宣布的。
第一個版本支持的特性:
- 支持所有 Scala 特性,包括宏,不過有一些 語義上的區別
- 可非常好的跟 JavaScript 代碼進行交互
- 集成了 sbt (包括支持依賴管理和增量編譯)
- 可使用你喜歡的 Scala 集成開發環境
- 生成 Source Maps 用于平順的調試體驗
- 集成 Google Closure Compiler 用于產品環境的最小代碼量
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!