Tyrus
Tyrus is a programming language with TypeScript syntax and Rust semantics, written in Rust and compiled to native code. Implemented features include a lexer, parser, and AST; a type checker with inference and generics; a borrow checker with NLL; LLVM codegen; a REPL with JIT; async functions, async/await, and task management; arrays, tuples, Map, and Set; Option/Result, comptime, defer/errdefer, exhaustive pattern matching, and a pipe operator; a CLI to create, check, build, run, and watch projects; LSP support for VS Code, Neovim, Zed, Kate, and IntelliJ/WebStorm; a WASM playground; and native modules such as fs, os, net, http, process, temporal, crypto, and others.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
Tyrus
Tyrus is a programming language with TypeScript syntax and Rust semantics, written in Rust and compiled to native code. Implemented features include a lexer, parser, and AST; a type checker with inference and generics; a borrow checker with NLL; LLVM codegen; a REPL with JIT; async functions, async/await, and task management; arrays, tuples, Map, and Set; Option/Result, comptime, defer/errdefer, exhaustive pattern matching, and a pipe operator; a CLI to create, check, build, run, and watch projects; LSP support for VS Code, Neovim, Zed, Kate, and IntelliJ/WebStorm; a WASM playground; and native modules such as fs, os, net, http, process, temporal, crypto, and others.
Posted by @titenq · Original source ↗
Story title · @titenq · · Source ↗
Show HN: Tyrus – TypeScript Syntax. Rust Semantics. Programming Language
Submitted URL · @titenq · · Source ↗
https://tyruslang.org
Source text · @titenq · · Source ↗
So I created Tyrus: TypeScript syntax. Rust semantics.
Source text · @titenq · · Source ↗
All I wanted was for it to be written in Rust and compiled to native code.
Source text · @titenq · · Source ↗
What is already implemented: - Lexer, parser, and AST - Type checker with inference and generics - Borrow checker with NLL - LLVM codegen - REPL with JIT - Async functions, async/await, and task management - Arrays, tuples, Map, Set, and collection methods - Option/Result, comptime, defer/errdefer, exhaustive pattern matching, and pipe operator - Validator Decorations - Automated tests and a CLI to create, check, build, run, and watch projects - LSP for VS Code, Neovim, Zed, Kate, and IntelliJ/WebStorm - WASM playground - Native modules: fs, os, net, http, process, temporal, crypto, algorithm, archive, compress, db, encoding, stream, task, and others