upvote
> What if I want to start a computation and I can't reason how long it takes

I wrote about that. It's the main weakness of this approach. You can solve it fairly easily for a linear style of task (decompression, encryption, etc.) because you can capture your state as a simple future. For cpu intensive recursive algorithms, it gets far messier.

> If I have no stack, what can I use to save program state? Do I need to mess with global variables for this?

All state is actor instance state. Kind of like any class based programming paradigm for an object not actively executing.

reply
I presume you could still make your own stack, and even save the stack pointer and program counter as part of your instance state?
reply
How does he prove termination for boundedness in the general case?

Sounds like someone is still discovering the difference between the necessary assumptions for their wish to become true and the assumptions they are actually making.

reply
It's a constrained system. CPU intensive loops are easily transformed into potentially yielding futures. But not everything fits well in the model. CPU intensive recursive algorithms are messier.

There's no claim in the article that this is a superior system than threads in the general case.

reply