Cesar Lopez Nataren's weblog

RSS

xml.gif

Email: cnataren@novell.com
www.flickr.com

Blogs

xml.gif Ben Maurer
xml.gif Miguel de Icaza
xml.gif Duncan Mak
xml.gif Gonzalo Paniagua
xml.gif Jackson Harper
xml.gif Lluis Sanchez
xml.gif Martin Baulig
xml.gif Mike Kestner
xml.gif Sebastien Pouliot

Docs:

mjs talk .
Mono talk at School of Sciencies.
Google

WWW Primates

« Mono's JScript.NET update. | Main | ENC 2005. »

yeah dude. it's not real until you blog it :)

A long standing feature request for mjs had been the compilation of mutiple files, I'm really happy to announce that the support for it is advancing nicely, as images are worth a thousand words, take a look:

The files:

cesar@itaca:~/mono/mcs/jtests> cat f.js
G ();

function F () { print ("F called"); }

cesar@itaca:~/mono/mcs/jtests> cat h.js
F ();

function H () { print ("H called"); }

cesar@itaca:~/mono/mcs/jtests> cat tensquared.js
var tensquared = (function (x) { return x * x; }) (10);
print ("tensquared = ", tensquared);

cesar@itaca:~/mono/mcs/jtests> cat g.js
H ();

function G () { print ("G called"); }

The compilation action:

cesar@itaca:~/mono/mcs/jtests> mjs f.js h.js tensquared.js  g.js
Compilation succeeded

Last but not the least, execution:

cesar@itaca:~/mono/mcs/jtests> mono f.exe
G called
F called
tensquared = 100
H called

I had to refactor and add some logic for identifier/method resolution and code generation, the another good news is that this changes will help me a lot for fixing some identifier and method resolution problems that we currently have. I need to test it and adapt our test suite for using this new feature. I'm expecting that this will speed up our test suite's execution time.

This is a personal web page. Things said here do not represent the position of my employer.