v8 Javascript Engine

 Introduction to V8

 

A short and simple set of tutorials on the most common tasks when embedding the v8 javascript engine from Google.
Originally written as an #altdevblogaday article over on www.altdevblogaday.org 

Tutorial #1 - A command line script parser. [ Github ]

 Simply executes the javascript file given on the command line. 

Tutorial #2 - Exposing functions [ Github ]

Understanding how to declare functions in the global space.
 Globals like print, exit, etc.

Tutorial #3 - Exposing static objects Github ]

When defining static global objects like 'Debug', or 'Gfx', with static functions,
 this tutorials walks through exposing them and adding functions as well.

Tutorial #4 - Exposing types Github ]

How to expose types and classes to the scripts. This example is a simple
 look at custom types, with explanation on what steps are needed to properly
 represent the object in the script and c++ space,
 including constructors, getters and setters and methods.

 

Notes : 

These are aimed and built with Visual Studio 2008, and there is a download link with binaries for Windows on the Github page.

Posterous theme by Cory Watilo | Mod by FuzzYspo0N