Skip to content

Amethyst

A Ruby-inspired, statically typed language that compiles to .NET IL.
greeter.am
class Greeter
property name: String
def initialize(name: String): Void
@name = name
end
def greet: Void
puts "Hi, #{name}!"
end
end
def main: Void
Greeter.new("Ada").greet
end

Reads like Ruby

def/end, blocks, symbols, string interpolation, postfix conditionals and ?/! method names. Parentheses are optional.

Typed, with inference

Annotate where it matters, not everywhere. Types are non-nullable by default — String? opts in, and &. navigates safely.

Native to .NET

Compiles to IL. Calls into C# and is called from C#, with snake_case names mapped to PascalCase automatically.

Built for DSLs

Typed receiver blocks, mixins and extensions make fluent, expressive APIs without giving up static checking.