8 points · by zcbenz · 2y ago · 1 comment
tldr: V8 is not faster than C++. V8 is faster than TypeScript transpiled into C++ with compilets due to lack of "int" type in typescript annotations.
Cheng (@zcbenz) on X
V8 is damn fast, faster than C++ when it comes to numerics. So I just made it possible to compile .ts code to native Node.js module for my TypeScript to C++ compiler. https://t.co/WkZN1qBz6D And I was thinking: well let's make a demo and show how JS could be made 10x faster.
X (formerly Twitter)