Compiling TypeScript
summary
Talk explains a technique to compile TypeScript ahead-of-time like C++/Rust instead of running it via JS engines. It covers tooling and implementation details for generating native-like binaries so TypeScript code can be embedded into desktop and mobile apps with performance comparable to native, and describes practical experiences and problems encountered.
AI-written summary · about
chapters (23)
- 0:00TypeScript compilation intro
- 1:06Introduction
- 2:10Why compile TypeScript
- 4:20Code execution modes
- 6:28JavaScript as interpreted
- 7:56TS Native goals
- 9:00TS Native architecture
- 12:18TS Native components
- 15:31LLVM IR intermediate
- 16:57SSA in LLVM IR
- 18:03TypeScript parse tree
- 20:35Compiler architecture
- 22:44LLVM IR example
- 24:30LLVM as framework
- 25:11C++ symbols for logic
- 27:15TS-C++ binary
- 29:46Runtime need for TS
- 31:14C++ entry point
- 33:21TS Native features
- 34:45TS Native pros/cons
- 36:11Lesson: avoid compiling TS
- 37:39Implementation details
- 38:00Q&A
related talks
24mTypeScript and how I've learned to love the compiler
32mIntroducing TypeScript
07mCompiling JavaScript ahead-of-time
01h 02mExploring TypeScript
39mTalkScript with the TypeScript Team
01h 00mTalkScript with the TypeScript Team
57mTypeScript : More than just another JS transpiler
41mIntroduction to TypeScript
