1 / 15

Narwhal

Narwhal. 2009/07/28 Open INTRA-MART 榎本 潤. ServerJS. Server Side JavaScript API の標準化 ServerJS group (Google group) http://groups.google.com/group/serverjs IRC Freenode #serverjs. args base16 base64 crc32 file hash http io logger. md4 md5 mime os packages promise regexp

alagan
Download Presentation

Narwhal

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Narwhal 2009/07/28Open INTRA-MART榎本 潤

  2. ServerJS • Server Side JavaScript APIの標準化 • ServerJS group (Google group) • http://groups.google.com/group/serverjs • IRC • Freenode • #serverjs

  3. args base16 base64 crc32 file hash http io logger md4 md5 mime os packages promise regexp sandbox sha API

  4. ex: file var File = require(‘file’); // read file. var content = File.read(‘./foo.txt’); // write file File.write(‘./bar.txt’, content);

  5. ex: http var Http = require(‘http’); var content = Http.read(‘http://www.google.com’); // globalScope::system system.stdout.writeln(content.toString(‘UTF-8’));

  6. ex: base64 var Base64 = require(‘base64’); var content = Base64.encode(‘hello ServerJS’); system.stdout.writeln(content);

  7. Narwhal

  8. Narwhal • ServerJS実装 • 実行エンジン: Rhino • 独自ライセンス • http://narwhaljs.org/

  9. Narwhal • サブパッケージ • Jack • Webアプリ用モジュール • Chiron • 汎用的なモジュール群 • Nitro • Jackを利用したWebApplication Framework • getjs • Package Manager

  10. いつもの事ながら im-jssp frameworkで うごかしまーす

  11. やった事 jssp-config.properties( or xml ) Initializer4Script=narwhal/platforms/rhino/bootstrap

  12. やった事 bootstrap.js global = Packages.org.intra_mart.jssp.script.FoundationScriptScope.instance(); var NARWHAL_HOME = Packages.org.intra_mart.jssp.util.config.HomeDirectory.instance() + "/WEB-INF/jssp/narwhal";

  13. デモ

  14. im-jsspはServerJS標準も取り込める

  15. ご静聴有難う御座いました。

More Related