Skip to content

coldly/zhlang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

The Zh Programming Language

CI

https://zhlang.org

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

Key Features of Zh

  • 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.

Installing Zh from source

Linux, macOS, Windows, *BSD, Solaris, WSL, Android, Raspbian

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

C compiler

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

Symlinking

You can create a /usr/local/bin/zh symlink so that Zh is globally available:

sudo ./zh symlink

About

Based on Chinese Mandarin, simple, fast, safe, compiled language for developing maintainable software. Startup in January 2020.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors