The Power of Crystal: A language for humans and computers
summary
Crystal compiles to native code via LLVM-backed native code and uses type inference so most annotations aren’t needed while the compiler still catches mismatched calls at build time. Small binaries start around 2 MB dynamically linked executable or can be statically linked. Built-in macros run at compile time, and simple servers handle tens of thousands of requests per second on a single thread. Interop options include the crystal-ruby FFI gem and embedding MRuby or separate Crystal services for hot code paths.
AI-written summary · about
chapters (18)
- 0:00Introduction to Crystal
- 1:16Philosophy of Crystal
- 2:50Ruby vs Crystal origins
- 4:35Downsides of Ruby
- 7:13Crystal's features
- 8:22Ruby and Crystal compatibility
- 10:46Static type checking
- 12:29Type inference and generic
- 14:11Explicit type declarations
- 15:47Compiler and documentation
- 17:12Compilation and portability
- 19:16Performance and LLVM
- 20:45Macro system
- 22:34API differences
- 24:14Interoperability
- 25:47Performance optimization
- 27:04Learnings for Rubyists
- 30:43Conclusion and resources
related talks
39mCrystal: A language for humans and computers
28mIntroducing the Crystal Programming Language
55mCrystal for Rubyists
28mCrystal: The Programming Language
30mIntroducing the Crystal Programming Language
11mIntroducing the Crystal Programming Language
30mHow Ruby forged Crystal
31mCoding with Crystal So You Don't Lose Your Mind
