|
Project Information
Featured
|
Home page on blogspot: http://nexusonline2003.blogspot.com/ JS8JS8 is a Javascript shell based on Google V8 engine. It provides a shell to run Javascript and libraries to interface with the host operating system. It is currently being developed on Windows, however, JS8 has been using portable code and libraries. The aim is to support Windows and Linux at the least. The prerequisite libraries are: Google V8 (included in binary form), users can download and compile V8 seperately and install the "v8.dll" library, JS8 will be able to use it immediately. Another important library: Boost is a major requirement for portable filesystem operations and parser construction. Please install the recommended binary Boost distribution if you have trouble compiling on your own. Curl library (included in binary form) may also required. What Exactly Is JS8?Javascript is rarely used outside of a browser applicaton, however Javascript is a very simple and very powerful language (Lisp-1 with a C syntax). It's security model was designed to restrict access to nothing but the host application (browser). Therefore, you cannot write in Javascript to open a file, let alone deleting one: file system access must be done via the browser. As a scripting language, Javascript is very simple, supports modern features and very powerful. Thanks to Google V8 engine, embedding Javascript into YOUR host application is easier. This is where JS8 comes in: provide interface libraries to the filesystem, networking and the outside world (like a browser DOM). You may be able to connect Javascript to your C/C++ host applications, but then you will have to write your own library to perform something like: travel a directory and retrieve all the filenames, timestamp and many others low-level non-portable O/S tasks. DesignUnlike Python, Perl or other languages, JS8 libraries are not designed in a traditional way: it is being model after POSIX tools, or rather GNU tools. JS8 libraries not only communicate via text, but also via list/array within the Javascript space to reduce unnecessary parsing. In particulars, JS8 libraries commands are model after GNU tools such as ls(), grep(), sort(), mv(), println(), dirname(), which() and so on. Benefits
N.B The name jsa clash with someone else unrelated project, Javascript for Application is now renamed to JS8. Sorry for the lack of documentations at this point. |