»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, std:, or /msg camelia p6: ... | irclog: irc.perl6.org | UTF-8 is our friend! Set by masak on 12 May 2015. |
|||
00:00
[TuxCM] left
00:17
rindolf left
00:26
laouji joined
00:34
mprelude left
00:39
laouji left
00:40
laouji joined
00:44
llfourn joined,
laouji left
00:49
llfourn left,
laouji joined
|
|||
japhb | o/ | 00:52 | |
01:12
BenGoldberg left
01:13
BenGoldberg joined
01:20
vendethiel joined
01:36
BenGoldberg left,
Fleurety left,
ab5tract_ joined
01:37
ab5tract left,
zacts left,
zacts joined
01:38
ggoebel2 joined
01:40
ggoebel left,
cgfbee left,
Fleurety joined
01:41
cgfbee joined
|
|||
thou | ugexe: FYI: this works like I want it to. gist.github.com/softmoth/1da0f8e722e98c2363bf | 02:13 | |
02:13
noganex_ joined
|
|||
thou | ugexe: regarding tap/act, I still contend that you've got a race there. See commented-out .act() calls in this code ^; the note() calls for stderr and stdout will overwrite each other. | 02:14 | |
I have to use another channel to properly merge the lines. I believe your process code has the same issue. | 02:15 | ||
02:16
noganex left
|
|||
thou | erm, sorry, nevermind! I do think it's still a potential problem, but this one is due to my running multiple threads a the same time | 02:16 | |
I'd need to do some random sleeping in the act() closures to test my hunch | 02:17 | ||
jobs | |||
02:22
vendethiel left
02:43
thou left
02:45
llfourn joined,
rangerprice left
02:50
llfourn left
|
|||
ugexe | if i want the lines properly merged, i access stdout and stderr directly. i would not use $merge | 03:01 | |
but thats assuming im using one persons definition of proper | |||
03:02
kaare_ joined,
llfourn joined
|
|||
ugexe | your problem is because you are calling say/note whatever inside your tap/act | 03:05 | |
if multiple threads are printing out $*OUT, you will get what appears to be incorrectly merged lines | 03:07 | ||
if you are really trying to merge the output to the terminal, that is a different thing. a blog post that shows the general idea ugexe.com/create-a-perl6-terminal-progress-bar/ | 03:11 | ||
03:13
peteretep joined
|
|||
peteretep | homebrew wants to know if I want to install rakudo-star with pcre | 03:13 | |
ugexe | but you have to make choices. if you receive a line of text without a line break at the end, and then another process fires its own tap to print, what do you do? | ||
peteretep | Is there a quick overview of the implications of that choice? | ||
ugexe | zef::cli::statusbar puts a lock inside $*OUT's print method | 03:15 | |
03:23
llfourn left
03:27
aborazmeh left
03:30
rurban joined
03:33
lizmat left
03:43
laouji left
03:44
laouji joined
03:46
_itz joined,
prevost joined
03:49
_itz_ left
03:50
_itz left
03:51
_itz joined
03:52
thou joined
03:53
llfourn joined
03:55
TEttinger joined
04:02
_itz_ joined
04:04
_itz left
04:16
rurban left
04:54
[Sno] left
|
|||
TimToady | checking out breakfast at the Abba, then off to the Alhambra | 05:00 | |
we have one free ticket if anyone happens to be here and awake enough to leave 8:00 or so | 05:01 | ||
05:03
khw left
|
|||
ShimmerFairy | TimToady: how many more stops until you're home (or if not that, your next destination)? A quick look for Alhambra places at least two in Spain and California, so it's not like I could guess :) | 05:19 | |
05:36
emilbarton joined
|
|||
emilbarton | hi, why does $str.eval returns "method not found for invocant of class string"? | 05:36 | |
05:36
cdc_ is now known as cdc
|
|||
ShimmerFairy | it's spelled EVAL in Perl 6 now. so it'd be EVAL($str) or $str.EVAL :) | 05:39 | |
emilbarton | ok thanks | ||
05:40
emilbarton left
05:42
prevost left
05:52
cognominal joined
|
|||
TimToady | ShimmerFairy: "The" Alhambra is in Granada, Spain | 05:55 | |
ShimmerFairy | ah, I somehow missed the "the" there :) | ||
05:56
skids left
|
|||
ShimmerFairy | By the way, I think I'll be ready to push my val() and allomorphic types as a branch tonight :) . The only main issue is that my implementation of IntStr dies on bigints, and I'm not sure how to fix that. | 06:05 | |
(The only thing I can think of is a fallback Int attribute, and then reimplementing all of Int's methods in IntStr, but ick) | 06:06 | ||
06:09
lizmat joined
|
|||
ShimmerFairy | m: say "".Numeric # this is surprising, and feels wrong to me | 06:09 | |
camelia | rakudo-moar 5ba44f: OUTPUT«0» | ||
GLRelia | rakudo-moar 36ea47: OUTPUT«0» | ||
nine | ShimmerFairy: that's probably Perl 5 heritage | 06:12 | |
ShimmerFairy | nine: replacing .Numeric with a val() call in my code caught that in a test, and I'm quite OK with saying "but I don't see a number in that string" :) | 06:13 | |
(replacing the implementation of Str.Numeric, that is) | |||
dalek | kudo/glr: cb9b821 | FROGGS++ | t/01-sanity/19-say.t: remove test of say() that does not work with .gist, laben++ |
06:15 | |
kudo/glr: cf3b24c | timotimo++ | t/01-sanity/19-say.t: Revert "remove test of say() that does not work with .gist, laben++" Was supposed to be on the glr branch This reverts commit cb9b821b08095c6d4c1157085e7fc2084f2dd72d. |
|||
kudo/glr: 5ba44fc | hoelzro++ | tools/build/NQP_REVISION: Bump NQP_REVISION For close_stdin fix in MoarVM |
|||
kudo/glr: 78b8f29 | (Stefan Seifert)++ | tools/build/NQP_REVISION: Merge branch 'nom' into glr |
|||
ShimmerFairy | nine: I could see it might've been some sort of guarantee for ?$string === ?$string.Numeric.Stringy , back when "0" was False :) | ||
nine | Darn...really have to leave for the office now | 06:16 | |
06:28
FROGGS joined
06:30
thou left
06:32
[Sno] joined
06:37
[TuxCM] joined
06:49
aborazmeh joined,
aborazmeh left,
aborazmeh joined
06:50
xinming joined
06:52
rurban joined
06:54
xinming_ left
06:58
ChoHag joined
|
|||
masak | morning, #perl6 | 07:05 | |
ShimmerFairy | o/ | 07:07 | |
07:07
itz joined
07:10
laben joined
|
|||
laben | hello #perl6 | 07:13 | |
07:13
abraxxa joined
|
|||
ShimmerFairy | o/ laben | 07:19 | |
07:24
Guest4404 left
07:27
xfix joined
07:28
aborazmeh left
07:31
Ven joined
07:34
rarara left
07:35
RabidGravy joined
07:36
Ven left
07:38
darutoko joined
07:42
Ven joined
07:46
itz left,
Ven left
07:47
Ven joined,
rurban left
|
|||
laben | as i feared, Template::Mustache doesn't work because the grammar or the actions fail to create the correct result. now, where do i sign up for a crash course in grammars and actions? | 07:56 | |
07:56
rurban joined
|
|||
nine | laben: doc.perl6.org/language/grammars is quite good | 07:57 | |
laben | nine: do you know if Grammars and/or Actions internally use some sort of push that would need to be adjusted for glr? | 07:59 | |
DrForr | laben: I've got a pretty extensive grammar/actions combo in the ANTLR module in the ecosystem. | ||
08:04
[Tux] left
|
|||
FROGGS | laben: do you get error messages you could gist? | 08:05 | |
yoleaux | 30 Aug 2015 21:00Z <laben> FROGGS: the LAST phaser doesnt seem to fire when the last execution is finished with next, see "for 1 {LAST {say "last"};next}" | ||
FROGGS | ohh, the LAST phaser thing might be some very easily fixable... | ||
laben | just a quick question, the TOP action is called last, after every other action has been called, right? | 08:06 | |
08:06
rarara joined
|
|||
nine | laben: my Apache-To-Nginx seems to parse just fine and that's a largish grammar. From what I can see, there's just a couple of GLR fixes necessary in the converter code itself. | 08:08 | |
FROGGS: do you by chance still have my short micro USB cable? | 08:09 | ||
JimmyZ | isn't the TOP first? | 08:11 | |
laben | somehow an action doesnt get called, which means the correct ast is never made. let's see why... | 08:12 | |
08:15
espadrine joined
08:16
[Tux] joined
|
|||
FROGGS | nine: damn, it was yours? | 08:18 | |
ó.ò | |||
I convinced tadzik to take it -.- | |||
nine | This...may even be an advantage. You aren't coming to YAPC are you? | 08:19 | |
FROGGS | JimmyZ: the TOP token is called first, so the TOP action method is called last | ||
nine: I'm not, correct | |||
08:19
colomon joined
|
|||
nine | tadzik may be, so I may even have a chance of getting it back ;) | 08:19 | |
FROGGS | :S | ||
nine: Sorry | |||
nine | No worry. | ||
tadzik | nine: I'm not, sorry :( | 08:20 | |
nine: but I'm still in Zurich :) | |||
if you want to catch me | |||
nine | I'm already back in Linz | ||
tadzik | ah :/ | ||
nine | I should have charged my phone in Switzerland at least once. Then I'd have noticed the missing cable. | 08:21 | |
08:21
colomon left
|
|||
nine | Curse you large battery! | 08:21 | |
08:21
rindolf joined,
colomon joined
|
|||
tadzik | :) | 08:22 | |
DrForr | DAMN YOU FOR BEING SO EFFICIENT | 08:23 | |
nine | Maybe I should just give in and register a Google account to suck my battery empty in a day ;) | 08:24 | |
laben | gosh, the bottom action doesn't get called even once on glr, that's why it does not create any ast. at the same time, why the heck is nom calling the same action 2 times, with the same argument, when there's evidently only one occurrence? | ||
nine | laben: sounds like we overcompensated? | 08:25 | |
08:26
lizmat_ joined
08:28
domidumont joined,
lizmat left
|
|||
laben | seems like it's called twice because it's used in an assertion. but the assertion totally doesn't get called in glr. what's going on? | 08:30 | |
need to go now, have a good day #perl6 | 08:42 | ||
08:42
laben left
|
|||
lizmat_ | good *, #perl6 | 08:51 | |
08:51
lizmat_ is now known as lizmat
|
|||
lizmat | messages? | 08:51 | |
yoleaux | 30 Aug 2015 10:39Z <nine> lizmat: I figured out what's wrong with zip-latest.t! It's just that every way we tried to fix the issue hit an underlying bug. Array.clone re-uses the same $!reified buffer for the clone and List.from-iterator creates a new $!reified but uses the same scalar containers for the values. So they are still linked. | ||
lizmat | .tell nine Good to know what caused the issue... :-) | 08:52 | |
yoleaux | lizmat: I'll pass your message to nine. | ||
08:52
telex left
|
|||
nine | lizmat: It's also fixed by now :) | 08:52 | |
yoleaux | 08:52Z <lizmat> nine: Good to know what caused the issue... :-) | ||
lizmat | cool! | ||
nine | There's now only 2 GLR related spec test failures: Sequences do not yet throw the correct exceptions on invalid input and one of the advent tests is not properly GLRed yet. | 08:53 | |
08:54
telex joined
|
|||
lizmat | I saw 5: 1 of them is a known issue on OS X with IO::Socket::INET | 08:54 | |
the other two I'm not sure about | |||
nine | t/spec/S02-literals/numeric.t fails also on nom | 08:55 | |
ShimmerFairy++ fixed numeric.t to actually test what it's claiming to test and that's why it now shows failures. They should just be todo'd | |||
cdc | .tell [Coke] about irclog.perlgeek.de/perl6/2015-08-29#i_11138242, I use for each arguments of a Bash command-line: sub escape-arg(Str $arg is copy) { if $arg ~~ s:g/([ ' ' | \' | \\ | <:Control> ])/{ $0.ord.fmt('\\u%04x') }/ { [~] <$'>, $arg, <'> } else { $arg } } | 08:56 | |
yoleaux | cdc: I'll pass your message to [Coke]. | ||
nine | many-processes-no-close-stdin.t was also a nom issue that has since been fixed by hoelzro++ (NQP bump was missing) | ||
08:56
Ven left
08:58
araujo joined,
araujo left,
araujo joined
|
|||
ShimmerFairy | sorry for not TODOing those tests, by the way; I think my idea was "oh, I messed around in that part of the grammar recently, I could fix that soon!" and then didn't :P | 09:00 | |
09:03
espadrine left,
espadrine_ joined
|
|||
ShimmerFairy | m: say :10<-42> # this is how I guessed you negate adverbial numbers, but apparently I'm wrong :) (though to be fair the spec says nothing about a negative number of this form) | 09:13 | |
camelia | rakudo-moar 5ba44f: OUTPUT«5===SORRY!5=== Error while compiling /tmp/jP8rFHCpOzMalformed radix numberat /tmp/jP8rFHCpOz:1------> 3say :10<7⏏5-42> # this is how I guessed you negate expecting any of: number in radix notation» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«5===SORRY!5=== Error while compiling /tmp/zkxkvTeU3rMalformed radix numberat /tmp/zkxkvTeU3r:1------> 3say :10<7⏏5-42> # this is how I guessed you negate expecting any of: number in radix notation» | ||
RabidGravy | If I need to reference a type 'B' in a role 'F' that may be consumed in term by 'F' is doing something like "self ~~ ::('B')" in the role valid way of not having to load the class (and get blown out for circular dependency)? | 09:16 | |
ShimmerFairy | do you want ::?CLASS, per chance? | 09:17 | |
RabidGravy | no I don't | ||
the role may be consumed by a variety of things, it needs to check if something is one of them | 09:18 | ||
(actually self was a bad example there as the actual code doesn't do that) | 09:19 | ||
ShimmerFairy | you can always stub the class(es) in question, and hopefully be able to use them well enough in the role. | 09:20 | |
RabidGravy | the actual code is something more like: | 09:23 | |
m: role F { method b(Mu:D $f) { say $f ~~ ::("B"); } }; class B does F { }; B.new.b(B.new) | |||
camelia | rakudo-moar 5ba44f: OUTPUT«True» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«True» | ||
RabidGravy | where obviously the circumstances of the creation of the second B are somewhat more complicated | 09:24 | |
09:26
Ven joined
|
|||
RabidGravy | I'm going to go with it and see what happens | 09:27 | |
09:38
mprelude joined
09:43
lizmat left
|
|||
nine | ShimmerFairy: could you please todo them now? I'm not sure about the protocol there. For example, do we require RT tickets for todos? | 09:45 | |
09:47
rurban left
|
|||
ShimmerFairy | nah, I'll get to it. Just a case of focusing on other stuff, but it'd only take a second. :) | 09:48 | |
nine | That's even better :) | ||
Btw. sorry if I've been a bit grumpy about this. Past few weeks have been exhausting. | 09:49 | ||
ShimmerFairy | That's alright :) | 09:51 | |
dalek | ast: 6b38ee7 | ShimmerFairy++ | S02-literals/numeric.t: TODO a couple tests. nine++ for catching that they needed it. |
09:56 | |
ast/glr: 8fe513c | ShimmerFairy++ | S02-literals/allomorphic.t: Updating allomorphic tests. In particular coercing the allomorphic types for 'is' tests, since allomorphic types probably shouldn't implement === for an allomorphic type and one of its component types. |
10:04 | ||
ast/glr: d47db92 | ShimmerFairy++ | S02-literals/listquote.t: Fix accidental pure string expectation Since the test in question isn't meant to test allomorphic types, I changed the tested key/value pair to not make an allomorphic type. |
|||
ast/glr: 6b38ee7 | ShimmerFairy++ | S02-literals/numeric.t: TODO a couple tests. nine++ for catching that they needed it. |
|||
ast/glr: ba3393d | (Stefan Seifert)++ | S02-literals/ (3 files): Merge branch 'master' into glr |
|||
10:06
Ven left
10:07
Ven joined
10:21
rurban joined
10:23
dayangkun left
10:27
Loren_ joined
10:33
[TuxCM] left
10:44
espadrine_ left
10:45
espadrine_ joined
10:53
ggoebel2 left
10:57
TEttinger left
|
|||
nine | m: (1, 2, 6 ... *)[5] | 11:05 | |
camelia | rakudo-moar 5ba44f: OUTPUT«Unable to deduce arithmetic or geometric sequence from 1,2,6 (or did you really mean '..'?) in block <unit> at /tmp/imuAJihaAN:1Actually thrown at: in block <unit> at /tmp/imuAJihaAN:1» | ||
GLRelia | ( no output ) | ||
ShimmerFairy | m: say (1, 2, 6 ... *)[5] | 11:10 | |
camelia | rakudo-moar 5ba44f: OUTPUT«Unable to deduce arithmetic or geometric sequence from 1,2,6 (or did you really mean '..'?) in block <unit> at /tmp/ZD7R2u6Sq4:1Actually thrown at: in block <unit> at /tmp/ZD7R2u6Sq4:1» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«Nil» | ||
11:13
ggoebel joined
11:14
telex left
11:15
telex joined
|
|||
dalek | line-Perl6/glr: e508f48 | (Stefan Seifert)++ | t/0 (2 files): Adopt GLR semantics in test suite |
11:18 | |
ChoHag | Is a capture consisting of all the arguments passed to a function available without explicitely capturing it? | 11:20 | |
timotimo | no, for performance reasons | 11:21 | |
i think | |||
hm, though perhas with the nqp ops | |||
m: sub test($a, $b, $c?) { say nqp::usecapture(); } | 11:22 | ||
camelia | ( no output ) | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«===============================================================================The use of nqp::operations has been deprecated for non-CORE code. Pleasechange your code to not use these non-portable functions. If you really wantto keep using nqp:…» | ||
timotimo | m: use nqp; sub test($a, $b, $c?) { say nqp::usecapture(); }; test(1, 2); | ||
camelia | rakudo-moar 5ba44f: OUTPUT«Cannot find method 'gist': no method cache and no .^find_method in sub test at /tmp/7OQ5pmkqAg:1 in block <unit> at /tmp/7OQ5pmkqAg:1» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«Cannot find method 'gist': no method cache and no .^find_method in sub test at /tmp/XkS6IdVbWZ:1 in block <unit> at /tmp/XkS6IdVbWZ:1» | ||
timotimo | that gives you a very low-level capture | ||
you'd inspect it with nqp::captureposarg and whatever lets you grab the named arguments | 11:23 | ||
ChoHag | Is there any other way to call another function with the same arguments as passed in to this one? | ||
11:24
virtualsue joined
|
|||
timotimo | m: sub foo($a, $b) { say "$a $b" }; sub bar($a, $b) { &foo.callsame }; bar(1, 2) | 11:25 | |
camelia | rakudo-moar 5ba44f: OUTPUT«Method 'callsame' not found for invocant of class 'Sub' in sub bar at /tmp/m7g9cyiqGC:1 in block <unit> at /tmp/m7g9cyiqGC:1» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«Method 'callsame' not found for invocant of class 'Sub' in sub bar at /tmp/SGvANG8O3S:1 in block <unit> at /tmp/SGvANG8O3S:1» | ||
timotimo | hm | ||
11:33
Ven left
11:35
virtualsue left,
virtualsue joined
|
|||
RabidGravy | great, a bug report for a twenty year old module against perl 5.14.4 on cygwin | 11:40 | |
bless their little pointy heads | |||
11:43
Ven joined
|
|||
hoelzro | o/ #perl6 | 11:47 | |
nine | Good morning, hoelzro! | 11:48 | |
hoelzro | afternoon, nine! | ||
Ven | \o, hoelzro , nine , and #perl6 | ||
hoelzro | ahoy Ven! | 11:49 | |
BooK | just looked at jnthn's talk in yapc asia. pretty cool | 11:53 | |
but the code examples do not work for me (just did a `rakudobrew build moar`) | 11:54 | ||
is there a place where I can peek at the complete code? | |||
11:54
zakharyas joined
|
|||
nine | Doesn't his talk contain the features that are only implemented on the glr branch? | 11:54 | |
_itz_ | I think race is only in glr | 11:59 | |
timotimo | aye | 12:00 | |
BooK | ah ok | 12:01 | |
switching branches then | 12:02 | ||
meanwhile, doing my first PR to perl6/doc | 12:03 | ||
nine | \o/ | ||
hoelzro | BooK++ | ||
Ven | BooK++ :) | ||
dalek | c: c29b488 | (Philippe Bruhat (BooK))++ | lib/Type/Supply.pod: Fix syntax error |
||
c: 64d55fb | FROGGS++ | lib/Type/Supply.pod: Merge pull request #120 from book/patch-1 Fix syntax error |
|||
FROGGS | BooK++ | ||
RabidGravy | yay! BooK! | 12:05 | |
12:06
virtualsue left,
virtualsue joined
|
|||
BooK | I fondly remember my first patch to libwww, it was marginally bigger than this one (swapping two characters) :-) | 12:10 | |
timotimo | pretty cool, BooK :) | 12:11 | |
welcome to the doc! :) | |||
BooK | mmm, there are others of the same kind in that page | 12:12 | |
gotta catch them all! | |||
Ven | who documents the tests, who tests the documents | ||
moritz | BooK: I've invited you to the perl6 org on github | 12:13 | |
BooK: if you accept, you can push to the doc repo (and a few others) directly | |||
nine | And I was just gonna say that BooK needs a commit bit :) | ||
moritz | nine: you're too sloooow :-) | 12:14 | |
BooK | thanks | 12:15 | |
I'll drop out of the github interface then :-) | |||
RabidGravy | BooK, as a complete aside I was looking for a picture of you and Eric in those little cars in Braga the other day. That was ten years ago :-O | 12:18 | |
12:21
rurban left
|
|||
BooK | oh I found that picture again recently | 12:21 | |
I think it was taken by DrHyde | |||
cognominal | BooK, time to invinte Ven for P3 | ||
Ven | mmh? | 12:22 | |
12:22
rurban joined
|
|||
BooK | Ven: patch.pm/p3/ # liz & wendy included | 12:22 | |
cognominal | maybe he can share a ride with liz and wendy back from Granada | ||
BooK | interesting: to filter a chunk of code through perl6. I need to do !perl6 - | 12:23 | |
otherwise I seem to see the output of the REPL | |||
cognominal | that is the picture with mongueurs on tricycle? | ||
Ven | I'm afraid I'm at school on the 12th | ||
BooK | it's a Saturday | 12:24 | |
Ven | yes. I'm at school that day | ||
BooK | claim you're from a religion that doesn't allow you to work on inconvenient days | 12:25 | |
FROGGS | Ven: but that's like... weekend :o) | ||
cognominal | and prescribes -O fun, that would be the Perl 6 religion. | ||
Ven | FROGGS: yes. my school often makes me work saturdays and sundays (so basically, 13 days in a row, from 9am to 8pm. I have to sacrifice a weekend every 3 weekends for school) | ||
BooK | I think the religion for Monday is Garfiedinity, but that might actually be just an instance of Lazyness (which prescribes working on Any day) | 12:26 | |
if you have to make ritual sacrifices, it is a religion | 12:27 | ||
Ven | I had an incredibly hard time to convince my school letting me go to SPW was a good idea, took me more than a week | ||
dalek | pan style="color: #395be5">perl6-examples: 45bcffa | (Steve Mynott)++ | categories/cookbook/02numbers/02-05-roman-numerals.pl: import Roman numerals from Rosetta Code |
12:30 | |
BooK | my daughters look forward liz and wendy's arrival: klonk.bruhat.net/wendy+flore.jpg | ||
12:31
laouji left
|
|||
FROGGS | Ven: 13 days in a row is horrible! | 12:31 | |
Ven | BooK: your daughter seems to be pretty tall already | ||
FROGGS: it gets long and tiring, yes :( | |||
FROGGS .oO( 'oribleaux! ) | |||
:/ | |||
cognominal | is it 42? | 12:33 | |
Ven | no | 12:34 | |
not important anyways | |||
BooK | RabidGravy: not sure you can find the original on the interwebs, but my notes say it was taken by DrHyde | ||
articles.mongueurs.net/comptes-rend...closer.png # this version is online, and you're on it too! | |||
cognominal | so you haet yve not found the answer to the big question :_ | ||
RabidGravy | BooK :) I'd forgotten about that | 12:35 | |
poor Greggy | 12:36 | ||
cognominal | Guillame still got hair on this photo. | ||
* Guillaume | 12:37 | ||
Ven | ha! that matz one is great | ||
cognominal | btw, it seems that Matz was in person in yapc asia. | 12:38 | |
Ven | really? that's nice to hear | ||
12:38
andreoss joined
|
|||
BooK | didn't | 12:40 | |
andreoss | $ time perl6 prob060.pl | ||
real 91m35.536s | |||
$ time perl prob060.pl5 | |||
real 0m4.815s | |||
timotimo | oh my | ||
12:40
virtualsue left
|
|||
RabidGravy | oops | 12:40 | |
timotimo | andreoss: any chance you could try that on rakudo/glr? (and do the necessary modifications to the code, of course) | ||
12:40
virtualsue joined
|
|||
RabidGravy | on the bright side there is room for improvement | 12:40 | |
timotimo | yeah, but someone has to go and do that :P | 12:41 | |
cognominal | ven, second guest speaker yapcasia.org/2015/ scroll down | ||
andreoss | m: say 91 * 60 / 4.8 | ||
camelia | rakudo-moar 5ba44f: OUTPUT«1137.5» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«1137.5» | ||
BooK wonders if it would be possible to mark code examples and expected output in a special way, so that some test could check the examples work with the current perl6? | |||
12:41
mprelude left
|
|||
Ven | cognominal: indeed! | 12:42 | |
BooK | pugs had something like this, and executable spec | ||
andreoss | timotimo: ok | ||
timotimo | thank you very much! | ||
andreoss | can i install glr with rakudobrew? | 12:43 | |
_itz_ | BooK: that would be very useful | ||
BooK | andreoss: I did a checkout glr in ~/.rakudobrew/moar-nom | ||
_itz_: is the doc in perl5 pod or perl6 pod? | 12:44 | ||
ShimmerFairy | mostly POD 5, for now | ||
timotimo | with rakudobrew you can use "triple" | 12:45 | |
rakudobrew triple glr master master | |||
or something like that | |||
BooK | ".'.IO.watch.act( { say "$^file changed" } ); | 12:46 | |
that looks weird | |||
should I remove the ".'. at the beginning? | |||
Ven | BooK: the . at the beginning means "$_." | 12:47 | |
_itz_ | m: say ".".IO.WHAT | ||
camelia | rakudo-moar 5ba44f: OUTPUT«(IO::Path)» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«(IO::Path)» | ||
Ven | m: $_ = 'abc'; say .uc | 12:48 | |
camelia | rakudo-moar 5ba44f: OUTPUT«ABC» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«ABC» | ||
BooK | right, so one of the quotes is incorrect | ||
m: say ".'.IO.WHAT | |||
camelia | rakudo-moar 5ba44f: OUTPUT«5===SORRY!5=== Error while compiling /tmp/LTGGuk9CCDUnable to parse expression in double quotes; couldn't find final '"' at /tmp/LTGGuk9CCD:1------> 3say ".'.IO.WHAT7⏏5<EOL> expecting any of: argument list doubl…» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«5===SORRY!5=== Error while compiling /tmp/pe6pzycVIdUnable to parse expression in double quotes; couldn't find final '"' at /tmp/pe6pzycVId:1------> 3say ".'.IO.WHAT7⏏5<EOL> expecting any of: argument list doubl…» | ||
cognominal | one typo here and there is a good pedagogical device to force the reader to think. | 12:49 | |
BooK | I have no doubt the doc is perfect and the mistakes are there for the only purpose of my education :-) | 12:50 | |
dalek | c: c45f662 | (Philippe Bruhat (BooK))++ | lib/Type/Supply.pod: fix more syntax errors |
||
BooK | maybe it's time to read CONTRIBUTING.md | 12:51 | |
12:51
CQ joined
|
|||
dalek | pan style="color: #395be5">perl6-examples: e83ca50 | (Steve Mynott)++ | categories/cookbook/08-file-contents/08-0 (3 files): three LHF file contents examples |
13:02 | |
13:03
visitor1 joined
13:08
Ven left
|
|||
andreoss | m: say $*VM | 13:11 | |
camelia | rakudo-moar 5ba44f: OUTPUT«moar (2015.7.108.g.7.e.9.f.29.e)» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«moar (2015.7.108.g.7.e.9.f.29.e)» | ||
andreoss | how do i distinguish glr from nom? | 13:12 | |
FROGGS | andreoss: look at the nick of the bot | ||
andreoss | m: say $*PERL | 13:13 | |
camelia | rakudo-moar 5ba44f: OUTPUT«Perl 6 (6.Advent)» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«Perl 6 (6.Advent)» | ||
FROGGS | andreoss: glr itself is just a branch, so it won't show up in a version string | 13:14 | |
but... | |||
m: say ::('Seq') ~~ Failure ?? "good ol' nom" !! 'GLR' | |||
camelia | rakudo-moar 5ba44f: OUTPUT«good ol' nom» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«GLR» | ||
andreoss | m: my @x := grep Int, 1..10; | 13:17 | |
camelia | ( no output ) | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«Type check failed in binding; expected 'Positional' but got 'Seq' in block <unit> at /tmp/uN6Fhkj1do:1» | ||
13:19
Ven joined
|
|||
andreoss | how do i port my code with := to GLR? I get a bunch of Seq errors | 13:21 | |
moritz | andreoss: if you need to access @x by index, it's best to add .list to the expression on the right-hand side | 13:22 | |
andreoss: if you want to iterate over it, the nicest fix is | |||
m: my \x := grep Int, 1..10; .say for x; | |||
camelia | rakudo-moar 5ba44f: OUTPUT«12345678910» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«12345678910» | ||
13:25
mprelude joined
|
|||
andreoss | >This Seq has already been iterated, and its values consumed | 13:29 | |
moritz | if you need to iterate it twice or more often, use .list to get a proper List | 13:30 | |
13:30
muraiki joined
|
|||
andreoss | i'm actually iterating on copy | 13:31 | |
FROGGS | andreoss: are you still using binding by any chance? | 13:35 | |
m: my @x = grep(Int, 1..10).list; .say for @x; | 13:36 | ||
camelia | rakudo-moar 5ba44f: OUTPUT«12345678910» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«12345678910» | ||
FROGGS | m: my @x := grep(Int, 1..10).list; .say for @x; | ||
camelia | rakudo-moar 5ba44f: OUTPUT«12345678910» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«12345678910» | ||
FROGGS | ahh, hmmm, so that does not trigger the said msg | ||
m: my @x = grep(Int, 1..10); .say for @x; | |||
camelia | rakudo-moar 5ba44f: OUTPUT«12345678910» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«12345678910» | ||
FROGGS | hmmm, no idea | ||
moritz | andreoss: if you want help, you need to show us some code that produces the error | 13:37 | |
FROGGS | m: my @x = grep(Int, 1..10); .say for @x; .say for @x | ||
camelia | rakudo-moar 5ba44f: OUTPUT«1234567891012345678910» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«1234567891012345678910» | ||
timotimo | m: my $x = grep(Int, 1..10); .say for $x.list; .say for $x.list; | ||
camelia | rakudo-moar 5ba44f: OUTPUT«1234567891012345678910» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«1234567891012345678910» | ||
FROGGS | m: my @x := grep(Int, 1..10); .say for @x; .say for @x | ||
camelia | rakudo-moar 5ba44f: OUTPUT«1234567891012345678910» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«Type check failed in binding; expected 'Positional' but got 'Seq' in block <unit> at /tmp/bG3kvFqvWg:1» | ||
FROGGS | there we go | ||
moritz | m: my $x = grep(Int, 1..10); .say for $x.List; .say for $x.List | ||
camelia | rakudo-moar 5ba44f: OUTPUT«1234567891012345678910» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«12345678910This Seq has already been iterated, and its values consumed in block <unit> at /tmp/gFHUIlm6Tt:1» | ||
FROGGS | dont use assignment if you want to have a proper copy | ||
timotimo | oh, .List not .list | ||
moritz | .list caches, .List not | 13:38 | |
timotimo | 'k | ||
moritz | so, depends on what you want | ||
timotimo | .so depends on what you want? but don't you always get a Bool from .so? :p | ||
moritz | but I haven't seen a good use case for either while still keeping the original Seq around | ||
FROGGS | I guess Seqs are like Junctions... you want to collapse them as early as possible | 13:39 | |
moritz | or pass them around without storing them in a variable | ||
timotimo | i'd rather say "you don't want to let them loose on the program" than the other thing | ||
13:40
zakharyas left
|
|||
andreoss | paste.debian.net/309804/ | 13:40 | |
nine | You don't need .list if you assign to an @array anyway | ||
andreoss | feels like i have to unlearn some Perl 6 already | 13:41 | |
timotimo | a tiny bit, yeah :| | 13:42 | |
moritz | Variable '@x' is not declared │········ | ||
at glr-andreoss:60 │········ | |||
nine | I think there's just fewer reasons to use := in the first place, which I see as a good thing. | ||
timotimo | agreed | ||
andreoss | paste.debian.net/309806/ | 13:43 | |
RabidGravy | m: say "Foo".WHAT.^name; # is there a better way of doing this if I must get the name of the type as a string? | 13:47 | |
camelia | rakudo-moar 5ba44f: OUTPUT«Str» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«Str» | ||
13:47
rurban left
|
|||
tadzik | I don't think so | 13:47 | |
nine | m: say "Foo".^name; | ||
camelia | rakudo-moar 5ba44f: OUTPUT«Str» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«Str» | ||
tadzik | but why do you? | ||
oh :) | |||
timotimo | m: say Str.gist; say Str.Str; say Str.perl | ||
camelia | rakudo-moar 5ba44f: OUTPUT«(Str)Use of uninitialized value of type Str in string context in block <unit> at /tmp/zKBwRBUMzH:1Str» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«(Str)Use of uninitialized value of type Str in string context in block <unit> at /tmp/qlxNzApGbY:1Str» | ||
timotimo | m: say Str.perl | ||
camelia | rakudo-moar 5ba44f: OUTPUT«Str» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«Str» | ||
moritz likes $obj.^name best | |||
timotimo | m: my $foo = Str; say $foo.^name | 13:48 | |
GLRelia | rakudo-moar 78b8f2: OUTPUT«Str» | ||
camelia | rakudo-moar 5ba44f: OUTPUT«Str» | ||
timotimo | ah | ||
m: my $foo = Str; say $foo.VAR.^name | |||
camelia | rakudo-moar 5ba44f: OUTPUT«Scalar» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«Scalar» | ||
timotimo | m: my $foo = Str; say $foo.VAR.name | ||
camelia | rakudo-moar 5ba44f: OUTPUT«$foo» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«$foo» | ||
timotimo | so that's how you get that | ||
m: sub what's-my-name(\foo) { say foo.name }; my $foo = Str; what's-my-name($foo) | 13:49 | ||
camelia | rakudo-moar 5ba44f: OUTPUT«Method 'name' not found for invocant of class 'Str' in sub what's-my-name at /tmp/K5zwpfvq_2:1 in block <unit> at /tmp/K5zwpfvq_2:1» | ||
GLRelia | rakudo-moar 78b8f2: OUTPUT«Method 'name' not found for invocant of class 'Str' in sub what's-my-name at /tmp/XQHOFjqi3q:1 in block <unit> at /tmp/XQHOFjqi3q:1» | ||
pink_mist | foo.VAR.name surely? |