Frequently Asked Questions

What is Descripter?

Why another JavaScript engine?

What the Descripter library includes?

What is the JavaScript API of the Descripter library?

What is the HTTP server of the Descripter library?

How Descripter interprets JavaScript?

How Descripter descripts JavaScript?

How Descripter compiles JavaScript?

How Descripter executes JavaScript?

What are JavaScript servlets? and why?

What are JSSPs? and why while there are JSPs?

Whom is Descripter for?

What is Descripter?

Descripter is an open source Java library with classes for a very different JavaScript engine. More precisely it supports running JavaScript via API, interpreters, descripters and compilers. The library can also be used as a very simple HTTP server which accepts JavaScript servlets (scriptets) and JavaScript server pages.

Why another JavaScript engine?

For efficiency and simpleness. Due to the clear and artistic design, Descripter fully takes the existing advantages of the Java platform when it processes JavaScript.

What the Descripter library includes?

The Descripter library includes Java classes for the JavaScript API, JavaScript interpretation, descripting, compilation and execution. It also includes a very simple HTTP server which accepts JavaScript servlets (scriptets) and JavaScript server pages.

What is the JavaScript API of the Descripter library?

The JavaScript API is a set Java classes that simulate JavaScript features on Java platform. It is part of the Descripter library and can be used to emulate JavaScript in any Java programs.

What is the HTTP server of the Descripter library?

It is the simplest HTTP server included in the Descripter library, which accepts JavaScript servlets (scriptets) and JavaScript server pages. It is also a basic sample that shows how to scriptize JavaScript Server Pages (JSSPs), to descript JavaScript servlets (scriptlets), to compile Descripter API based applications and execute the compiled runnable classes.

How Descripter interprets JavaScript?

Descripter interprets the piece of JavaScript code by parsing and converting it into invocations of the Descripter API.

How Descripter descripts JavaScript?

Descripter descripts the piece of JavaScript code by parsing and converting it into Java source that invokes the Descripter API.

How Descripter compiles JavaScript?

It first parses and converts the piece of JavaScript code into Java source that invokes the Descripter API and then compiles the Java source into a runnable class in memory.

How Descripter executes JavaScript?

It first parses and converts the piece of JavaScript code into Java source that invokes the Descripter API, then compiles the Java source into a runnable class in memory and runs the class.

What are JavaScript servlets? and why?

JavaScript servlets (or scriptlets) are files of server-side JavaScript code that print HTTP responses on received HTTP requests. An obvious potential advantage of the scriptlets over the traditional Java servlets is that the scriptlets may even be created dynamically on the client side (with possibly client-side JavaScript)!

What are JSSPs? and why while there are JSPs?

JavaScript Server Pages (or JSSPs) are HTML files that embed server-side JavaScript code. The HTTP server scriptizes JSSPs into scriptlets and does further processing as it would do to normal scriptlets. An obvious potential advantage of the JSSPs over the traditional JSPs is that JSSPs may even be created dynamically on the client side (with possibly client-side JavaScript)!

Whom is Descripter for?

Descripter is not for client-side JavaScript developers but for Java developers who want JavaScript executed on their systems or HTML writers who are writing JavaScript servlets (scriptlets) or JavaScript Server Pages (JSSPs).