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
nyarum has joined #ponylang
Matthias247 has quit [Read error: Connection reset by peer]
nyarum has quit [Remote host closed the connection]
nyarum has joined #ponylang
nyarum has quit [Ping timeout: 240 seconds]
TheNet has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nyarum has joined #ponylang
nyarum has quit [Ping timeout: 255 seconds]
_whitelogger has joined #ponylang
hooo has quit [Quit: Leaving]
TheNet has joined #ponylang
_whitelogger has joined #ponylang
zachcarter has quit [Quit: zachcarter]
jemc has joined #ponylang
TheNet has quit [Quit: Textual IRC Client: www.textualapp.com]
endformationage has quit [Quit: WeeChat 1.7]
jemc has quit [Ping timeout: 246 seconds]
papey_lap has joined #ponylang
nyarum has joined #ponylang
nyarum has quit [Ping timeout: 246 seconds]
Matthias247 has joined #ponylang
_whitelogger has joined #ponylang
_whitelogger has joined #ponylang
<SeanTAllen> A new "Last week in Pony" is out... https://www.ponylang.org/blog/2017/06/last-week-in-pony---june-18-2017/
<bitcrusher> was joe duffy's talk uploaded to qcon?
<bitcrusher> oh it was uploaded just a lot earlier maybe..
<bitcrusher> ^that must be a bot?
<bitcrusher> maybe not.. reddit hasn't doesn't have last week in pony.. maybe he manually posts.
nyarum has joined #ponylang
nyarum has quit [Ping timeout: 255 seconds]
<SeanTAllen> I stopped posting to reddit. People are free to post it if they want.
nyarum has joined #ponylang
nyarum has quit [Remote host closed the connection]
nyarum has joined #ponylang
nyarum has quit [Ping timeout: 240 seconds]
Matthias247 has quit [Read error: Connection reset by peer]
nyarum has joined #ponylang
nyarum has quit [Ping timeout: 246 seconds]
nyarum has joined #ponylang
nyarum has quit [Ping timeout: 240 seconds]
nyarum has joined #ponylang
nyarum has quit [Ping timeout: 240 seconds]
nyarum has joined #ponylang
nyarum has quit [Ping timeout: 268 seconds]
<cquinn> quick basic question: what is the ref capability of a constant array expression?
<cquinn> That is, if I am passing an array literal directly to a function argument, what caps are compatible with that literal so that no recover is needed.
<cquinn> I couldn't find a section in the tutorial that discussed caps of literals.
papey_lap has quit [Quit: WeeChat 1.8]
<ada[m]> stupid quesion: when calling a class constructor, is there a way to control the reference capability returned?
nyarum has joined #ponylang
nyarum has quit [Remote host closed the connection]
vaninwagen has joined #ponylang
<vaninwagen> cquinn afaik it is Array[X] ref, but right, there should be a section in the tutorial, maybe in the expressions section or capabilities
<vaninwagen> ada[m] when writing a constructor you can do ``new CAP create(...)``. afaik when calling all you can do is recover, as the actual cap is defined by the constructor
<vaninwagen> smth. along those lines: recover MyLittlePony.create("rainbow-dash") end (which has some constraints https://tutorial.ponylang.org/capabilities/recovering-capabilities.html)
<vaninwagen> hehe, joe duffy: "use languages that solve these problems by construction", sylvan clebsch: *smiles knowingly* https://www.infoq.com/presentations/panel-languages-future
<ada[m]> thanks vaninwagen!
<ada[m]> So that question came from the fact that I was trying to print a string iso without consuming it. The error message I got led me to believe that the ref I was creating wasn't an iso, so I figured I was misunderstanding ref cap construction. Turns out I wasn't; I was just looking at the wrong part of my code. Trying to work out now whether there's a way I can improve the tutorial so others don't run into same problem.
<vaninwagen> ada[m] i also came across one or two issues where i wished there would have been some kind of a language reference next to the tutorial
<vaninwagen> the tutorial is great, but its narrative flow introduces capabilities quite late so that they are not covered from beginning
<vaninwagen> if there is a common interest for some kind of language reference which tries to cover everything without the educational impetus of the tutorial (and which takes most parts from the existing tutorial), i would be glad to help out
Matthias247 has joined #ponylang
vaninwagen has quit [Remote host closed the connection]
nyarum has joined #ponylang
<SeanTAllen> ada[m]: yes.
<SeanTAllen> new iso create() will default you to iso. Change refcap as needed to suit your needs.
Matthias247 has quit [Read error: Connection reset by peer]
nyarum has quit [Remote host closed the connection]
nyarum has joined #ponylang
nyarum has quit [Ping timeout: 255 seconds]