Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2015-06-28

Perl 6 | Reference Documentation | Rakudo

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:25 colomon joined #perl6
00:46 colomon joined #perl6
01:00 bjz joined #perl6
01:24 aborazmeh joined #perl6
01:24 aborazmeh joined #perl6
01:25 geekosaur joined #perl6
01:45 TEttinger joined #perl6
01:48 telex joined #perl6
01:56 skids joined #perl6
02:07 noganex joined #perl6
02:27 tinyblak joined #perl6
02:38 rmgk_ joined #perl6
02:57 bin_005_k joined #perl6
03:18 zacts hi
03:18 zacts timotimo: aren't you a southpark character?
03:19 zacts anyway, hello #perl6
03:20 AlexDaniel how can I make that work: $a, $b, $c = @x; ?
03:22 AlexDaniel oh, just put ( ) around the left side
03:22 AlexDaniel thanks
03:29 atroxaper joined #perl6
03:43 raiph joined #perl6
03:50 davido__ joined #perl6
04:03 Dee22 joined #perl6
04:08 VinceDee joined #perl6
04:26 amurf joined #perl6
04:27 khw joined #perl6
04:28 vendethiel joined #perl6
04:42 AlexDaniel there was a way to indicate that a parameter should be passed without giving it a name (just ignoringit) in the signature, what was it?
04:43 ugexe i think its just $
04:44 AlexDaniel yeah
04:44 AlexDaniel thanks
04:46 kaare_ joined #perl6
05:13 AlexDaniel *** Error in `/home/alex/git/rakudobrew/moar-nom/install/bin/moar': double free or corruption (!prev): 0x0eab14f8 ***
05:13 AlexDaniel Aborted
05:18 AlexDaniel *** Error in `/home/alex/git/rakudobrew/moar-nom/install/bin/moar': free(): invalid pointer: 0x09b99c58 ***
05:18 AlexDaniel Aborted
05:19 AlexDaniel hm, it is repeatable
05:19 AlexDaniel but I'm not sure if I can golf it down to something
05:35 AlexDaniel hm, it is funny. It looks like if I change any line, it stops breaking
05:35 AlexDaniel so what should I do?
05:36 AlexDaniel I don't really feel like posting the whole huge ugly script, and if I change any line this error disappears
05:37 AlexDaniel I can mail it to anyone who is interested though (although what are the chances that it will be reproducible on another machine?)
05:40 ugexe sounds like a good time to learn how to use a debugger!
05:41 AlexDaniel ugexe: sure, any directions?
05:47 ugexe valgrind + perl6-valgrind-m (already built)
05:49 AlexDaniel oh
05:51 ugexe cli package meta search all formatted nicely https://gist.github.com/ugexe/d2e26de84f4c719e2b0d
05:56 japhb ugexe++
05:58 AlexDaniel Well, it feels like I should leave it running for the whole night to see the stacktrace tomorrow :)
05:59 AlexDaniel the script took about a minute to get to that point, and it is much slower in valgrind
05:59 ugexe yeah its really slow
06:00 AlexDaniel ugexe: I've just ran my script in perl6-valgrind-m, is that enough?
06:00 AlexDaniel or maybe I should have provided some additional arguments?
06:01 AlexDaniel ugexe: and what will I get in the end?
06:02 ugexe you can give it flags for other stuff but i just generally run i
06:06 AlexDaniel oh look, I got something
06:06 AlexDaniel but instead of crashing it keeps running
06:08 AlexDaniel https://gist.github.com/AlexDaniel/a3ce0f8315ddd93fed38
06:12 ugexe probably should include the relevant p6 code with that gist
06:12 AlexDaniel it is 80 lines
06:13 AlexDaniel I'm not sure if that will help
06:13 ugexe it would help if we at least knew the line causing the problem
06:13 vendethiel joined #perl6
06:14 AlexDaniel one second
06:17 AlexDaniel ugexe: https://gist.github.com/AlexDaniel/76569d745033eac7e3b3
06:17 AlexDaniel tadaaa
06:17 AlexDaniel that's the whole code, well
06:18 AlexDaniel so it is looping on that line:     printPart $_ for grep { .part<layer> eq $layer }, @parts;
06:18 AlexDaniel and it works OK most of the time, but once upon a time it throws that error
06:19 atroxaper joined #perl6
06:19 AlexDaniel there is no specific time it does it, sometimes it does not break at all
06:19 JimmyZ where is the pins.ASC?
06:19 ugexe might be worth commenting out the Digest::SHA stuff so you can at least rule out dependencies
06:20 AlexDaniel ugexe: well, the problem is that it is very unstable
06:20 AlexDaniel ugexe: look at that $FILENAME there on top of the file
06:20 AlexDaniel ugexe: that's an unused variable
06:20 AlexDaniel if I remove that, it stops breaking.
06:21 AlexDaniel as stupid as it sounds, but oh well...
06:21 AlexDaniel JimmyZ: https://files.progarm.org/pins.ASC
06:24 JimmyZ how do you run it? perl6 gistfile1.6pl pins.ASC ?
06:25 AlexDaniel oh sorry, that is probably important
06:25 AlexDaniel asc-to-svg pins.ASC B
06:25 AlexDaniel perl6 in front of that
06:25 AlexDaniel or ./ , whatever. Please note that B in the end
06:28 AlexDaniel oh by the way, this info about leaks looks pretty scary: https://gist.github.com/AlexDaniel/d6ecc6715b357e62ee3d
06:29 AlexDaniel JimmyZ: first of all it prints a plenty of dots, that works fine, then it starts printing <circle ...> lines
06:29 AlexDaniel JimmyZ: about a minute doing that and then it breaks
06:31 AlexDaniel well, not even 1 MB lost, so probably not that bad :)
06:33 AlexDaniel JimmyZ: and it seems like if you don't run that with B argument it wont break
06:34 AlexDaniel Linux Margo 3.16.0-4-586 #1 Debian 3.16.7-ckt4-3 (2015-02-03) i686 GNU/Linux
06:36 AlexDaniel what else can I provide?
06:36 JimmyZ nothing yet
06:37 AlexDaniel what do you mean by yet? To me it looks like either it breaks after a minute or it does not break at all
06:38 JimmyZ I am installing SHA ...
06:38 AlexDaniel oh :)
06:38 AlexDaniel panda install Digest
06:38 AlexDaniel that's what I did
06:38 AlexDaniel oh yeah, and I'm using rakudobrew
06:39 AlexDaniel last time I've built it was, erm, today
06:41 AlexDaniel It seems like it does not break without B
06:41 vendethiel joined #perl6
06:44 FROGGS[mobile] joined #perl6
06:49 AlexDaniel 0m36.241s 0m36.261s 0m36.369s
06:50 AlexDaniel oh look, it seems like it breaks on exactly the same line
06:51 JimmyZ it is a  gc bug, methinks
06:51 JimmyZ oh at least from moar
06:52 AlexDaniel https://gist.github.com/AlexDaniel/d8c7333f181b41cc64a6
06:54 JimmyZ my problem is I can't bootstrap panda
06:55 AlexDaniel haha
06:56 AlexDaniel I'm going to bed soon
06:56 AlexDaniel if there is anything else I can provide please ask
06:56 JimmyZ good night
06:56 AlexDaniel and, um, maybe I should create an issue on the bug tracker?
06:57 AlexDaniel or will you handle that?
06:57 JimmyZ AlexDaniel: rakudobug@perl.org
06:57 AlexDaniel yeah I know
06:58 AlexDaniel ok
07:00 AlexDaniel fuck
07:00 AlexDaniel accidentaly pressed send
07:16 AlexDaniel ok, I wrote a reply with normal description
07:19 JimmyZ hmm, the newest panda doesn't work on linux ..
07:20 AlexDaniel JimmyZ: that's not possible
07:20 AlexDaniel because I installed it a few hours ago
07:23 JimmyZ I got a bootstrap problem...
07:24 AlexDaniel hmm
07:24 JimmyZ Compiling lib/File/Find.pm to mbc
07:24 JimmyZ ===SORRY!===
07:24 JimmyZ no such file or directory
07:25 AlexDaniel ok, good night :)
07:25 JimmyZ good night
07:33 darutoko joined #perl6
07:40 vendethiel joined #perl6
07:44 shmibs joined #perl6
07:44 nightfrog joined #perl6
07:44 tinyblak_ joined #perl6
07:48 xfix joined #perl6
08:00 tinyblak joined #perl6
08:04 vendethiel joined #perl6
08:04 amurf joined #perl6
08:18 bjz joined #perl6
08:25 rindolf joined #perl6
08:32 MueThoS76 joined #perl6
08:32 MueThoS76 left #perl6
08:33 MueThoS76 joined #perl6
08:36 espadrine joined #perl6
08:39 RabidGravy joined #perl6
08:42 aindilis joined #perl6
08:50 vendethiel joined #perl6
08:53 nightfrog joined #perl6
08:55 Ven joined #perl6
09:01 gfldex joined #perl6
09:42 MueThoS76 left #perl6
09:44 jaffa4 joined #perl6
09:45 jaffa4 hi all
09:56 atroxaper joined #perl6
10:04 jnthn lizmat: When you fix RTs but don't add a test, please could you tag 'em testneeded (on the Jumbo tab), to make them easy for those who write tests to find, so we might get 'em covered/closed faster. Thanks!
10:05 jnthn (I just did this for 125495 and 125486)
10:20 jaffa4 joined #perl6
10:20 jaffa4 jnthn: moar.exe crashes for me on Windows
10:21 lizmat jnthn: will do
10:39 diana_olhovik joined #perl6
10:40 lizmat looking at (;;$a) signature
10:41 lizmat apparently the internal datastructure is set up the same way for (;;$a) as it is for ($a;;)
10:43 lizmat jnthn: I'm not sure how to fix that in the grammar
10:44 moritz ($a;;) should be the same as ($a), no?
10:44 lizmat yes
10:44 lizmat but *not* the same as (;;$a)
10:45 lizmat the ;; just resets the multu-invocant flag to be applied to the parameter
10:45 lizmat in the case of (;;$a), the reset happens too late
10:54 jnthn lizmat: I don't immediately know how to fix that...
10:54 lizmat me neither  :-(
10:54 jnthn lizmat: Agree it's a problem, though
10:55 jnthn Can you RT it, and I'll take a look at it a bit later...
10:55 lizmat ok, I'll rakudobug it
10:55 jnthn Thanks :)
10:55 jnthn Going for a stroll to the big supermarket soon to get some spices and other bits in, so I cna cook interesting things at $new-place. :)
10:55 lizmat go fort it
10:55 lizmat *for
10:55 * lizmat is going to be cycling soon again
10:56 tinyblak joined #perl6
10:56 jnthn Will be doing Perl 6 stuff all day tomorow, hopefully wiht a small interuption when the box containing my main dev machine gets delivered (so I can spectest faster again...yay)
10:57 lizmat :-)
11:02 tinyblak_ joined #perl6
11:04 dalek rakudo/nom: 947138f | lizmat++ | src/Perl6/Grammar.nqp:
11:04 dalek rakudo/nom: Catch double use of ;; in signature
11:04 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/947138f9a1
11:06 dalek rakudo/nom: 367b581 | lizmat++ | src/Perl6/Grammar.nqp:
11:06 dalek rakudo/nom: They shouldn't be worries, they should panic
11:06 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/367b581efe
11:09 lizmat jnthn: #125502 fwiw  :-)
11:09 synbot6 Link:  https://rt.perl.org/rt3/Public/Bug/Display.html?id=125502
11:10 lizmat afk until later&
11:17 grondilu token positive-integer { \d+ <?{ $/.Int == $/ and $/ > 0 }> }  # does this make sense to you?
11:19 grondilu I mean, aren't there pre-defined regexes  for numeric types?
11:20 jnthn When would the bit before the and ever be false?
11:20 grondilu never, my bad
11:22 jnthn really away &
11:23 grondilu parsing a floating point, for instance.  Do I really have to write my own regex?
11:24 psch grondilu: \d+ doesn't match floating points
11:24 grondilu no I was jumping to an other subject
11:24 psch oh, okay
11:25 grondilu token floating-point {...}
11:25 psch fwiw, i think regex might be more than you need, if you're not really parsing
11:25 grondilu well yeah, probably
11:26 grondilu may be overkill
11:27 grondilu I have a 3D file with a format like this:  https://github.com/OoliteProject/oolite-binary-resources/blob/master/Models/oolite_coriolis_dock.dat  and I'm considering writing a grammar.
11:29 psch i'd probably just read the segments and &split, tbh
11:29 grondilu I guess
11:29 grondilu it's going to be tedious to write though
11:31 timotimo grondilu: a few weeks ago i tried to get into oolite
11:31 grondilu you mean into the objective-C code?
11:31 timotimo grondilu: but then i made stupid mistakes with trading and then i decided i'd cheat my way into a lot of money and suddenly the game wasn't interesting any more %)
11:31 timotimo no, into playing
11:32 grondilu me I stopped because I hate dogfights and there are always ships harassing me.
11:34 timotimo i've played "elite: dangerous" on a friend's accound with a hands-on-throttle or what it's called
11:34 timotimo it was nice for navigating places, but ... yeah, dogfights
11:34 psch for some reason ExceptionHandling.<clinit> *throws* the ThreadDeath instead of just creating and assigning it..? :l
11:34 timotimo with me, they just end up being "trying to point towards the enemy and then shooting"
11:35 timotimo anything other than just rotating towards my enemy and then shooting just gets me shot
11:35 timotimo like trying to get a bit of range on the enemy and then turning? nope. the enemy gets their lasers pointed right at my bum
11:44 timotimo i have zero intuition for how i should be behaving in those fights at all
11:48 grondilu so if I want to retrieve say the VERTEX section I can write "my @vertex = grep { /^VERTEX/ ff /^$/ }, lines;", right?
11:49 grondilu it does work but I wonder if there is more idiomatic.
11:51 timotimo well, after you do "lines", you'd have to rewind the file object
11:51 timotimo not sure if argfiles supports that operation
11:53 laouji joined #perl6
11:53 grondilu I actually already put everything in a @lines array.  It's ok it won't be very big anyway.
11:55 timotimo it seems like that ff invocation ought to work
11:55 psch i think it looks pretty idiomatic
11:56 timotimo oh, you wrote "it does work", i read "doesn't work"
11:56 grondilu well, that's an opportunity to use &infix:<ff> I guess
11:56 yqt joined #perl6
11:56 timotimo sure
11:56 grondilu I4m often surprised it is not used more
11:57 timotimo i'm glad it was renamed ff from ..
11:58 psch yeah, good disambiguation
11:58 grondilu I wish ther wer a ^ff^, ff^ and ^ff versions, like with ..
11:59 psch m: my @a = 1..10; .say if 1 ^ff 5 for @a # there are
11:59 mj41 joined #perl6
11:59 camelia rakudo-moar 367b58: OUTPUT«2␤3␤4␤5␤»
11:59 grondilu oh
12:00 grondilu cool
12:00 psch hm, i forgot how ff and fff differ :/
12:02 timotimo the design docs call ff "flip-flop" and fff "flip-flop (sed style)"
12:03 timotimo The old .. flipflop operator is now done with ff operator. (.. now always produces a Range object even in item context.) The ff operator may take a caret on either end to exclude either the beginning or ending. There is also a corresponding fff operator with Perl 5's ... semantics.
12:03 psch m: my @a = <A B C B A>; .say if /A/ ff /C/ for @a; .say if /A/ fff /C/ for @a
12:03 camelia rakudo-moar 367b58: OUTPUT«A␤B␤C␤A␤A␤B␤C␤A␤»
12:03 timotimo why doesn't the design doc explain what the perl5's semantics are? or the sed semantics?
12:03 grondilu so I ended up writing: my @vertex = map { .chomp; s:g/\,//; .words».Num }, grep { /^VERTEX/ ^ff^ /^$/ }, @lines;
12:04 psch i'm guessing "it hasn't changed, look at perldoc perlop"
12:04 timotimo "hasn't changed" is no help for me at all, since i never did any perl5 at all
12:04 timotimo grondilu: looks like the right place to use a feed operator :)
12:05 psch i know, i'm not saying it's great, but i can see why it is like that
12:05 timotimo ah
12:06 psch m: my @a = <A B C B A>; say "ff"; .say if /B/ ff /B/ for @a; say "fff"; .say if /B/ fff /B/ for @a
12:06 camelia rakudo-moar 367b58: OUTPUT«ff␤B␤B␤fff␤B␤C␤B␤»
12:06 timotimo so fff will not test the right hand side directly when the left hand side matches for the first time
12:06 psch yeah, ff can flip *and* flop in one iteration
12:06 timotimo so if the RHS also matches on the line the LHS matches, it'll not return True once
12:07 * grondilu thought feed operators were NYI
12:07 psch grondilu: underimplemented is more right, i think
12:07 grondilu m: say grep *%%3 <== grep *%%5 <== ^100
12:07 camelia rakudo-moar 367b58: OUTPUT«0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95␤»
12:08 timotimo huh
12:08 grondilu seems wrong
12:08 timotimo m: say <== grep *%%3 <== grep *%%5 <== ^100
12:08 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/bFyT_qxxjv␤Unable to parse expression in quote words; couldn't find final '>'␤        ␤at /tmp/bFyT_qxxjv:1␤------> 3say <== grep *%%3 <== grep *%%5 <== ^1007⏏5<EOL>␤    expecting any of:␤    …»
12:08 timotimo m: .say <== grep *%%3 <== grep *%%5 <== ^100
12:08 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/7bnGMXddDj␤Sorry, do not know how to handle this case of a feed operator yet.␤at /tmp/7bnGMXddDj:1␤------> 3say <== grep *%%3 <== grep *%%5 <== ^1007⏏5<EOL>␤»
12:09 timotimo m: my @foo <== grep *%%3 <== grep *%%5 <== ^100; say @foo
12:09 camelia rakudo-moar 367b58: OUTPUT«0 15 30 45 60 75 90␤»
12:09 timotimo the say was messing it up somehow
12:09 grondilu m: say my @ <== grep *%%3 <== grep *%%5 <== ^100
12:09 camelia rakudo-moar 367b58: OUTPUT«0 15 30 45 60 75 90␤»
12:09 grondilu indeed
12:09 grondilu m: say my @ = grep *%%3 <== grep *%%5 <== ^100
12:09 camelia rakudo-moar 367b58: OUTPUT«0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95␤»
12:10 psch m: my @a = grep *%%3 <== ^10; @a.say
12:10 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/DyKPyaRW4d␤Sorry, do not know how to handle this case of a feed operator yet.␤at /tmp/DyKPyaRW4d:1␤------> 3my @a = grep *%%3 <== ^107⏏5; @a.say␤»
12:10 psch m: my @a = (grep *%%3 <== ^10); @a.say
12:10 camelia rakudo-moar 367b58: OUTPUT«0 3 6 9␤»
12:11 psch that's kinda wat
12:11 vendethiel m: my @a <== grep *%%3 <== ^10; say @a
12:11 camelia rakudo-moar 367b58: OUTPUT«0 3 6 9␤»
12:11 psch m: say (my @ = grep *%%3 <== grep *%%5 <== ^100)
12:11 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/DObTZ5eFWN␤Sorry, do not know how to handle this case of a feed operator yet.␤at /tmp/DObTZ5eFWN:1␤------> 3(my @ = grep *%%3 <== grep *%%5 <== ^1007⏏5)␤»
12:11 psch vOv
12:11 psch i have fighting with nested jars and loading resources to do
12:12 jaffa4 Is there anyone who has compiled rakudo on Windows recently?
12:17 itz_ jaffa4: the main dev uses windows so the answer is almost certainly "yes"
12:18 jaffa4 Who do you call main dev?
12:18 itz_ jnthn
12:19 rindolf joined #perl6
12:49 vendethiel RT#125259 (is the bot still here?)
12:49 synbot6 Link:  https://rt.perl.org/rt3/Public/Bug/Display.html?id=125259
12:49 vendethiel (yes)
12:50 krakan joined #perl6
12:57 Ben_Goldberg joined #perl6
13:03 nys joined #perl6
13:05 [Sno] joined #perl6
13:10 krakan joined #perl6
13:15 grondilu well that's unfortunate.  Some .dat file do not use ',' as a separator.   The objective-C parser looks for "scanner scanFloat:" so that's why the lack of consistent separator is not an issue.  I wish I could write comb(/<float>/).
13:17 grondilu (the Obj-C parser is https://github.com/OoliteProject/oolite/blob/master/src/Core/OOMesh.h)
13:18 psch <float> is just /(-? \d* '.' \d+)/ though?
13:18 psch i mean, i get it's nice to have it named
13:18 grondilu seems over simplistic.
13:18 psch well, it skips scientific notation
13:18 grondilu I guess I could put an entry in the most-wanted modules list.
13:18 psch it's definitely a good candidate for something like a Regex::Common module or somesuch
13:20 grondilu oh there is one apparently
13:20 grondilu called Regexp::Common
13:20 grondilu (mind the 'p')
13:21 grondilu that's kind of a low-hanging fruit.  I could write that.
13:21 diana_olhovik_ joined #perl6
13:21 psch ++grondilu
13:22 grondilu but truly I wonder why we can't use STD for that.
13:22 jaffa4 Is there oct in perl 6?
13:22 grondilu I mean, it must exist there.
13:23 domidumont joined #perl6
13:24 Ben_Goldberg m: say :8(111)
13:24 camelia rakudo-moar 367b58: OUTPUT«You have confused the number 111 with the textual representation "111";␤if you wanted to render the number in the given base, use $number.base($radix)␤  in block <unit> at /tmp/xgygqrfIf2:1␤␤»
13:24 Ben_Goldberg m: say 7.base(8)
13:24 camelia rakudo-moar 367b58: OUTPUT«7␤»
13:25 jaffa4 m: say 777.base(8)
13:25 camelia rakudo-moar 367b58: OUTPUT«1411␤»
13:25 jaffa4 m: say 700.base(8)
13:25 camelia rakudo-moar 367b58: OUTPUT«1274␤»
13:25 psch m: say :8(Str(700))
13:25 camelia rakudo-moar 367b58: OUTPUT«448␤»
13:25 jaffa4 m say 8*8*8
13:25 grondilu m: say :8<1411>
13:25 camelia rakudo-moar 367b58: OUTPUT«777␤»
13:25 grondilu you need to provide a string to :8
13:26 psch the .base methods transforms *into* the base
13:26 psch the colonpair form interprets *as* the base
13:28 domidumont joined #perl6
13:29 jaffa4 : say :8(Str(080))
13:29 jaffa4 m: say :8(Str(080))
13:29 camelia rakudo-moar 367b58: OUTPUT«Potential difficulties:␤    Leading 0 does not indicate octal in Perl 6; please use 0o80 if you mean that␤    at /tmp/bce55lpg5N:1␤    ------> 3say :8(Str(0807⏏5))␤Cannot convert string to number: base-8 number must begin with valid digits or…»
13:29 jaffa4 m: say :8(Str(010))
13:29 camelia rakudo-moar 367b58: OUTPUT«Potential difficulties:␤    Leading 0 does not indicate octal in Perl 6; please use 0o10 if you mean that␤    at /tmp/HK4n0VNPqj:1␤    ------> 3say :8(Str(0107⏏5))␤8␤»
13:30 jaffa4 m: say :8("010")
13:30 camelia rakudo-moar 367b58: OUTPUT«8␤»
13:30 jaffa4 m: say :8("100")
13:30 camelia rakudo-moar 367b58: OUTPUT«64␤»
13:30 grondilu that's inconsistant
13:30 grondilu it should complain here as well
13:30 psch why
13:30 psch 080 is a numeric literal
13:30 psch "080" is a string literal
13:30 psch "080" does not indicate a number
13:31 grondilu oh yeah
13:31 jaffa4 Why not , it is a number
13:31 psch no, it's a string literal
13:31 * grondilu likes this distinction actually
13:32 telex joined #perl6
13:32 FROGGS[mobile] joined #perl6
13:32 FROGGS[mobile] m: say 0o777
13:32 camelia rakudo-moar 367b58: OUTPUT«511␤»
13:33 Ben_Goldberg m: my $x = '777'; say :8($x);
13:33 camelia rakudo-moar 367b58: OUTPUT«511␤»
13:33 Ben_Goldberg m: my $x = '10'; say :8($x);
13:33 camelia rakudo-moar 367b58: OUTPUT«8␤»
13:34 atroxaper joined #perl6
13:34 Ben_Goldberg m: srand 1; print sort -> $a, $b { Order.pick }, "artuh(h ot anceke8J: r),s".comb;
13:34 camelia rakudo-moar 367b58: OUTPUT«Just another :8() hacker,»
13:34 itz_ ~30m to spacex launch
13:35 Ben_Goldberg Third time's the charm?
13:36 grondilu they are not live yet are they?
13:37 raiph joined #perl6
13:40 psch yay, progress \o/
13:40 psch self-executing jars are in a spot where the rakudo-j interpreter actually starts and tries to run it!
13:41 grondilu wow if I search for floats and integers on the same line, I must be careful not to split floats  :-(  What a hassle.
13:41 psch unfortunately i still have fiddling with the ModuleLoaderVMConfig for r-j to check *inside* of a jar for files...
13:41 psch +to do
13:41 psch i'm not that sure how i'd do that either...
13:42 grondilu why cna't I do comb(/<number>/)??
13:43 grondilu m: say "4, 56.43  -23".comb(/<[+-]>?\d[\.\d+]/);
13:43 camelia rakudo-moar 367b58: OUTPUT«6.43␤»
13:43 grondilu m: say "4, 56.43  -23".comb(/<[+-]>?\d[\.\d+]?/);
13:43 camelia rakudo-moar 367b58: OUTPUT«4 5 6.43 -2 3␤»
13:43 grondilu m: say "4, 56.43  -23".comb(/<[+-]>?\d[\.\d+]?/).join(",");
13:43 camelia rakudo-moar 367b58: OUTPUT«4,5,6.43,-2,3␤»
13:44 grondilu m: say "4, 56.43  -23".comb(/<[+-]>?\d+[\.\d+]?/).join(",");
13:44 camelia rakudo-moar 367b58: OUTPUT«4,56.43,-23␤»
13:44 timotimo grondilu: if you use the | operator, you should be getting longest-token-matching
13:44 timotimo yeah, the + after \d was missing
13:44 timotimo glad you found it
13:45 grondilu I'll try /<[+-]>?\d+[\.\d+]?/
13:45 psch first impulse is "i need an nqp-op"
13:45 psch for cases where we are running from a nested/fat jar and want to find modules inside of that...
13:46 psch which we always have to do, the module-finding that is, cause we need to load BOOTSTRAP anyway
13:50 grondilu OK I could parse the mesh for the cobra mark III
13:50 dalek roast: 766987b | usev6++ | integration/error-reporting.t:
13:50 dalek roast: Add test for RT #125495
13:50 dalek roast: review: https://github.com/perl6/roast/commit/766987b6de
13:50 synbot6 Link:  https://rt.perl.org/rt3/Public/Bug/Display.html?id=125495
13:53 aborazmeh joined #perl6
13:53 aborazmeh joined #perl6
13:58 timotimo http://www.twitch.tv/317070 - an interactive installation of a "dreaming"/"hallucinating" deep neural network
14:07 jaffa4 timotimo:  what is that?
14:07 timotimo inspired by this: http://googleresearch.blogspot.be/2015/06/inceptionism-going-deeper-into-neural.html
14:10 timotimo the things it makes aren't quite as clearly discernible as the google version
14:15 Ven joined #perl6
14:18 zakharyas joined #perl6
14:25 grondilu well, Falcon 9 exploded at about 32km altitude.
14:25 grondilu Just before going supersonic
14:25 grondilu wait no
14:25 grondilu it was going at 1km/s, so Mach 3
14:29 tinyblak joined #perl6
14:37 RabidGravy joined #perl6
14:43 census joined #perl6
14:51 kaare_ joined #perl6
15:00 colomon joined #perl6
15:01 Ben_Goldberg Could we write a slang so that this: http://xkcd.com/1537/ is possible?
15:07 moritz much of that is trivial with operator overloading and custom types
15:09 moritz m: multi infix:<+>(Str:D $x, Array:D where !*.elems) { "[$x]" }; say "2" + []
15:09 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/4rTVEQQzUz␤Cannot do non-typename cases of type_constraint yet␤at /tmp/4rTVEQQzUz:1␤------> 3fix:<+>(Str:D $x, Array:D where !*.elems7⏏5) { "[$x]" }; say "2" + []␤»
15:09 moritz m: multi infix:<+>(Str:D $x, Array:D where { ! .elems }) { "[$x]" }; say "2" + []
15:09 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/YpDgmPq8kV␤Cannot do non-typename cases of type_constraint yet␤at /tmp/YpDgmPq8kV:1␤------> 3<+>(Str:D $x, Array:D where { ! .elems }7⏏5) { "[$x]" }; say "2" + []␤»
15:09 moritz m: multi infix:<+>(Str:D $x, Array:D $ where { !.elems}) { "[$x]" }; say "2" + []
15:09 camelia rakudo-moar 367b58: OUTPUT«[2]␤»
15:11 ][Sno][ joined #perl6
15:16 dalek roast: 9a4daf7 | usev6++ | S06-signature/introspection.t:
15:16 dalek roast: Add test for RT #125482
15:16 dalek roast: review: https://github.com/perl6/roast/commit/9a4daf7f91
15:16 synbot6 Link:  https://rt.perl.org/rt3/Public/Bug/Display.html?id=125482
15:19 cognominal joined #perl6
15:34 jaffa4 What is the difference between module and package?
15:41 timotimo m: module foo { }
15:41 camelia rakudo-moar 367b58: ( no output )
15:41 timotimo m: package foo { }
15:41 camelia rakudo-moar 367b58: ( no output )
15:41 timotimo huh, i thought one of those is supposed to tell you "you don't spell it like that in perl6"
15:42 FROGGS[mobile] joined #perl6
15:43 FROGGS[mobile] m: package Foo;
15:43 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/_ikqLKw1yb␤This appears to be Perl 5 code. If you intended it to be Perl 6 code, please use a Perl 6 style declaration like "unit package Foo;" or "unit module Foo;", or use the block form instead of the semi…»
15:43 AlexDaniel joined #perl6
15:44 jaffa4 bug?
15:44 Ven I tried to write said xkcd, but I'm getting this error with my code:
15:44 Ven Cannot invoke this object (REPR: Uninstantiable, cs = 0)
15:44 Ven https://github.com/vendethiel/xkcd1537.p6
15:44 jaffa4 FROGGS[mobile]: bug?
15:47 skids joined #perl6
15:48 timotimo well, anyway, only module is supposed to work in perl6
15:50 FROGGS[mobile] jaffa4: no, intention
15:50 timotimo so, package foo { .. } is supposed to work?
15:51 timotimo oh, it seems that way
15:51 timotimo in that case i have no clue what the difference between package and module is
15:51 Ven trying to use Bailador:
15:51 Ven Use of uninitialized value $segment of type Any in string context  in block  at lib/HTTP/Easy/PSGI.pm6:102
15:51 Ven anyone faced that?
15:53 jaffa4 How can I call a sub in a module outside the module?
15:53 RabidGravy I thought I remembered from a very long time ago that if perl 6 saw "package Foo;" it took it to be perl 5 and behave appropriately
15:53 jaffa4 A::b() does not seem to work
15:53 timotimo subs are lexical by default; it has to be an our sub to be callable from outside
15:55 jaffa4 timotimo:  you know something
15:55 timotimo i know a few things
16:00 jaffa4 m: sub ref($e) { return $e.WHAT.substr(1,-1); {
16:00 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/TB7Vg1psTT␤Missing block␤at /tmp/TB7Vg1psTT:1␤------> 3ref($e) { return $e.WHAT.substr(1,-1); {7⏏5<EOL>␤»
16:00 jaffa4 m: sub ref($e) { return $e.WHAT.substr(1,-1); }
16:00 camelia rakudo-moar 367b58: ( no output )
16:00 jaffa4 moar: sub ref($e) { return $e.WHAT.substr(1,-1); }
16:00 jaffa4 rakudo: sub ref($e) { return $e.WHAT.substr(1,-1); }
16:00 camelia rakudo-moar 367b58: ( no output )
16:01 timotimo you forgot to 1) say something, 2) call the ref sub
16:01 timotimo i guess?
16:02 jaffa4 no, I expected ti to fail
16:02 geekosaur .oO { no, I expect you to die() }
16:02 timotimo oh; why is that? because of -1 in substr?
16:03 jaffa4 no because it fails for me
16:03 timotimo what's the failure mode?
16:03 jaffa4 rakudo: sub ref($e) { return $e.WHAT.substr(1,-1); } my @a = (); ref(@a);
16:03 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/tmpfile␤Strange text after block (missing semicolon or comma?)␤at /tmp/tmpfile:1␤------> 3ref($e) { return $e.WHAT.substr(1,-1); }7⏏5 my @a = (); ref(@a);␤    expecting any of:␤        infix␤ …»
16:03 jaffa4 rakudo: sub ref($e) { return $e.WHAT.substr(1,-1); }; my @a = (); ref(@a);
16:03 camelia rakudo-moar 367b58: OUTPUT«Cannot look up attributes in a type object␤  in sub ref at /tmp/tmpfile:1␤  in block <unit> at /tmp/tmpfile:1␤␤»
16:05 timotimo yeah
16:05 timotimo you probably want $e.WHAT.^name
16:05 timotimo m: my @a = (); say @a.WHAT.perl
16:05 camelia rakudo-moar 367b58: OUTPUT«Array␤»
16:05 timotimo it's not a string, it's the Array type object
16:05 timotimo m: my @a = (); say @a.WHAT.Str.perl
16:05 camelia rakudo-moar 367b58: OUTPUT«Cannot look up attributes in a type object␤  in block <unit> at /tmp/OeFJWIgvr8:1␤␤»
16:05 timotimo and coercing a type object to a Str like that isn't a happy operation
16:05 timotimo m: my @a = (); say ~@a.WHAT
16:05 camelia rakudo-moar 367b58: OUTPUT«Cannot look up attributes in a type object␤  in block <unit> at /tmp/LaYx9bmmRk:1␤␤»
16:06 jaffa4 rakudo: sub ref($e) { return $e.WHAT.^name; } my @a = (); ref(@a);
16:06 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/tmpfile␤Strange text after block (missing semicolon or comma?)␤at /tmp/tmpfile:1␤------> 3sub ref($e) { return $e.WHAT.^name; }7⏏5 my @a = (); ref(@a);␤    expecting any of:␤        infix␤    …»
16:07 jaffa4 rakudo: sub ref($e) { return $e.WHAT.^name; }; my @a = (); ref(@a);
16:07 camelia rakudo-moar 367b58: ( no output )
16:07 jaffa4 rakudo: sub ref($e) { return $e.WHAT.^name; }; my @a = (); say ref(@a);
16:07 camelia rakudo-moar 367b58: OUTPUT«Array␤»
16:08 jaffa4 rakudo: sub ref($e) { return $e.WHAT.^name; }; my @a = (); say ref(\@a);
16:08 camelia rakudo-moar 367b58: OUTPUT«Capture␤»
16:08 jaffa4 rakudo: sub ref($e) { return $e.WHAT.^name; }; my @a = (); say ref(@(\@a));
16:08 camelia rakudo-moar 367b58: OUTPUT«List␤»
16:08 timotimo BBIAB
16:11 jaffa4 rakudo: sub ref($e) { return $e.WHAT.^name; }; my @a = (); say ref(@(item @a));
16:11 camelia rakudo-moar 367b58: OUTPUT«Array␤»
16:14 jaffa4 rakudo: sub ref($e) { return $e.WHAT.^name; }; my @a = (); say ref(item @a);
16:14 camelia rakudo-moar 367b58: OUTPUT«Array␤»
16:15 jaffa4 rakudo: sub ref($e) { return $e.WHAT.^name; }; my @a = (); say ref(item (item @a));
16:15 camelia rakudo-moar 367b58: OUTPUT«Array␤»
16:15 jaffa4 rakudo: sub ref($e) { return $e.WHAT.^name; }; my @a = (); say (item (item @a));
16:15 camelia rakudo-moar 367b58: OUTPUT«␤»
16:16 jaffa4 rakudo: sub ref($e) { return $e.WHAT.^name; }; my @a = (4,4,4); say (item (item @a));
16:16 camelia rakudo-moar 367b58: OUTPUT«4 4 4␤»
16:17 BenGoldberg_ joined #perl6
16:18 timotimo is there something in particular you want to ask or find out?
16:19 uncleyea1 joined #perl6
16:20 jaffa4 you can see item of time does not make difference
16:20 jaffa4 tiem
16:20 timotimo all item does is put something into a scalar container
16:20 timotimo basically "item @bar" is the same as "(my $ = @bar)"
16:21 jaffa4 I wonder what does \ do?
16:23 kaare_ joined #perl6
16:24 timotimo it creates a capture from things
16:24 timotimo m: say \(1, 2, 3, :a, :!b).perl
16:24 camelia rakudo-moar 367b58: OUTPUT«\(1, 2, 3, :a, :!b)␤»
16:24 timotimo well, duh :)
16:24 timotimo that wasn't so helpful
16:24 jaffa4 capture?
16:26 timotimo Capture
16:26 timotimo it's a type
16:26 jaffa4 So?
16:27 psch m: say \($) ~~ :($); say \($,$) ~~ :($)
16:27 camelia rakudo-moar 367b58: OUTPUT«True␤False␤»
16:27 psch Captures can match against Signatures
16:27 psch (the RHS is literal Signatures)
16:29 psch hmm
16:29 psch m: say \("hi", "bye") ~~ &substr.signature # this i expected to fail
16:29 camelia rakudo-moar 367b58: OUTPUT«True␤»
16:30 psch m: say &substr.signature
16:30 camelia rakudo-moar 367b58: OUTPUT«(|)␤»
16:30 psch oh
16:30 psch m: say \("a") ~~ &abs.signature
16:30 camelia rakudo-moar 367b58: OUTPUT«True␤»
16:30 psch yeah something might be missing there...? :s
16:31 psch maybe MMD getting involved somehow
16:31 psch or not getting involved enough
16:31 timotimo m: say &abs.signature
16:31 camelia rakudo-moar 367b58: OUTPUT«($)␤»
16:31 timotimo m: say &abs.signature.perl
16:31 camelia rakudo-moar 367b58: OUTPUT«:($)␤»
16:31 timotimo m: say &substr.signature.perl
16:31 camelia rakudo-moar 367b58: OUTPUT«:(|)␤»
16:31 timotimo those are the signatures of the protos
16:32 jaffa4 I
16:32 psch yeah, so it doesn't get dispatched
16:32 jaffa4 say &lc.signature.perl
16:32 psch so that's more useful for manual dispatch, if anything
16:32 jaffa4 m:say &lc.signature.perl
16:32 jaffa4 m: say &lc.signature.perl
16:32 camelia rakudo-moar 367b58: OUTPUT«:(Cool $s)␤»
16:32 psch e.g. grab all the sigs from the candidates and then doing something with that that shouldn't have to be done i guess :)
16:32 timotimo well, you can get the signatures of the individual candidates, of course
16:36 kaare_ joined #perl6
16:37 jaffa4 m:  my $c = 4; my $b = item $c; $c = 5; say $b;
16:37 camelia rakudo-moar 367b58: OUTPUT«4␤»
16:38 jaffa4 SHould not that be 5?
16:38 kaare__ joined #perl6
16:40 psch m: my $c = 4; my $b := $c; $c = 5; say $b # this should be 5
16:40 camelia rakudo-moar 367b58: OUTPUT«5␤»
16:41 psch jaffa4: &item is not the same as \ (for taking a reference) in perl5
16:41 jaffa4 it worked as a reference for %
16:41 jaffa4 when I tested it
16:42 psch m: my %a = 1,2; my %b = item %a; %a = 3,4; say %b
16:42 camelia rakudo-moar 367b58: OUTPUT«Odd number of elements found where hash initializer expected␤  in block <unit> at /tmp/M06EcIWcGk:1␤␤»
16:42 psch i don't know what you tested :)
16:42 laouji joined #perl6
16:42 ugexe would adding a checksum to the projects.json url be useful for ignoring the body if its not updated?
16:43 jaffa4 : my %a = 1,2; my $b = item %a; %a = 3,4; say %($b)
16:43 jaffa4 m: my %a = 1,2; my $b = item %a; %a = 3,4; say %($b)
16:43 camelia rakudo-moar 367b58: OUTPUT«3 => 4␤»
16:44 jaffa4 psch: this
16:46 kaare__ joined #perl6
16:46 psch m: my %a = 1,2; my $b = %a; %a = 3,4; say %($b)
16:46 camelia rakudo-moar 367b58: OUTPUT«3 => 4␤»
16:46 psch jaffa4: &item does nothing there, the scalar on the LHS does the same
16:47 jaffa4 It does not perform a copy
16:48 japhb jaffa4: Are you trying to do things like "reference to reference to object"?
16:48 jaffa4 just trying to see how it works
16:50 jaffa4 japhb:  I may need that yes by the way
16:53 haroldwu joined #perl6
17:02 jaffa4 rakudo: sub ref($e) { return $e.WHAT.^name; }; my %a = (4,4); say (iref %a));
17:02 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/tmpfile␤Unexpected closing bracket␤at /tmp/tmpfile:1␤------> 3T.^name; }; my %a = (4,4); say (iref %a)7⏏5);␤»
17:03 jaffa4 rakudo: sub ref($e) { return $e.WHAT.^name; }; my %a = (4,4); say (ref %a));
17:03 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/tmpfile␤Unexpected closing bracket␤at /tmp/tmpfile:1␤------> 3AT.^name; }; my %a = (4,4); say (ref %a)7⏏5);␤»
17:03 jaffa4 rakudo: sub ref($e) { return $e.WHAT.^name; }; my %a = (4,4); say (ref %a);
17:03 camelia rakudo-moar 367b58: OUTPUT«Hash␤»
17:04 jaffa4 rakudo: sub ref($e) { return $e.WHAT.^name; }; my %a = (4,4); say (ref (sub (){} ));
17:04 camelia rakudo-moar 367b58: OUTPUT«Sub␤»
17:04 timotimo assignment to a %-sigiled variable does "a copy"
17:04 timotimo if you assign a hash to a $foo variable, you get the very same object stored in the $foo
17:04 timotimo m: my %a = a => 1, b => 2; my %b = %a; %b<a> = 10; say %a; say %b;
17:04 camelia rakudo-moar 367b58: OUTPUT«a => 1, b => 2␤a => 10, b => 2␤»
17:05 timotimo m: my %a = a => 1, b => 2; my $b = %a; $b<a> = 10; say %a; say $b;
17:05 camelia rakudo-moar 367b58: OUTPUT«a => 10, b => 2␤a => 10, b => 2␤»
17:11 atroxaper joined #perl6
17:23 masak evenin', #perl6
17:24 bartolin hi masak
17:25 bartolin m: Int.new # seems to happen since 243e400b1f
17:25 camelia rakudo-moar 367b58: OUTPUT«Too few positionals passed; expected 2 arguments but got 1␤  in block <unit> at /tmp/iDvme_hZ6l:1␤␤»
17:28 raiph m: Int.new(123)
17:28 camelia rakudo-moar 367b58: ( no output )
17:30 bbkr joined #perl6
17:31 bbkr r: class A {method foo ( Int $x where { $x > 10 } = 1024 ) { say $x }}; A.new.foo(1234)
17:31 camelia rakudo-{moar,jvm} 367b58: OUTPUT«1234␤»
17:32 bbkr hm, above breaks on  2015/06 with "Cannot modify an immutable Block" error...
17:34 raiph bartolin: ?
17:35 bartolin raiph: sorry, was awk
17:36 raiph bbkr: iirc ... that syntax attempts to assign 1024 to the block; rakudo failed to give it a parse fail (and instead did something crazy); jnthn has fixed Rakudo to correctly complain; now folk need to change stuff of the above form to something that works; looking that up now...
17:36 bartolin raiph: seems like there is some spectest breakage because of 'Int.new' failing
17:37 * bartolin spectests changing 'method new' introduced with 243e400b1f to 'multi method new'
17:37 bartolin m: Str.new
17:37 camelia rakudo-moar 367b58: ( no output )
17:38 raiph m: Int.new(Mu)
17:38 camelia rakudo-moar 367b58: OUTPUT«Type check failed in binding $value; expected 'Any' but got 'Mu'␤  in block <unit> at /tmp/npB_iOjmSa:1␤␤»
17:39 raiph m: Int.new(Any)
17:39 camelia rakudo-moar 367b58: OUTPUT«Cannot unbox a type object␤  in block <unit> at /tmp/9XvQ_Pm8uB:1␤␤»
17:41 bartolin m: m 'role R[::T] { method x { T.new } }; class C does R[Int] { }; say C.new.x.WHAT;'
17:41 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5===␤:: not yet implemented␤at /tmp/9CmUV87S1j:1␤------> 3m 'role R[::7⏏5T] { method x { T.new } }; class C does ␤Other potential difficulties:␤    Space is not significant here; please use quotes or :s (:sigspace) modifier (o…»
17:41 bartolin m: role R[::T] { method x { T.new } }; class C does R[Int] { }; say C.new.x.WHAT;
17:41 camelia rakudo-moar 367b58: OUTPUT«Too few positionals passed; expected 2 arguments but got 1␤  in method x at /tmp/R3IU7bK2BL:1␤  in block <unit> at /tmp/R3IU7bK2BL:1␤␤»
17:41 bartolin m: role R[::T] { method x { T.new } }; class C does R[Str] { }; say C.new.x.WHAT;
17:41 camelia rakudo-moar 367b58: OUTPUT«(Str)␤»
17:41 geekosaur joined #perl6
17:42 zakharyas joined #perl6
17:42 bartolin well, with 'multi method new' I get a clean spectest again.
17:56 MueThoS76 joined #perl6
18:04 bartolin I opened a PR (451)
18:04 bartolin star-m: say Int.new
18:04 camelia star-m 2015.03: OUTPUT«0␤»
18:05 bartolin that looks good to me
18:21 rurban joined #perl6
18:24 raiph joined #perl6
18:25 yqt joined #perl6
18:25 gtodd joined #perl6
18:30 AlexDaniel m: my $test; sub s($test) { say $test; } say s('hello');
18:30 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/w3qvkAtl_q␤Strange text after block (missing semicolon or comma?)␤at /tmp/w3qvkAtl_q:1␤------> 3my $test; sub s($test) { say $test; }7⏏5 say s('hello');␤    expecting any of:␤        infix␤   …»
18:30 AlexDaniel m: my $test; sub s($test) { say $test; }; s('hello');
18:30 camelia rakudo-moar 367b58: OUTPUT«hello␤»
18:30 AlexDaniel is there any way to get $test from the outer scope?
18:32 vendethiel m: my $test; sub s($test where OUTER::<$test>){say $test}; s('hello');
18:32 camelia rakudo-moar 367b58: OUTPUT«hello␤»
18:32 yqt joined #perl6
18:33 AlexDaniel m: my $test='ok'; sub s($test) { say OUTER::<$test>; }; s('hello');
18:33 camelia rakudo-moar 367b58: OUTPUT«ok␤»
18:33 AlexDaniel ok!
18:33 AlexDaniel vendethiel: thanks
18:40 masak japhb++ # consider me to be on your side in the http://irclog.perlgeek.de/perl6/2015-06-26#i_10810797 argument
18:40 masak I feel we're breaking Unix convention for no good reason there.
18:40 masak `cmd --flag file` is such a common thing.
18:42 jaffa4 I How can I make a reference to scalar?
18:53 masak m: my $scalar = 42; my $ref = \$scalar; $scalar++; say $ref
18:53 camelia rakudo-moar 367b58: OUTPUT«\(43)␤»
18:57 molaf_ joined #perl6
18:57 domidumont joined #perl6
18:57 amurf joined #perl6
19:00 jaffa4 masak: is it not that capture?
19:00 timotimo personally, i'd use binding
19:01 jaffa4 : my $scalar = 42; my $ref = \$scalar; $scalar++; say $($ref)
19:01 jaffa4 m: my $scalar = 42; my $ref = \$scalar; $scalar++; say $($ref)
19:01 camelia rakudo-moar 367b58: OUTPUT«\(43)␤»
19:02 jaffa4 How do you "unbox" this?
19:03 jaffa4 m: my $scalar = 42; my $ref = \$scalar; $scalar++; say $$ref
19:03 camelia rakudo-moar 367b58: OUTPUT«\(43)␤»
19:03 jaffa4 m: my $scalar = 42; my $ref = \$scalar; $scalar++; say $$$ref
19:03 camelia rakudo-moar 367b58: OUTPUT«\(43)␤»
19:04 jaffa4 m: my $scalar = 42; my $ref = \$scalar; $scalar++; say $$$$$$$$$$$$$$$$ref
19:04 camelia rakudo-moar 367b58: OUTPUT«\(43)␤»
19:05 jaffa4 masak: How do you uncapture it?
19:06 LonelyGM joined #perl6
19:11 beastd joined #perl6
19:13 masak jaffa4: I was trying to find out, but I failed... :)
19:13 BenGoldberg_ m: my $scalar = 42; my $ref = \$scalar; $scalar++; say +$$ref
19:13 camelia rakudo-moar 367b58: OUTPUT«1␤»
19:13 timotimo the capture isn't supposed to do something like that
19:13 jaffa4 oen way ticket
19:13 masak clearly it's possible, since signature binding works with Capture/Signature.
19:13 masak but I don't know how offhand.
19:13 timotimo m: my $sc = 53; my $ref = \$scalar; my $other; $ref ~~ :($other); say $ref
19:13 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/Id77XMgVkw␤Variable '$scalar' is not declared. Did you mean 'Scalar'?␤at /tmp/Id77XMgVkw:1␤------> 3my $sc = 53; my $ref = \7⏏5$scalar; my $other; $ref ~~ :($other); s␤»
19:14 timotimo m: my $sc = 53; my $ref = \$sc; my $other; $ref ~~ :($other); say $ref
19:14 BenGoldberg_ m: my $scalar = 42; my $ref = \$scalar; $scalar++; my $foo := $$ref; say $foo;
19:14 camelia rakudo-moar 367b58: OUTPUT«\(53)␤»
19:14 camelia rakudo-moar 367b58: OUTPUT«\(43)␤»
19:14 timotimo m: my $sc = 53; my $ref = \$sc; my $other; $ref ~~ :($other); say $ref; say $other
19:14 camelia rakudo-moar 367b58: OUTPUT«\(53)␤(Any)␤»
19:14 timotimo yeah. capture isn't supposed to do what you want
19:14 masak jaffa4: to answer your earlier question: yes, that is a capture. when someone asks about "taking a reference" in Perl 6, I think about captures.
19:14 masak timotimo: I'm... not sure that's a satisfactory answer, nor necessarily a true one.
19:15 masak timotimo: clearly captures are meant to *capture* variables (and then bind them to something else)
19:15 masak so it seems that they could easily emulate references
19:15 masak again, signature binding uses them for this
19:16 jaffa4 boxing in c# terminology
19:17 * masak .oO( wrestling in Java terminology )
19:17 jaffa4 in which document is there a description?
19:18 masak S08 seems to be the main one.
19:18 masak but also frequent mentions in S02, S03 and S06
19:19 masak also note that S08 is one of those where I don't know how closely it veers to current implementation/reality.
19:20 BenGoldberg_ m: my $scalar = 42; my $ref = \$scalar; $scalar++; say $($ref)
19:20 camelia rakudo-moar 367b58: OUTPUT«\(43)␤»
19:21 jaffa4 : my $scalar = 42; my $ref = \$scalar; $scalar++; say |($ref)
19:21 jaffa4 m: my $scalar = 42; my $ref = \$scalar; $scalar++; say |($ref)
19:21 camelia rakudo-moar 367b58: OUTPUT«43␤»
19:21 masak \o/
19:21 BenGoldberg_ jaffa4++
19:21 masak jaffa4++
19:21 jaffa4 m: my $scalar = 42; my $ref = \$scalar; $scalar++; say |$ref
19:21 camelia rakudo-moar 367b58: OUTPUT«43␤»
19:22 masak "\ to make a reference, | to unmake it"
19:22 masak shame we couldn't have prefix:</> for unmaking :P
19:23 vendethiel *g*
19:24 timotimo bah!
19:24 timotimo i've just been told how "guillemets" are actually pronounced
19:24 japhb masak: Thank you for your support re: ARGS parsing.  :-)
19:24 timotimo masak: oh, the mistake must have been i was supposed to := that
19:24 timotimo or something?
19:25 jaffa4 m: say |3;
19:25 camelia rakudo-moar 367b58: OUTPUT«3␤»
19:25 vendethiel I thought this was gonna error out with "no prefix:<|>"
19:26 gcole joined #perl6
19:26 ggoebel joined #perl6
19:29 ggoebel2 joined #perl6
19:31 ggoebel3 joined #perl6
19:34 ggoebel4 joined #perl6
19:37 masak timotimo: I think ::=
19:37 masak vendethiel: pretty sure it used to in Rakudo.
19:37 ggoebel5 joined #perl6
19:38 jaffa4 m: my $scalar = 42; my $ref = \$scalar; $scalar++; (|$ref)++; say $scalar
19:38 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/w_4Zex3Dco␤Arg-flattening | is only valid in an argument list␤at /tmp/w_4Zex3Dco:1␤------> 3 = 42; my $ref = \$scalar; $scalar++; (|7⏏5$ref)++; say $scalar␤»
19:38 bartolin m: |3
19:38 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/KHoLUGVwPi␤Arg-flattening | is only valid in an argument list␤at /tmp/KHoLUGVwPi:1␤------> 3|7⏏3␤»
19:39 jaffa4 masak : there is a problem with that reference... cannot change variable value
19:39 ggoebel6 joined #perl6
19:40 yqt joined #perl6
19:42 jaffa4 It looks like a language design problem
19:44 xfix_ joined #perl6
19:46 masak it's not. as I say, this mechanism is used in capture/signature binding, where one can change caller variables.
19:46 ggoebel7 joined #perl6
19:46 masak m: sub foo($x is rw) { $x++ }; my $y = 42; foo($y); say $y
19:46 camelia rakudo-moar 367b58: OUTPUT«43␤»
19:47 spider-mario joined #perl6
19:48 mohij joined #perl6
19:52 BenGoldberg_ m: my $scalar = 42; my $ref = \$scalar; say ++|($ref);
19:52 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/MUkoRdkjBG␤Variable '&prefix:<|>' is not declared␤at /tmp/MUkoRdkjBG:1␤------> 3$scalar = 42; my $ref = \$scalar; say ++7⏏5|($ref);␤»
19:52 ggoebel8 joined #perl6
19:52 BenGoldberg_ ?
19:53 BenGoldberg_ m: my $scalar = 42; my $ref = \$scalar; for <-> $deref (|($ref)) { say $deref }
19:53 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/hMSo6eQJIr␤Obsolete use of | or \ with sigil on param ($ref)␤at /tmp/hMSo6eQJIr:1␤------> 3$ref = \$scalar; for <-> $deref (|($ref)7⏏5) { say $deref }␤»
19:53 BenGoldberg_ m: my $scalar = 42; my $ref = \$scalar; for -> $deref (|$ref) { say $deref }
19:53 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/x3g6Z0E9sx␤Obsolete use of | or \ with sigil on param $ref␤at /tmp/x3g6Z0E9sx:1␤------> 3my $ref = \$scalar; for -> $deref (|$ref7⏏5) { say $deref }␤    expecting any of:␤        shape declarati…»
19:53 BenGoldberg_ m: my $scalar = 42; my $ref = \$scalar; for -> $deref ($ref) { say $deref }
19:53 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5===␤Expression needs parens to avoid gobbling block␤at /tmp/jdu0dsIdeC:1␤------> 3lar; for -> $deref ($ref) { say $deref }7⏏5<EOL>␤Missing block (apparently taken by expression)␤at /tmp/jdu0dsIdeC:1␤------> 3lar; for -> $d…»
19:53 BenGoldberg_ m: my $scalar = 42; my $ref = \$scalar; for $deref -> ($ref) { say $deref }
19:53 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/5xnWiE5s8P␤Variable '$deref' is not declared␤at /tmp/5xnWiE5s8P:1␤------> 3y $scalar = 42; my $ref = \$scalar; for 7⏏5$deref -> ($ref) { say $deref }␤»
19:54 BenGoldberg_ m: my $scalar = 42; my $ref = \$scalar; for ($ref) -> $deref { say $deref }
19:54 camelia rakudo-moar 367b58: OUTPUT«\(42)␤»
19:54 BenGoldberg_ m: my $scalar = 42; my $ref = \$scalar; for (!$ref) -> $deref { say $deref }
19:54 camelia rakudo-moar 367b58: OUTPUT«False␤»
19:54 BenGoldberg_ m: my $scalar = 42; my $ref = \$scalar; for (|$ref) -> $deref { say $deref }
19:54 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5===␤Arg-flattening | is only valid in an argument list␤at /tmp/pu0PgNyeJn:1␤------> 3$scalar = 42; my $ref = \$scalar; for (|7⏏5$ref) -> $deref { say $deref }␤Arg-flattening | is only valid in an argument list␤at /tmp/pu0PgNy…»
19:55 BenGoldberg_ m: my $scalar = 42; my $ref = \$scalar; sub foo { say $^deref }; foo( |$ref );
19:55 camelia rakudo-moar 367b58: OUTPUT«42␤»
19:55 BenGoldberg_ Success, but seriously wierd way to go about it.
19:56 jaffa4 I am not sure whaT i SEE
19:57 jaffa4 What is $^deref?
19:58 AlexDaniel m: my %arrs; %arrs<hello> = 'one', 'two', 'three'; say 'test' for %arrs<hello>;
19:58 camelia rakudo-moar 367b58: OUTPUT«test␤»
19:58 timotimo installs a positional parameter in that block
19:58 AlexDaniel so how do I iterate over array elements in a hash?
20:00 BenGoldberg_ m: my $scalar = 42; my $ref = \$scalar; sub foo -> $arg { say $arg }; foo( |$ref );
20:00 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/_Zqm2kizxU␤Missing block␤at /tmp/_Zqm2kizxU:1␤------> 3scalar = 42; my $ref = \$scalar; sub foo7⏏5 -> $arg { say $arg }; foo( |$ref );␤    expecting any of:␤        new name to be defined␤»
20:00 BenGoldberg_ m: my $scalar = 42; my $ref = \$scalar; sub foo ( $arg ) { say $arg }; foo( |$ref );
20:00 camelia rakudo-moar 367b58: OUTPUT«42␤»
20:00 jaffa4 : my %arrs; %arrs<hello> = 'one', 'two', 'three'; say $_ for @(%arrs<hello>);
20:00 jaffa4 m: my %arrs; %arrs<hello> = 'one', 'two', 'three'; say $_ for @(%arrs<hello>);
20:00 camelia rakudo-moar 367b58: OUTPUT«one␤two␤three␤»
20:00 jaffa4 m: my %arrs; %arrs<hello> = 'one', 'two', 'three'; say ">>>>$_" for @(%arrs<hello>);
20:00 camelia rakudo-moar 367b58: OUTPUT«>>>>one␤>>>>two␤>>>>three␤»
20:01 AlexDaniel jaffa4: okay, thanks
20:01 AlexDaniel although I don't really understand what happens
20:02 AlexDaniel say %arrs<hello>[1]; works ok
20:03 AlexDaniel say %arrs<hello>.WHAT; says that it is a parcel though
20:03 jaffa4 m: my %arrs; %arrs<hello> = 'one', 'two', 'three'; say ">>>>$_" for @%arrs<hello>;
20:03 camelia rakudo-moar 367b58: OUTPUT«postcircumfix:<{ }> not defined for type List␤  in block <unit> at /tmp/GTAaXoZcYE:1␤␤»
20:04 jaffa4 m: my %arrs; %arrs<hello> = 'one', 'two', 'three'; say ">>>>$_" for %arrs<hello>.list;
20:04 camelia rakudo-moar 367b58: OUTPUT«>>>>one␤>>>>two␤>>>>three␤»
20:05 AlexDaniel what does that mean "OUTPUT«postcircumfix:<{ }> not defined"?
20:05 AlexDaniel there are no {} that I can see
20:05 ugexe <hello>
20:06 geekosaur <...> turns into {'...'}, roughly
20:06 ugexe its trying to access a list with { }
20:07 ugexe instead of accessing the list item with { }
20:12 Ben_Goldberg joined #perl6
20:14 dalek doc: 55e9e56 | (Dmitriy Olshevskiy)++ | lib/Type/ (4 files):
20:14 dalek doc: fix typos
20:14 dalek doc: review: https://github.com/perl6/doc/commit/55e9e56c3c
20:14 dalek doc: 44eb544 | jnthn++ | lib/Type/ (4 files):
20:14 dalek doc: Merge pull request #99 from olshevskiy87/master
20:14 AlexDaniel well, that sounds like a LTA
20:14 dalek doc:
20:14 dalek doc: fix typos
20:14 dalek doc: review: https://github.com/perl6/doc/commit/44eb54488a
20:18 jnthn A Capture can be indexed positionally to get the things in it
20:19 jnthn m: my $a = 41; my $b = \($a); $b[0]++; say $a
20:19 camelia rakudo-moar 367b58: OUTPUT«Cannot assign to an immutable value␤  in block <unit> at /tmp/4usOJhb6mf:1␤␤»
20:19 jnthn ah
20:19 jnthn But yeah, the usual way to do such things these days is "is rw" parameters and so on
20:19 Ben_Goldberg m: my $scalar = 42; my $ref = \$scalar; { ++$_ }( |$ref ); say $scalar;
20:19 camelia rakudo-moar 367b58: OUTPUT«43␤»
20:19 Ben_Goldberg m: my $scalar = 42; my $ref = \$scalar; say { $_ }( |$ref );
20:19 camelia rakudo-moar 367b58: OUTPUT«42␤»
20:20 jaffa4 jnthn:  so is it a bug?
20:20 jnthn jaffa4: What's a bug?
20:21 jnthn That you can't ++ the [0]'d thing maybe is
20:21 jaffa4 jnthn:  not being able to set it
20:21 jnthn I've never seen code using a Capture to fake up a scalar ref that wasn't more idiomatically expressed in a better way.
20:21 Ben_Goldberg m: my $scalar = 42; my $ref = \$scalar; say $ref[0];
20:21 camelia rakudo-moar 367b58: OUTPUT«42␤»
20:22 jnthn Yes, confirm the "can't set the [0]" thing is a bug...
20:22 jnthn You can see how few people actually try using Captures this way by the fact we never noticed it until now :P
20:22 jaffa4 jnthn: if there is argument like this   a(argument => \$r)
20:23 bin_005 joined #perl6
20:23 jnthn sub a(:$argument is rw) { ... }, then just call it as a(argument => $r)
20:24 jaffa4 but I do not what argument is going to be
20:24 jaffa4 what if argument is not fixed
20:26 jaffa4 the example is Getopt::Long , it does that way, jnthn
20:26 * masak submits rakudobug
20:26 masak (for the "can't set the [0]" thing)
20:27 jnthn masak: Thanks, I'm just a bit too tired to fix that now, but can easily do it in the morning :)
20:28 TEttinger joined #perl6
20:28 jaffa4 not too mention complex data structures
20:30 dalek ecosystem: 8d938b6 | RabidGravy++ | META.list:
20:30 dalek ecosystem: Add CheckSocket to the modules list
20:30 dalek ecosystem: review: https://github.com/perl6/ecosystem/commit/8d938b65a8
20:30 Ben_Goldberg m: my $scalar = 42; my $ref = \$scalar; say ++{$_}(|$ref); # The return value of an evaluated pointy block can be 'is rw' ... is that a good thing?
20:30 camelia rakudo-moar 367b58: OUTPUT«43␤»
20:31 jnthn jaffa4: Well, if you really want that API you'll need something more like:
20:31 jnthn m: sub foo(:$argument is parcel) { say $argument.VAR ~~ Scalar }; foo(argument => my $x); foo(argument => 42)
20:31 camelia rakudo-moar 367b58: OUTPUT«True␤False␤»
20:31 jnthn Just because something was a sensible API in Perl 5 doesn't mean a good port of the module is going to want the same API in Perl 6, though.
20:32 masak jaffa4: please don't try to make "complex data structures" using captures.
20:32 masak jaffa4: the smell of an XY problem just increased about tenfold.
20:32 masak jaffa4: in most cases in Perl 6, you can solve things quite adequately without thinking in terms of references. more concrete cases can be made more specific than that.
20:33 jnthn Ben_Goldberg: I'm pretty sure we have RT tickets that complain about some blocks not deconting and others deconting so on average people want both semantics by default :P
20:35 zacts joined #perl6
20:37 jaffa4 joined #perl6
20:42 Ben_Goldberg m: my $goal = "Just another sorting hacker,"; my @b = 'a'..'z';push @b, 'A'..'Z'; my $a = @b[^ $goal.chars].join; srand 1; my $scram = $a.comb.pick(*).join; say my $pre = $a.trans( $scram => $goal ); srand 1; $pre.comb.pick(*).join.say;
20:42 camelia rakudo-moar 367b58: OUTPUT«tna h,hcJgotnrseaours reik t␤Just another sorting hacker,␤»
20:44 AlexDaniel m: for ^5 -> $k { say $k }
20:44 camelia rakudo-moar 367b58: OUTPUT«0␤1␤2␤3␤4␤»
20:44 AlexDaniel m: say $k for ^5 -> $k;
20:44 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/G66SRvRsLl␤Variable '$k' is not declared␤at /tmp/G66SRvRsLl:1␤------> 3say 7⏏5$k for ^5 -> $k;␤»
20:45 AlexDaniel is it correct? To me it seems a little bit weird that turning a loop into a different form causes an error
20:45 Ben_Goldberg m: for ^5 -> { say $^k };
20:45 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/5HLSrd6n0H␤Placeholder variable '$^k' cannot override existing signature␤at /tmp/5HLSrd6n0H:1␤------> 3for ^5 7⏏5-> { say $^k };␤»
20:45 Ben_Goldberg m: for ^5 { say $^k };
20:45 camelia rakudo-moar 367b58: OUTPUT«0␤1␤2␤3␤4␤»
20:45 Ben_Goldberg m: for ^5 -> $k { say $k };
20:45 camelia rakudo-moar 367b58: OUTPUT«0␤1␤2␤3␤4␤»
20:46 Ben_Goldberg m: say $_ for ^5;
20:46 camelia rakudo-moar 367b58: OUTPUT«0␤1␤2␤3␤4␤»
20:46 Ben_Goldberg m: say $^k for ^5;
20:46 camelia rakudo-moar 367b58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/uokkHTWZl_␤Cannot use placeholder parameter $^k in the mainline␤at /tmp/uokkHTWZl_:1␤------> 3say $^k7⏏5 for ^5;␤»
20:46 Ben_Goldberg m: { say $^k } for ^5;
20:46 camelia rakudo-moar 367b58: OUTPUT«0␤1␤2␤3␤4␤»
20:47 Ben_Goldberg m: -> $k { say $k } for ^5;
20:47 camelia rakudo-moar 367b58: OUTPUT«0␤1␤2␤3␤4␤»
20:48 Ben_Goldberg AlexDaniel, Are any of these what you want?
20:49 atroxaper joined #perl6
20:49 AlexDaniel Ben_Goldberg: well, um
20:50 AlexDaniel Ben_Goldberg: yeah, but isn't it still weird?
20:50 Ben_Goldberg When you choose to use it, the '-> $variable, $list, $here' is part of the block
20:50 Ben_Goldberg It is not part of the 'for'
20:50 gtodd joined #perl6
20:51 Ben_Goldberg m: if ( rand ) { say $^k }
20:51 camelia rakudo-moar 367b58: OUTPUT«0.763556324825272␤»
20:51 Ben_Goldberg m: if ( rand ) -> $k { say $k }
20:51 camelia rakudo-moar 367b58: OUTPUT«0.886812888937006␤»
20:51 Ben_Goldberg m: -> $k { say $k } if rand;
20:51 camelia rakudo-moar 367b58: ( no output )
20:51 Ben_Goldberg m: -> $k { say $k } for rand;
20:51 camelia rakudo-moar 367b58: OUTPUT«0.141762114122683␤»
20:52 Ben_Goldberg Hmm, dunno why that 'if rand' didn't do what I expected.
20:52 Ben_Goldberg m: say $_ if rand;
20:52 camelia rakudo-moar 367b58: OUTPUT«(Any)␤»
20:52 Ben_Goldberg m: { say $_ } if rand;
20:52 camelia rakudo-moar 367b58: OUTPUT«(Any)␤»
20:52 Ben_Goldberg m: if ( rand ) { say $_ }
20:52 camelia rakudo-moar 367b58: OUTPUT«(Any)␤»
20:52 Ben_Goldberg m: if ( rand ) -> $_ { say $_ }
20:52 camelia rakudo-moar 367b58: OUTPUT«0.600232318101774␤»
20:54 Ben_Goldberg I suppose that 'if' doesn't try as hard to pass it's expression result into its associated block.
20:54 Ben_Goldberg Or rather, people would be surprised if $_ got set by 'if' without them asking for it.
20:55 laouji joined #perl6
20:56 Ven joined #perl6
21:03 dalek rakudo/nom: fc6db98 | usev6++ | src/core/Signature.pm:
21:03 dalek rakudo/nom: Avoid NullPointerException on JVM
21:03 dalek rakudo/nom:
21:03 dalek rakudo/nom: in S06-signature/introspection.t
21:03 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/fc6db9880f
21:03 dalek rakudo/nom: d0176db | lizmat++ | src/core/Signature.pm:
21:03 dalek rakudo/nom: Merge pull request #450 from usev6/jvm_npe_signature_deftype
21:03 dalek rakudo/nom:
21:03 dalek rakudo/nom: Avoid NullPointerException on JVM
21:03 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/d0176dbc89
21:03 dalek rakudo/nom: 63be88f | usev6++ | src/core/Int.pm:
21:03 dalek rakudo/nom: Change constructor for Int to 'multi method'
21:03 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/63be88f446
21:03 dalek rakudo/nom: 8e82716 | lizmat++ | src/core/Int.pm:
21:03 dalek rakudo/nom: Merge pull request #451 from usev6/int_constructor
21:03 dalek rakudo/nom:
21:03 dalek rakudo/nom: Change constructor for Int to 'multi method'
21:03 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/8e82716ccd
21:05 masak 'night, #perl6
21:07 RabidGravy night
21:10 ugexe zef --version="0.1+" --depends="HTTP::Server" search HTTP* # wildcard searches working :)
21:10 RabidGravy nice
21:14 timotimo neato
21:14 jnthn :)
21:15 jnthn Time for some rest...will be back to the RT queue and other Perl 6 hacking tomorrow :) &
21:15 AlexDaniel ugexe: careful with bare strings like this HTTP*
21:16 AlexDaniel ugexe: especially don't write that in the examples :)
21:16 AlexDaniel I mean, just quote it 'HTTP*'
21:19 AlexDaniel ugexe: also it is a bit weird for me to see quoting like this: --depends="HTTP::Server", like that has any special meaning. Better quote it like '--depends=HTTP::Server', this way it shows exactly what happens
21:19 AlexDaniel but that's just me
21:22 ugexe does that work on windows?
21:23 geekosaur need to use "" instead of '' unless you are using a port of a unix shell
21:24 raiph joined #perl6
21:25 ugexe cant tell if its getopt::long or windows shell, but putting quotes around --arg=string seems to ignore the argument all together
21:29 AlexDaniel huh
21:30 AlexDaniel because there are no arguments in windows? I don't know...
21:30 AlexDaniel not on windows then, eh
21:30 ugexe arguments work on windows
21:30 AlexDaniel ugexe: yeah, but how
21:31 ugexe rakudobrew build moar --prefix="blah" is ok. rakudobrew build moar "--prefix=blah" does not see --prefix=blah at all
21:31 vendethiel using "" instead of '' on windows
21:32 ugexe my windows cli compatability protocol is to randomly change stuff till it happens to work
21:40 lizmat .tell FROGGS looks like QX is severely broken on the JVM  :-(
21:40 yoleaux lizmat: I'll pass your message to FROGGS.
21:51 rurban joined #perl6
22:00 bjz joined #perl6
22:03 bjz joined #perl6
22:05 victorazur joined #perl6
22:06 victorazur hello
22:22 ilogger2 joined #perl6
22:23 dalek rakudo/nom: 24236f4 | lizmat++ | src/Perl6/ (2 files):
22:23 dalek rakudo/nom: Simplify ;; parsing in signature handling
22:23 dalek rakudo/nom:
22:23 dalek rakudo/nom: Fixes #125502, already has a test
22:23 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/24236f42f0
22:23 synbot6 Link:  https://rt.perl.org/rt3/Public/Bug/Display.html?id=125502
22:25 dalek roast: 85c3253 | lizmat++ | S06-signature/multi-invocant.t:
22:25 dalek roast: Unfudge now passing test
22:25 dalek roast: review: https://github.com/perl6/roast/commit/85c3253cf2
22:26 lizmat and with that puzzle fixed, I'm going to get some sleep...
22:30 cognominal joined #perl6
22:35 amurf joined #perl6
22:36 nightfrog joined #perl6
22:37 colomon joined #perl6
22:39 rurban joined #perl6
22:43 laouji joined #perl6
22:43 amurf joined #perl6
22:44 rurban joined #perl6
22:52 cognominal m: sub git(str $repo where m| $<user>=<-[/]>+ '/' .* |) { say $<user> } ; git 'jnthn/oo-monitor'
22:52 camelia rakudo-moar 24236f: OUTPUT«「jnthn」␤»
22:54 cognominal this is fine and dandy, now what if I have many parameters with a where with hypotehtical vars. How to get to them?
22:57 gagalicious joined #perl6
22:58 bjz joined #perl6
23:04 ugexe something that might work is using the where clauses as constraits for subtypes that you can use in the signature
23:07 cognominal I would expect to get the value mixed in $repo.VAR or something like that
23:08 cognominal or something like $repo,^where
23:08 cognominal * $repo.^where
23:09 cognominal I am sure that with the metamodel, it is a SMOP for the cognescenti
23:14 BenGoldberg joined #perl6
23:22 j1n3l0 joined #perl6
23:22 dayangkun joined #perl6
23:42 telex joined #perl6
23:55 tinyblak joined #perl6
23:55 gagalicious joined #perl6
23:57 laouji joined #perl6

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

Perl 6 | Reference Documentation | Rakudo