Navigate Select ESC Close

JavaScript is fast enough (don't rewrite your code)

2025-04-21 Science & Technology
72.2k
2.1k
307
Theo - t3․gg
Theo - t3․gg
539.0k subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

Rust is way faster then JavaScript, so obviously we should be rewriting our apps in it right? Right? I'm not so sure... Thank you G2i for sponsoring! Check them out at: https://soydev.link/g2i SOURCES https://nolanlawson.com/2024/10/20/why-im-skeptical-of-rewriting-javascript-tools-in-faster-languages/ https://www.youtube.com/@ryansolid Want to sponsor a video? Learn more here: https://soydev.link/sponsor-me Check out my Twitch, Twitter, Discord more at https://t3.gg S/O Ph4se0n3 for the awesome edit 🙏

Top Comments (10)

@EvanR-r1z 2025-04-21

Yellow haired Theo with mustache jumpscare.

407 8 replies
@casperes0912 2025-04-25

Frankly, not having web devs touch my native app code is a feature

22
@leptanian 2025-04-22

33:12 V8 is written is C++ and single-handedly turned what it used to be a meme language to a powerhouse today. JavaScript IS built on top of other languages. I get the point you're trying to make but I think the fundamental problem imo is JavaScript devs want everyone else to use JavaScript just because they don't want to learn another language.

212 18 replies
@mranthonymills 2025-04-22

The TypeScript compiler is substantially faster as a Go program. Some things are just worth being rewritten in faster languages, especially once the exploratory phase has solidified.

227 13 replies
@jasdhfkajsdfhk 2025-04-22

I dont rewrite it for performance i rewrite it for job security

63 1 replies
@DominikZogg 2025-04-22

As a PHP developer (12 years + 5 years as hobby) and TS/JS developer (5 years) i learned one important thing: I give a shit about what other think about the language i use, as long as i get shit done and like it while doing.

11
@germandavid2520 2025-04-22

CLI tools should be written in compiled languages like Rust, Go, Zig, C, C++ always, no only because they are faster and and consume fewer resources, a single binary executable is way more convenient that something that needs a runtime installed

38 3 replies
@OryginTech 2025-04-21

So you’re telling me I need to convert my conversion of JS to Rust back to JS again??

159 9 replies
@Ads-xk7sn 2025-04-22

First line: sunk-cost fallacy

10 1 replies
@ferdynandkiepski5026 2025-04-22

What wasn't mentioned at all is that JS uses a lot more memory. Just because of the way it is written. Compiled languages will usually be faster. And unless you hit serious skill issues, they will have a significantly lower memory footprint. Also startup time is better.

8

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot