About ChaiScript

ChaiScript is the first and only scripting language designed from the ground up with C++ compatibility in mind. It is an ECMAScript-inspired, embedded functional-like language.

ChaiScript is licensed under the BSD license.

Download

Version: 2.3.2 Released: 1/18/2010

Source

Version: 2.2 Released: 11/15/2009

Windows
Linux
OS X

news

Now on YouTube

Recently we posted a quick introduction to ChaiScript on YouTube. Check it out, tell us what you think.

ChaiScript 1.3 Released

ChaiScript 1.3 was just released on googlecode.

Changes:

  • Allow floating point numbers without a leading 0.
  • Fix dispatch of functions that take boost::shared_ptr parameters.
  • Add "use" function for loading ChaiScript files from within ChaiScript files.
  • Double performance of tightloops by speeding up operator dispatches.
  • Prevent the use of reserved words as function and object names.
  • Fix error messages for failed "clone" calls.

ChaiScript 1.2 Released

The ChaiScript 1.2 release was just tagged and released on googlecode. 1.2 represents a significant performance increase for ChaiScript, with long running scripts running up to 3x faster than previously.

It is functionally the same as 1.2, so it is currently planned to be a source only release.

1.1 Released!

1.1 of ChaiScript was just posted.

This release includes many enhancements to the C++ API. The code required to register new functions and types has been greatly simplified. Don't worry, porting existing 1.0 code to the new API should be simple.

Example:

register_function(chai.get_eval_engine(), &MyClass::method, "method");

becomes:

chai.add(fun(&MyClass::function), "method");
Syndicate content