Hacker News new | ask | show | jobs
by lynndylanhurley 1745 days ago
Rust is not well suited for the same things as javascript / typescript / jsx / etc.

Also javascript and typescript are not well suited for compilers and dev tooling.

It shouldn't be seen as a negative that Deno is using rust in places where it really shines, which is a totally different use case than what deno is typically used for.

1 comments

Other than browser based applications why would you choose JavaScript/TypeScript etc over Rust?

Developer tooling is not complicated and there is plenty of existing tools written in JavaScript, so it seems weird when they rule out there own language as not good enough. It should make anyone think twice before using Deno server side if it is not good enough for themselves.

This sounds like an argument from 25 years ago. We are well past the false idea that compiled no-runtime languages are better for all use cases.
What is a use case for an interpreted runtime language?
API development. People consider the performance of Node good enough, and they can use the same language for frontend and backend.
To answer a more specific version of your question:

Specifically, Typescript has a larger talent pool of experts to hire from. Although, I do hope that changes for Rust over the next 5 years.

Much easier and faster development and maintenance for applications that don't have strong performance or safety requirements.
The parts used to make your car were likely delivered to the factory by a semi truck, and not by another car. Should you buy a semi truck to go to the mall then, since even the carmaker thinks that cars aren't good enough? Obviously not. Different requirements are a thing.