Zaphod/Narcissus - a Javascript engine for innovation
Tuesday, 21 September 2010

A Javascript interpreter written in Javascript - no it's not a joke and with Zaphod to help you can run real web pages using it.

Banner

 

Mozilla Labs has been busy again. If you are looking for a Javascript engine to modify and extend then consider Narcissus. What is special about it is that it is written in standard Javascript - yes, Javascript in Javascript. This makes the engine very easy to modify and experiment with. The problem is how can you test your modifications?

labs

This is where the new Zaphod comes in. If you install it then you can run scripts using Narcissus simply by marking the web page with a special tag “application/narcissus”. You can also run scripts through Narcissus by clicking the Mozilla button at the bottom right.

Notice that Narcissus doesn't replace the SpiderMonkey engine - in fact it's SpiderMonkey that runs the Narcissus code.

What would you use Narcissus/Zaphod for?

Apart from language experimentation it's is difficult to think of an immediate application. You could imagine the day when machines and implementations are so fast that you could run Narcissus as sort of virtual Javascript engine to iron out differences between browsers - but at the moment... 

In case you haven't noticed the names are apt - Narcissus because in Greek legend Narcissus fell in love with his own reflection - Javascript in Javascript - and Zaphod from Hitch Hiker's Guide had two heads.

If nothing else the idea of a Javascript interpreter written in Javascript should be something that keeps you awake at night.

To download Narcisus Download

Find out more about Zaphod

Banner


Smart Cat Feeder Uses Facial Recognition
20/07/2014

An Indiegogo campaign for a smart cat feeder that can monitor your cat's health by tracking appetite and weight change has already met its target, demonstrating a new role for AI in the home.



Python Becomes Most Popular CS Teaching Language
09/07/2014

Python is now used by 8 of the top 10 US computer science departments in their introductory courses at undergraduate level. This trend is also reflected in the preponderance of MOOCs teaching Python t [ ... ]


More News

<ASIN:059680279X>

<ASIN:1430230541>

<ASIN:0321683919>

<ASIN:0596805527>

Last Updated ( Tuesday, 21 September 2010 )
 
 

   
RSS feed of news items only
I Programmer News
Copyright © 2014 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.