Picotron Playground -- an experimental web-based edition of my WIP Fantasy Workstation -- is OUT NOW! It includes a code editor and terminal program for poking around some demos of the #picotron API and runtime.
Picotron Playground -- an experimental web-based edition of my WIP Fantasy Workstation -- is OUT NOW! It includes a code editor and terminal program for poking around some demos of the #picotron API and runtime.
@fsouchu There will be built-in cross-multiply, dot product etc. for f64 userdata, but I'm not sure of the basic syntax yet. I like:
v = userdata("f64", 3)
?v.x -- means get(v,0) or v[0]
v += v2 -- add v2 to v
But on trying some toy programs, it just feels too weird without being allowed components on the LHS, which is difficult (and maybe ill-advised?) to wrangle in Lua's implementation:
v.x = 3 -- surely!
v[0] = 3