node.js Native Extensions

or, what to do when JS is not good enough

Ivan Vergiliev

So, you need more speed?

How should we do that?

Call C++ from Javascript!

A typical CommonJS module

A basic C++ extension module

Build with node-gyp

The sort function

Are we done?

Going async

Async Sort

Async Sort

Reasons to avoid native extensions?

When to avoid going the C++ way

References

/

#