RCA v0.1.0 beta: a statically typed language with built-in tensors and autodiff in Rust
RCA is an independent, statically typed programming language with an indentation-based syntax, and its compiler is written in Rust. It has built-in tensors and automatic differentiation[1] and can compile to native code. The long-term goal is an AI-native language with a native tensor engine. The project is a v0.1.0 public beta in early development, not ready for production use, and its creator is listed as TH Lalrochanhlua.
Building the project produces two binaries: rcac, the compiler and tool driver, and rca, which runs a program. The rcac commands include type checking, showing bytecode[2], running on a bytecode VM or a tree-walking interpreter, a REPL, a Language Server Protocol server[3], and a package manager, and native code is generated through Cranelift[4].
Tensors on the CPU, for Float values only, support construction, indexing, broadcasting, matmul and reverse-mode autodiff with track and grad, and the language has neural network builtins such as linear, softmax, conv2d and sgd. The standard library has 14 modules, including net, http and crypto. According to the documentation, some native allocation gaps remain, and no general performance claims are made.
Read the original github.comDiscussion
Sources
-
GitHub
RCA v0.1.0-beta: a statically typed language with built-in tensors and autodiff, written in Rust (developed on a phone)


