Skip to content

WIP Hybrid interpreted-cached programming language

Notifications You must be signed in to change notification settings

horacehoff/compute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compute

Very WIP

  • Inspired by Rust & Python
  • ~5-6x faster than Python
  • Does NOT support nested functions
  • Terrible error handling
  • Full of bugs

Syntax examples

let x = 20;
// parentheses are optional
if (x == 20) {
print("TRUE!");
}
let x = 0;
// parentheses are optional
while (x < 10) {
print(x);
x = x+1;
}
let x = [10, 20, 30, 40];
print(x[0]);

Types

  • Boolean (true/false)
  • Integer
  • Array ([1, 2, 3, "4", 5.0, true])
  • String
  • Float