Native binaries
Standalone executables for macOS and Linux.
Forge native binaries from .ty source.
I compile and I knows things. That's what I do.
class Stark:
def __init__(self, name):
self.name = name
def greet(self, other):
print("Hello", other, "I'm", self.name)
arya = Stark("Arya")
arya.greet("Sansa")
tyrionic --build hello.ty --out hello
./hello
Hello Sansa I'm Arya
brew install dennisvink/tyrion/tyrion
Try Tyrion
One small program. Two Linux targets.
Run the code. See what the Hand reports.
64 KiB source limit. Sandboxed. No ravens leave the worker.
Why Tyrion
Compiler. Interpreter. Native output.
Standalone executables for macOS and Linux.
Tyrion builds its own compiler.
Compile with tyrionic. Interpret with tyrion.
Functions. Classes. Collections. Generators.
The language
Write ordinary programs. Ship ordinary executables.
def square(value):
return value * value
values = [1, 2, 3, 4, 5]
squares = []
for value in values:
squares.append(square(value))
print("squares", squares)
print("sum", sum(squares))
squares [1, 4, 9, 16, 25]
sum 55
The toolchain
Get started
Homebrew installs the compiler and interpreter. No oaths required.
brew install dennisvink/tyrion/tyrion
tyrionic --build app.ty --out app
tyrion app.ty