1. Computing

What is jx9?

By January 27, 2013

Follow me on:

Many games and large applications in C/C++ embed a scripting language, so that game scripts can be changed quickly during development without requiring a full recompile. The language jx9 is one such language.

This has over 300 functions and 139 constants and is thread safe, iuncludes function ovcerloading, is dynamically typed. It's open sourced so if you project game etc is open source then no cost. If its a closed source then you need to license it commercially. It is remarkably powerful and the language is similar to C. Here's an example:


//Declare an empty JSON array
$num = [];

print "Enter a number (Decimal, Hex, Octal or Binary notation)\n";
//Populate the JSON array with the first entry
$num[] = (int)fgets(STDIN) ;

print "Another number\n";
$num[] = (int)fgets(STDIN) ;

print "Finally, one last number\n";
$num[] = (int)fgets(STDIN) ;

//show content
print "Before sorting\n";
print $num;

//Sort the array now
sort($num) ;
print "\nAfter sorting\n";
print $num;
Comments
January 27, 2013 at 6:57 pm
(1) dean says:

Very cool stuff David!
Is there any tutorial to start playing with Jx9?

January 28, 2013 at 3:58 pm
(2) cplus says:

Not yet, but I’ll publish one in a few days.

David
About C,C++, C# and Google Go

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.