基于類的腳本語言:Wren

jopen 9年前發布 | 38K 次閱讀 Wren 腳本/動態語言

Wren 是一個小型快速基于類的腳本語言,相當于 Lua 大小的 Smalltalk。

IO.print("Hello, world!")class Wren {
  adjectives = ["small", "clean", "fast"]
  languageType {
    "scripting"
  }
}
  • Wren is small. The codebase is under 4,000 semicolons which keeps the language and libraries small enough to fit in your head. You can skim the whole thing in one sitting.

  • Wren is clean. The codebase is small, but not dense. It is readable and lovingly-commented. It's written in warning-free standard C99.

  • Wren is fast. A fast single-pass compiler to tight bytecode, and a compact object representation help Wren compete with other dynamic languages.

  • Wren is class-based. There are lots of scripting languages out there, but many have unusual or non-existent object models. Wren places classes front and center.

  • Wren is a scripting language. Wren is intended for embedding in applications. It has no dependencies, a small standard library, and an easy-to-use C API.


項目主頁:http://www.baiduhome.net/lib/view/home/1420290565875

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!