1. Мы открыли доступ к ранее скрытому контенту.

    Вам доступно более 44 000 видео уроков, книг и программ без VIP статуса. Более подробно ЗДЕСЬ.
    Скрыть объявление

Активно C++ and Node.js Integration. Scott Frees (2016)

Тема в разделе "Книги, аудиокниги", создана пользователем Train, 24 сен 2016.

0/5, Голосов: 0

Набор участников
1640.00 руб.
0 из 15
Расчетный взнос:
121 руб.
  • (Записывайтесь, чем больше участников, тем меньше расчетный взнос)

  1. Train

    Train Администратор Команда форума


    • - Книга по написанию плагинов для Node.js на C++

      - Формат PDF, HTML, epub


    Table of Contents

    This book is a major expansion on a Scott Frees - C++ processing from Node.js on my blog on building C++ addons for Node.js. I've expanded each of the topics into full chapters, and added four completely new chapters. The book also contains more code examples, and coverage of the latest V8 API changes.

    Chapter 1: Introduction to Node.js Addons
    Learn the basics of creating Node.js Addons and how to use node-gyp to create and test them. We'll go through a few quick examples, and outline the rest of the book.

    Chapter 2: Understanding the V8 API
    Learn about the C++ underpinnings of Node.js and how it all works. You'll see why Node's interface with C++ is so efficient, and how V8's design effects how you write your addons. In this chapter we'll cover all the V8 data types, and how the V8 memory system can be accessed from C++.

    Chapter 3: Basic Integration Patterns
    See how to create your first full-featured C++ addon and pass JavaScript objects to C++. We'll look at turning your JavaScript objects into first-class objects matching a C++ class definition and how to return data back to Node.js.

    Chapter 4: Asynchronous Addons
    What good is a Node.js module if it blocks your event loop? In this chapter you'll learn how to do the heavy computational task you've written in C++ asynchronously. Just give your C++ code a JavaScript callback function, and your JavaScript can just keep on running until the C++ is done.

    Chapter 5: Object Wrapping
    If you have existing C++ classes that you want to be able to use as "native" JavaScript objects, then you'll need to learn to wrap your C++ classes with V8 data structures.

    Chapter 6: Native Abstractions for Node (NAN)
    The V8 API has undergone many "breaking" changes - and since different version of Node.js use different versions of V8, the situation can get pretty complex to manage. This chapter will show you how to work at a higher level of abstraction using GitHub - nodejs/nan: Native Abstractions for Node.js - the Native Abstractions for Node.js library. Using Nan, you'll defend yourself from the changing V8 API.

    Chapter 7: Streaming between Node and C++
    Learn how to build great interfaces to your C++ addon by supporting an event emitter and streaming interface for both sending data to you addon, and returning a data asynchronously to JavaScript.

    Chapter 8: Publishing Addons
    Publishing your typical Node module to an C++ and Node.js Integration repo is pretty simple - but since your C++ is native executable code, there are some hoops you'll need to jump through so your addon works on all operating systems. In this chapter, we'll cover solutions to common pitfalls involved in publishing/deploying C++ addons.

    Appendix A: Getting your C++ to the Web
    Addons aren't the only way of moving C++ to the web - in this section we'll take a look at some of the other options, like automation and shared libraries.

    Appendix B: Buffers
    One of the most efficient ways to move data between JavaScript and your C++ addons is by using buffers - which get stored outside V8's memory. In this section we'll go through an image processing example that uses buffers to convert pixel data from PNG to BMP.
Мы в Telegram: Сохранить в соц. сетях:
Оценить эту тему:
Похожие темы
  1. Солнышко
  2. Солнышко
  3. Солнышко
  4. InfoNews