Developer Voices

ReScript: A Better Typed JavaScript? (with Gabriel Nordeborn)

11 snips
Feb 20, 2025
Gabriel Nordeborn, a compiler contributor for ReScript, discusses the strengths and advantages of ReScript compared to TypeScript. He unpacks why JavaScript developers might want to choose ReScript, focusing on its streamlined type system and performance. The conversation touches on the challenges of TypeScript, highlights ReScript’s efficiencies in immutability and pattern matching, and explores methods for enhancing developer productivity. Gabriel also shares insights on the importance of achieving a flow state for optimal coding creativity.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

ReScript's Approach

  • ReScript offers a different approach than TypeScript by molding OCaml into JavaScript.
  • This results in optimized JavaScript with features like automatic code rearrangement for performance.
INSIGHT

TypeScript vs. ReScript

  • TypeScript aims to add types to existing JavaScript, accommodating its quirks for compatibility.
  • ReScript prioritizes a sound type system and predictable behavior, starting from OCaml and moving towards JavaScript.
ANECDOTE

TypeScript's Scaling Challenges

  • Large TypeScript projects (50k-100k+ lines) often experience slow compilation speeds, impacting developer experience.
  • This slowdown affects editor feedback loops, such as autocompletion and hover information.
Get the Snipd Podcast app to discover more snips from this episode
Get the app