Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Native Bindings to node.js - Slides and code for the talk at jsfoo
C++ JavaScript
branch: master
Failed to load latest commit information.
async Dispense with the argument
firststep Added basic code samples
images Add internal fields image
primitives Demonstrate NODE_DEFINE_CONSTANT
simplefunctions Added simple function example and relevant slides
simpleobject Added simpleobject example
strings Added string conversion example
sync Add synchronous callback example
.gitignore Add PDF to repo so people can download it
Makefile Added README
notes.txt Final notes
slides.pdf Updated PDF
slides.rst Add async baton code into slides

Build the C link - JSFoo Pune

This is the code and slides for the talk I gave on writing native node.js addons at JSFoo on Jan 21, 2012.

Makefile           - build *all* the code and the slides (using rst2pdf)
async              - example code for async execution
calljs             - calling JS functions from C++
firststep          - basic module template
images             - images used in the slides
methods            - C++ functions as prototype methods
notes.txt          - speaker notes
objectwrap         - Demonstrate ObjectWrap
primitives         - Primitives example
simplefunctions    - Simple JS functions
simpleobject       - JS objects in C++
slides.pdf         - ???
slides.rst         - Sources for the slides       - rst2pdf stylesheet
strings            - v8::String to C string to and fro
sync               - example code to compare against async


All the code is in the public domain.

The slides and speaker notes (including source material and images) are under the Creative Commons Attribution Share-Alike license which means you may create derivative works, but mention that your work derives from me, by mentioning my name and email address.

If you do find any of this useful, please drop me a line at, I'll feel warm and fuzzy inside :)

Something went wrong with that request. Please try again.