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.
mesyeti 115 days ago [-]
CallistoScript compiles to lua so you can use it for garry's mod, but I'm not sure how well it would work
kelsey98765431 115 days ago [-]
Quick somebody add it to esolang before it escapes into the wild
kjs3 115 days ago [-]
You mean like all of the other Forths that have escaped and taken over the world?
Well, sure...if we're going with "things that have Forth someplace under the hood on which only a tiny fraction of a percent of the users ever wrote a single Forth program", there's more escapees than that. Lot of work to kill a joke tho.
nvy 115 days ago [-]
RPN is cool, glad to see stuff like this still being written.
Back in undergrad we used to program our HP calculators in RPL, Reverse Polish Lisp, which I found very hard to grok at the time but a few of us managed to cobble together a set of utilities to render the final exam of third year electromechanics pretty trivial.
Good times.
pjmlp 113 days ago [-]
Nice to see a D based project in the news.
Cool project as well.
Rendered at 14:07:37 GMT+0000 (Coordinated Universal Time) with Vercel.
> 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.
https://en.wikipedia.org/wiki/HP_48_series
Current generation still making engineering students happy, https://www.amazon.com/HP-G8X92AA-Prime-Graphing-Calculator/....
Back in undergrad we used to program our HP calculators in RPL, Reverse Polish Lisp, which I found very hard to grok at the time but a few of us managed to cobble together a set of utilities to render the final exam of third year electromechanics pretty trivial.
Good times.
Cool project as well.