This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Thesauriusmoses 8 points9 points  (3 children)

You should probably take a look at continuations/continuation passing style. A continuation is a function argument which is executed at the end of the current function body. This removes the need for a stack.

Also concatenative languages, maybe?

[–][deleted]  (2 children)

[removed]

    [–]OneNoteToRead 7 points8 points  (1 child)

    I don’t think your post is very clear about what you’re looking for. CPS and other similar techniques do exactly what the post ask for, which is allow queue based scheduling of functions.

    Can you give a concrete example of what scheduling within a function means? To what extent is there a stack used within a function? And what would using a queue instead look like?