Exacting for TypeScript 7, which is coming this summer—and it's 10x faster. The compiler is being completely rewritten in Go (codenamed "Project Corsa"), and early benchmarks are wild: • VS Code codebase: 77.8s → 7.5s (10.4x speedup) • Playwright: 11.1s → 1.1s (10.1x faster) • TypeORM: 17.5s → 1.3s (13.5x faster) What this actually means: ✅ Editor startup drops from ~10 seconds to ~1 second ✅ Auto-imports, go-to-definition, rename—all instant ✅ CI builds that actually finish before your coffee gets cold ✅ Memory usage roughly cut in half Why Go and not Rust? The TypeScript team chose Go because its patterns closely mirror existing TypeScript code, making the port line-for-line compatible. Plus, goroutines handle the heavy AST traversal and type-checking parallelism that JavaScript's single-threaded event loop After years of "TypeScript is slow" complaints in large monorepos, this changes everything. The language service was the last bottleneck—now it's about to become the fastest part of your stack. #TypeScript #JavaScript #WebDevelopment #DeveloperExperience #Programming #TechNews #Microsoft #GoLang
TypeScript 7: 10x Faster with Go Rewrite
More Relevant Posts
-
Rust is faster than TypeScript. Except when it isn't. A team at OpenUI swapped their Rust WASM parser for a TypeScript rewrite — and got 2.2x to 4.6x faster performance. The Rust code stayed the same. It just no longer ran. Here's what actually happened: Rust was never the bottleneck. Every call crossed the WASM-JavaScript boundary, which meant copying strings between memory spaces, serializing to JSON, copying results back, and deserializing in V8. That overhead dwarfed any gains from compiled code. When they moved to TypeScript, V8's JIT compiler handled the computation fast enough that Rust's native speed advantage stopped mattering. Then they fixed the real problem: an O(N²) algorithm hiding in the caching layer. Switching to O(N) caching gave the largest speedup by far — not the language change. This is the pattern I see constantly in engineering decisions. Teams spend months optimizing the wrong layer. They pick the "faster" technology, skip the profiling, and end up slower than a naive implementation in the "slower" one. Measure first. Profile before you choose your stack. The bottleneck is almost never where you think it is. The engineers who compound fastest aren't the ones who know the most languages — they're the ones who know where the actual cost is. What's the most counterintuitive performance lesson you've learned building software? #SoftwareEngineering #Performance #WebDevelopment #Rust #JavaScript #Engineering #TechLeadership Join Agentic Engineering Club → t.me/villson_hub
To view or add a comment, sign in
-
-
🤯 TypeScript 7 will be written in Go. Yes, you read that right. Microsoft announced that TypeScript 6.0 will likely be the last version built on the current JavaScript codebase. The next generation TypeScript 7 compiler is being rewritten in Go to unlock: ⚡ Much faster compilation ⚡ Native multi-threading ⚡ Better scalability for large codebases ⚡ Deterministic type checking This means the future TypeScript compiler will behave more like a native toolchain (similar to Rust / Go tooling) instead of a Node.js tool. Meanwhile TypeScript 6.0 RC acts as the bridge between TS 5 and TS 7. Some notable additions in TS 6: • "RegExp.escape()" support • New "Map.getOrInsert()" methods • ES2025 target support • Temporal API types • "--stableTypeOrdering" flag to prepare for TS7 Install the RC: npm install -D typescript@rc The TypeScript ecosystem is evolving fast. If you're building with React, Next.js, Node, or full-stack TypeScript, this transition will be very interesting to watch. I’m currently experimenting with TypeScript + Next.js + tRPC tooling to understand these changes deeper. What do you think about TypeScript moving toward a native compiler? #typescript #javascript #webdev #nextjs #programming
To view or add a comment, sign in
-
-
🚨 Rust is slowly taking over the JavaScript ecosystem. A new project called 𝗢𝘅𝗰 (𝗧𝗵𝗲 𝗝𝗮𝘃𝗮𝗦𝗰𝗿𝗶𝗽𝘁 𝗢𝘅𝗶𝗱𝗮𝘁𝗶𝗼𝗻 𝗖𝗼𝗺𝗽𝗶𝗹𝗲𝗿) is trying to rebuild the entire JS toolchain. Not just one tool. The whole stack: • Linter → Oxlint • Formatter → Oxfmt • Parser • Transformer • Minifier • Module resolver All written in 𝗥𝘂𝘀𝘁 for extreme performance. Some numbers are wild: ⚡ Up to 𝟭𝟬𝟬× 𝗳𝗮𝘀𝘁𝗲𝗿 𝘁𝗵𝗮𝗻 𝗘𝗦𝗟𝗶𝗻𝘁 ⚡ Around 𝟯𝟬× 𝗳𝗮𝘀𝘁𝗲𝗿 𝘁𝗵𝗮𝗻 𝗣𝗿𝗲𝘁𝘁𝗶𝗲𝗿 The key idea is simple: Parse the code 𝗼𝗻𝗰𝗲, reuse the same AST across all tools. Which means 𝗳𝗮𝘀𝘁𝗲𝗿 𝗯𝘂𝗶𝗹𝗱𝘀, 𝗳𝗮𝘀𝘁𝗲𝗿 𝗖𝗜, 𝗳𝗮𝘀𝘁𝗲𝗿 𝗱𝗲𝘃𝗲𝗹𝗼𝗽𝗲𝗿 𝗳𝗲𝗲𝗱𝗯𝗮𝗰𝗸. JavaScript might still be the language we write… But Rust is quickly becoming the language that 𝗽𝗼𝘄𝗲𝗿𝘀 𝘁𝗵𝗲 𝘁𝗼𝗼𝗹𝗶𝗻𝗴. Learn more: https://oxc.rs/ Do you think Rust will dominate the future of JavaScript tooling? #javascript #webdevelopment #rust #programming #developers #frontend
To view or add a comment, sign in
-
-
How TypeScript Compiles Your Code – Step by Step! Ever wondered what happens behind the scenes when you run tsc? TypeScript does a lot more than just adding types to JavaScript. It has a 5-stage compiler workflow that ensures your code is safe, structured, and ready to run. In this carousel, we’ll break down each stage: 1️⃣ Lexer – Converts your code into tokens 2️⃣ Parser – Builds the Abstract Syntax Tree (AST) 3️⃣ Binder – Tracks symbols, scopes, and flow nodes 4️⃣ Checker – Performs syntax and type checking 5️⃣ Emitter – Generates .js, .d.ts, and .map files Swipe through to see each stage visually, understand how TypeScript works under the hood, and get a glimpse of why it’s so powerful for developers! 💻 #TypeScript #WebDevelopment #Frontend #Programming #Developers #CodingTips #JavaScript
To view or add a comment, sign in
-
If you're still manually writing useMemo and useCallback everywhere, you might be optimizing for a problem that no longer exists. The React Compiler hit v1.0 in late 2025. What that means in practice: memoization is now handled at build time, automatically. The compiler analyzes your component tree and decides what to cache. You don't have to. Which means a lot of the useMemo(...) scattered across codebases today is either redundant — or worse — masking component design issues that should have been fixed instead. I've been thinking about how much time I've spent on manual memoization over the years. Not just writing it, but debugging stale closures, wrong dependency arrays, and explaining to every new dev why wrapping a click handler in useCallback probably isn't helping. If you're starting a new React project right now: test with the compiler first. Optimize manually only where the profiler tells you to. The shift isn't just about tooling — it's about what "thinking in React" actually means now. What's your team's current stance on the React Compiler in production? #React #TypeScript #FrontendDevelopment #WebDev #JavaScript
To view or add a comment, sign in
-
TypeScript 6.0 RC arrives as a bridge to a faster future. The latest release of Microsoft's popular JavaScript superset clears the decks for a ground-up rewrite — and raises the bar for how developers are expected to write code.
To view or add a comment, sign in
-
TypeScript 6.0 is here — but it’s not what you expect 👀 This isn’t just another version update of TypeScript. It’s a transition point. In fact, TypeScript 6.0 will be the last version built on the current JavaScript-based compiler — acting as a bridge to TypeScript 7.0, which is being rewritten in Go for massive performance improvements. --- ⚙️ What’s new (and important)? • Improved type checking → catches more bugs early • Better type inference → smarter and cleaner code • Support for modern JS features (like es2025) • New standard APIs (e.g., Temporal, RegExp updates) • --stableTypeOrdering → smoother migration to future versions --- 💡 But here’s the real story: TypeScript 6.0 is less about features… and more about preparing developers for the future. It’s aligning: ✔ modern defaults ✔ stricter type systems ✔ cleaner configurations So that upgrading to TypeScript 7.0 becomes seamless. --- 🚀 Why this matters The next version (TS 7.0) is expected to bring: • Faster builds • Better scalability • Native performance (Go-based compiler) Meaning: Your dev experience is about to get significantly faster. --- 📌 Takeaway TypeScript 6.0 isn’t flashy. It’s foundational. Sometimes the most important updates are the ones that prepare you for what’s coming next. --- Are you planning to upgrade early or wait for 7.0? 👇 #TypeScript #JavaScript #WebDevelopment #Frontend #Backend #Programming #SoftwareEngineering JavaScript Mastery TypeScript
To view or add a comment, sign in
-
-
After 7 years of writing TypeScript, I still see the same pattern trip up even experienced devs: over-relying on `any` as an escape hatch instead of modeling uncertainty properly. The fix is usually one of these three: 1. Use `unknown` instead of `any`. It forces you to narrow the type before using the value. Safer, and it documents intent. 2. Use discriminated unions when a value can be one of several shapes. The compiler will catch exhaustiveness gaps for you at compile time, not at 2am in production. 3. Use template literal types for stringly-typed APIs. Instead of `string`, write `${string}-id` or a union of valid strings. Suddenly your editor catches typos you never would have caught in review. The shift I had to make mentally was treating TypeScript not as a linter on top of JS, but as a way to encode business rules in the type system itself. Once you do that, the compiler becomes your senior engineer who never sleeps. Still learning this every day. What's a TypeScript pattern that changed how you think about code? Drop it in the comments. #TypeScript #JavaScript #WebDevelopment #FullStack #SoftwareEngineering
To view or add a comment, sign in
-
✨ Day 7 – Loops finally made sense! I used to feel confused seeing different loops in JavaScript… "for", "for...of", "for...in" — all looked similar at first. But today, after practicing, something finally clicked 💡 Now I understand: • "for" → when I know how many times to run • "for...of" → to get values from arrays • "for...in" → to get indexes or object keys Small step, but a big clarity moment for me. Still learning, still improving… and staying consistent 🔥 #Day7 #JavaScript #Loops #LearningJourney #Coding #Consistency
To view or add a comment, sign in
-
💡 TypeScript Array Methods Every Developer Should Know Working with arrays becomes even more powerful in TypeScript thanks to type safety and better tooling. Here are some of the most useful array methods I use regularly: 🔹 map() – transforms every element in an array while maintaining types 🔹 filter() – returns elements that match a condition 🔹 find() – finds the first element that satisfies a condition 🔹 findIndex() – returns the index of the first matching element 🔹 fill() – fills elements in an array with a static value 🔹 some() – checks if at least one element meets a condition 🔹 every() – checks if all elements satisfy a condition Mastering these methods helps you write cleaner, safer, and more maintainable TypeScript code. Which TypeScript array method do you use the most in your projects? 👇 #TypeScript #JavaScript #WebDevelopment #Programming #Coding #Developers
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development