Questions tagged [narwhal]

A deprecated general purpose JavaScript platform

Narwhal is a cross-platform, multi-interpreter, general purpose JavaScript platform. It aims to provide a solid foundation for building JavaScript applications, primarily outside the web browser. Narwhal includes a package manager, module system, and standard library for multiple JavaScript interpreters. Currently Narwhal's Rhino support is the most complete, but other engines are available too.

Narwhal's standard library conforms to the CommonJS 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 among engines.

Combined with Jack, a Rack-like JSGI compatible library, Narwhal provides a platform for creating server-side JavaScript web applications and frameworks such as Nitro.

Narwhal is no longer in development and has status .


Useful links

Related tags

6 questions
35
votes
4 answers

Differences between Narwhal and Node.js

I'm new to Node.js and I have been reading about Narwhal that is a framework based on Rhino. My questions: If I'm using Node.js, could I use Narwhal and its libraries/modules? Aren't the libraries/modules in Narwhal I/O-blocked (why Node.js got…
never_had_a_name
  • 90,630
  • 105
  • 267
  • 383
6
votes
2 answers

Is there a Jack equivalent for nodejs?

Is there an equivalent to Jack for Narhwal implemented in nodejs?
Martin Murphy
  • 1,775
  • 2
  • 16
  • 24
5
votes
0 answers

best way to run narwhal under linux

I'm checking out narwhal. It seems pretty cool, and I'm particularly impressed with the tusk package management system. However, since narwhal runs under rhino, the usefulness of this command-line tool is impinged upon by the JVM's obscene startup…
intuited
  • 23,174
  • 7
  • 66
  • 88
4
votes
4 answers

Passing args to a JS command line utility (Node or Narwhal)

I want to use NodeJS or Narwhal to create a JS utility which takes an argument, like so: $ node myscript.js http://someurl.com/for/somefile.js or $ js myscript.js http://someurl.com/for/somefile.js but I'm wondering how I can get that argument…
erikvold
  • 15,988
  • 11
  • 54
  • 98
3
votes
2 answers

Why does a locally scoped variable that hasn't been defined reference the instance variable of the same name?

I came across an odd bug in my code that revealed an interesting behavior of ruby. Hopefully someone can explain why it behaves this way. I had a class with an instance variable @foo and a method that referenced a locally scoped variable foo. I…
solipsicle
  • 864
  • 1
  • 9
  • 19
1
vote
1 answer

Rhino - Set FEATURE_LOCATION_INFORMATION_IN_ERROR in code?

I'd like fileName, lineNumber and stack traces to automatically be provided by Rhino for any errors. I've been told that I need to set FEATURE_LOCATION_INFORMATION_IN_ERROR on the current context, but I'm not sure how to do this in code. Does…
Scott Klarenbach
  • 37,171
  • 15
  • 62
  • 91