- Pros of TypeScript
- Designed for JS, easy inter-operate with JS
- A much larger community
- Nice integration with VSCode
- Cons of TypeScript - Compiler slow (not scalable for FB/Google scale)
- Verbose, very limited type inference
- Start up time slow (very hard to build traditional build tools)
- Types are only used for tooling - soundness is not the design goal, not very reliable
- Only JS backend, no code optimizations
- Pros of BuckleScript - No legacy of JS (clean slate) while great story in inter-operation
- Compiles much faster, scales much better
10% perf is a nice enhancement, 10x faster is an invaluable feature
- An arguably much better language
- Sound type system, global type inference
- Types are used in code optimization, optimizing compiler
- Javascript backend + Native backend for X86, ARM
- Cons of BuckleScript - Smaller community
- Learning curve is higher compared with TypeScript