ExtraCrispy has quit [Remote host closed the connection]
ExtraCrispy has joined #ponylang
TwoNotes has joined #ponylang
<TwoNotes>
'let' creates a reference but does not copy the value. Is there a generic way to copy a value so for example, I can convert a 'val' into an 'iso'
<SeanTAllen>
No. There is no generic "clone" or "deep clone" that everything must implement
ExtraCrispy has quit [Remote host closed the connection]
<TwoNotes>
ok. I have a wrapper class around these values - I can add a 'clone this' method. I need that anyway because the underlying data is in a memory-mapped database that can change out from under when you aren't looking
TwoNotes has left #ponylang [#ponylang]
aturley has quit [Quit: aturley]
aturley has joined #ponylang
pzel has quit [Ping timeout: 244 seconds]
acarrico has quit [Ping timeout: 240 seconds]
<rkallos>
I took at look at https://github.com/nodejs/http-parser which looks like it might be wrappable in Pony. Has anyone here tried, or known anyone who has? I'm probably gonna take a stab at it
<SeanTAllen>
rkallos: i'm not aware of anyone having tried it. have at it!
<SeanTAllen>
i was going to write a high perf http parser for pony then remembered that i never want to do that ever again in my life
<SeanTAllen>
(write a high perf http parser that is)
<SeanTAllen>
i also never want to write another http server again
<rkallos>
I read through the Joyent code, and while I've never implemented an http parser myself, I can imagine the amount of pain it must inflict :'(
<SeanTAllen>
its not a good protocol.
<SeanTAllen>
so many edge cases and it definitely wasn't designed to make performance easy
<rkallos>
Do you know offhand of any Pony libraries that 'bare functions' for passing to C libs as callback functions?
<SeanTAllen>
hmmm
<SeanTAllen>
not offhand
<SeanTAllen>
that would be a good addition to the tutorial
<rkallos>
The way nodejs/http-parser works is by letting users specify callback functions to get called at various points in parsing. If/when I get started, I'll try to muddle my way through, then maybe at the end there'll be some examples and prose to add to the tutorial :-)
<SeanTAllen>
sounds like a plan
<rkallos>
On another note, I re-read Helland's Life Beyond Distributed Transactions today. It was a good day