this post was submitted on 13 Jul 2026
62 points (95.6% liked)

Programming

27744 readers
347 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS
top 11 comments
sorted by: hot top controversial new old
[–] ICastFist@programming.dev 20 points 5 days ago

When Jarred announced the Rust rewrite, we were ecstatic. It seemed too good to be true. I have to admit, I didn't think the technology was there, to pull off this stunt. But he did it, and now I'm metaphorically sipping delicious tea from a mug that says "It Tastes Like It's Not My Problem Anymore".

The best victory comes from a fight you don't need to fight, as Sun Tzu said.

[–] Kissaki@programming.dev 14 points 5 days ago* (last edited 5 days ago)

Zig compiler project is about 600,000 lines of code - roughly the same size as Bun before the rewrite, and I'm clocking 16s to build from scratch with a clean cache, followed by 90ms for each subsequent edit with incremental compilation enabled.

That's impressive compilation performance. And so most certainly when contrasting it to Rust.

Brb, I am rewriting everything in Zig.

[–] ExperimentalGuy@programming.dev 12 points 5 days ago

I always support the underdog. Jarred sounds like an ass.

[–] craftrabbit@lemmy.zip 7 points 4 days ago

Oh, Rust and Zig. Two languages, continually compared and pit against each other, even though they are both such nice and innovative projects in their own right.

[–] aoidenpa@lemmy.world 6 points 5 days ago* (last edited 5 days ago)

I started learning zig after this post and learning about Mr.Kelley's views on AI.

[–] fizzle@quokk.au 2 points 5 days ago (2 children)

Is there another nodejs alternative that supports typescript in a similar way?

[–] Kissaki@programming.dev 11 points 5 days ago (2 children)

Does Deno fit your needs? It is also a drop-in replacement to a large degree, but is somewhat focused on improving the related tooling environment.

I'm not very involved in the (non-browser) JS ecosystem, but it's my tool of choice.

[–] moonpiedumplings@programming.dev 6 points 5 days ago* (last edited 4 days ago)

Deno is pretty interesting because it has built in sandboxing. By default, no code can even access the network. Everything must be explicitly allowed, including network access and environment variables: https://docs.deno.com/runtime/fundamentals/security/

Access can be scoped pretty granularly as well, only allowing access to specific websites or env variables.

I really like this model since it offers a strong protection against secrets stealers, which have hit NPM extremely frequently. No more of malicious NPM packages scraping the whole system to find secrets.

It does have a performance tradeoff compared to Bun. Bun is (was?) the fastest, Node was the slowest, Deno was in the middle.

[–] fizzle@quokk.au 2 points 5 days ago (1 children)

This looks nice actually. I can't remember but I think there was some disadvantage compared to bun.

[–] moonpiedumplings@programming.dev 7 points 5 days ago* (last edited 5 days ago)

Performance, it's slightly slower compared to Bun, but it is faster than Node. But it has sandboxing, which is neat.

[–] bitfucker@programming.dev 1 points 5 days ago

Not to the degree where bun support it. But NodeJS itself has now supported running typescript for a while