0.0.17 • Published 2 years ago

@acomsys/dash-utils v0.0.17

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

dash-utils

This is the experimental demonstrator for building native C++ addon modules to NodeJS for optimization of some utility functions required by the dash project.

Dependencies

  1. CMake 3.24.1
  2. Ninja 1.11.0
  3. Python 3.10
  4. Node 18.7.0
  5. C/C++ Build Tools (will vary depending on OS)

Concepts

This project aims to study the optimization of certain nodejs functions by using C/C++ bindings on NodeJS (server side) and WASM on the browser (client side).

Node API

Please make sure to read on Node-API. There is also a good getting started guide without using yoman from here, Node-API Setup.

Important!, we are using cmake-js to run builds. This is so we can take advantage of the rich dependency management capabilities of cmake.

Exception Handling

In this project, C++ Exceptions will be enabled. This means that the C++ code will be wrapped in a try/catch block. Thrown exceptions will be caught at NodeJS layer. Read more form here for the details, Node API Exception Handling.

VSCode

Make sure to setup dependencies according to prebuild and cmake-js requirements.

In addition to that, there are a few more environment variables that needs to be set.

  1. NODE_HOME

    Windows: %APPDATA%\..\Local\node-gyp\Cache\16.15.0\include\node

    Mac OS: $HOME/Library/Caches/node-gyp/18.7.0/include/node

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago