Saturday, January 30, 2021

faster TypeScript

Episode #83: Serverless and TypeScript with Tim Suchanek - Serverless Chats Podcast

an interesting podcast story about TypeScript used for “ORM” Prisma (usually GraphQL)

mentioned “project swc” that is using Rust for making faster TypeScript compiler (20x ?)
as well as using AssemblyScript (subset of TypeScript) and Rust for WASM on CDNs. 

swc-project/swc: swc is a super-fast compiler written in rust; producing widely-supported javascript from modern standards and typescript.

He also mentioned “IOTS” a newer/better way for data validation based on TypeScript during runtime, better than “yup” by skipping for multiple formats of validation metadata.   

Typescript Runtime Validation With io-ts | by Sebastian Walther | The Startup | Medium

gcanti/io-ts: Runtime type system for IO decoding/encoding

Also mentioned “project esbuild”, an alternative for Babel written in Go, apparently 100x faster than JavaScript.

Twitter: @TimSuchanek
Prisma Client:
"Generics, Conditional types and Mapped types":"A Practical Introduction to Database Migrations":
"How Prisma Solves the N+1 Problem in GraphQL Resolvers":
Watch this episode on YouTube: