XP on NodeJS: Class constants, annotations, stacktraces

at 2012-03-21 in LanguageExperiments by friebe (0 comments)

More work has been put into the XP on NodeJS experiment: The compiler now knows how to correctly emit class constants and annotations, and a couple of minor bugs have been fixed. The bigger efforts have gone into stabilizing the XP "Microkernel" (which is what I've decied to call the miniature XP Framework implementation written in JavaScript and adopted to NodeJS as well as Windows Scripting Host):

  • We're finally getting inheritance right (or are we ? - :-))?
  • Class path is now assembled via class.pth files
  • Classes can reside freely inside any of the class path elements
  • Stack traces are now shown, including method names and arguments
  • Parent class reflection now works
  • The entry point scripts (tools/node.js and tools/cscript.js) are now generated from a common base
  • When these are invoked without arguments, they show version and classpath info
Here's something for you visually oriented people:

Screenshot

Finally, now, also the emitter dictates the file extension instead of it being hardcoded, so compiling is now completely hassle-free, no more moving the generated .class.php files around.

To get started, visit https://github.com/thekid/xp-js !



Subscribe

You can subscribe to the XP framework's news by using RSS syndication.


Categories

News
General
PHP5
Announcements
RFCs
Further reading
Examples
Editorial
EASC
Experiments
Unittests
Databases
5.8-SERIES
Unicode
Language
5.9-SERIES

Related

Find related articles by a search for «XP».