SF
SF

Buffers and C++ on Rising Stack - Community

Scott Frees
October 26, 2016

It's been a few months since I've posted to this blog and I wanted to link to an article I've been working on that just appeared on Rising Stack's new Community blog. The article - Using Buffers to share data between Node.js and C++ is all about making use of Buffers to efficiently move data between JavaScript and C++ - . . .

Read More

C++ Addons as AWS Lambda functions

Creating Node.js AWS Lambda functions that call native binaries

Scott Frees
August 17, 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 17, 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 02, 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 01, 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 04, 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

Archive
  Subscribe by Email and Never Miss a Post