ValeLang / Vale

Compiler for the Vale programming language - http://vale.dev/
https://vale.dev/
Apache License 2.0
1.79k stars 54 forks source link
compiler language programming-language systems-programming vale

Vale

Vale is a programming language that's aims to be not only fast and memory-safe, but also easy and flexible.

See http://vale.dev/ for more information on the language, and see our treasure trove of working examples, grouped by functionality.

Building a Vale Program

  1. Download the latest binary from https://github.com/ValeLang/Vale/releases
  2. Unzip it into, for example, ~/Vale, and cd into it.
  3. Make a file hello.vale containing some vale code, like exported func main() { println("Hello world!"); }
  4. Compile a program: ./valec build mymod=hello.vale --output_dir target
  5. Run the program: target/main, and you should see the output Hello world!

Learning Vale

See the Guide for how to use Vale.

Building the compiler itself

For instructions for building the compiler itself, see Building the Compiler.

For an overview of the project structure, see Compiler Overview.

Editor plugins

Thank you to all of our sponsors!

Notes

Vale started in January 2013, and back then we called it "VLang", though there's now another language with that name. We then called it GelLLVM, in honor of Gel, the first language to offer constraint references. Since then, we've settled on the name "Vale". Note that Vale and Vala are two different languages.