Submitted by jason on Mon, 04/27/2015 - 06:56
Note 2015-05-01 - fixed typos in first example
Note 2015-05-04 - fixed typos in second example
Back in 2008 I wrote an article on template code bloat. In that article I concluded that the use of templates does not necessarily cause your binary code to bloat and may actually result in smaller code! This ended up becoming one of my more significant articles and has been referenced on wikipedia.
Submitted by jason on Sun, 04/12/2015 - 07:21
I was recently reminded of the old FizzBuzz programming test and thought I would share a version of it for ChaiScript. ChaiScript has a possibly little used feature that allows you to execute a 'guard' or test before the function is executed, to see if it matches certain criteria. We can take advantage of this to generate rather readable version of FizzBuzz.
Submitted by jason on Wed, 01/07/2015 - 10:47
Yesterday I decided to look into adding
std::future support to ChaiScript. To be fair future is the return value of several other higher level threading constructs, so we don't want just "
std::future," we want enough support to make it usable.
ChaiScript works very well with functions and function objects, so ideally we want something like:
Submitted by jason on Tue, 12/16/2014 - 09:05
This same technique can be deployed in C++ to lead to cleaner, safer, more performant code when building up objects which require multiple steps to initialize.
Submitted by jason on Sat, 09/06/2014 - 14:38
If you make use of inheritance, it's likely that you need to provide a virtual destructor for your classes. Modern compilers will warn if you do not, but this is a pretty recent development.
The problem is best illustrated with an example:
Submitted by jason on Tue, 04/22/2014 - 14:36
July 13, 2009 Reddit covered Release 1.0 of ChaiScript. Many things changed in the last 5 years. Features added, dependencies removed, and performance increased. With all of the changes, we decided it was time to provide a 5 year retrospective and give the world a second first-look at ChaiScript.
To start with, we've celebrated 5 years with a brand new website with organized examples (in progress) and documentation links: http://chaiscript.com
And a continuous integration system:
Submitted by jason on Tue, 08/21/2012 - 15:43
I've been following a few different news sources lately and have found a few good articles and projects I thought I would share.
Submitted by jason on Fri, 06/08/2012 - 08:14
We are proud to announce two new ChaiScript releases:
- Lots of bug fixes
- Performance improvements
- Support for
?: ternary operators
- Support for switch statements
This release is a complete retooling of ChaiScript that uses C++11 instead of Boost.
Submitted by jason on Sun, 02/26/2012 - 17:45
Submitted by jason on Thu, 02/23/2012 - 09:46
Recently, while watching the GoingNative conference, I learned about the new
std::shared_ptr helper function