3 ms·
Why would I want to use this over, say, Node.js and TypeScript?
by biffgiff 5mo ago
Why would I want to use this over, say, Node.js and TypeScript?
- throwatdem12311 5mo agoI suggest you try using Ghostty (written in Zig) for a bit and compare it to another terminal like Hyper (written in JavaScript).
- araoz 5mo agoI believe if the work you do fits well with Node & TS, you have no reason to use zig (other than for learning or curiosity). Like, if you don't need every drop of performance, memory layout & control, there's more downsides to using zig. Idk, cruds or "enterprise" stuff or websites don't benefit from zig.
- AlienRobot 5mo agoWhat? You can't run Node on embedded systems, because there isn't enough memory. A compiled zig program can be only several kilobytes with no depedenencies. Array access programmed in low-level languages can be optimized with SIMD and parallelization, which will be orders of magnitude faster than the same thing on Javascript. Text processing, image manipulation, video processing, hashing, etc. There is like infinite reasons to not use Javascript.
- yarn_ 5mo agoBecause they're for two completely different domains?
- shirol 5mo agoWish I had this mindset. If I did, I would already have many published apps :(