I much prefer Python. To me, TypeScript doesn't really address the general problems I have with JavaScript - which come down to how ergonomic it is for programming (custom key types in data structures - without devolving to strings, pattern matching, a less obtuse encoding of ADTs). Nowadays, with Python's match construct, @dataclass annotations, type annotations, etc. you can write pretty concise compiler code in fairly ergonomic ways. Hacked this together in a vague effort to support my comment. Of course, I'd try to find LLVM bindings in reality. Answer from dostosec on reddit.com
🌐
Programming Language Benchmarks
programming-language-benchmarks.vercel.app › typescript-vs-python
Typescript VS Python benchmarks, Which programming language or compiler is faster
Python · Ruby · Rust · Swift · Typescript · V · Wasm · Zig · Current benchmark data was generated on Fri Aug 01 2025, full log can be found HERE · CONTRIBUTIONS are WELCOME! CPU INFO:[x86_64][4 cores] AMD EPYC 7763 64-Core Processor (Model 1) * -m in a file name stands for multi-threading or multi-processing ·
🌐
Medium
effective-programmer.com › typescript-vs-python-battle-for-the-interpreted-backend-2026-edition-338f25e81fbb
TypeScript vs Python: Battle for the Interpreted Backend (2026 Edition) | Effective Programmer
February 22, 2026 - Is TypeScript really better than Python for backend development? We compare performance benchmarks, type systems, async models, and tackle the ML elephant in the room.
Discussions

Performance difference between Python and Typescript
I ran a benchmark deploying a Helm chart with Pulumi, using two languages: Python and Typescript. It seems that Typescript is quite a bit faster than the Python implementation. I just upped and des... More on github.com
🌐 github.com
3
February 10, 2021
arguments on why the team should use typescript instead of python?
what's in it for them? More on reddit.com
🌐 r/typescript
46
31
October 30, 2022
[deleted by user]
🌐 r/learnprogramming
20
3
December 31, 2023
I don't understand the hype around Typescript
TS owes it's popularity to awfulness of JS. People were tired of subtle bugs due to mess in typing and welcomed ANY potential improvement over JS. I don't like dynamically typed languages, but your comparison with Python is plain wrong - Python is dynamically typed, but it's STRONGLY typed. You can't make '2' + 3 in Python. JS is WEAKLY typed, and it's a mess. It is slower compared to Javascript TS is JS when compiled. You don't have a clue. I don't follow JS, but I've heard they made some improvements and it's actually usable now. I don't doubt that those improvements could be attributed to TS. More on reddit.com
🌐 r/AskProgramming
30
0
May 25, 2024
🌐
Reddit
reddit.com › r/compilers › python v. typescript; which is better to prototype/write a compiler in?
r/Compilers on Reddit: Python v. TypeScript; which is better to prototype/write a compiler in?
October 28, 2024 -

Of course, people have reservations against using either. However, my question is only regarding which is better of the two.

Would the answer be different if,

  1. The compiler targets -> ARM v. NASM

  2. The compiler targets -> LLVM IR

  3. C (like how, for example Nim, does things)

  4. I don't use my own parser/lexer, and use libraries

Top answer
1 of 11
5
I much prefer Python. To me, TypeScript doesn't really address the general problems I have with JavaScript - which come down to how ergonomic it is for programming (custom key types in data structures - without devolving to strings, pattern matching, a less obtuse encoding of ADTs). Nowadays, with Python's match construct, @dataclass annotations, type annotations, etc. you can write pretty concise compiler code in fairly ergonomic ways. Hacked this together in a vague effort to support my comment. Of course, I'd try to find LLVM bindings in reality.
2 of 11
3
I have proto-typed the compiler for Cwerg in python. My plan is to re-implement all the components in C++ as soon as they stabilize. (The backend has already been re-implemented.) I really like the fast turnaround times that Python gives me. I do use type annotations almost everywhere as they improve the IDE support dramatically. But I wish python were a little bit faster. My understanding is that typescript needs to transpile to JS first, so there is a higher startup cost but then it runs faster because of the JIT. So with Typescript you do not necessarily have to re-implement in the compiler in a higher performing language. My compiler frontend currently emits a textual IR which the backend converts to object code. I think your bullets 1-3 do not make much of a difference. Cwerg uses a custom recursive descent parser with pratt parsing for expressions. I have used flex/bison way back then and I think that parsing libs are not that useful, especially if you come up with your own syntax.
🌐
Substack
techwithsyl.substack.com › p › performance-benchmarking-typescript
Performance Benchmarking: TypeScript vs Python for AI Applications
September 8, 2025 - LangChain performance benchmarking ... across typical AI operations. TypeScript executes simple LLM API calls in 1,302.82ms compared to Python's 1,532.61ms, representing a 15% performance advantage....
🌐
Netguru
netguru.com › home page › blog › typescript vs python: which programming language fits your needs?
TypeScript vs Python: Which Programming Language Fits Your Needs?
July 1, 2025 - For web development, TypeScript delivers excellent performance in both client-side and server-side applications. The static typing system enables better optimization during the compilation process, though the final performance depends on the ...
🌐
Hacker News
news.ycombinator.com › item
And if you want types then Typescript is a lot nicer than using Python's typing ... | Hacker News
June 24, 2022 - I used to love Python's list comprehensions etc, but since JS got .map, .filter, and all the other new things I really don't miss them. My impression of async is that it's much nicer in JS than in Python · In the new version of my employer's web app we are moving from JS front-end with Python ...
Find elsewhere
🌐
GitHub
github.com › pulumi › pulumi › issues › 6302
Performance difference between Python and Typescript · Issue #6302 · pulumi/pulumi
February 10, 2021 - I ran a benchmark deploying a Helm chart with Pulumi, using two languages: Python and Typescript. It seems that Typescript is quite a bit faster than the Python implementation. I just upped and destroyed a single Helm chart several times...
Author   ppawiggers
🌐
LogRocket
blog.logrocket.com › home › why is typescript surpassing python?
Why is TypeScript surpassing Python? - LogRocket Blog
June 20, 2024 - Larger applications require tasks that are tedious on the compiler and can slow the execution time significantly in a Python project compared to a Typescript project. In terms of raw performance, Typescript is much faster than Python.
🌐
FatCat Remote
fatcatremote.com › it-glossary › python › python-vs-typescript-compared
TypeScript vs. Python: Pros & Cons | FatCat Remote
TypeScript- Static typing for scalability, strong tooling, integration with JavaScript frameworks. Python- Slower performance, not ideal for memory-intensive or mobile applications.
🌐
Quora
quora.com › Is-Python-slower-than-Typescript
Is Python slower than Typescript? - Quora
Answer (1 of 3): For almost all questions of the type “is Python slower than X”, the answer is “yes, if you’re talking about the CPython implementation”. People just don’t make language implementations that are slower than CPython; if you try to implement a language and CPython beats it, you jus...
🌐
PureCode AI
blogs.purecode.ai › home › typescript vs python: which one is best for you?
TypeScript vs Python: Which One is Best for You? - Blogs
September 15, 2025 - TypeScript benefits from static typing, catching bugs at compile-time, and compatibility with JavaScript libraries, while Python’s dynamic nature allows for ease of use and quick prototyping, with extensive libraries for a variety of domains but potentially at the cost of runtime performance.
🌐
Leanware
leanware.co › insights › typescript-vs-python
TypeScript vs Python: Which Programming Language Should You Choose in 2026?
September 26, 2025 - For large frontend projects, TypeScript helps prevent bugs like undefined property access, incorrect API response handling, and component prop mismatches. This makes it a strong choice where maintainability and long-term productivity matter. Python requires additional layers to run in browsers, such as transpilation or interpretation ( ... Pyodide). These layers add complexity and increase bundle sizes, which can significantly impact performance.
🌐
Programming Language Benchmarks
programming-language-benchmarks.vercel.app › python-vs-typescript
Python VS Typescript benchmarks, Which programming language or compiler is faster
May 1, 2025 - Python · Ruby · Rust · Swift · Typescript · V · Wasm · Zig · Current benchmark data was generated on Fri Aug 01 2025, full log can be found HERE · CONTRIBUTIONS are WELCOME! CPU INFO:[x86_64][4 cores] AMD EPYC 7763 64-Core Processor (Model 1) * -m in a file name stands for multi-threading or multi-processing ·
🌐
Reddit
reddit.com › r/typescript › arguments on why the team should use typescript instead of python?
r/typescript on Reddit: arguments on why the team should use typescript instead of python?
October 30, 2022 -

Hi everyone, I have +/- 4 years of experience with typescript, and recently I've had to work in AWS with python code written by people who are not with the team anymore and who weren't programmers by heart. At first, I was excited to focus on python because it's the fastest and cheapest runtime to use in what we do. I have since become the main developer of the team and constantly push for doing better. However, I have been unable to translate the same high-quality standards that I set for myself to python. I feel like the python ecosystem leaves a lot to be desired (package management, linting configuration, automated testing, strict typing, etc). It's in there, but not nearly as good as in the TS/JS/npm ecosystem.

I personally feel like typescript (and npm) could give us a lot of guardrails to help us help ourselves long term to massively improve our code quality.

I'm a bit nervous (because I really hope we can switch to typescript for future projects) and I'm looking for arguments to make during my pitch. Does anyone have any ideas?

p.s. the speed and cost arguments for python are irrelevant according to my manager

🌐
StackShare
stackshare.io › stackups › python-vs-typescript
Python vs TypeScript | What are the differences? | StackShare
Compare Python and TypeScript - features, pros, cons, and real-world usage from developers.
🌐
Getathenic
getathenic.com › blog › typescript vs python for startup backend: which to choose in 2026
TypeScript vs Python for Startup Backend: Which To Choose in 2026 – Athenic Blog
February 16, 2026 - TypeScript wins for full-stack teams prioritising type safety, performance, and shared frontend/backend code. Python dominates AI/ML workflows with superior libraries (PyTorch, TensorFlow, scikit-learn) and data science ecosystem.
🌐
Webdevtutor
webdevtutor.net › blog › typescript-vs-python-performance
Typescript vs Python Performance: A Comparative Study
The first benchmark measures the performance of each language in calculating the 30th Fibonacci number. This test exercises recursive function calls, which can impact performance. TypeScript outperforms Python in this test, with a 21% reduction in execution time.