Documentation: zhlang.org/docs
Changelog: github.com/coldly/zhlang/blob/master/CHANGELOG.md
Speed Test: fast.zhlang.org (monitors compilation speed for each commit to verify there are no speed regressions)
Installing Zh: github.com/coldly/zhlang#installing-zh-from-source
- Simplicity: the language can be learned in less than an hour
- Fast compilation: ≈100k — 1.2 million loc/s
- Easy to develop: Zh compiles itself in less than a second
- Performance: within 3% of C
- Safety: no null, no globals, no undefined behavior, immutability by default
- C to Zh translation
- Hot code reloading
- Cross-platform UI library
- Built-in graphics library
- Easy cross compilation
- REPL
- Built-in ORM
- C and JavaScript backends
A stable 0.2 release is planned for January 2020. Right now Zh is in an alpha stage.
git clone https://github.com/coldly/zhlang
cd zhlang
make
That's it! Now you have a Zh executable at [path to Zh repo]/zh
. [path to Zh repo]
can be anywhere.
(On Windows make
means running make.bat
, so make sure you use cmd.exe
.)
Zh is being constantly updated. To update Zh, simply run:
zh up
You'll need Clang or GCC or Visual Studio. If you are doing development, you most likely already have one of those installed.
Otherwise, follow these instructions:
github.com/coldly/zhlang/wiki/Installing-a-C-compiler-on-Linux-macOS
github.com/coldly/zhlang/wiki/Installing-a-C-compiler-on-Windows
You can create a /usr/local/bin/zh
symlink so that Zh is globally available:
sudo ./zh symlink