Hello JavaScript Enthusiasts!
Welcome to a new edition of “This Week in JavaScript“!
Today, we’re covering Microsoft’s game-changing TypeScript speed boost, Google’s CPU-friendly AI model, and HTML’s exciting new declarative attributes, plus exciting new tools you won’t want to miss!
10X Faster TypeScript
Microsoft is porting the entire TypeScript compiler to Go, and the results are mind-blowing! Let’s break down what this means:
Why This Matters:
- 10X Speed Boost: Initial benchmarks show 10x improvement across the board, with some codebases seeing up to 13.5x faster compile times!
- Developer Experience: Lightning-fast IDE experiences and near-instant error checking are coming your way
- Timeline: Command-line typechecking targeted for mid-2025, with full language service support by year-end
This transformation will be especially valuable for developers working with large TypeScript projects!
HTML Gets Declarative with New Attributes
The latest Chrome (and preview versions of Firefox and Safari) now support two new HTML attributes that reduce the need for JavaScript:
What’s New:
- command and commandfor: Add declarative actions to HTML buttons without directly writing JavaScript
- Simplified Code: Open a popover menu with just Open Menu
- Accessibility Included: These attributes automatically handle accessibility concerns like aria-expanded
Less code, more functionality – that’s always a win for developers!
Gemma 3: Google’s CPU-Friendly AI Model
Google just launched “the most capable model you can run on a single CPU or TPU,” opening new doors for JavaScript developers:
Key Features:
- Size Options: Available in various sizes (1B, 4B, 12B, and 27B parameters)
- Multilingual: Supports an impressive 140 languages
- Context Power: Comes with a massive 128K token context window
- Resource Efficiency: Implement powerful AI capabilities without massive computational resources
This is a game-changer for JavaScript developers looking to add AI capabilities to their applications!
Tools & Releases You Should Know About
Let’s speed-run through some of the other big tool updates this week!
Nuxt 3.16: Performance improvements and new features that make Vue development even smoother. The update introduces enhanced HMR capabilities and smart bundling optimizations that can cut loading times by up to 35% for complex applications.
Bun 1.2.5: Continues to impress with blazing speed and expanded capabilities – if you haven’t tried it yet, now’s the time! This release adds enhanced WebSocket support and improves npm compatibility, making it even easier to migrate existing Node.js projects.
Melange 5: Better ReScript and OCaml integration for JavaScript developers seeking more type safety. The new version brings seamless interoperability with TypeScript definition files and introduces a powerful pattern-matching compiler that generates highly optimized JavaScript.
Transformers.js 3.4: Making AI model integration easier than ever for web applications. This update adds support for streaming responses and introduces memory-efficient model loading that can reduce RAM usage by up to 60% when running large language models.
Refractor 5.0: Robust virtual syntax highlighting using Prism – perfect for code editors or documentation sites. The latest version delivers performance improvements that handle files up to 10MB without UI freezing and adds support for 15 new programming languages.
PGlite: Run Postgres directly in WebAssembly – full database capabilities right in your browser with no server required! This groundbreaking tool supports most SQL operations including complex joins and transactions, while maintaining data persistence through IndexedDB with automatic sync capabilities.
And that’s it for the twenty-sixth issue of “This Week in JavaScript“, brought to you by jam.dev—the tool that makes it impossible for your team to send you bad bug reports.
Feel free to share this newsletter with a fellow developer, and make sure you’re following for more weekly updates.
Until next time, happy coding!