Hi all!

In this post for Sencha blog sometimes ago, I showed how easy it is to
compile and use open source JavaScript engines which power the major
web browsers: SpiderMonkey (Mozilla/Firefox), JavaScriptCore (WebKit),
and V8 (Chromium):

  http://www.sencha.com/blog/2010/10/12/javascript-engines-how-to-compile-them/

This might be useful for anyone who want to embed JavaScript in an
application, pretty much creating your own host environment. A good
alternative to Rhino, if the application is not Java-based.

One example I have given is command-line JavaScript beautifier:

  
http://www.sencha.com/blog/2010/10/21/make-a-javascript-formatter-with-v8-and-jsbeautifier/

Another example is command-line JSLint:

  http://ariya.blogspot.com/2010/11/v8-jslint-vim.html

The latter is actually pretty generic since it's using filejs, a
V8-based tool which exposes several system API (inspired by CommonJS).
There are also several projects out there whose goal is to make it
easy to bind V8 to your C++ applications.

Combining JavaScript engine with a multiplatform toolkit like Qt will
allow you to write browser-less application without learning native
API and other languages, e.g. making a desktop-version of Canvas-based
game:

  http://ariya.blogspot.com/2010/09/invade-destroy.html

And yes, the most popular use of V8 as embedded engine is probably
NodeJS. But I hope some of my article above shows that for some use
cases, you are not always forced to use NodeJS.


Feedback is warmly welcomed!

Thank you.

Regards,

--
Ariya

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to