Автор: Scott Frees
Издательство: Scott Frees
Год: 2016
Страниц: 227
Язык: английский
Формат: pdf (true), azw3, epub
Размер: 10.1 MB
The popularity of Node.js just keeps surging, it's great for so many things. But what if you need serious C/C++ speed? What if you want to move to Node.js, but can't afford to rewrite your existing C++ code?
This book covers in all details integration of Node.js and C/C++ code. Provides all sort of examples. Great examples, up to the point with all possible integration scenarios. If you looking for to write your own node.js/C++ add-ons, this book will teach you everything you need to know.
This book is not a reference manual. You won't find exhaustive API listings here, the book is written around examples - focusing on concepts - not facts that you can find in API docs. I want this to be a practical guide for creating addons - I hope you find it helpful. As you read the book, you'll no doubt want to keep V8 and Node.js documentation handy, as they are indispensable.
This book contains a lot of source code listings. In order to make things look ok for a variety of ebook formats, I've severely limited the number of columns I use for code - which at times makes things look a bit strange. I highly recommend that you visit my github repository, nodecpp-demo, which contains nearly all the code presented in this book.
Who is this book for?
This book is for anyone wanting to start out with or learn a bit more about Node.js C++ addons. Although nowhere in the book do I go out of my way to use advanced features of C++ or jаvascript, I do expect the reader to be fairly well familiar with these languages. Towards the middle of the book (Chapter 4), the book takes a more technical turn - dealing with issues such as threading and shared memory. I try to explain these topics a bit, however generally speaking the reader should already have a bit of multi-threaded programming experience before trying to absorb those examples. While I've used some new(ish) C++ features in my addons, most anyone with a moderate level of C++ experience should have little problem digesting the code. This book is not for someone trying to learn Node.js, nor is it for someone whose never programmed in C++.
Скачать C++ and Node.js Integration: HandBook for creating Node.JS C++ Addons