300x250 AD TOP

Search This Blog

Pages

Paling Dilihat

Powered by Blogger.

Saturday, February 25, 2017

Node js C++ Addon Overload Resolution - v1.0.0

Node js C++ Addon Overload Resolution - v1.0.0
Module compiles and all tests are passing cross platform, windows/linux/arm (raspberry pi) were tested! Lessons learned: - gcc is a lot less forgiving than visual c++, cryptic error messages when there are circular references between header files. - gcc 6 is missing some minor c++17 implementations (std::size for example). - c++ 11 (and up) - windows header includes some headers by default, in gcc you have to include them explicitly, like cmath. - node-gyp adds c++11 compilation flag which kills gcc's ability to compile c++ 14. it can be removed but why was it even...
Tags:

OpenCV Node js Bindings - HOG Demo

OpenCV Node js Bindings - HOG Demo
This is a simple demo showing that the addon is starting to work, many of the basic objects are implemented and working, including Rect, Point, Matrix, and more. The HOG demo is actually a ported version of pedestrian detection demo from opencv_extras, since the CPU version of VideoCapture only plays mpeg files, I've modified utility.ts (which is ported from utility.h/cpp) to use my own ffmpeg bindings instead. The porting work I've done attempts to include the GPU APIs as well, but until I'll implement cuda/GPU work in node-alvision, its only a stub, but...
Tags:

Saturday, February 18, 2017

Node js C++ Addon Overload Resolution - v0.7.0

Node js C++ Addon Overload Resolution - v0.7.0
Another minor release but with a major new type! - AsyncCallback - this is a new type the module exposes, it allows a stand alone thread to do callbacks into v8 by queuing the call data and signalling libuv to execute it next time the event loop executes, by far the most useful feature of this release! Note that there is an option to change the callback from weak to strong and by that making node js wait until the callback is destroyed before exiting making it useful in many situations. - expose get_type to...
Tags:

Saturday, February 4, 2017

Node js C++ Addon Overload Resolution - v0.5.0

Node js C++ Addon Overload Resolution - v0.5.0
After being stuck with a few tests for node-alvision, I've decided to see why they take so much time. From what I could gather while doing performance analysis, the major bottlenecks were the functions that determine the appropriate overload in general and the ones that do the actual type analysis and convertible checks. Doing type analysis in v8 is not so straight forward as it seems, numbers are convertible to strings and back, almost anything can be converted to boolean and on top of that, checking if a certain object belongs to a C++...
Tags:
Pages (15)1234567 ยป