»ö« 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! | feather will shut down permanently on 2015-03-31
Set by jnthn on 28 February 2015.
raydiak do we have a way to remove a non-empty directory without recursively emptying it one file at a time? 00:20
00:24 tinyblak left
ugexe you could do it the way steam did it... shell out a rm -rf and hope nothing bad ends up happening >:) 00:30
TimToady shell('rm -rf dir')
ugexe then again, thats just recursively emptying the folder too 00:33
TimToady there is no other way under Unix, unless you want to damage the filesystem 00:35
raydiak guess that answers that, then (btw anyone reading along wanting to reliably and portably remove dirs could use rm_rf() from Shell::Command) 00:36
ugexe using the hyperoperator you can do it in a few lines anyway 00:38
00:39 yqt left 00:40 nbdsp joined, tinyblak joined
nbdsp Greetings! Could someone advise please how to insert binary data into MySQL table with DBIish so that it wasn't interpreted as Unicode? When I try the following: my $q = "\x79\x80"; $st = $db.prepare("INSERT INTO main (hash) VALUES('$q')"); $st.execute(); I always get in the DB table 3 bytes: 0x79, 0xc2, 0x80 00:40
00:46 laouji joined 00:47 colomon left, colomon joined
TimToady .encode('latin-1') or so? 00:51
or is the interface enforcing utf-8? 00:52
nbdsp I can't find in the DBIsh connection parameters relating to charset. Maybe someone uses DBIish for such kind of tasks? 00:57
00:59 simcop2387 joined
nbdsp When I try the following: my $q = "\x79\x80"; $st = $db.prepare("INSERT INTO main (hash) VALUES('$q.encode('latin-1')"); $st.execute(); there is an error "Cannot use Bud as a string, but you called Stringy method on it." 01:00
01:00 anaeem1_ joined
nbdsp "Cannot use Buf as string..." 01:00
bobkare nbdsp: have you tried passing the data via a placeholder instead?
nbdsp Yes. The same result. 01:01
01:01 aborazmeh joined, aborazmeh left, aborazmeh joined 01:05 anaeem1_ left 01:16 aborazmeh left
nbdsp from mysql site: "mysql_query() cannot be used for statements that contain binary data;" and DBIish uses mysql_query. :( 01:16
gtodd aww perl8.org is gone 01:17
01:22 laouji left, laouji joined 01:24 BenGoldberg joined, vendethiel joined 01:29 yeahnoob joined
cognominal r: say []^.roles 01:30
camelia rakudo-moar 8e96e4: OUTPUT«one(, (Any))␤»
..rakudo-jvm 8e96e4: OUTPUT«cannot connect to eval server: Connection refused␤»
cognominal r: say .WHAT for []^.roles 01:31
camelia rakudo-moar 8e96e4: OUTPUT«(Junction)␤»
..rakudo-jvm 8e96e4: OUTPUT«cannot connect to eval server: Connection refused␤»
01:49 nbdsp left 01:53 cognominal left 01:59 elf_ joined 02:13 chenryn joined, noganex joined 02:16 noganex_ left 02:26 SHODAN joined 02:33 chenryn left 02:34 aborazmeh joined, aborazmeh left, aborazmeh joined 02:42 chenryn joined 03:33 skids left 03:43 chenryn left
tony-o moritz: that event::emitter is available on panda now if you were looking to use it - if not thanks for the heads up that i boogered up the meta 03:50
04:08 vendethiel left 04:09 vendethiel joined 04:14 Alina-malina left 04:17 anaeem1 joined 04:19 anaeem1 left 04:20 anaeem1_ joined 04:30 kaare_ joined 04:44 chenryn joined 04:49 chenryn left 04:55 vendethiel left 04:59 BenGoldberg left
moritz tony-o: thanks for fixing it; I noticed it went missing when updating github.com/moritz/perl6-all-modules 05:01
05:06 elf_ left 05:13 chenryn joined 05:22 KCL_ left 05:23 KCL_ joined 05:32 spider-mario left 05:35 virtualsue joined 05:43 chenryn left 05:44 espadrine joined 05:45 Psyche^ joined 05:46 chenryn joined 05:49 Patterner left 06:05 chenryn left 06:09 mr-foobar joined
jnthn morning o/ 06:13
06:15 Woodi joined 06:17 rindolf joined 06:23 yvan1 left 06:26 aborazmeh left 06:30 risou is now known as risou_awy, risou_awy is now known as risou
labster \o morning jnthn 06:33
dalek ast: e6f9b8c | usev6++ | S02-literals/heredocs.t:
Add reference to RT #117853
06:39
synbot6 Link: rt.perl.org/rt3//Public/Bug/Displa...?id=117853
masak morning, #perl6 06:45
moritz \o 06:46
labster m: say Str.chars 06:48
camelia rakudo-moar 8e96e4: OUTPUT«use of uninitialized value of type Str in string context in block <unit> at /tmp/HEdB8nACCY:1␤␤0␤»
06:49 RabidGravy joined
labster I suppose that seems like the right behavior. 06:50
masak yes. 06:51
the Str type object has 0 characters :)
and a warning, because don't do that
labster I was thinking of adding a method chars to Str.pm, because I think I can get 4% faster without the unboxing. 06:52
which is not exactly LHF, but I still feel like .chars is a bit too slow 06:53
06:53 chenryn joined
jnthn Yes, Str.chars should exist 06:55
Probably as a multi with :D and :U on the invocant 06:56
Then the :D one is just nqp::chars(self)
Or nqp::chars(nqp::unbox_s(self))
06:58 chenryn left, awwaiid joined
labster :U is the confusing one. multi method chars (Str:U) { self.Str; 0 } ? 06:58
well, that might happen automatically with Cool's version. I'll give it a shot. 06:59
06:59 chenryn joined
moritz labster: I'd guess that the self.Str is there just to generate the warning 06:59
labster that was my intent
jnthn It's a fair enough way to generate it. 07:00
moritz but please add a comment to it
dalek ast: d561d49 | usev6++ | S04-declarations/my.t:
Add test for RT #115916
synbot6 Link: rt.perl.org/rt3//Public/Bug/Displa...?id=115916
jnthn notes we're down to 670 RTs 07:02
07:02 laouji_ joined
masak \o/ 07:02
jnthn I hope we can get down to 650 and below during April
bartolin \o/ jnthn++
masak it's been way higher than 670, hasn't it?
moritz bartolin++ # relentless RT work
masak have we ever pushed 1000?
07:02 Ven joined
jnthn It's been over 700 before, for sure 07:02
masak oh, ok.
bartolin++ indeed
labster \o/ indeed
bartolin it has been near 800 last autumn :-) 07:03
jnthn Wow :)
07:03 vendethiel joined
jnthn wonders if there's a way to get RT to spit out stats on that :) 07:03
masak bartolin: ok, you push it to 0, I push it to Inf. first one to get there wins :P
bartolin *g*
would be a ... tie? 07:04
labster bartolin++ keeps filling up my inbox with RT closures
bartolin yeah, at times I think I'm a bit noisy at perl6-compiler 07:05
masak .oO( it's because of all these RT closures that we have to allocate stuff on the heap! ) :P
bartolin: it's good noise.
I don't mind p6c being noisy with RT stuff.
07:06 zakharyas joined
masak for each RT ticket, there's at least one person who cares about the ticket. 07:06
07:06 laouji left
moritz and if we do start to consider it noise, we'll simply have RT not send those mails to p6c 07:07
07:07 Alina-malina joined, Ven left
bartolin moritz: I'm Cc:'ing p6c most of the time manually, though 07:07
jnthn I thought they went to p6c automatically? 07:08
moritz too 07:09
jnthn hm, seems my blog post didn't make it to pl6anet.org 07:13
07:14 Ven joined
jnthn itz_: Is pl6anet yours? Any chance of getting 6guts.wordpress.com/ there, now I'm actively Perl 6 blogging again? :) 07:15
moritz jnthn++ # 6guts.wordpress.com/2015/04/12/thi...-many-rts/
RabidGravy m: say homedir('.') 07:17
camelia rakudo-moar 8e96e4: OUTPUT«Dynamic variable $*HOME not found␤ in method <anon> at src/gen/m-CORE.setting:16089␤ in any find_method_fallback at src/gen/m-Metamodel.nqp:2908␤ in any find_method at src/gen/m-Metamodel.nqp:1052␤ in sub homedir at src/gen/m-CORE.setting:19088…»
RabidGravy where would $*HOME be best implemented? In Process.pm with most of the dynvars? 07:18
07:22 Rounin joined, espadrine left 07:24 awwaiid left 07:26 vendethiel left 07:29 FROGGS joined, bjz joined 07:34 awwaiid joined 07:39 Ven left
nwc10 OMG bloggage 07:41
07:42 abraxxa joined 07:43 pecastro left, virtualsue left 07:46 Ven joined 07:47 darutoko joined 07:55 yvan1 joined 07:57 yakudza joined 08:04 chenryn left 08:05 chenryn joined 08:08 bjz left
FROGGS .schnickschnack 08:12
yoleaux 11 Apr 2015 16:25Z <jnthn> FROGGS: Please undo removing MODE_UNBOX_STR_NOT_EMPTY_OR_ZERO; it's probably useful for, for example, v5.
11 Apr 2015 16:33Z <nwc10> FROGGS: Ooops you're innocent. Please try harder next time :-)
11 Apr 2015 16:35Z <nwc10> FROGGS: Guess what, Problem *still* Exists Between (my) Keyboard And Chair.
08:12 espadrine joined
FROGGS is the jvm build still borken? and if so, how can I reproduce it? 08:12
08:13 cschwenz joined
nwc10 FROGGS: I believe that jnthn was able to fix it 08:15
FROGGS ahh cool
need to backlog the entire weekend...
nwc10 Friday's party was *that* good? :-) 08:16
moritz python, python
ImportError: cannot import name 'OperationalLevel'
FROGGS nwc10: I had to build a fence, almost all on my own :/
moritz how about telling me *why* you can't import it?
nwc10 where "Almost" was a LTA thing, because you had small assistants?
[ptc] moritz: PYTHONPATH? 08:17
FROGGS I did not even know until then where one can have aching muscles
nwc10: no, the owner of the fence helped
08:17 ab5tract_ joined
FROGGS but there are things that only one person can do 08:17
and sadly that was me
moritz [ptc]: I guess the symbol that I want to import simply isn't there in the file 08:18
[ptc]: but if that's the case, python could *tell me that*
FROGGS and now I see who broke the jvm build :/
[ptc] moritz: I feel your pain! Python is my $dayjob
moritz python's error message simply aren't written from a user's perspective
[ptc] torture the user on behalf of the implementor 08:19
FROGGS moritz: that's often the case 08:20
moritz: look at visual basic for example
dalek ast: 223db17 | usev6++ | S14-roles/parameterized-type.t:
Fix test for RT #68136
synbot6 Link: rt.perl.org/rt3//Public/Bug/Displa...l?id=68136
08:21 Ven left
dalek kudo/nom: e28b43d | labster++ | src/core/Str.pm:
Add Str.chars instead of inheriting Cool.chars

  .chars on strings now runs 41% faster
08:28
08:28 bjz joined
labster I think that helped out the optimizer quite a bit more than I expected. 08:29
08:29 dakkar joined, azawawi joined
azawawi hi 08:29
What are the recommended Perl 6 syntax highlighter(s) these days? 08:30
08:31 Ven joined
[ptc] azawawi: the vim syntax highlighter is good, although you'll need to use the very latest version (github.com/vim-perl/vim-perl/blob/...perl6.vim) since the one shipped with e.g. Debian is very slow 08:36
08:36 bjz left
azawawi i see thx 08:37
08:38 mr-foobar left 08:39 laouji_ left 08:40 laouji joined 08:41 maddingue joined
[ptc] azawawi: if you just want to do syntax highlighting (in HTML, say), then pygments (pygments.org) provides a Perl6 highlighting module 08:42
08:42 telex left
ab5tract_ wasn't someone getting a 'textmate' coloring going? which would theoretically give us our github coloring back? 08:42
RabidGravy now a few more of you have woken up, where should $*HOME be implemented? 08:43
m: homedir('.') 08:44
camelia rakudo-moar 8e96e4: OUTPUT«Dynamic variable $*HOME not found␤ in method <anon> at src/gen/m-CORE.setting:16089␤ in any find_method_fallback at src/gen/m-Metamodel.nqp:2908␤ in any find_method at src/gen/m-Metamodel.nqp:1052␤ in sub homedir at src/gen/m-CORE.setting:19088…»
08:44 telex joined 08:47 ab5tract_ left 09:02 bjz joined 09:07 pecastro joined 09:10 Woodi left, Woodi joined 09:18 pecastro left 09:22 vendethiel joined 09:31 cognominal joined 09:32 cognominal left, Ven left 09:33 yeahnoob left 09:34 mr-foobar joined
dalek Heuristic branch merge: pushed 22 commits to rakudo/newio by lizmat 09:36
09:41 pecastro joined 09:44 vendethiel left, rurban_ joined, chenryn left 09:45 yqt joined 09:46 chenryn joined 09:50 cognominal joined 09:58 yqt left 09:59 yqt joined, laouji_ joined 10:00 cognominal left 10:04 laouji left 10:26 tadzik left, tadzik joined, tadzik left 10:27 tadzik joined, yqt left 10:30 kinslayer joined 10:32 cognominal joined, thilp joined 10:37 chenryn left 10:38 cschwenz left, silug joined, cschwenz joined 10:41 yqt joined 10:45 RabidGravy left 10:47 raiph joined 10:48 Ven joined 10:49 Ven left
tadzik looks at github.com/tadzik/panda/issues/148, puzzled 10:52
...how did it ever work? Was it always that way?
oh, withp6lib :) 10:53
10:57 azawawi left
tadzik thanks to ugexe++, rakudobrew now works on windows :) 10:57
colomon ooooo 11:00
what does it need to build?
(or rather, maybe, what does Rakudo need to build?)
tadzik Perl only, I think 11:01
er, wait 11:02
yeah, think so
try it out, I don't have windows :)
|Tux| tadzik, Text::CSV does not run the tests under panda and then does not install
11:02 anaeem1_ left
tadzik [Tux]: ok, looking 11:02
|Tux| if you can spot the reason why, I owe you another beer
tadzik :) 11:03
[Tux]: is that related to the prove -Ilib ticket you opened?
|Tux| yep
tadzik and fixed by your patch?
|Tux| that is why I came here
tadzik [Tux]: it just tested and installed correctly for me
|Tux| it fixed the panda install Text::CSV, but I saw core dumps later
tadzik aside from the fact that it does not have provides 11:04
|Tux| but I have no idea if that was related
tadzik so it cannot be loaded properly
let's see if I can fix that
|Tux| it *does* have provides!
tadzik oh?
oh, it does! Very weird
|Tux| github.com/Tux/CSV/blob/master/META.info#L13 11:05
tadzik yeah
wtf
also, [Tux]++ for a nice, proper META.info :)
11:05 diana_olhovik_ joined
tadzik ok, this is crazy. When I install it with 'panda install .', it doesn't test anyore 11:06
|Tux| is unsure if the test-depends also requires the entries in depends
tadzik 'panda install Text::CSV' works fine except it doesn't see "provides"
11:06 chenryn joined
tadzik [Tux]: I think test-depends is a superset of depends :) 11:06
by definition
|Tux| but you understand why I lost track 11:07
tadzik clearly
I'll set up my coffee and get on it
dalek kudo-star-daily: 7faca23 | coke++ | log/ (2 files):
today (automated commit)
11:12
rl6-roast-data: ce236c5 | coke++ | / (9 files):
today (automated commit)
11:12 pecastro left
raiph .tell RabidGravy irclog.perlgeek.de/perl6/2015-02-14#i_10117483 11:14
yoleaux raiph: I'll pass your message to RabidGravy.
[Coke] 2 files failing on nqp parrot now.
integration/advent2012-day04.t failing on all rakudo backends 11:15
S12-attributes/native.t failing on rakudo-nojit
S17 flappers still present. 11:16
11:16 thilp left
[Coke] lots more failures on jvm still. 11:16
tadzik grr, I should test PRs before merging them 11:17
[Tux]: ok, this is quite interesting. Your tests segfault rakudo, but crash the debugger 11:25
(perl6 debugger)
with a mysterious yet scary "Unhandled exception: ctxlexpad needs an MVMContext"
|Tux| yeah, that is where I stopped too
waaaaay out of my comfort zone
tadzik haha 11:26
at least it consistently crashes on Text::CSV.new
[Coke] (rt, p6c - no, that's not automatic. you have to opt in every time you comment on a ticket via the webterface) 11:29
tadzik |Tux|: it gets better: I can't even precompile Text::CSV 11:31
perl6 --target=mbc -o blib/lib/Text/CSV.mbc lib/Text/CSV.pm says: Cannot dump this object; no dump method
good news is, Text::CSV works perfectly fine when not precompiled
|Tux| looks over his shoulder, feeling haunted
tadzik so it is *just* a precompilation bug
I'm sure jnthn'll love it :P 11:32
|Tux| LOL
11:32 fhelmberger joined 11:35 Ven joined
masak I suspected precompilation might be involved somehow. 11:39
nice detective work, |Tux|++ and tadzik++
can you also manage to golf the precompilation thing, preferably with as few module dependencies as possible? kthx 11:40
masak doesn't even care all that much, he just likes it when things are golfed :> 11:41
tadzik ah, masak, asking the hard questions...
masak life is the hard teacher. I'm just a TA. :P
tadzik TeAcher? :P 11:42
masak teaching assistant
tadzik . o O ( You can't have teacher without tea )
masak tadzik: maybe "amanuensis" or something like that in your quaint language? :P
tadzik :o
An amanuensis (/əˌmænjuːˈɛnsɪs/) is a person employed to write or type what another dictates
A student! 11:43
masak haha
tadzik too often in the school system I'm used too
s:2nd/too/to/
"Do you want some beer?" "Yeah, give me an IPA" "Do you want some /bɪə(ɹ)/?" 11:44
masak \(ɹ)/ 11:45
tadzik ᕕ( ᐛ )ᕗ
masak tadzik: you brighten my day by just being you. :) 11:46
tadzik ᕕ( ᐛ )ᕗ
oops
media.tumblr.com/tumblr_m7n45immio1r6eqtv.jpg
masak T.Haha
tadzik also, look what I found in another window: Stage parse : Internal error: invalid thread ID in GC work pass
sergot it's my window, isn't it? :P 11:47
I mean, a windown with a chat with me
11:47 aborazmeh joined, aborazmeh left, aborazmeh joined
sergot tadzik: any ideas? :) 11:48
tadzik no, it looks crazy
and yes, it's from your window :) 11:49
masak internal error (c) sergot 2015
sergot :D 11:50
I can't get my rakudo working :'( 11:52
11:53 nbdsp joined
sergot .seen FROGGS 11:54
yoleaux I saw FROGGS 08:20Z in #perl6: <FROGGS> moritz: look at visual basic for example
FROGGS wassup?
sergot are you aware of anything that could have broken IO::Socket::SSL? 11:55
tadzik's just got this: gist.github.com/tadzik/22999b3fbb06069ab994
11:56 yqt left
FROGGS I can imagine what this is about, yeah 11:58
I guess one passes an Int to a subroutine that expects a native int
we should make MoarVM smarter about that 11:59
I mean, we can pass Ints to native numeric params as long as these params are not 'is rw'
sergot thanks FROGGS I will fix it in IO::Socket::SSL as soon as I get my rakodu working 12:00
or, tadzik you can fix it on your own if you're in hurry :) 12:01
abraxxa FROGGS: i'd like to see such a type coercion too 12:04
tadzik sergot: I'll put it on my todo for today :)
12:05 domidumont joined
domidumont Hello. I trying to build nqp for Debian using a pre-installed moar. The command "perl Configure.pl --backends=moar --with-moar=/usr/bin/moar" works fine (well, it does not complain). But make fails with: 12:07
make: /home/domi/debian-dev/perl6-stuff/nqp/install/bin/moar: Command not found
Any clue ?
12:08 diana_olhovik_ left
sergot tadzik++ I will try to fix my rakudo anyway 12:08
FROGGS abraxxa: aye 12:09
12:10 yqt joined
FROGGS domidumont: I'll check that, though I cannot do that now sadly :o( 12:10
domidumont: can you please open a gh issue? it's easier to track progress there 12:11
domidumont no problem, I have to go back to $work also. What's gh ?
FROGGS github 12:12
domidumont heh :-)
FROGGS :o)
domidumont: can I install that moar package somehow? (on my ubuntu box)
domidumont Best bet is to download Debian source package (still in new queue) and build/install it on your system. 12:13
well, using debian's git repo is probably faster: git://git.debian.org/git/pkg-rakudo/pkg-moarvm.git 12:15
FROGGS ahh, that's probably what I am looking for... thanks 12:16
12:17 rmgk left 12:19 rmgk joined
domidumont FROGGS: github.com/perl6/nqp/issues/231 12:19
12:21 laouji_ left 12:35 vendethiel joined 12:38 caymanboy left 12:42 cognominal left
tadzik FROGGS: I wonder if the concepts of panda's --prefix and DESTDIR are even valid now that eleven is out 12:52
or they just need to work a little bit differently 12:53
12:53 mr-foobar left
FROGGS tadzik: I dunno, really :o( 12:55
tadzik :)
something to talk about on perla
perlqa*
FROGGS my head is somewhere else right now, and I wish it were not
yeah
12:57 chenryn left 12:59 vendethiel left
tadzik ohh, another precomp bug, this time in jvm %) 12:59
13:01 Ven left 13:04 vendethiel joined 13:12 RabidGravy joined 13:14 Irinaioana joined 13:19 aborazmeh left, Ven joined 13:20 Irinaioana left 13:24 vendethiel left 13:26 yqt left 13:31 aborazmeh joined, aborazmeh left, aborazmeh joined 13:33 vendethiel joined
RabidGravy is there a way of making for a module to see if any deprecations have been "raised" ? 13:34
yoleaux 11:14Z <raiph> RabidGravy: irclog.perlgeek.de/perl6/2015-02-14#i_10117483
RabidGravy right 13:36
I think I'll carry on with what I am doing in Process.pm anyway as it's only small and it'll make homedir() work and can get backed out when/if newio gets merged 13:48
13:49 skids joined
RabidGravy is there a general injunction against using NativeCall in the rakudo core library? or is that no-one has got round to doing so? 13:51
I think any implementation of $*HOME would enormously benefit from getpwuid() ;-) 13:52
arnsholt I think using NativeCall in the core is probably a smell 13:53
If there's something you'd need NativeCall for, we're gonna want to support for it in NQP
moritz +1 13:54
13:54 mr-foobar joined
RabidGravy that was my suspicion 13:54
13:58 lolisa joined
RabidGravy Anyhoo I have: 13:59
[jonathan@coriolanus rakudo]$ ./perl6
> say $*HOME;
"/home/jonathan".IO
> homedir("/tmp");
"/tmp".IO
versus 14:00
> say $*HOME;
Dynamic variable $*HOME not found
in method gist at src/gen/m-CORE.setting:15985
in sub say at src/gen/m-CORE.setting:18823
in block <unit> at <unknown file>:1
> homedir("/tmp");
Dynamic variable $*HOME not found
in method <anon> at src/gen/m-CORE.setting:15989
in any find_method_fallback at src/gen/m-Metamodel.nqp:2908
in any find_method at src/gen/m-Metamodel.nqp:1052
in sub homedir at src/gen/m-CORE.setting:18988
in block <unit> at <unknown file>:1
14:00 Alina-malina left 14:01 Alina-malina joined 14:03 skids left, mr-foobar left
[ptc] does anyone use the --with-moar option when configuring nqp? 14:06
14:07 mr-foobar joined
RabidGravy just PR'd that with github.com/rakudo/rakudo/pull/406 14:08
lizmat RabidGravy: there's $*DISTRO.is-win 14:13
also, I would drop the check on definedness...now that "0" is true 14:14
14:14 aborazmeh left
lizmat if %*ENV<HOME> -> $home { $HOME = $home } elsif $*DISTRO.is-win { $HOME = .... } 14:15
sjn is looking forward to the qa hackathon, to hack on install/deploy stuff with lizmat and FROGGS and tadzik and anyone else :)
14:16 pecastro joined
RabidGravy lizmat++ # cheers 14:16
lizmat afk again& 14:18
RabidGravy I'll redo that PR after I've tested 14:21
but y'know MacGyver is on and all
done 14:25
14:28 eternaleye joined 14:33 espadrine left 14:35 caymanboy joined 14:41 espadrine joined, vendethiel left 14:45 vendethiel joined 14:48 Ven left 14:54 fhelmberger left, molaf_ joined 14:55 espadrine left 14:56 fhelmberger joined 14:57 molaf__ left
[Coke] wonders if any of the regulars have Diabetes.2, like Coke. 14:58
15:00 fhelmberger left
domidumont [ptc]: I've tried --with-moar and filled github.com/perl6/nqp/issues/231 15:01
15:02 nornagest joined
nornagest hi 15:03
tadzik hello nornagest 15:05
[ptc] domidumont: ah, that's good to know. I've managed to work out what's going wrong, but it'll be a while before I can make the relevant PR
domidumont: the issue is that the variable set in --with-moar isn't used to set any Makefile variables... Hence even though --with-moar sets a configuration variable (and correctly), it still has no effect 15:06
15:07 yvan1 left, grondilu joined
[ptc] domidumont: after having set the variable in the relevant Makefile.in file, NQP still can't compile since the Makefile.in assumes a path to an installed MoarVM and thus can't find files such as lib/MAST/Ops.nqp 15:08
domidumont: thus there's a bit of yak shaving to do before --with-moar will actually work
grondilu was looking at rosettacode.org/wiki/SHA-256#Perl_6 and tried to replace @Z = @Z Z[m+] @h by @Z [Z[m+]]= @h. Amazingly enough, it worked. 15:09
15:09 aborazmeh joined, aborazmeh left, aborazmeh joined
domidumont [ptc]: right... unfortunately, this feature is required to provide nqp with moar for Debian. So an update of nqp package on Debian will be delayed until this problem is fixed 15:09
15:09 vendethiel left
FROGGS [ptc] / domidumont: what do we want here? additional option like --moar-libs= or MOARVM_LIBS env vars? 15:11
options*
domidumont FROGGS: options are easier to handle in debian/rules
FROGGS because I guess /usr/lib/MAST/Ops.nqp is not what you want
[ptc] domidumont: hrm, that's strange as I've got nqp, moar, rakudo working for debian
domidumont: have a look in the os-build project for the (currently still very rough) control files 15:12
domidumont [ptc]: you have the old versions (~ 2014.07) based on parrot. I'm working on the next version based on moar and nqp 2015.03 (as [email@hidden.address]
[ptc] FROGGS: --moar-libs could help; I got things to build and test by hacking Makefile-Moar.in, editing the Makefile after it was built, and running Configure.pl as well as make with an updated LD_LIBRARY_PATH 15:13
15:13 Rounin left
[ptc] domidumont: no I don't have the old versions; I've updated them to use moar and nqp on 2015.03, just like you :-) 15:13
I've even got .debs floating around, however noone seems to want to test them for me
FROGGS domidumont: so we need to get the install locations straight first for moarvm, before we can tackle nqp...
domidumont ah ok. 15:14
[ptc] ... well other than the tests that I've done
domidumont FROGGS: so you mean that moar package sitting in debian new queue will need an update ?
[ptc] domidumont: do you want any help, or any information from what I've learned? It doesn't making sense with several people reinventing the wheel 15:15
FROGGS domidumont: depends... where does it install install lib/MAST/Ops.nqp to?
s/install//
15:15 Ven joined
domidumont FROGGS: /usr/share/nqp/lib/MAST/Ops.nqp 15:15
[ptc] domidumont: I managed to get everything to install under /usr in the debs that I built, however one big problem was a weird /usr/languages directory which gets installed. 15:16
domidumont: I'm pretty sure Debian isn't going to like that hanging around...
15:17 Ven left
domidumont [ptc]: indeed :-) 15:17
FROGGS [ptc]: that has changed recently due to moritz++ 15:18
15:18 cognominal joined
[ptc] domidumont: btw: the plan with the os-build repo (under the perl6/ project on github) was to collect all os-releated build scripts in one location 15:18
dalek kudo/nom: 0b1e4f1 | peschwa++ | t/02-rakudo/repl.t:
Add a few REPL tests.
psch hi #perl6 \o 15:19
[ptc] domidumont: we already have files to build arch linux stuff, and things are in place to get Fedora RPMs working as well
domidumont: I just haven't had time recently to focus on that
FROGGS hi psch
[ptc] FROGGS: ah, cool, that's good to know :-)
afk
15:20 vendethiel joined, aborazmeh left
domidumont [ptc]: well, having the same repo for upstream and Debian package file is a work in progress. Some debian tools still need some work for that. 15:22
[ptc] there's some tricky setup also: nqp master branch from your point of view must end up in upstream branch from my point of view. master is used for debian activities... 15:23
[ptc] I'll think about it. I must get up-to-speed with the current state of the art regarding sharing a repo between upstream and Debian 15:24
15:25 tinyblak left, chenryn joined 15:30 Ven joined
dalek p: 16df8ce | paultcochrane++ | t/nqp/ (2 files):
Unlink temporary file after having used it in tests

This prevents a dirty working directory after having run the test suite.
15:32
p: bbeb540 | paultcochrane++ | t/nqp/ (2 files):
Convert tmp_file variable to kebab-case

This is merely to be consistent with other variable names in the same files.
p: 8128fa0 | moritz++ | t/nqp/ (2 files):
Merge pull request #232 from paultcochrane/pr/unlink_tmp_file_after_tests

Unlink tmp file after tests
15:33 zakharyas left 15:38 tinyblak joined
hoelzro o/ #perl6 15:38
domidumont [ptc]: err, forget what I said about shared repo, os-build repo does not fit this kind of setup. 15:40
[ptc] domidumont: I'm also not sure about how to share things between upstream and Debian
domidumont: there was a discussion on irc a few weeks ago about where to put this kind of stuff and we came up with the os-build repo 15:41
TimToady for fixing ([] ... []) I found a workaround to the **@lol problem 15:42
m: sub foo (**@lol) { say nqp::iscont(@lol[0]) }; foo((1,2,3),(4,5,6))
camelia rakudo-moar e28b43: OUTPUT«1␤»
[ptc] domidumont: that might not be the best idea, however at least we were able to update the Debian control files ourselves and start to bring things back up to date with Rakudo, Moar etc
TimToady m: sub foo (|lol) { my @lol := lol.list; say nqp::iscont(@lol[0]) }; foo((1,2,3),(4,5,6))
camelia rakudo-moar e28b43: OUTPUT«0␤»
domidumont [ptc] it's a good idea, but I'm worried about the work required to keep everything up to date
[ptc] domidumont: definitely something one needs to think about carefully
[Coke] NYC, NY, US May 2nd perl hackathon; any sixers in the area, please sign up and come down!
TimToady but we'll need to figure out whether the **@lol notation should continue to itemize its sublists like that
15:42 vendethiel left
domidumont [ptc] Be sure that I will pay attention at your work for the next versions of nqp rakudo for Debian 15:43
TimToady I know how to fix that, but lots of other things break when we do, so probably needs to be thunk along with the GLR
domidumont [ptc] At least add a readme to link the packaging repo you're getting your info from
TimToady so for now, the |lol workaround... 15:44
domidumont [ptc] for instance git://anonscm.debian.org/pkg-rakudo/pkg-rakudo.git
[ptc] gtg
[ptc] domidumont: ok, thanks! 15:45
ugexe m: my IO::Path $path = "/home/user".IO; $path = $path.resolve; # method resolve(--> IO::Path)
camelia rakudo-moar e28b43: OUTPUT«Type check failed in assignment to '$path'; expected 'IO::Path' but got 'IO::Path'␤ in block <unit> at /tmp/cPpXnJtHii:1␤␤»
ugexe am i doing something wrong here? 15:46
psch m: my IO::Path $path = "/home/user".IO; 15:48
camelia rakudo-moar e28b43: OUTPUT«Type check failed in assignment to '$path'; expected 'IO::Path' but got 'IO::Path'␤ in block <unit> at /tmp/7_lBLhwynk:1␤␤»
15:48 domidumont left
ugexe if i do it via perl6 -e with a perl from yesterday it says 'expected IO::Path but got Str' 15:48
15:49 telex left
TimToady m: my IO::Path $path = "/home/user".IO; 15:50
camelia rakudo-moar 0b1e4f: OUTPUT«Type check failed in assignment to '$path'; expected 'IO::Path' but got 'IO::Path'␤ in block <unit> at /tmp/WryCe03411:1␤␤»
TimToady that's the part that's failing
15:50 telex joined
TimToady m: say "/home/user".IO.WHAT; 15:51
camelia rakudo-moar 0b1e4f: OUTPUT«(IO::Path)␤»
15:51 Perl6_newbee joined
TimToady m: my IO::Path() $path = "/home/user".IO; 15:51
camelia rakudo-moar 0b1e4f: OUTPUT«5===SORRY!5=== Error while compiling /tmp/KgxcLTzd66␤IO::Path(Any) cannot be used as a type on a variable␤at /tmp/KgxcLTzd66:1␤------> 3my IO::Path() $path7⏏5 = "/home/user".IO;␤ expecting any of:␤ constraint␤»
ugexe m: sub p(IO::Path $path) { say $path.WHAT; }; p("/home/user".IO);
camelia rakudo-moar 0b1e4f: OUTPUT«Type check failed in binding $path; expected 'IO::Path' but got 'IO::Path'␤ in sub p at /tmp/XYk3HA2sGK:1␤ in block <unit> at /tmp/XYk3HA2sGK:1␤␤»
ugexe ^ that works on my perl6 from yesterday
FROGGS star-m: sub p(IO::Path $path) { say $path.WHAT; }; p("/home/user".IO); 15:52
camelia star-m 2013.03: OUTPUT«Type check failed in binding $path; expected 'IO::Path' but got 'IO::Path'␤ in sub p at /tmp/mY019NWIw9:1␤ in block <unit> at /tmp/mY019NWIw9:1␤␤»
ugexe if i add the $path = $path.resolve inside the sub p though, i get the type error
moritz oh, I'm glad we're not the only ones that fail handling of recursive data structures 15:53
TimToady is not really awake/well enough yet to help much
moritz python's unittest.TestCase method assertEqual reaches max recursion depth quickly for cycle data structures 15:54
s/recursive/cyclic/
15:57 Ven left 15:58 gfldex joined, pecastro left
ugexe perl6 -e 'sub p(IO::Path $path) { say $path.WHAT; }; p("/home/user".IO);' (IO::Path) 15:59
nickl@localhost:~/.rakudobrew/moar-nom$ git show
commit 2cb72b2141f2e37c0df4fb04fc2f5b68e34cdf01
15:59 vendethiel joined 16:01 raiph left
ugexe there was a commit related to type errors by jnthn on april 12 16:01
still something funny going on before that though: 16:02
nickl@localhost:~/.rakudobrew/moar-nom$ perl6 -e 'sub p(IO::Path $path is copy) { say $path.WHAT; $path = $path.resolve }; p("/home/user".IO);'
(IO::Path) \n Type check failed in assignment to '$path'; expected 'IO::Path' but got 'Str'
16:05 lolisa left, spider-mario joined
raydiak m: '.'.IO.resolve.WHAT.say 16:07
camelia rakudo-moar 0b1e4f: OUTPUT«(Str)␤»
ugexe .resolve is supposed to return a IO::Path 16:09
raydiak yep 16:10
16:11 FROGGS left, chenryn left 16:18 eli-se joined 16:21 chenryn joined 16:25 tinyblak left 16:26 chenryn left 16:27 chenryn joined 16:28 aborazmeh joined, aborazmeh left, aborazmeh joined 16:34 cognominal left 16:36 abraxxa left 16:38 cognominal joined 16:41 aborazmeh left 16:44 mr-foobar left
dalek rl6-roast-data: 7d82b5c | coke++ | / (9 files):
today (automated commit)
16:51
[Coke] no change in nqp test or rakudo spectest 16:52
RabidGravy yep, the resolve method will return a String 16:53
16:54 dakkar left
ugexe ive regressed to march 30 and .resolve is still returning a string 16:56
anyone know if it ever returned an IO::Path?
[Coke] er, not true, some changes. S12-attributes/native.t stopped failing, added all the jnthn NF* tests. 16:58
16:59 chenryn left
PerlJam ugexe: looks like it was implemented at 61c59db4d5ac491d730311fbabb4ead71ec8798a and it returned a string then 16:59
ugexe heh i was looking at that
RabidGravy to be fair I can't even find the method documented 17:00
PerlJam RabidGravy: S16:399 17:02
synbot6 Link: design.perl6.org/S16.html#line_399
raydiak also design.perl6.org/S32/IO.html#.resolve 17:03
PerlJam yep
S32:IO/951 # test 17:04
synbot6 Link: design.perl6.org/S32.html#IO
PerlJam oops
S32/IO:951
synbot6 Link: design.perl6.org/S32/IO.html#line_951
PerlJam that's some dyslexia I have with symbols :) 17:05
raydiak S32/IO:.resolve ?
guess not :)
RabidGravy got it 17:06
17:07 synbot6 left, synbot6 joined
PerlJam S32/IO:.resolve 17:08
synbot6 Link: design.perl6.org/S32/IO.html#.resolve
TimToady
.oO(the 6th voyage of synbot)
timotimo ooooh a synbot <3
PerlJam S32/IO:move()
synbot6 Link: design.perl6.org/S32/IO.html#move()
timotimo meh, that doesn't turn into a single link in my terminal
only the ( is linkified, not the )
PerlJam timotimo: yeah, I just discovered that here to
er, too
but you can still copy and paste it as needed 17:09
17:10 risou is now known as risou_awy, beastd joined
timotimo sure 17:10
i just put the ) in the url manually
17:10 risou_awy is now known as risou, Perl6_newbee left 17:14 mohij joined 17:18 n0vacane joined, kinslayer left 17:19 n0vacane left
vendethiel m: List[::T]{}; role Functor[::T where ???] {}; # how do I assure that List is a higher-order type? can I do that? 17:22
camelia rakudo-moar 0b1e4f: OUTPUT«===SORRY!===␤Could not locate compile-time value for symbol T␤»
17:23 KCL joined
vendethiel m: List[::T]{submethod BUILD{say 'hi'~T.WHAT.perl;}}; role Invoke[::F, ::T] { method new { F[T].new; } }; Invoke[List, Int].new; 17:24
camelia rakudo-moar 0b1e4f: OUTPUT«===SORRY!===␤Could not locate compile-time value for symbol T␤»
vendethiel aw :[
moritz vendethiel: are you trying to declare role List?
vendethiel: or are you trying to use it?
17:24 mr-foobar joined
vendethiel m: role List[::T]{submethod BUILD{say 'hi'~T.WHAT.perl;}}; role Invoke[::F, ::T] { method new { F[T].new; } }; Invoke[List, Int].new; 17:25
camelia rakudo-moar 0b1e4f: OUTPUT«===SORRY!===␤Cannot find method 'parameterize'␤»
vendethiel moritz: thanks!
17:26 tinyblak joined, KCL_ left
moritz vendethiel: and, uhm, don't name a role List; that's a built-in type that the compiler references, and "funny" things are bound to happen when you override that without adhering to the core List API 17:27
vendethiel m: role C[::T]{submethod BUILD{say 'hi'~T.WHAT.perl;}}; role Invoke[::F, ::T] { method new { F[T].new; } }; Invoke[C, Int].new;
camelia rakudo-moar 0b1e4f: OUTPUT«===SORRY!===␤Cannot find method 'parameterize'␤»
17:31 tinyblak left
masak .oO( don't name it X, don't name it List... the compiler gets all the good names! ) :P 17:35
PerlJam looks into the future and see that as the subject of an anti-p6 rant 17:40
s/see/sees/
17:40 lucasb joined
masak .oO( oh yes, we luuurv lexical scoping. except for package-like things, which are global names ) 17:41
TimToady you can still declare it 'my' if you like
m: my role List[::T]{submethod BUILD{say 'hi'~T.WHAT.perl;}}; my role Invoke[::F, ::T] { method new { F[T].new; } }; Invoke[List, Int].new; 17:42
camelia rakudo-moar 0b1e4f: OUTPUT«===SORRY!===␤Cannot find method 'parameterize'␤»
TimToady though I guess it doesn't help much here
PerlJam All programming languages have a bias that they impose upon the programmer. In Perl, the bias is that the programmer must *think* about what they are doing. ;-) 17:43
itz_ jnthn: pl6anet.org is fixed (wordpress uses https now) .. sorry for delay I was behind corporate wall from hell 17:44
17:44 eli-se left
ugexe github.com/ugexe/rakudo/commit/433...c3ed0eebfc this seems like it fixes the .resolve stuff 17:52
probably overlooking something, but at least it looks easy enough to fix 17:54
raydiak ugexe++ 17:59
ugexe im mostly unsure if i should be using absolute or not 18:00
18:01 Ven joined
masak jnthn: on consideration, I suspect you're right about RT #123894 18:08
synbot6 Link: rt.perl.org/rt3//Public/Bug/Displa...?id=123894
masak synbot6! \o/
jnthn: S04 says "C<FIRST>, C<NEXT>, and C<LAST> are meaningful only within the lexical scope of a loop, and may occur only at the top level of such a loop block." 18:09
which could (easily) be taken to apply here, and actually make the ENTER { ...; NEXT { ... } } nesting illegal.
(which is too bad, 'cus it was cute. but at least it's spec.)
18:13 Foxcool_ joined 18:18 FROGGS joined
vendethiel ENTER { my Lock $lock .= new; NEXT { $lock.release } } #*g* 18:18
18:19 yqt joined
masak yeah, that's the essence of what I was doing. 18:19
18:25 yvan1 joined
ugexe m: my $io = "foo/./bar/..".IO.resolve; say $io; 18:26
camelia rakudo-moar 0b1e4f: OUTPUT«/home/camelia/foo/bar/..␤»
18:27 Ven left
ugexe is that correct? 18:27
lucasb Does resolve makes absolute? If not, then I would expect just "foo", right? 18:29
masak "foo/"
lucasb foo o/
:)
ugexe # bar is a symlink pointing to "/baz" my $io = "foo/./bar/..".IO.resolve; # now "/" (the parent of "/baz")
actually creating the symlinks doesn't change anything from camelias output 18:30
masak m: say "f{"o" x $_} o/" for 0..*
FROGGS masak: $_ in there is buggy
camelia rakudo-moar 0b1e4f: OUTPUT«(timeout)f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f o/␤f …»
masak so it is.
hm.
m: say "f$("o" x $_) o/" for 0..* 18:31
camelia rakudo-moar 0b1e4f: OUTPUT«(signal XFSZ)f o/␤fo o/␤foo o/␤fooo o/␤foooo o/␤fooooo o/␤foooooo o/␤fooooooo o/␤foooooooo o/␤fooooooooo o/␤foooooooooo o/␤fooooooooooo o/␤foooooooooooo o/␤fooooooooooooo o/␤foooooooooooooo o/␤fooooooooooooooo o/␤foooooooooo…»
18:31 domidumont joined
masak \o/ 18:31
only known good use of $() :)
FROGGS $(:-) 18:32
masak that dollar hat suits you 18:33
cognominal perljam: in most languages, there is a good way to do things that may be excellent but get in the way if you are not proficient enough. Very often, in Perl, my first idea is good enough meaning perfect for a kleenex script.
bobkare I've been playing around with some parsing, but I keep stumbling on something I assume is pretty basic and simple. I can't seem to get an array to flatten out so I can pass it to a constructor, as seen in method TOP here: pastebin.com/KtbXKj2M 18:35
18:38 rurban_ left 18:41 lichtkind joined
PerlJam bobkare: looks like you're making an array of strings rather than an array of Test::Foo (as you've declared @!foos to be) 18:42
18:42 domidumont left
bobkare PerlJam: Huh? the debug print output of Foo AST: [[Test::Foo.new(foo => "bar "), Test::Foo.new(foo => "baz")]]<> makes me think it isn't strings 18:44
TimToady does it work any better with .list.flat instead of just .flat?
PerlJam yeah, I'm apparently not fully awake right now, sorry
bobkare TimToady: nope, exactly same results 18:45
TimToady well, seems like that constructor can't take a list because it's itemizing the array or so then 18:46
either that or it's passing in an AoA somehow, but I don't see how 18:47
bobkare It looks like it's becoming an AoA, if I replace the assignment to @a with this: my @a = [Test::Foo.new(foo => "bar "), Test::Foo.new(foo => "baz")].flat; it works. Add the extra set of brackets from the debug output and it fails. 18:49
TimToady otoh, maybe it's just our typing of arrays difficulty
and it wants Array[Test::Foo], not Array 18:50
if you have access to the class code, take off the array type and see if it works
oh, there it is, right there 18:51
so change it to has Test::Foo @.foos;
er
has @.foos;
or hash @.foos where all(Test::Foo) or some such
since jnthn++ just fixed that (or was that in a branch?) 18:52
bobkare That kinda works, but leaves foos as AoA which isn't what I want
ugexe my @a = $<foo>».made>>.flat; ? 18:54
Test::Result.new(foos => Array[Test::Foo].new(Test::Foo.new(foo => "bar "), Test::Foo.new(foo => "baz")))
s/>>// 18:56
bobkare Yes, finally something that works! ugexe++
not without the extra » though, then it continues to throw the type check failure at me 18:57
vendethiel m: $(4) ==> my $a; say $a # masak <- another *great* use of $(). 18:58
camelia rakudo-moar 0b1e4f: OUTPUT«4␤»
PerlJam I guess that makes sense. foo is plural in the regex, so you get an array of whatever each .foo creates, which is an Array of Test::Foo; 18:59
18:59 eli-se joined 19:02 perl666 joined, perl666 left
bobkare Oh, right, so I had » making a list of arrays and .flat needed to be applied to all the inner arrays of Test::Foo. I get it now. 19:03
eli-se hi!!! 19:04
bobkare goes back to fix that in his real test script, which at this point is a rats mess with debug statements and extra .flat and .list calls added at random all over the place
PerlJam bobkare: maybe printing $<foo>.perl and $<foo>».made.perl (before the assignment to @a) would have helped? 19:05
FROGGS hi eli-se
PerlJam bobkare: and/or put more than one foo-thing in your string to parse. :) 19:07
vendethiel o/ eli-se 19:08
timotimo TimToady: do you know how big the performance improvement from $sawcaps was?
19:09 virtualsue joined
FROGGS ohh, it's Monday again :o) 19:09
moritz guesses timotimo++ will want to write about examples.perl6.org/
timotimo oh, cool! 19:11
huh, yahtzee.p6 seems to have the source code twice
same thing for wizard.pl 19:12
19:13 skids joined
timotimo TimToady: is it just "a few %s" as stated in the very first commit regarding it? 19:15
19:16 lucasb left
TimToady I was picking up about 5% +/- 2% on a somewhat noisy system 19:17
that's on stage parse, but that's been a rather noisy number lately for some reason
TimToady didn't bother turning off temp throttling, for instance 19:18
but I ran it several times
timotimo OK 19:21
my desktop computer is not assembled/set up at the moment, so i'll have to wait a bit until i can run proper benchmarks again 19:23
especially since the spec tests are a very bad place to test my recent reprop devirtualization work with 19:24
19:27 Possum left 19:28 Possum joined 19:32 cschwenz left 19:36 kaare_ left 19:45 Sqirrel joined
timotimo m: say <4+3i>.WHAT 19:46
camelia rakudo-moar 0b1e4f: OUTPUT«(Complex)␤»
19:49 rurban_ joined
masak m: say <+4+3i>.WHAT 19:51
camelia rakudo-moar 0b1e4f: OUTPUT«(Complex)␤»
dalek kudo/nom: 872d74c | TimToady++ | src/Perl6/Actions.nqp:
don't cache Rat literals
19:56
kudo/nom: af9a7ca | TimToady++ | src/core/operators.pm:
regularize list of list semantics of infix:<...>

All confusion between iscont and decont values is fixed, I hope.
  []...[] now works and produces a list containing a single [].
  () is now disallowed as either a start value or an endpoint.
kudo/nom: 49f168e | TimToady++ | src/core/operators.pm:
oops, don't use .elems to test for non-empty

  (especially on lists that might not know their infinite)
vendethiel (s/their/they're/ :P)
19:57 DrForr joined
TimToady s/infinite/infinitenesslessness/ 19:57
vendethiel fun word! 19:58
DrForr eval: "foo" ~~ /<[\x{0041}..\x{007f}]>/ 20:00
Or is it 'm:' to invoke the bot, I've lost backlog here. 20:01
vendethiel it's m for rakudo-moar :)
DrForr m: "foo" ~~ /<[\x{0041}..\x{007f}]>/
camelia rakudo-moar 0b1e4f: OUTPUT«5===SORRY!5===␤Illegal reversed character range in regex: }..\x␤at /tmp/13KfIro5ta:1␤------> 3"foo" ~~ /<[\x{0041}..\x{007f}]7⏏5>/␤Other potential difficulties:␤ Repeated character ({) unexpectedly found in character class␤ at /…»
vendethiel so you should go for that, unless you want to try other backends (which probably don't work nowadays anyway)
DrForr Nod. Do I need to do something special to match ranges of Unicode characters? I'll dig in the synopses anyway. 20:02
TimToady m: "foo" ~~ /<[\x[0041]..\x[007f]]>/
camelia ( no output )
TimToady m: say "foo" ~~ /<[\x[0041]..\x[007f]]>/ 20:03
camelia rakudo-moar 0b1e4f: OUTPUT«「f」␤»
FROGGS "Repeated character ({)" is a good hint
timotimo can you use this link for previewing my weekly post? p6weekly.wordpress.com/?p=480&...5023d4a89f
FROGGS timotimo: " 20:04
Oops! That page can’t be found.
"
timotimo god fucking damnit wordpress
TimToady DrForr: in P6 we try to avoid use of {} in spots where it doesn't mean a closure, and [] is the New Grouper in P6 regexen anyway
DrForr Thanks. I'm back to delving in grammars again. 20:05
FROGGS tadzik: "==> Successfully installed OpenSSL"... how do I reproduce this? gist.github.com/tadzik/22999b3fbb06069ab994
timotimo it seems like they threw out the classic editor
and there's no functionality any more to give out a link that lets people provide feedback on a draft post
20:05 darutoko left
ugexe FROGGS: that looks like its from an old rakudo 20:07
i had that problem last week? and you fixed it
FROGGS ugexe: well, I'd guessed that tadzik would upgrade before posting it... 20:08
timotimo gist.githubusercontent.com/timo/f4...tfile1.txt - feedback on my weekly post pls
timotimo will be AFK for a bit 20:09
dalek ast: d962576 | TimToady++ | S03-sequence/ (2 files):
tweaks for recent sequence changes
ugexe well, ive had situations where rakudobrew messed up updating silently. so at least there is an excuse 20:10
DrForr m: say "\x[236a]" 20:11
camelia rakudo-moar 0b1e4f: OUTPUT«⍪␤»
ugexe i wonder if it would be useful to put the perl -v in the Failure Summary 20:12
DrForr m: say "\x{236a}"
camelia rakudo-moar 0b1e4f: OUTPUT«5===SORRY!5===␤Unrecognized backslash sequence: '\x'␤at /tmp/UVzqPRUPEu:1␤------> 3say "\7⏏5x{236a}"␤Missing block␤at /tmp/UVzqPRUPEu:1␤------> 3say "\x{2367⏏5a}"␤ expecting any of:␤ whitespace␤␤»
TimToady "Missing block" is rather wrong 20:14
psch could be an artifact of my bad cheat for moreinput i think
TimToady it's probably worth a .obs to catch this particular p5 carryover 20:15
DrForr Also in passing, 'repeated character', while correct, isn't terribly edifying, though at this late hour I can't come up with a good wording. 20:16
FROGGS timotimo: you could perhaps mention the perl6-gdb-m and perl6-valgrind-m runners... 20:17
nwc10 about 16 minutes, I think, www.spacex.com/webcast/
masak nwc10++
FROGGS but timotimo++ besides that :oO) 20:18
err, -O
TimToady DrForr: the message usually shows up when someone says <[ "foo" | "bar" ]> or so
RabidGravy nwc10++ # had forgotten
20:18 rindolf left
DrForr Aha. 20:19
TimToady m: /<["foo"]>/
camelia rakudo-moar 0b1e4f: OUTPUT«Potential difficulties:␤ Repeated character (") unexpectedly found in character class␤ at /tmp/IIOoj23v9M:1␤ ------> 3/<7⏏5["foo"]>/␤ Repeated character (o) unexpectedly found in character class␤ at /tmp/IIOoj23v9M:1␤ --…»
DrForr Incidentally I'll be damned, the ECMAscript parser actually compiles now.
TimToady well, you're in transylvania, what did you expect? 20:20
DrForr More transvestites.
(/Rocky Horror Picture Show/ reference, if that wasn't clear :) ) 20:21
20:23 Ven joined
masak I don't think I'll ever tire of launches. 20:23
dalek kudo/nom: cc3e654 | peschwa++ | src/Perl6/Grammar.nqp:
Remove a few moreinput related bits.

It's not working well enough to be worth the troubles it shows. Add to that the fact that there shouldn't be any troubles and it should go back to something that at least works for all other use-cases, if only limited for multiline REPL input.
psch eh 20:24
i wanted to spectest first but got distracted :/
i'll do that now
masak aww 20:34
RabidGravy nwc10: scrubbed due to weather :-(
masak you will not go to space today
nwc10 try again tomorrow
masak yeah
ok, let me cheer you up with
RabidGravy wanted to see the landing attempt
masak today's mini-challenge :)
nwc10 me too
masak solve www.theguardian.com/science/alexs-a...went-viral using Perl 6 ;)
ugexe hmmm Digest is failing tests on JVM today 20:35
sub infix:<⊞>(\x, \y) { (x + y) % 2**32 } seems like unicode infix stuff
or Nil related 20:37
FROGGS ugexe: Digest always failed on JVM: testers.perl6.org/dist/D/Digest/Luc...ondin.html 20:39
ugexe ah. i could have swore i had openssl build on jvm sometime recently. too much caffeine this month apparently 20:41
FROGGS m: my @a = <foo bar baz>; map( { s/a/A/ }, @a ); say @a; 20:42
camelia rakudo-moar 49f168: OUTPUT«foo bar baz␤»
FROGGS is that still supposed to change the content of the array? RT #116731
synbot6 Link: rt.perl.org/rt3//Public/Bug/Displa...?id=116731
[Coke] ugexe: you take that back.
timotimo FROGGS: nothing like "VALGRINDARGS" or so for the launchers?
[Coke] . o O (too much caffeine? heresy!)
ugexe [Coke]: not till tomorrow morning 20:43
FROGGS timotimo: I don't know... did you add it?
timotimo no
FROGGS s/did/didn't/
me neither...
timotimo OK
may be a thing to add later on 20:44
FROGGS also the --cleanup-on-exit option or what it is called
I really thought you wanted to do it
timotimo oh
moi? :) 20:45
FROGGS like with my wife... where "We should do X." means "DO X NAO!"
tadzik FROGGS: huh, let me see. I thought I have it all up-to-date... 20:46
timotimo well, at least the post is published now 20:58
psch timotimo++ # great title 21:00
FROGGS timotimo++ 21:01
dalek kudo/nom: 8b639ba | TimToady++ | src/Perl6/Grammar.nqp:
catch use of braces on escapes
TimToady timotimo: there's no h in jnthn's name, except for the second one 21:04
also, nothing gets flipped when the length is known 21:05
tadzik FROGGS: ...ok, it actually works 21:06
must be me being stupid
21:08 skids left 21:09 rurban_ left
FROGGS tadzik: that's actually the better option :o) 21:10
masak 'night, #perl6 21:13
21:14 risou is now known as risou_awy
tadzik :) 21:14
gnight masak
21:14 risou_awy is now known as risou 21:16 cognominal left 21:18 cognominal joined
flussence grumbles at browsers defaulting to latin-1 when so many .txt files I see these days are utf-8... 21:20
gfldex timotimo++ for telling the truth
cognominal r: < a b >.map: { return } # this is probably stupid, but the error msg does not help 21:21
camelia rakudo-jvm 8b639b: OUTPUT«cannot connect to eval server: Connection refused␤»
..rakudo-moar 8b639b: OUTPUT«Unhandled exception: Cannot look up attributes in a type object␤ at src/gen/m-CORE.setting:9642 (/home/camelia/rakudo-inst-1/share/perl6/runtime/CORE.setting.moarvm::116)␤ from src/gen/m-CORE.setting:9632 (/home/camelia/rakudo-inst-1/share/perl6/ru…»
21:26 FROGGS left, Ven left 21:27 pecastro joined 21:28 nbdsp left, telex left 21:29 tinyblak joined 21:30 telex joined
timotimo TimToady: oh? so flipping already didn't happen when length was known before you wrote that patch? 21:32
21:34 tinyblak left 21:35 torbjorn_ joined 21:36 jdv79_ joined, orevdiabl joined 21:38 agentzh joined, agentzh left, agentzh joined 21:49 orafu joined
RabidGravy cognominal, actually I think there is some underlying weirdness around that: 21:55
m: < a b >.map: { return $_ }
camelia rakudo-moar 8b639b: OUTPUT«Unhandled exception: P6opaque: no such attribute '$!storage'␤ at src/gen/m-CORE.setting:9642 (/home/camelia/rakudo-inst-2/share/perl6/runtime/CORE.setting.moarvm::116)␤ from src/gen/m-CORE.setting:9632 (/home/camelia/rakudo-inst-2/share/perl6/runti…»
RabidGravy m: < a b >.map: { say $_.WHAT } 22:00
camelia rakudo-moar 8b639b: OUTPUT«(Str)␤(Str)␤»
RabidGravy not sure what it is though
cognominal me neither 22:06
ugexe it should just say cannot return outside of a routine 22:07
22:09 rhr left, RabidGravy left, rhr joined 22:21 virtualsue left
TimToady timotimo: no, the part where you said "only part gets flipped now"; if the length is known, nothing gets flipped, it just turns it into a <?before> with an offset 22:29
22:32 nbdsp joined 22:34 yqt left 22:35 orafu left 22:37 work_op left
nbdsp Greetings! Could someone advise please how to use nested enumerations? If I have: class EnClass { my enum En <Sun Mon Tue>; } - how to refer to En members? 22:39
22:39 eli-se left, cognominal left
nbdsp m: class EnClass { my enum En <Sun Mon Tue>; }; say EnClass::En::Sun; 22:40
camelia rakudo-moar 8b639b: OUTPUT«Could not find symbol '&Sun'␤ in method <anon> at src/gen/m-CORE.setting:16099␤ in any find_method_fallback at src/gen/m-Metamodel.nqp:2908␤ in any find_method at src/gen/m-Metamodel.nqp:1052␤ in block <unit> at /tmp/KrBxEESH0H:1␤␤»
22:40 skids joined
TimToady m: class EnClass { enum En <Sun Mon Tue>; }; say EnClass::En::Sun; 22:40
camelia rakudo-moar 8b639b: OUTPUT«Sun␤»
TimToady m: class EnClass { my enum En is export <Sun Mon Tue>; }; import EnClass; say En::Sun; 22:41
camelia rakudo-moar 8b639b: OUTPUT«Sun␤»
TimToady m: class EnClass { my enum En is export <Sun Mon Tue>; }; import EnClass; say Sun;
camelia rakudo-moar 8b639b: OUTPUT«Sun␤»
nbdsp oh, without 'my' or with 'export'. thanks!
22:44 lichtkind left 22:48 bjz left 22:52 BenGoldberg joined 22:54 nornagest left 22:55 vendethiel left
grondilu sub f(uint32 $n) { $n + 2**32 }; say f 7; 23:26
m: sub f(uint32 $n) { $n + 2**32 }; say f 7;
camelia rakudo-moar 8b639b: OUTPUT«4294967303␤»
grondilu ^not sure if that's ok
m: say 4294967303.base(2) 23:27
camelia rakudo-moar 8b639b: OUTPUT«100000000000000000000000000000111␤»
gfldex m: sub f(uint32 $n) { $n + 2**32 }; say (f 7).WHAT; 23:28
camelia rakudo-moar 8b639b: OUTPUT«(Int)␤»
gfldex magic o.0
grondilu m: sub f(uint32 $n --> uint32) { my uint32 $ = $n + 2**32 }; say f 7
camelia rakudo-moar 8b639b: OUTPUT«4294967303␤»
grondilu m: say my uint32 $ = 2**32 23:29
camelia rakudo-moar 8b639b: OUTPUT«4294967296␤»
grondilu ^well that can't be right.
TimToady m: say (my uint32 $ = 2**32).WHAT
camelia rakudo-moar 8b639b: OUTPUT«(Int)␤»
grondilu m: say my uint32 $ = 2**100 23:30
camelia rakudo-moar 8b639b: OUTPUT«0␤»
grondilu m: say my uint32 $ = 2**60
camelia rakudo-moar 8b639b: OUTPUT«1152921504606846976␤»
TimToady it would appear to be returning the RHS, not the LHS
grondilu m: say my uint32 $ = 2**64
camelia rakudo-moar 8b639b: OUTPUT«0␤»
grondilu m: say my uint32 $ = 2**63
camelia rakudo-moar 8b639b: OUTPUT«-9223372036854775808␤»
gfldex it 23:31
grondilu has no idea what's going on there
gfldex it's confusing in a odd way
grondilu the number of bits that seems critical is 64, when it should be 32.
so it behaves like int64 instead of uint32? 23:32
gfldex looks like it. Please rakudobug it.
grondilu sure? 23:33
also, in the REPL if I enter 'my uint32 $ = 1;' twice, I get: 23:37
Unhandled lexical type in lexprimspec for '$ANON_VAR__1'
but not with 'my uint $ = 1;', weirdly enough.
23:40 aborazmeh joined, aborazmeh left, aborazmeh joined, gfldex left
grondilu submitted the bug 23:42
FYI, I found this while considering using native types for rosettacode.org/wiki/SHA-256#Perl_6
23:49 aborazmeh left 23:50 tinyblak joined