Home

Awesome

🌶 The Chili Programming Language

Chili is a general-purpose, compiled programming language, focused on productivity, expressiveness and joy of programming™.

At this stage, Chili brings the syntax and fun of a modern, high-level programming language, a robust type system and the performance characteristics of a low-level language.

Hello, World

fn main() = println("Hello, World!")

For more information about up-to-date syntax and language features, check out the demo file.

Getting Started

For Windows

There are a couple of prerequisites here. First, make sure you have Rust's toolchain installed. Second, make sure you have Visual Studio Build Tools installed. You can also initialize Visual Studio's environment by running vcvarsall.bat x64, which should be under ...\VC\Auxiliary\Build.

You have to compile Chili from source and set up a working directory, to do that, navigate to Chili's directory and run:

./build.bat release

This will create a directory called dist/release under Chili's directory. To build Chili for debug, run ./build.bat debug.

For *Nix systems

First, make sure you have Rust's toolchain installed.

For Linux, make sure you have llvm-12 and clang installed through your package manager.

MacOS is currently not supported, but will be in the future.

Navigate to Chili's directory and run:

sh build.sh release

This will create a directory called dist/release under Chili's directory. To build Chili for debug, run sh build.sh.

Trying it out

For ease of use, I recommend adding dist/release to your PATH environment variable.

In your terminal, run chili .\examples\playground\build.chl

chili examples/playground/build.chl

You should see "Hello, World!" in printed to your terminal.

To run a compile and run a file directly, without using Chili's build API, use the --run flag. Test this out by running the hello world example:

chili examples/hello_world.chl --run

For some examples of what you can do with Chili, check out the examples folder.

Tooling

Tasks

Compiler

Standard library

Contributing

As the language is in its very early stages, every contribution will help in shaping Chili into what it will become. The best way to contribute right now, is opening issues/bugs and suggesting features/changes. This project is open source, and always will be.

Our Discord Server