5 ms·
I developed a terminal emulator, file manager and text editor Deodar 8 years ago in JavaScript/V8 with native C++ calls, it worked but I was extremely disappoin
by exebook 4y ago
I developed a terminal emulator, file manager and text editor Deodar 8 years ago in JavaScript/V8 with native C++ calls, it worked but I was extremely disappointed by speed, it felt so slow like you need to do a passport control each time you call a C++ function.
- ZiiS 4y agoProbably butter smooth after eight years of V8 development and Moore's Law (well whatever passes for it now).
- kllrnohj 4y agoProbably not since single threaded improvement has barely advanced over the last 8 years, and JS/V8 are still in a single threaded world that stopped existing a decade ago.
- exikyut 4y agoOh nice, with a Norton Commander-alike terminal UI. Screenshots at https://sourceforge.net/projects/deodar/ https://sourceforge.net/projects/deodar/ Last-modified 2018 over at https://github.com/exebook/deodar https://github.com/exebook/deodar I'm not sure where the use of Yacc ends and https://github.com/exebook/elfu https://github.com/exebook/elfu begins in the .yy files (which are sprinkled with very algebraic-looking Unicode throughout). The Pascal-like class definitions may be defined in https://github.com/exebook/intervision https://github.com/exebook/intervision. Very interesting project.
- Koromix 4y agoThe official solutions, node-ffi and node-ffi-napi, are extremely slow, with an overhead hundred of times higher than it should be. I don't know what they do to be so slow. I'm making my own FFI module for Node.js, Koffi, as a much faster alternative. You can see some benchmark here, to compare with node-ffi-napi: https://www.npmjs.com/package/koffi#benchmarks https://www.npmjs.com/package/koffi#benchmarks
- SemanticStrengh 4y agoAn interesting alternative would be to not have any FFI and to use transparent polyglot interop between javascript and c++ via GraalJs /sulong