logoalt Hacker News

DonHopkinstoday at 12:13 AM1 replyview on HN

I present to you, the return-stack skill:

https://github.com/SimHacker/moollm/tree/main/skills/return-...

See Self's "dynamic deoptimization", where it constructs a virtual return stack on demand that you would have had, were it not for the JIT compiler's agressive inlining.

Debugging Optimized Code with Dynamic Deoptimization, by Urs Hölzle, Craig Chambers, and David Ungar:

https://bibliography.selflanguage.org/_static/dynamic-deopti...

And a return-stack rotated 180 degrees around in time is an action-queue:

https://github.com/SimHacker/moollm/tree/main/skills/action-...

From games like The Sims:

https://sims.fandom.com/wiki/Action_queue

Also the ever popular advertisement skill, more like comefrom than goto:

https://github.com/SimHacker/moollm/tree/main/skills/adverti...

Also from The Sims:

https://simstek.fandom.com/wiki/SimAntics

The Sims, Pie Menus, Edith Editing, and SimAntics Visual Programming Demo:

https://www.youtube.com/watch?v=-exdu4ETscs


Replies

hmokiguesstoday at 12:30 AM

Amazing