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
acarrico has joined #ponylang
acarrico has quit [Ping timeout: 240 seconds]
acarrico has joined #ponylang
endformationage has quit [Ping timeout: 252 seconds]
endformationage has joined #ponylang
nicolai86 has quit [Quit: ZNC - http://znc.in]
nicolai86 has joined #ponylang
acarrico has quit [Ping timeout: 240 seconds]
jsgrant has joined #ponylang
_whitelogger has joined #ponylang
jsgrant has quit [Ping timeout: 240 seconds]
sebastian_ has joined #ponylang
<sebastian_> I'm sure it's a common, boneheaded mistake, but I really can't figure my way around using map_stateful. I'm trying the following: https://pastebin.com/raw/bLCZp0s0 and receiving these errors: https://pastebin.com/raw/LMX7MSGh
<sebastian_> I can't figure out if the base of the problem is a capability issue, or just a misuse of basic language constructs
<sebastian_> any help is much appreciated! Thanks
jsgrant has joined #ponylang
<sebastian_> I'll be offline for a bit, but I'll come back and check the log
sebastian_ has quit [Ping timeout: 248 seconds]
user10032 has joined #ponylang
<doublec> sebastian_: map_stateful maps from a State to a State, so I changed the result from 'None' to 'State'. This means I have to return the modified state.
<doublec> sebastian_: collect() takes a generic argument that defaults to an Array. Since you use a list we need to be explicit about it being a List, hence: collect[List[State]]
Praetonus has joined #ponylang
sebastian_ has joined #ponylang
sebastian_ has quit [Ping timeout: 240 seconds]
endformationage has quit [Quit: WeeChat 1.9]
user10032 has quit [Quit: Leaving]
samuell has joined #ponylang
MaybeDragon has joined #ponylang
_andre has joined #ponylang
ShalokShalom_ has joined #ponylang
ShalokShalom has quit [Ping timeout: 240 seconds]
ShalokShalom_ is now known as ShalokShalom
wintermoo has joined #ponylang
wintermoo is now known as rewsd_
rewsd_ has left #ponylang [#ponylang]
<kjekac> hi all! currently trying to write some Pony code after reading the tutorial. is "classes are for data, actors are for behavior" a useful rule-of-thumb?
<kjekac> sorry, realize that's an unfortunate choice of words. I don't mean "behaviors" as in the language construct, but as in "this is what my program should do" (as opposed to "this is how my program should store and handle its data")
acarrico has joined #ponylang
<SeanTAllen> kjekac: kind of?
<SeanTAllen> classes are good for "do" but not "communication"
<SeanTAllen> so it depends on how you define "what my program should do"
<SeanTAllen> that said, it sounds like a reasonable rule of thumb to start with
<SeanTAllen> one thing that helped me when i started was i added documentation to parts of the standard library and got to see what was an actor and what was a class.
<SeanTAllen> that might be helpful for you as well.
sebastian_ has joined #ponylang
<kjekac> SeanTAllen: ah, that makes sense, especially that classes are for "do" but not "communication", but I also realize that I need to refine my notions of what those two concepts constitute.
<kjekac> for example, I realized just now, that if multiple actors should be able to write to some data structure, that has to be handled by an actor, even though "write" feels more like "do" than like "communication" to me, at least intuitively.
<kjekac> add documentation is probably a good idea if I have further problems moving forward. :)
<kjekac> might come back with some other specific questions though.
<sebastian_> doublec: Thanks for the tips! That all makes sense, and works inside the Pony Playground, but when I try it locally I still get an error: https://pastebin.com/raw/9xMU7f7G
<sebastian_> Is there some difference between flags used by the Playground and just running ponyc? Or a substantial version difference?
<sebastian_> This is my `pony --version`: https://pastebin.com/raw/x9hW5ztj
sebastian_ has quit [Remote host closed the connection]
sebastian_ has joined #ponylang
sebastian_ has quit [Ping timeout: 255 seconds]
<SeanTAllen> sebastian_: playground is on 0.19.1. List of changes is here: https://www.ponylang.org/blog/2017/09/0.19.1-released/
<SeanTAllen> the code in question is taking advantage of new lambda inference capabilities that aren't in 0.19.0
<SeanTAllen> if you upgrade locally, you should be good.
shelajev has joined #ponylang
endformationage has joined #ponylang
user10032 has joined #ponylang
shelajev has quit [Remote host closed the connection]
shelajev has joined #ponylang
shelajev has quit [Remote host closed the connection]
shelajev has joined #ponylang
shelajev has quit [Remote host closed the connection]
shelajev_ has joined #ponylang
shelajev_ has quit [Remote host closed the connection]
shelajev has joined #ponylang
shelajev has quit [Ping timeout: 260 seconds]
jemc has joined #ponylang
jemc has quit [Client Quit]
jemc has joined #ponylang
samuell has quit [Quit: Leaving]
Praetonus has quit [Ping timeout: 240 seconds]
Praetonus has joined #ponylang
samuell has joined #ponylang
samuell has quit [Quit: Leaving]
_andre has quit [Quit: leaving]
jemc has quit [Quit: WeeChat 1.9]
jemc has joined #ponylang
jemc has quit [Quit: WeeChat 1.9]
jemc has joined #ponylang
Praetonus has quit [Quit: Leaving]
_whitelogger has joined #ponylang
tscho has quit [Ping timeout: 240 seconds]
tscho has joined #ponylang
TheNet has joined #ponylang
adamkittelson has joined #ponylang
user10032 has quit [Quit: Leaving]
TheNet has quit [Quit: Textual IRC Client: www.textualapp.com]
MaybeDragon has quit [Quit: Leaving]