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
felixonmars has joined #ponylang
<mcguire> TwoNotes, your job now is to write a blog post explaining what you learned. :-D (For those of us who still don't understand the whole val/trn/... thing. I mean, for science.)
<mcguire> :-)
<doublec> mcguire: it's a good post on the reference capabilities
<DanC_> yes, that one helps quite a bit
amclain has quit [Quit: Leaving]
jemc has quit [Quit: WeeChat 1.4]
copy` has quit [Quit: Connection closed for inactivity]
jemc has joined #ponylang
trapped has joined #ponylang
jemc has quit [Client Quit]
tm-exa has joined #ponylang
tm-exa has quit [Quit: Computer has gone to sleep]
tm-exa has joined #ponylang
trapped has quit [Read error: Connection reset by peer]
tm-exa has quit [Ping timeout: 264 seconds]
srenatus has joined #ponylang
<hakvroot> would it make sense to be able to split an Array of size x into n Arrays of size x / n (with the total sum of sizes being equal to x) ?
<hakvroot> the thought I had behind that is the ability to do parallel computations on an Array (e.g. find / max / sum) in a fork/join fashion
<shepheb> morning folks
<SeanTAllen> morning
<shepheb> SeanTAllen: interesting small repro case and more results on #69
<shepheb> 3
<shepheb> creating a List[anything] is enough to do it. only happens without -d; probably optimization and inlining troubles.
<shepheb> let me know if you want to eyeball the actual binary produced on my machine. x86_64, Linux, gcc 5.3.0 and LLVM 3.7.1
<SeanTAllen> thanks
<SeanTAllen> busy day today and tonight. probably wont have a chance to take a look til tomororw.
<shepheb> ah, okay. no worries.
* shepheb installs Clang 3.7.1 and tries with that
_andre has joined #ponylang
<shepheb> no luck with Clang. not that surprising, I guess, since the busted instructions are in the (LLVM-generated) ponyc output, not in ponyc or libponyrt.
trapped has joined #ponylang
juanjoc has joined #ponylang
Praetonus has joined #ponylang
lispmeister has joined #ponylang
TwoNotes has joined #ponylang
aturley has joined #ponylang
copy` has joined #ponylang
Praetonus has quit [Quit: Leaving]
jemc has joined #ponylang
juanjoc has quit [Read error: Connection reset by peer]
amclain has joined #ponylang
pulpfiction has joined #ponylang
michael_campbell has quit [Quit: Textual IRC Client: www.textualapp.com]
aturley has quit [Ping timeout: 276 seconds]
<SeanTAllen> morning jemc!
lispmeister has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bb010g has quit [Quit: Connection closed for inactivity]
aturley has joined #ponylang
aturley has quit [Ping timeout: 246 seconds]
aturley has joined #ponylang
juanjoc has joined #ponylang
Matthias247 has joined #ponylang
<TwoNotes> Can someone explain to me again why ["a","b"] is not an Array[String] val?
Matthias247 has quit [Read error: Connection reset by peer]
pulpfiction has quit [Quit: Leaving]
juanjoc has quit [Quit: Leaving]
srenatus has quit [Quit: Connection closed for inactivity]
lispmeister has joined #ponylang
<jemc> TwoNotes: because you might still want to add more elements or mutate the array
<TwoNotes> The same could be said for "x". Is that a val or a ref?
<jemc> if the `Array` was a `val`, you'd never be able to mutate an array literal
<jemc> you're right, a string literal is a `val`
<TwoNotes> So is a numeric literal
<TwoNotes> A String is an awful lot like an Array internally
<jemc> if you're asking about the philosophical justification, of the difference, I may not be the best one to ask
<jemc> however, you can use `recover ... end` around the Array literal to get a `val`
<jemc> and there's talk of maybe supporting auto-recover in some more situations, including that one
<TwoNotes> Often I find the pprnamentation of 'recover' is longer than the thing I am recovering
<TwoNotes> That would be good.,
<TwoNotes> For example, if I am passing the array literal to a fun who expects a val..
<TwoNotes> Then just do the auto-recover for me
<jemc> yeah, I agree, it would be nice - I also want the same for lambdas
<TwoNotes> One of the things I like about Pony over Java is that it is less verbose to get anything done.
<TwoNotes> But having to recover and consume things every time I turn around, especially when dealing with multiuple actors where things have to be sendable, starts to add up
<TwoNotes> Imagine something like the 'printf' function. Imagine that was a behavior call and the entire argument list had to be sendable.
<TwoNotes> That is the sort of things I am dealing with
<TwoNotes> recover val [recover val arg1 end, recover val arg2 end] end
<TwoNotes> It does not make for readable code
<jemc> TwoNotes: I opened an issue for auto-recover: https://github.com/ponylang/ponyc/issues/702
<jemc> sylvanc is on board with this approach, so it just needs to be implemented
lispmeister has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lispmeister has joined #ponylang
<mcguire> I, for one, would like to go on record as supporting the turnstile character option for the syntax (https://github.com/ponylang/ponyc/issues/683), but only if you require the unicode RIGHT TACK character (⊢).
<mcguire> Every language should have at least one un-typable, impossible to find operator glyph.
lispmeister has quit [Client Quit]
<mcguire> And it would put Pony ahead of Perl. (I think.)
ponysaurus has joined #ponylang
_andre has quit [Quit: leaving]
ponysaurus has quit [Ping timeout: 250 seconds]
Praetonus has joined #ponylang
ponysaurus has joined #ponylang
<ponysaurus> aturley, @jemc: just wanted to ping you guys regarding the "converting between bytes and numbers" email on pony users list
ponysaurus has quit [Ping timeout: 250 seconds]
ponysaurus has joined #ponylang
<aturley> ponysaurus: what's up?
<ponysaurus> aturley: just wanted to know if you had a chance to look at the code i sent in the mail
<aturley> oh, i'm an idiot ...
<aturley> i now see you actually went to the trouble of attaching your code and i didn't even see it.
<aturley> sorry about that.
* aturley blames dad brain
<aturley> i'll take a look at it in the next 24 hours and get back to you.
<aturley> again, sorry, i dropped the ball on that one.
<ponysaurus> no worries .. the code itself isn't worth much (hence not a PR), but as i mentioned, please comment on the intent and style
<aturley> will do.
<aturley> thanks again.
<ponysaurus> cool
TwoNotes has quit [Quit: Leaving.]
Praetonus has quit [Quit: Leaving]
aturley has quit [Ping timeout: 276 seconds]
ponysaurus has quit [Ping timeout: 250 seconds]
aturley has joined #ponylang
aturley has quit [Ping timeout: 276 seconds]
mcguire has quit [Ping timeout: 264 seconds]
mcguire has joined #ponylang
trapped has quit [Quit: int random { /* ensure randomness */ return 3; }]
aturley has joined #ponylang
aturley has quit [Ping timeout: 260 seconds]