What's GLUEscript?

GLUEscript (Glueing Libraries Using EcmaScript) is the successor of wxJavaScript. The new name covers the goal of this project: create a JavaScript engine which can be used as a general purpose language (like Perl for instance).

Read the history behind GLUEscript.

GLUEscript is developed by Franky Braem


GLUEscript uses SpiderMonkey, the JavaScript engine used in FireFox.


Portable Code

GLUEscript is written in portable C++ code. GLUEscript uses PoCo, a library for writing portable C++ code. And wxWidgets is used as GUI toolset. The GUI glue is optional.

Powered by POCO
Built with wxWidgets

GLUEscript uses Premake for generating makefiles for gcc, project files for Visual C++, CodeLite, Code::Blocks, ... Premake can be used on Windows, Linux and MacOS.


It all started several years ago when I was developing a new insurance application in Java and did some research in rule engines. Instead of using a real rule engine, I was also looking at scripting languages for this purpose. When playing with Rhino, I discovered SpiderMonkey. The application was never delivered.

Because C++, and not Java, was my first love, I developed applications in C++ after work. I was also looking for a replacement of MFC and found wxWidgets. I saw that several bindings existed for scripting languages like Python, Ruby, Perl, ... And that gave me the idea to use SpiderMonkey to port wxWidgets to JavaScript. In 2002 I started the wxJavaScript project on Sourceforge and this resulted in a first release on november 2002.

After a break in 2004 and 2005, I restarted the development of wxJavaScript at the end of 2005. The focus of the project was expanded: not only wxWidgets was ported, but also MySQL, SQLite, cURL, ... At that time JavaScript on the server gained more talk on the web and that resulted in an Apache Module for wxJavaScript: mod_wxjs. The existance of this Apache module was noticed by Sitepoint.

At the end of 2008 some users mentioned that a new name for the project could get more attention to the project. Several suggestions were made and I decided to rename wxJavaScript into GLUEscript. GLUE stands for Glueing Libraries Using EcmaScript.

wxWidgets announced the end of support for wxODBC and that was the start for looking for a replacement. That was the time I discovered POCO. POCO has a lot of great libraries and I deciced to port the old wxJavaScript code to use POCO as much as possible. This gave me also the opportunity to release GLUEscript that doesn't depend on wxWidgets libraries (which was asked by some users of wxJavaScript). Now wxWidgets is only needed when you want to write GUI applications in JavaScript. A first binary download of GLUEscript was released in may 2009.

When I mentioned this release on the POCO forum, Aleksandar Fabijanic (Alex) asked me if I wasn't interested to become a contributor to POCO and write a Script environment for JavaScript/SpiderMonkey. I did, and I started developing this environment. While working on this, I started to like the coding standards of POCO and decided to use them also for GLUEscript.