<SeanTAllen>
michael_campbell: i have plans to write one but havent started yet
<michael_campbell>
<nod>
<michael_campbell>
A lot of the Pony in Fintech talk I saw was a bit beyond my current capabilities, but it was a really good talk. I need to digest it in smaller pieces.
<Onemorenickname>
I'm new to ponylang, I was wondering about the best way to do things in sequence
<Onemorenickname>
Like, I want to call a behaviour on an actor A, and when it's over, to call a behaviour on actor B
<Onemorenickname>
Shall I pass a callback to A, or add a reference to B in A ?
<Onemorenickname>
I don't like those options, as it implies I have to modify A
<jemc>
Onemorenickname: depends on what you're doing, but your options are basically:
<jemc>
1) pass a lambda to A, which will call the lambda when done
<jemc>
2) use a promise and have A fulfill the promise when done
Applejack_ has quit [Ping timeout: 264 seconds]
<Onemorenickname>
jemc : I only have those two ?
<jemc>
3) define an interface or trait (for example, Continuable), and pass an object matching that interface to A, and have A call some method exposed by Continuable
<Onemorenickname>
(Untill now, it seems 1 & 2 are like a callback, and 3 is having a reference to B in A.)
<jemc>
in Pony, the message ordering paradigm is based on causality - if you want B.bar() to follow A.foo(), then A.foo() must send a message that causes B.bar()
SilverKey has quit [Read error: Connection reset by peer]
<Onemorenickname>
I see
<Onemorenickname>
My problem is I have a Server, and a Client, which are unrelated
<jemc>
there's no way outside of A to know that it finished executing A.foo() unless it sends you a message telling you so
<Onemorenickname>
In Main, I want to launch the Server, and then the Client
<Onemorenickname>
oh, ok
SilverKey has joined #ponylang
<Onemorenickname>
I thought there was some signal when a behaviour would have finished its execution
<Onemorenickname>
so I can bind two behaviours (in a Lwt_t fashion)
<Onemorenickname>
So : the Server has to say explicitely that he has finished creating himself
<Onemorenickname>
sounds consistent
<Onemorenickname>
thank you :)
<jemc>
right
<Onemorenickname>
(correct me if I am wrong somewhere)
<jemc>
no problem, good luck :)
<Onemorenickname>
have a nice afternoon ^^
runehog_ has joined #ponylang
runehog has quit [Ping timeout: 240 seconds]
emancu has quit [Remote host closed the connection]
emancu has joined #ponylang
amclain has joined #ponylang
nyarumes has joined #ponylang
nyarum has quit [Ping timeout: 260 seconds]
_andre has quit [Quit: leaving]
_andre has joined #ponylang
SilverKey has quit [Quit: Halted.]
_andre has quit [Quit: leaving]
SilverKey has joined #ponylang
SilverKey has quit [Client Quit]
unbalancedparen has joined #ponylang
graaff has joined #ponylang
unbalancedparen has quit [Ping timeout: 244 seconds]
Perelandric has joined #ponylang
Matthias247 has joined #ponylang
runehog_ has quit [Remote host closed the connection]
unbalancedparen has joined #ponylang
unbalancedparen has quit [Ping timeout: 276 seconds]
Applejack_ has joined #ponylang
MC_Hamming has joined #ponylang
runehog has joined #ponylang
SilverKey has joined #ponylang
graaff has quit [Quit: Leaving]
mcguire has joined #ponylang
Perelandric has quit [Ping timeout: 250 seconds]
runehog has quit [Read error: Connection reset by peer]
runehog_ has joined #ponylang
runehog has joined #ponylang
runehog_ has quit [Read error: Connection reset by peer]
emancu has quit [Ping timeout: 264 seconds]
MC_Hamming has quit [Ping timeout: 244 seconds]
emancu has joined #ponylang
gsteed has quit [Quit: Leaving]
trapped has quit [Read error: Connection reset by peer]
srenatus has quit [Quit: Connection closed for inactivity]
SilverKey has quit [Quit: Halted.]
SilverKey has joined #ponylang
Matthias247 has quit [Quit: Matthias247]
Matthias247 has joined #ponylang
runehog has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
Applejack_ has quit [Ping timeout: 250 seconds]
unbalancedparen has joined #ponylang
SilverKey has joined #ponylang
Onemorenickname has quit [Read error: Connection reset by peer]
runehog has joined #ponylang
SilverKey has quit [Client Quit]
Matthias247 has quit [Read error: Connection reset by peer]
Applejack_ has joined #ponylang
unbalancedparen has quit [Ping timeout: 272 seconds]