4 ms·
apparently it's not documented but there is some code in the examples lib in github. It looks more like Io than erlang to me. https://github.com/bakkdoor/fancy
by riffraff 16y ago
apparently it's not documented but there is some code in the examples lib in github. It looks more like Io than erlang to me.
https://github.com/bakkdoor/fancy/blob/master/examples/async_send.fy https://github.com/bakkdoor/fancy/blob/master/examples/async...
https://github.com/bakkdoor/fancy/blob/master/examples/future.fy https://github.com/bakkdoor/fancy/blob/master/examples/futur...
https://github.com/bakkdoor/fancy/blob/master/examples/future_composition.fy https://github.com/bakkdoor/fancy/blob/master/examples/futur...
- nathanwdavis 16y agoSo, it looks like @@ is how you send a message to an actor. But there are still a lot of questions I have about what the implementation of that actor is: a lightweight process, a unit of computation to be scheduled, or is it essentially the same as calling any other function? It will be interesting to see how Fancy evolves its Actor features in comparison to other languages with built-in Actors.
- bakkdoor 16y agoThe current implementation of futures uses a thread pool. I'm planning on changing this a bit to behave more like Io's actor model.