News for hackers. Stuff that matters.
Re:Zig: Build System Reworked by biffgiff on Saturday May 30, 2026 @09:40AM (#48336074)
Why would I want to use this over, say, Node.js and TypeScript?
Re:Zig: Build System Reworked by araoz on Saturday May 30, 2026 @10:09AM (#48336385)
I 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.
Re:Zig: Build System Reworked by throwatdem12311 on Saturday May 30, 2026 @09:55AM (#48336223)
I suggest you try using Ghostty (written in Zig) for a bit and compare it to another terminal like Hyper (written in JavaScript).
Re:Zig: Build System Reworked by AlienRobot on Saturday May 30, 2026 @11:22AM (#48337216)
What?

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.

Re:Zig: Build System Reworked by yarn_ on Sunday May 31, 2026 @09:28AM (#48345530)
Because they're for two completely different domains?
Re:Zig: Build System Reworked by shirol on Sunday May 31, 2026 @10:05AM (#48345785)
Wish I had this mindset. If I did, I would already have many published apps :(