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.

https://lexaloffle.com/bbs/?tid=50923

Picotron Playground

@zep what are the plans for optimized vector maths? I see that vec is largely missing or in plain lua (0.7)

@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

@zep a ‘closed’ set of operations would work ok I guess?
du = vec(3,0,0)
— native C
u+=du
— not supported
— u.x+=3