I often get asked how I create 3d scenes in catlangs, it's not too different than how you'd do it in other languages, except there's no variables and no function arguments.
https://git.sr.ht/~rabbits/pinhole/tree/main/item/src/pinhole.tal#L28
@travisfw those are the same pictures
@and everything has been a lot nicer since I've made it more like pen/down, pen/up ^__^
@neauoire Stashing state off the main stack is generally the way to go. Lets you focus on the pipeline of operations instead of arranging the stack.
@neauoire Or well, I guess in this case reducing the inline math you need to place everything. Relative operations are a major boon.
I made a little scene tree system in Factor once and it was real nice to use. It was based on Amulet (the lua game engine)
@and Oh that's a good idea, parent things wouldn't be hard to add and would make placing things in relation to each other much better.
@neauoire Well, postscript is very close to my ideal catlang model, and its only been arguably the most common rendering language for 40 years.
If there was a general-purpose implementation, it would probably be everything I'd ever want.
@nuxi postscript is great! Although, I can count on the hands of one finger the people I know who can write it, despite it being quite popular.
https://wiki.xxiivv.com/site/postscript
@neauoire yeah, just funny to me that people would think it would be difficult to do in a catlang.
It's postscript's quoting, binding, and definition model that I love. Much more elegant than Forth or Factors' interpretation vs compilation modes.
@neauoire someone gotta port Elite to uxn! :P