SF
SF

C++ Addons as AWS Lambda functions

Creating Node.js AWS Lambda functions that call native binaries

Scott Frees
August 18, 2016

In this post I'm going to walk you through creating and deploying a Node.js AWS Lambda function that uses a native C++ addon. As you'll see, the process isn't much different than creating normal AWS Lambda functions with Node.js - you'll just need to get your development environment to match the requirements for AWS.

What is . . .

Read More

Streaming data from C++ to Node.js

Scott Frees
July 20, 2016

If you've worked with C++ addons for Node.js before, you know there's a lot of work that goes into making them play well with the rest of your JavaScript program. Once you learn how to keep up with V8 changes using NAN and how to deal with C++/JavaScript data type conversions, you also need to deal with asynchronous addon functions. . . .

Read More

C++ and Node.js Integration - eBook Published

Scott Frees
June 18, 2016

I’ve got good news, I’ve finally completed the C++ and Node.js Integration ebook!I want to thank all of you for signing up for my newsletter to keep posted about the book - you kept me motivated! Thanks also to all the people who reached out to me with ideas, tips, and insights into the topic - you were extremely helpful.

You can buy the book . . .

Read More

Type conversions from JavaScript to C++ in V8

Scott Frees
April 03, 2016

Learning how to pass information from JavaScript to C++ addons can be tricky. Confusion stems from the extreme differences between the JavaScript and C++ type system. While C++ is strongly typed ("42" is not an integer... it's a string, and only a string!), JavaScript is very eager to convert datatypes for us.

JavaScript . . .

Read More

How (not) to access V8 memory from a Node.js C++ addon's worker thread

Understanding Persistent Handles and Isolate's thread rules

Scott Frees
February 02, 2016

When we create C++ addons for Node.js, we have two strategies - synchronous or asynchronous processing. A synchronous C++ addon does it's number crunching in the thread that Node.js's event loop executes in. This, unfortunately, blocks all JavaScript execution until the C++ addon completes it's work and returns control back to . . .

Read More

Async Addons with Nan for the New Year (and eBook content updates)

Scott Frees
January 05, 2016

Happy New Year everyone!

Last month I let you all know I was starting a blog series about Getting C++ to the Web using Node.js. My plan was to get the whole series out by the end of the year, and I just made it! The last part was posted just a couple of days ago, it focused on asynchronous addons using Nan. I also covered automation and . . .

Read More

Building an Asynchronous C++ Addon for Node.js using Nan

Getting your C++ to the Web with Node.js - Part 4

Scott Frees
January 01, 2016

This post is the fourth and final in a series dedicated to showing you how to get your C++ application onto the web by integrating with Node.js. In the first post, I outlined three general options:

  1. Automation - call your C++ as a standalone app in a child process.
  2. Shared library - pack your C++ routines in a shared library (dll) and call . . .

Read More

Archive
  Subscribe by Email and Never Miss a Post