T-Ruby is Ruby with syntax for types
4 months ago
- #Ruby
- #TypeScript
- #OpenSource
- T-Ruby allows writing typed Ruby code that compiles to standard Ruby with generated type signatures.
- Comparison with existing Ruby typing solutions like Sorbet highlights T-Ruby's differences, such as no runtime dependencies and inline types.
- Sorbet requires runtime dependencies, separate type declarations in sig blocks, and learning a unique DSL syntax.
- T-Ruby uses inline types similar to TypeScript and generates standard RBS files without runtime dependencies.
- Quick start involves installing the gem, initializing the project, and using watch mode for development.
- T-Ruby integrates with various editors (VS Code, JetBrains, Neovim) and type checkers (Steep, Ruby LSP, Sorbet).
- It is compatible with the Ruby ecosystem, works with any Ruby version, and supports all gems.
- T-Ruby is an open-source project, currently experimental, and welcomes contributions and feedback.