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 quit [Ping timeout: 240 seconds]
catern has quit [Ping timeout: 260 seconds]
catern has joined #ponylang
jjpx has joined #ponylang
acarrico has joined #ponylang
jjpx has quit [Ping timeout: 248 seconds]
jjpx has joined #ponylang
jemc has quit [Ping timeout: 240 seconds]
strmpnk has quit [Ping timeout: 240 seconds]
strmpnk has joined #ponylang
plietar has joined #ponylang
plietar has quit [Remote host closed the connection]
plietar has joined #ponylang
pduncan has joined #ponylang
acarrico has quit [Ping timeout: 248 seconds]
jemc has joined #ponylang
jemc has quit [Ping timeout: 248 seconds]
endformationage has quit [Quit: WeeChat 1.9]
jjpx has quit [Ping timeout: 248 seconds]
user10032 has joined #ponylang
user10032 has quit [Quit: Leaving]
bdari has joined #ponylang
<bdari> Hi...
<bdari> any sample about socket programming for push messaging?
bdari has quit [Client Quit]
samuell has joined #ponylang
vaninwagen has joined #ponylang
HTTP_____GK1wmSU has joined #ponylang
HTTP_____GK1wmSU has left #ponylang [#ponylang]
Matthias247 has joined #ponylang
vaninwagen has quit [Ping timeout: 240 seconds]
vaninwagen has joined #ponylang
Matthias247 has quit [Quit: Matthias247]
vaninwagen has quit [Ping timeout: 248 seconds]
ShalokShalom_ has joined #ponylang
vaninwagen has joined #ponylang
ShalokShalom has quit [Ping timeout: 248 seconds]
ShalokShalom_ is now known as ShalokShalom
ensrettet has joined #ponylang
ensrettet has quit [Quit: Textual IRC Client: www.textualapp.com]
vaninwagen has quit [Ping timeout: 248 seconds]
vaninwagen has joined #ponylang
Matthias247 has joined #ponylang
vaninwagen has quit [Ping timeout: 240 seconds]
_andre has joined #ponylang
samuell has quit [Remote host closed the connection]
samuell has joined #ponylang
jonrh has quit [Ping timeout: 255 seconds]
<SeanTAllen> bdari: i'm not sure what you mean by "push messaging".
Matthias247 has quit [Read error: Connection reset by peer]
Matthias247 has joined #ponylang
jonrh has joined #ponylang
kulibali has joined #ponylang
acarrico has joined #ponylang
jjpx has joined #ponylang
Praetonus has joined #ponylang
endformationage has joined #ponylang
vaninwagen has joined #ponylang
hobomatic has joined #ponylang
<hobomatic> @SeanTAllen: on the 8th I wrote something here about there being no string() on Array[], and no good way of puting a constraint on a type parameter for some rank2 time, like Array[A]. And your response was that "thats because an array might not be stringable". My 4 day later response is: yes, but if you constrained the type variable, like in Arrayt[Stringable], that could not happen. My expectation was that the method would only exist for
<hobomatic> Array[Stringable], since there would be a constraint on the reciever.
<hobomatic> the expectation is coming from prior experience with languages with both generics, and methods where the reciever is an explicit parameter
<SeanTAllen> Pony currently has no way expressing that one a class. You can use a fun on a primitive that takes an Array[Stringable]
<SeanTAllen> if you would interested, you could open an RFC about syntax for how to add to classes directly
<hobomatic> yeah, I will probably do that, I just wanted to make sure the idea that lead to the expectation was understood
<hobomatic> Ok
<SeanTAllen> Yup. got it.
<Praetonus> hobomatic: FYI, a part of this is covered by the `iftype` feature, which isn't fully implemented as of now. Here's the associated RFC: https://github.com/ponylang/rfcs/blob/master/text/0026-subtype-checking.md
acarrico has quit [Ping timeout: 240 seconds]
<SeanTAllen> I'd forgotten that existed Praetonus
<hobomatic> yes, specialization was another usecase that was rattling around in my head
<hobomatic> that seems like a much more interesting way of doing it than I was thinking of.
jjpx has quit [Ping timeout: 248 seconds]
<hobomatic> yeah I am starting to sweat just thinking of all of the ambiguity between case functions, iftype and ... what looks like its trying to be dependently typed pattern guards?
<hobomatic> well, dependently typed guards.. for case functions
jjpx has joined #ponylang
acarrico has joined #ponylang
<endformationage> I think I may've found a clue to my strange array behavior. Perhaps it has something to do with how constructors work? Please take a look here:
jjpx has quit [Ping timeout: 248 seconds]
<endformationage> See also lldb sessions included in the gist. (Gist made them appear out of order :\)
acarrico has quit [Ping timeout: 248 seconds]
<SeanTAllen> sounds like something is stepping on memory
jemc has joined #ponylang
<SeanTAllen> endformationage: does it seem like something else is getting allocated into the same location as your array?
<endformationage> I've not been able to reproduce outside my codebase.
<SeanTAllen> ok
<SeanTAllen> but
<SeanTAllen> does it seem like that is what is going on?
acarrico has joined #ponylang
<endformationage> Hmm, I suppose. I guess I don't have the knowledge to know/find out if this is the case.
jemc has quit [Quit: WeeChat 1.4]
jemc has joined #ponylang
jemc has quit [Client Quit]
<endformationage> If I simply avoid pre-allocating the array in the map in the constructor, it seems to work OK.
jemc has joined #ponylang
jemc has quit [Client Quit]
<endformationage> I'll try moving the pre-allocation to the very end of the constructor.
jemc has joined #ponylang
acarrico has quit [Ping timeout: 246 seconds]
jemc has quit [Client Quit]
jemc has joined #ponylang
jemc has quit [Client Quit]
<endformationage> BTW, the pre-allocation in the actual code base can be found here: https://github.com/patternspandemic/pony-kore/blob/master/kore/system.pony#L147
<SeanTAllen> so
<SeanTAllen> moving the allocation would put it in a different memory location
acarrico has joined #ponylang
jemc has joined #ponylang
jemc has quit [Client Quit]
jemc has joined #ponylang
_andre has quit [Quit: leaving]
acarrico has quit [Ping timeout: 252 seconds]
jjpx has joined #ponylang
samuell has quit [Remote host closed the connection]
jjpx has quit [Ping timeout: 248 seconds]
user10032 has joined #ponylang
user10032 has quit [Client Quit]
vaninwagen has quit [Ping timeout: 248 seconds]
TheNet has joined #ponylang
Matthias247 has quit [Quit: Matthias247]
jjpx has joined #ponylang
TheNet has quit [Quit: Textual IRC Client: www.textualapp.com]
homelessrobot has joined #ponylang
doublec_ has joined #ponylang
hobomatic has quit [Ping timeout: 240 seconds]
doublec has quit [Ping timeout: 240 seconds]
doublec_ is now known as doublec
yggdr has quit [Ping timeout: 240 seconds]
doublec has quit [Changing host]
doublec has joined #ponylang
yggdr has joined #ponylang