Monday, June 1st, 2009

Narwhal: Standard Library that implements ServerJS

Category: JavaScript, Server

<>p>Narwhal “a flexible JavaScript standard library” is now live thanks to:

  • Tom Robinson’s Jack: the web server and web application/framework agnostic interface, similar to Ruby’s Rack and Python’s WSGI. Narwhal was conceived while building Jack, and was later extracted into it’s own project.
  • Kris Kowal’s Chiron: a system of interoperable JavaScript modules, including a type system, base types, general-purpose functions, events, encoding, decoding, hashing, and caching.
  • George Moschovitis’s Nitro: a web application framework built on top of Jack.
  • Kevin Dangoor’s getjs: a JavaScript package manager for ServerJS implementations

Put this all together and you get Narwhal, which conforms to the ServerJS standard. It is designed to work with multiple JavaScript interpreters, and to be easy to add support for new interpreters. Wherever possible, it is implemented in pure JavaScript to maximize reuse of code between platforms.

Related Content:

  • How to implement virtual tape libraries
    This section of our Backup Best Practices guide offers a series of best practices that can help avoid common implementation mistakes and get the most...
  • Tape libraries
    Midrange tape libraries have added sophisticated features such as partitioning to fend off the challenge of disk-based backup systems. With these new...
  • Tape libraries
    Midrange tape libraries have added sophisticated features such as partitioning to fend off the challenge of disk-based backup systems. With these new...
  • SOA Books Library
    In the SOA Books Library, discover books to better understand and implement open source SOA, enterprise mashups, cloud-based applications, and more....
  • Simplifying data access using Java Standard Tag Library
    Learn how to quickly build a simple JSP to search an employee table using SQL to demonstrate how easily JSTL accesses...

Posted by Dion Almaer at 7:44 am
5 Comments

+++--
3.9 rating from 26 votes

5 Comments »

Comments feed TrackBack URI

I think the above description may be a little misleading, though it’s confusing at best.

The projects mentioned above are Narwhal *packages*, which use Narwhal for its standard library and module functionality. If I’m not mistaken, Narwhal itself is also a package. So all of these projects depend on Narwhal, they don’t make it up.

Either way, all of them are awesome, great job everyone!

Comment by smith — June 1, 2009

The “ServerJS standard”? Isn’t it a bit too early to call it a standard? It seems like it’s status is the same as HTML5… holding great promise, but still a draft. From what I have seen, it still is only at a starting point: https://wiki.mozilla.org/ServerJS

Comment by westonruter — June 1, 2009

The first production ready server side JavaScript Apache-module/FastCGI will probably set the standard, until then just hope they make it good enough.

Comment by hlindqvi — June 1, 2009

Smith: Correct, sort of. Narwhal is the actual implementation of the ServerJS standard.

Jack, Chiron, Nitro, getjs are just a few of hopefully many ServerJS / Narwhal compatible packages.

It’s still a work in progress (particularly since the ServerJS standard is still a work in progress) but it’s at a point where you can start playing around with it (and contributing!)

Comment by tlrobinson — June 1, 2009

Hum, does anyone know how well (or bad) it behaves compare to ejscript?

Comment by gizmogwai — June 3, 2009

Leave a comment

You must be logged in to post a comment.