3 ms·
I just never learned to write C. I am just a JavaScript guy and the native APIs for Node.js, aside from permissions and OS service libraries, allow you to go d
by austin-cheney 2y ago
I just never learned to write C. I am just a JavaScript guy and the native APIs for Node.js, aside from permissions and OS service libraries, allow you to go down to just above the OS kernel, which has been more than sufficient for my needs.
I guess I just haven't felt the need to go down to the metal for the original applications that I write. If I were more into extending hardware or writing new 3D engines for AAA games I suspect I would view this completely differently.
Performance is not enough of a consideration. If you are comfortable writing native JavaScript without a bunch of unnecessary abstractions you can expect your code to be about 4.5x slower than C, or about 12x-20x slower at arithmetic. By far the greatest performance limitation of JavaScript compared to things like C, C++, Rust, or Zig isn't the execution speed, but that it is garbage collected instead of manually memory managed via pointers.