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
biscarch has joined #ponylang
<anthonybullard> I think I've finally uncovered the rough spots in the json API.
<SeanTAllen> all of it anthonybullard ?
<anthonybullard> No just one :-)
<anthonybullard> one part that is
<SeanTAllen> we have different opinions and that is ok
Bombe has quit [Ping timeout: 252 seconds]
<anthonybullard> I guess I wonder why JsonType's member types all have `val` but JsonObject and JsonArray are `ref`
Bombe has joined #ponylang
<anthonybullard> I was able to resolve that issue, but running into a not incredibly helpful backtrace from the compiler, even in debug mode
aturley has quit [Read error: Connection reset by peer]
aturley has joined #ponylang
endformationage has quit [Quit: WeeChat 2.3]
srenatus has joined #ponylang
<profetes> vaninwagen: thank you very much, looks Promise'ing, I'll try to implement this into my solution later. thanks!
<vaninwagen> anthonybullard: could you create a github issue with your code and a backtrace from a debug build of ponyc? Which version did you use.
<vaninwagen> This is clearly a compiler bug
<vaninwagen> profetes: nice pun, hard to avoid actually
acarrico has quit [Quit: Leaving.]
acarrico has joined #ponylang
<Candle> https://github.com/CandleCandle/text-reader I think I've covered all the edge cases (see the tests, which all pass on my machine and 0.25.0). Apart from the abuse of @printf, can anyone see anywhere that could be improved? I'm about to try to use it more in anger so I'm sure that I'll find some...
<Candle> It's intended as a replacement for buffered/Reader.line() where we know that (a) the data comes in in chunks and (b) lines are always separated by \r\n.
<vaninwagen> Candle nice! When using it to parse http headers, how could i go about getting the whole body?
<vaninwagen> The only thing that jumps into my face is the copying of the line string
<Candle> If I understand your question, that is what the 'remaining()' function is there for; grab the unused buffer elements to read the body.
<Candle> I think we came to the conclusion that without re-implementing the String class to work with multiple underlying arrays, we have to copy the bytes into a new String.
<Candle> Part of the problem is that one call of the data array passed received(...) can contain 0..n lines. (see the test named 'line-reader/complete-example')
<Candle> I take it you've seen the psudo-code near the start of text-reader.pony ?
endformationage has joined #ponylang
<vaninwagen> Yep
<vaninwagen> I think if we use something like a rope, that is a pointer with a length into a bunch of arrays and make it Stringable and Comparable to String and other such pointers, we have a good foundation for reducing copying altogether
<vaninwagen> I was just thinking a lot about this lately
<vaninwagen> Your text-reader is a great step forward
squirmybroom35 has joined #ponylang
squirmybroom35 has quit [Remote host closed the connection]
travis-ci has joined #ponylang
<travis-ci> ponylang/ponyc#5515 (master - 8a0a7d4 : Stephan Renatus): The build was fixed.
travis-ci has left #ponylang [#ponylang]
travis-ci has joined #ponylang
<travis-ci> ponylang/ponyc#5516 (master - 8a0a7d4 : Stephan Renatus): The build was broken.
travis-ci has left #ponylang [#ponylang]
<aturley> streaming advent of code in pony here if anyone wants to watch ... https://www.twitch.tv/aturls/
acarrico has quit [Ping timeout: 250 seconds]
acarrico has joined #ponylang
srenatus has quit [Quit: Connection closed for inactivity]
profetes_ has joined #ponylang
slfritchie_ has joined #ponylang
mrallen1_ has joined #ponylang
enilsen16_ has joined #ponylang
wyvern_ has joined #ponylang
aturley has quit [Ping timeout: 250 seconds]
enilsen16 has quit [Ping timeout: 250 seconds]
mrallen1 has quit [Ping timeout: 250 seconds]
wyvern has quit [Ping timeout: 250 seconds]
slfritchie has quit [Ping timeout: 250 seconds]
profetes has quit [Ping timeout: 250 seconds]
enilsen16_ is now known as enilsen16
mrallen1_ is now known as mrallen1
slfritchie_ is now known as slfritchie
wyvern_ is now known as wyvern
profetes_ has quit [Quit: Leaving]
aturley has joined #ponylang
acarrico has quit [Ping timeout: 246 seconds]