jemc changed the topic of #ponylang to: Welcome! Please check out our Code of Conduct => https://github.com/ponylang/ponyc/blob/master/CODE_OF_CONDUCT.md | Public IRC logs are available => http://irclog.whitequark.org/ponylang | Please consider participating in our mailing lists => https://pony.groups.io/g/pony
<bpicolo> would that mean just adding a p.next() call?
<bpicolo> is it fine for a promise to have two entirely separate next() chains?
<bpicolo> I imagine it is
<jemc> yeah, there's no problem there
jemc has quit [Ping timeout: 255 seconds]
aturley_ has joined #ponylang
aturley has quit [Ping timeout: 240 seconds]
bpicolo has quit [Ping timeout: 260 seconds]
acarrico has joined #ponylang
aturley_ has quit [Quit: aturley_]
acarrico has quit [Ping timeout: 260 seconds]
acarrico has joined #ponylang
acarrico has quit [Ping timeout: 248 seconds]
jemc has joined #ponylang
martinium has quit [Quit: WeeChat 1.9.1]
dipin has joined #ponylang
dviola has quit [Quit: WeeChat 1.9.1]
_whitelogger has joined #ponylang
_whitelogger has joined #ponylang
endformationage has quit [Quit: WeeChat 1.9.1]
_whitelogger has joined #ponylang
jemc has quit [Ping timeout: 240 seconds]
gokr has joined #ponylang
samuell has joined #ponylang
vaninwagen has joined #ponylang
<vaninwagen> Hold your hat, a new last week in pony is out: https://www.ponylang.org/blog/2017/10/last-week-in-pony---october-29-2017/
CcxWrk has quit [Read error: Connection reset by peer]
CcxWrk has joined #ponylang
vaninwagen has quit [Ping timeout: 255 seconds]
dipin has quit [Quit: dipin]
gokr has quit [Ping timeout: 240 seconds]
enilsen16 has joined #ponylang
enilsen16 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bpicolo has joined #ponylang
howdopony has joined #ponylang
<howdopony> if i wanted to wait for x messages so the actor could process them in batch for performance reasons, is there any built in way to do this? or should I just have another actor in front that collects them then passes on as a list
<SeanTAllen> howdopony: what's the specific thing you are trying to do?
samuell has quit [Remote host closed the connection]
<howdopony> For simulation, I want to pass a reference to the "world" to the actors, but if the world is modified in response to each actor talking to it then it's a lot of allocation for no real purpose
<howdopony> it's fine for the view of the "world" to be a bit behind when the actor is viewing it. Ideally the "world" actor would only update itself after a specified amount of time
<howdopony> Ideally it would "cache" messages from a certain behaviour until another behaviour had been called
<howdopony> I was trying to avoid just having another array inside the world to do this manually, was wondering if there was any language level support for it
<howdopony> or if i'm thinking about it the wrong way
<SeanTAllen> there is not
<SeanTAllen> the default batch is for an actor is to run up to 100 messages from its queue at a time
<SeanTAllen> im a little unclear
<SeanTAllen> why is it different to run 100 messages 1 at time all at once
<SeanTAllen> vs
<SeanTAllen> run 100 messages each 1 at a time at different times
<SeanTAllen> i think i might not be understanding the problem
<howdopony> Because in response to those messages, the world has now changed, and a new immutable reference is passed out to all the other actors. If it's going to batch 100 messages, that's 99 copies that don't have to be made
<SeanTAllen> ah i see
<SeanTAllen> so the other thing you can do is
<SeanTAllen> inside your world actor
<SeanTAllen> dont send out a new reference for every message processed
<SeanTAllen> only do that for every X messages processed
<SeanTAllen> or
<SeanTAllen> you a timer that fires periodically, sends a message to the world
<SeanTAllen> which checks to see if it has been updated since the last time it got a timer message
<SeanTAllen> and if it has, sends out the updates
<howdopony> Mm, that sounds fair
<SeanTAllen> depends on if you want time based, or messages processed based
<howdopony> Would I use this for a timer every x time https://stdlib.ponylang.org/time-Timers/ ?
<SeanTAllen> can you clarify "for every x time"?
<SeanTAllen> is x time a period of time?
<SeanTAllen> like 5 milliseconds?
<howdopony> yea, sorry :) eg every 100 ms
user10032 has joined #ponylang
aturley has joined #ponylang
aturley has quit [Client Quit]
howdopony has quit [Ping timeout: 260 seconds]
bpicolo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bpicolo has joined #ponylang
bpicolo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vaninwagen_ has joined #ponylang
jemc has joined #ponylang
jemc has quit [Ping timeout: 255 seconds]
endformationage has joined #ponylang
jemc has joined #ponylang
dipin has joined #ponylang
theodus has joined #ponylang
jemc has quit [Ping timeout: 240 seconds]
jemc has joined #ponylang
vaninwagen_ has quit [Ping timeout: 240 seconds]
vaninwagen_ has joined #ponylang
samuell has joined #ponylang
vaninwagen has joined #ponylang
bpicolo has joined #ponylang
bpicolo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
acarrico has joined #ponylang
user10033 has joined #ponylang
user10032 has quit [Ping timeout: 255 seconds]
aturley has joined #ponylang
vaninwagen has quit [Ping timeout: 240 seconds]
bpicolo has joined #ponylang
bitcrusher has joined #ponylang
gokr has joined #ponylang
TheNet has joined #ponylang
TheNet has quit [Quit: Textual IRC Client: www.textualapp.com]
vaninwagen_ has quit [Quit: Ex-Chat]
jemc has quit [Ping timeout: 240 seconds]
samuell has quit [Quit: Leaving]
jemc has joined #ponylang
markmarkmark has quit [Ping timeout: 258 seconds]
bpicolo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
theodus has quit [Quit: Leaving]
markmarkmark has joined #ponylang
martinium has joined #ponylang
bimawa has quit [Quit: WeeChat 1.9]
bimawa4 has quit [Quit: WeeChat 1.9.1]
aturley has quit [Ping timeout: 255 seconds]
aturley has joined #ponylang
aturley has quit [Ping timeout: 240 seconds]
user10033 has quit [Quit: Leaving]
aturley has joined #ponylang
acarrico has quit [Ping timeout: 248 seconds]
acarrico has joined #ponylang