How Ruby forged Crystal
summary
Crystal starts as a Ruby-rooted project: compiler first written in Ruby and becomes self-hosted in 2013, reaching 1.0 in 2021. Syntax and readability mirror Ruby, but implementation diverges: static type checking with heavy type inference, union types and explicit nil handling catch errors at compile time; native compilation via LLVM yields C‑like performance; concurrency uses lightweight cooperative fibers and macros expand at compile time for metaprogramming.
AI-written summary · about
chapters (19)
- 0:00Introduction
- 4:25Crystal at Ruby conference
- 5:50Talk purpose and overview
- 7:36Crystal's evolution
- 8:21Ruby vs Crystal differences
- 10:16Syntax and design
- 11:42Static type checking
- 13:26Type inference and annotations
- 15:37Nil handling and unions
- 16:45Compiler errors and safety
- 18:09Crystal features beyond Ruby
- 18:49Native compilation
- 19:34Fibers for concurrency
- 21:00Macros and metaprogramming
- 22:29High-performance web server
- 25:05Ruby vs Crystal examples
- 26:58Crystal and Ruby future
- 28:00Explore Crystal
- 29:06Summary
related talks
55mCrystal for Rubyists
28mCrystal: The Programming Language
39mCrystal: A language for humans and computers
11mIntroducing the Crystal Programming Language
28mIntroducing the Crystal Programming Language
33mThe Power of Crystal: A language for humans and computers
30mIntroducing the Crystal Programming Language
44mConsider Crystal
