Email or username:

Password:

Forgot your password?
Top-level
(wryl)

@neauoire At one point in time, I was working on a few concatenative language projects and utilized a deque instead of a stack.

This let you treat the stack as a "tape" you could continuously expand, shift and manipulate, and "stack shuffling" became leagues easier.

At one point, I added quotations. Recursion and looping just placed the next loop iteration at the "bottom of the stack", and when required, just recalled it and executed it.

Quite elegant, for my purposes.

2 comments
Devine Lu Linvega

@wryl Cool :) You had me look into deque, do you have any resource that might list special fun things that one can do with it?

(wryl)

@neauoire Oddly enough, it's pretty under-explored!

This presentation from 2018 makes the case for queues (not deques) instead of a stack.

web.archive.org/web/2018082917

(cont'd)

Go Up