Teyru
A Java-shaped language that compiles to a native binary. No JVM, no bytecode.
Read the documentationclass Hello {
public static void main(String[] args) {
System.out.println("Hello, Teyru!")
}
}
Install the compiler
go install github.com/teyru-lang/Teyru/cmd/teyru@latest
Requires Go and clang or gcc.
What it is
- Native binary
- Compiled through a Go front end, generated C and clang/LLVM into a native executable — no JVM, no bytecode.
- Standard library
- Written in Teyru itself, and compiled and checked together with every program.
- Annotations
- Lombok-compatible, expanded into ordinary members during semantic analysis.
- Web framework
- A Spring-shaped container and web layer, with the routes compiled.
- JSON binding
- Gson-shaped, with the object binding generated by the compiler.
- Garbage collector
- A C runtime with a conservative mark-and-sweep collector and no virtual machine.