I don't think you'll find people in the rust subreddit arguing for JavaScript over Typescript :) Answer from 50u1506 on reddit.com
🌐
Reddit
reddit.com › r/rust › is typescript + rust a good stack?
r/rust on Reddit: Is TypeScript + Rust a good stack?
September 29, 2024 -

Currently, I only work in TypeScript but I am very fond of learning low level optimizations and working in more type safe languages rather than using high level languages.

I will be learning rust regardless of any comments, but I was curious, what is the general opinion regarding this?

Using Typescript for frontend (before anyone says just use javascript, I don't want to) and Rust for backend?

What I'm assuming would work is:

  • Rust backend and Typescript frontend.

  • Rust everything and TypeScript integration to frontend for the rust application compiled using wasm.

I just don't wanna use js or look at a js file.

I understand it will also require the knowledge and use of wasm, correct?

Thoughts please.

Edit:

Asking for personal learning and not for any special project.

🌐
GitHub
github.com › Aleph-Alpha › ts-rs
GitHub - Aleph-Alpha/ts-rs: Generate TypeScript bindings from Rust types
Generate typescript type declarations from rust types
Starred by 1.6K users
Forked by 138 users
Languages   Rust
Discussions

With types on Python, and on Typescript, is here much benefit to using Rust?
I understand that the compiler helps catch bugs, and undefined behaviour, and I can't help but asking myself: how frequent are those in Python, or Typescript? What I do "suspect" is that mutating Objects/Dicts and Arrays/Lists can be overlooked by a type system, and Rust would save those errors, ... More on users.rust-lang.org
🌐 users.rust-lang.org
1
1
May 21, 2025
Rewriting TypeScript in Rust?
But then I find some third party code which seems to use the kitchen sink approach to typing, AKA the "look at how smart we are" approach, and it's a nightmare to understand. A type system is supposed to make code easier to work with, by the time you're spending more time understanding the ... More on news.ycombinator.com
🌐 news.ycombinator.com
170
237
December 17, 2022
Can i learn rust as Typescript developer. : rust
🌐 r/rust
Dune: A new JavaScript and TypeScript runtime built in Rust
Hi all! 👋 I would like to share a pet project of mine that I’ve been working on for 10 months now and it’s a runtime built in Rust that runs JavaScript and TypeScript programs. Disclaimer: Dune was built for fun and experimentation and it's not trying to compete with production-ready runtimes like Node.js and Deno. Motivation: I was at a point where I wanted to learn more about Node.js' internals and I wanted to use Rust to build something challenging (to challenge my programming skills) so I said to myself, LET'S GO and see how hard it will be. (turns out a lot 😅) P.S. The event-loop that Dune is using was built separately and designed to be completely runtime agnostic so it can be used in other Rust projects. (Publish it to crates.io as a separate lib is a possibility) Dune's Event Loop: https://gitlab.com/alexalikiotis/dune-event-loop (soon to be moved to GitHub) P.S.2 I copied and modified the installation script from Deno but I haven't actually tried it. Any feedback (especially on the Rust side) is appreciated. More on reddit.com
🌐 r/rust
28
206
August 2, 2022
🌐
Contentful
contentful.com › blog › rust-typescript-guide
Rust and TypeScript: A comprehensive guide to their differences and integration | Contentful
December 4, 2024 - This allows classes to implement ... and maintain. Easier to learn than Rust: TypeScript is a relatively high-level language, making it simpler than other languages such as Rust or C....
🌐
The New Stack
thenewstack.io › home › microsoft typescript devs explain why they chose go over rust, c#
Microsoft TypeScript Devs Explain Why They Chose Go Over Rust, C# - The New Stack
March 20, 2025 - In a comment on Hacker News, Cavanaugh reminded readers that in 2022 the SWC (Speedy Web Compiler) project also chose Go for a port of the TypeScript type checker tsc. (Project founder DongYoon Kang noted that tsc “uses a lot of shared mutability and many parts depend on garbage collection. Even though I’m an advocate and believer in Rust, it doesn’t feel like the right tool for the job here.”)
🌐
Total TypeScript
totaltypescript.com › rewriting-typescript-in-rust
Rewriting TypeScript in Rust? You'd have to be... | Total TypeScript
May 29, 2023 - The main problem is that tsc is itself "written in TypeScript - which does not support parallel processing". Rewriting tsc in a native language, like Rust, could speed it up immensely.
🌐
Medium
medium.com › nerd-for-tech › curious-why-microsoft-did-not-use-rust-to-rewrite-the-typescript-compiler-16f1611bfd1d
Curious why Microsoft did not use Rust to rewrite the TypeScript Compiler? | by Olenin Slava | Nerd For Tech | Medium
March 26, 2025 - After the TypeScript team announced their transition to Go, all my social channels were filled with either complaints about “Why not Rust” or the victorious “Go is beating Rust.”
🌐
Bretcameron
bretcameron.com › blog › my-experience-learning-rust-as-a-typescript-developer
My experience learning Rust as a TypeScript developer | Bret Cameron
February 29, 2024 - In some ways, though, Rust does goes further than other low level languages. For example, it provides at least eight string types versus the one char[] type of C, which help us avoid footguns. (Though, fear not, as most use-cases are covered by &str and String!) TypeScript, of course, doesn’t offer anywhere near this level of granularity because, by design, JavaScript doesn’t want us to worry about memory management and so allocates memory for us.
Find elsewhere
🌐
This Dot Labs
thisdot.co › blog › how-to-get-into-rust-as-a-typescript-developer
How to get into Rust as a TypeScript Developer - This Dot Labs
February 14, 2023 - Here is a similar declaration of variables, but this time, in Rust. ... let _an_int: i32 = 32; let _a_string: &str = "Hello, world!"; let _a_bool: bool = true; let _an_array: [i32; 3] = [1, 2, 3]; Writing this code gives me the same feel of writing TypeScript, a huge plus considering how much I love using it.
🌐
Prisma
prisma.io › blog › from-rust-to-typescript-a-new-chapter-for-prisma-orm
Prisma ORM Architecture Shift: Why We Moved from Rust to TypeScript
January 29, 2025 - Why is Prisma ORM switching from Rust to TypeScript? Read the full architectural rationale and what the new Query Compiler means for your app's speed
🌐
Rustfinity
rustfinity.com › blog › generate-typescript-bindings-for-rust
Generate TypeScript Bindings for Rust
August 10, 2024 - Learn to generate TypeScript bindings for Rust using the ts-bind crate to write type-safe and efficient web applications.
🌐
TypeScript
typescriptlang.org
TypeScript: JavaScript With Syntax For Types.
TypeScript extends JavaScript by adding types to the language. TypeScript speeds up your development experience by catching errors and providing fixes before you even run your code.
🌐
Hacker News
news.ycombinator.com › item
Rewriting TypeScript in Rust? | Hacker News
December 17, 2022 - But then I find some third party code which seems to use the kitchen sink approach to typing, AKA the "look at how smart we are" approach, and it's a nightmare to understand. A type system is supposed to make code easier to work with, by the time you're spending more time understanding the ...
🌐
Rybicki
rybicki.io › blog › 2023 › 06 › 27 › rust-crate-into-typescript-library.html
Using WebAssembly to turn Rust crates into fast TypeScript libraries | functional fascinations
June 27, 2023 - Here’s our updated TypeScript module in lib/index.ts. All of the types are TypeScript equivalents of the types from our Rust code (for example, bool becomes boolean, Option<String> becomes optional string’s, and simple enums become string literal types).
🌐
Corrode
corrode.dev › learn › migration-guides › typescript-to-rust
Migrating from TypeScript to Rust | corrode Rust Consulting
December 13, 2024 - The developer experience differs in two key ways: Rust has stronger type guarantees but slower compile times compared to TypeScript. Many developers find this tradeoff worthwhile, especially because you can write high-level Rust code without ...
🌐
Smallcultfollowing
smallcultfollowing.com › babysteps › blog › 2025 › 07 › 31 › rs-py-ts-trifecta
Rust, Python, and TypeScript: the new trifecta · baby steps
July 31, 2025 - And the fundamentals for those 3 languages look pretty strong to me: Rust targets system software or places where efficiency is paramount. Python brings a powerful ecosystem of mathematical and numerical libraries to bear and lends itself well to experimentation and prototyping. And TypeScript, of course, is compiled to JavaScript which runs natively on browsers and the web and a number of other areas.
🌐
ThePrimeagen
theprimeagen.github.io › rust-for-typescript-devs
Rust For Typescript Devs
The greatest course you will ever take on Rust for a TypeScript Developer.
🌐
CodeConvert AI
codeconvert.ai › rust-to-typescript-converter
Rust to TypeScript Converter
This free online converter lets you convert code from Rust to TypeScript in a click of a button.
🌐
Valand
valand.dev › blog › post › from-rust-to-typescript
From Rust to TypeScript | valand.dev
September 12, 2020 - Over the course of tinkering things with Rust, I realized that writing Rust code makes me a better coder in other languages. This article will describe how my attempt to push the best in Rust's language design into TypeScript, my main language, without altering the language itself.