Skip to content

Latest commit

 

History

2,541 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pyro

Pyro is a dynamically-typed, garbage-collected scripting language implemented in C. Think Python if Guido had been a fan of lexical-scoping, curly braces, and semicolons.

def fib(n) {
    if n < 2 {
        return n;
    }
    return fib(n - 1) + fib(n - 2);
}

Pyro is a classic braces-and-semicolons language. If you've used any C-family language before you should find it instantly intuitive.

Getting Started

Pyro is an experimental language that's still under development — you should only write the control code for your pacemaker/anti-ballistic missile defence system in it if you're feeling particularly adventurous.

Design Goals

  • Legibility — Pyro code should be easy to read and understand.
  • Simplicity — Common problems should have simple solutions.
  • Elegance — A well-crafted tool should be a pleasure to use.

Internals

  • Pyro compiles source code into bytecode which it executes using a stack-based VM.
  • Pyro manages memory using a simple mark-and-sweep garbage collector.

License

Zero-Clause BSD (0BSD).

About

A dynamically-typed, garbage-collected scripting language.

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages