<dave24>
If I want to share a datastructure among multiple actors, do I just put it in its own actor and use it asynchronously? Or is that not very idiomatic?
<vaninwagen>
dave24: sounds reasonable, but depends on the use case. Putting it into its own actor will limit concurrent access.
<vaninwagen>
if you have a val structure that will not change, you can just pass it around
<vaninwagen>
if you need to mutate it, a wrapping actor is a good idea
<dave24>
vaninwagen: yeah, it's a shared and mutable map. Thanks.
jbk_ has joined #ponylang
<vaninwagen>
ah, the classic shared mutable state ds
tokenrov1 has joined #ponylang
jbk has quit [*.net *.split]
tokenrove has quit [*.net *.split]
FreedomSka has joined #ponylang
FreedomSka has quit [Quit: Quit]
FreedomSka has joined #ponylang
vaninwagen has quit [Ping timeout: 260 seconds]
vaninwagen has joined #ponylang
FreedomSka is now known as WMD_Edoardo
aturley has joined #ponylang
FreedomSka has joined #ponylang
WMD_Edoardo has quit [Ping timeout: 256 seconds]
FreedomSka has quit [Client Quit]
FreedomSka has joined #ponylang
FreedomSka has quit [Client Quit]
FreedomSka has joined #ponylang
FreedomSka has quit [Quit: Quit]
FreedomSka has joined #ponylang
FreedomSka has quit [Quit: Leaving]
FreedomSka has joined #ponylang
FreedomSka has quit [Client Quit]
FreedomSka has joined #ponylang
_andre has joined #ponylang
FreedomSka has quit [Quit: Quit]
FreedomSka has joined #ponylang
FreedomSka has quit [Client Quit]
FreedomSka has joined #ponylang
FreedomSka has quit [Client Quit]
WMD_Edoardo has joined #ponylang
WMD_Edoardo has quit [Client Quit]
<SeanTAllen>
dave24: you have a couple approaches, it depends on what you need performance wise. a single actor and communicating async is a good start. that might become a bottleneck for reads in which case, you could send updates from the mutable copy to read only replicas.
<SeanTAllen>
or
<SeanTAllen>
you could look at using CRDTs
pzel has quit [Ping timeout: 265 seconds]
pzel has joined #ponylang
WMD_Edoardo has joined #ponylang
WMD_Edoardo has quit [Client Quit]
WMD_Edoardo has joined #ponylang
WMD_Edoardo has quit [Client Quit]
zetashift has joined #ponylang
ExtraCrispy has joined #ponylang
endformationage has joined #ponylang
<ExtraCrispy>
Hi there.
<SeanTAllen>
hello ExtraCrispy
vaninwagen has quit [Ping timeout: 260 seconds]
<ExtraCrispy>
How are ya SeanTAllen ?
<SeanTAllen>
I'm good. Working and all that.
<ExtraCrispy>
Ah i see.
<ExtraCrispy>
So when is the repo getting moved to GitLab?
<SeanTAllen>
We have no plans to move.
<ExtraCrispy>
How come?
<ExtraCrispy>
I mean now with all that MS crap you should.IMHO.
<SeanTAllen>
You are welcome to your opinion
<SeanTAllen>
There are no plans because there are no plans.
<ExtraCrispy>
LOL i guess.
<ExtraCrispy>
Shouldn't it become a plan just for some people who hate MS?
<SeanTAllen>
That's not how we operate.
<ExtraCrispy>
I see.
larshesel has joined #ponylang
vaninwagen has joined #ponylang
Shorttail has joined #ponylang
<hmans>
ExtraCrispy: all programming languages belong to Microsoft now, and they will stop at nothing until it's all TypeScript. Be afrrraaaiiiiddddddddddd *spooky ghost voice*
<SeanTAllen>
This is a channel about Pony. Not Microsoft. Let's keep it on topic.
<SeanTAllen>
Some folks have strong feelings about Microsoft. They are welcome to them. I'd rather not get anything started on that as it isn't what this channel is for.
<hmans>
Roger that.
nisanharamati has joined #ponylang
vaninwagen has quit [Ping timeout: 265 seconds]
<nisanharamati>
the new version of https://stdlib.ponylang.org/ is nice! And having the source code there is a nice bonus :)
<SeanTAllen>
Thanks hmans
<hmans>
I second what nisanharamati said. It's great to look at and even nicer to read.