News for hackers. Stuff that matters.
Re:Proton Native – React Native for the desktop by parro-it on Friday May 04, 2018 @12:45PM (#16995984)
Not a simple rewrite, but neither a task that require a C wizard... The current version of libui-node implements C++ classes that wraps libui C function. They are exposed directly to JS. This experiment implements N-API C functions that wraps libui C function. Then, a set of JS classes wrap them, offering the same public API as libui-node.

Currently, I implemented windows, boxes, and multiline entry. I have to compare this experiment with the curent implementation in terms of erformance, memory consuption etc. before to decide to continue with N-API or not.

Re:Proton Native – React Native for the desktop by parro-it on Friday May 04, 2018 @01:48PM (#16996584)
FYI, I just wrote the comparison I was speaking above: https://github.com/parro-it/libui-napi/issues/11
Re:Proton Native – React Native for the desktop by zengid on Saturday May 05, 2018 @12:48AM (#17000376)
Pretty impressive results!
Re:Proton Native – React Native for the desktop by parro-it on Tuesday May 08, 2018 @04:04PM (#17024394)
Yes, N-API seems to be superior. And it's a particular good fit because libui itself has a C API