Hacker News new | past | comments | ask | show | jobs | submit login

Fibonacci example:

  include "cores/select.cal"
  include "std/io.cal"
  
  func fib begin
 let cell n
 -> n

 if n 1 <= then
  n return
 else
  n 1 - fib
  n 2 - fib
  + return
 end
  end
  
  9 fib printdec new_line

The vocabulary is visibly more verbose than Forth which is good IMO.

> It also has a subset called CallistoScript made for scripting languages like Lua, and it's still sort of low level

I wish Garry's Mod WireMod CPU's ran on something like this rather than Lua, for the sake of health of my wrists if not much else. For those who don't know, Garry's Mod is a sandbox game and WireMod is an addon from Steam workshop that allows one to put microcontrollers in one's physical contraptions. The physics engine in that sandbox leaves a lot to be desired though, with all the phasing through geometry.




CallistoScript compiles to lua so you can use it for garry's mod, but I'm not sure how well it would work




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: