Blang
blang is a lightweight and small programming language that can easily be modified and can be used as a programming language for a programming tutorial.
Unfortunately, blang requires Python to run, which defeats the purpose.
Help is also available on the GitHub wiki, but the documentation is really just a quick start guide.
Syntax
blang's syntax is pretty simple to learn. However, the function naming convention is three letters[1], which might take a bit of time for a new coder to remember. Arguments don't need that naming convention.[1]
An example of a function is below:
fun arg1 arg2 arg3Startup times
Startup times for programs are a teeny-tiny bit slower, but it's workable. But Kotlin has crazy loading times:
| Kotlin (JVM) | Python 3 | blang |
|---|---|---|
| 5.149 seconds | 0.032 seconds | 0.036 seconds |
Downloading
blang is not available in any GNU/Linux distro repos; it needs to be built from source.[1] Its build process is not a simple make; it's more intricate.
Build process is below:
sudo -H pip install pyinstaller
chmod +x build1
./build1
cp blang /usr/local/bin
sudo chown root:root /usr/local/bin/blang
sudo chmod 755 /usr/local/bin/blang
Hello World
blang's hello world is very simple. The program is below:
say Hello, World!
References
This article "Blang" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Blang. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.
