Skip to content

Latest commit

 

History

History
92 lines (74 loc) · 1.71 KB

README.md

File metadata and controls

92 lines (74 loc) · 1.71 KB

Kasic

Kasic is an interpretuer that trys to replicate the usage of Unix commands but as a programming language.

Install

Download latest release from github here.

unzip kasic.zip && mv kasic ~/ 
export PATH="$HOME/kasic:$PATH"

Command Line

% kasic
>>> print "Hello world"
Hello World

Headless

% kasic hello_word.kasic
Hello World

Examples

See the examples directories for more comprehansive examples.

Type inference

&num number 10
string *number | replace 1 2 | num | &num number
print *number
20

Loop iteration

&num number 0
&string prompt "The number is:"

> loop
print *prompt *number
add *number 0.01 | &num number
goto loop
The number is: 0.01
The number is: 0.02
The number is: 0.03
...

Build

Prerequisites

git clone [email protected]:jackdelahunt/Kasic.git

cd Kasic/kasic

dotnet run

Speed Comparision

See here for the code for each language.

Kasic Speed(ms)
2021-07-24 4820
2021-07-25 3560
2021-07-26 2970
2021-07-27 1760
2021-07-28 800
2021-07-29 560

In comparision

Language Speed(ms)
Python 100
Java 6
Rust 1
C++ <1

Million iterations per second for each language compared

Chart