»ö« 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.
00:02 oetiker joined 00:09 BenGoldberg joined
ugexe jeez, it was because support.source is being preferred over source-url :/ 00:12
00:13 vendethiel left 00:18 BenGoldberg left, jdv79_ is now known as jdv79 00:20 vendethiel joined 00:23 BenGoldberg joined 00:24 labster joined 00:32 oetiker left 00:35 espadrine left 00:40 vendethiel left 00:47 gcole joined 00:51 vendethiel joined, gcole left 00:59 lolisa joined 01:01 skids joined 01:08 raiph joined 01:12 ShimmerFairy left
labster m: dir("/nope") 01:13
camelia rakudo-moar d0a84b: OUTPUT«Unhandled exception: Failed to get the directory contents of '/nope': chdir failed: Unknown system error␤ at src/gen/m-CORE.setting:14561 (/home/camelia/rakudo-inst-2/share/perl6/runtime/CORE.setting.moarvm:throw:121)␤ from src/gen/m-CORE.setting:16…»
grondilu m: say dir('/') 01:17
camelia rakudo-moar d0a84b: OUTPUT«"/run".IO "/home".IO "/lib64".IO "/usr".IO "/root".IO "/dev".IO "/selinux".IO "/sbin".IO "/backup".IO "/success".IO "/opt".IO "/sys".IO "/proc".IO "/lib".IO "/var".IO "/etc".IO "/mnt".IO "/lost+found".IO "/boot".IO "/srv".IO "/.readahead".IO "/tmp".IO "/bi…»
01:17 vendethiel left 01:24 colomon left 01:25 ShimmerFairy joined, colomon joined 01:31 vendethiel joined 01:49 colomon left 01:52 tinyblak left 01:53 tinyblak joined 01:54 kst` joined 01:55 raiph left, perlpilot joined 01:56 pierrot_ joined 01:57 tinyblak left 01:58 nwc10_ joined, baest_ joined 01:59 kst left, DarthGandalf left, nwc10 left, pierrot left, Patterner left, Patterner joined 02:00 ab5tract joined 02:01 DarthGandalf joined 02:05 tinyblak joined, tinyblak_ joined 02:07 egrep joined 02:09 mr-foobar left, tinyblak left 02:16 mr-foobar joined 02:22 grondilu left 02:25 egrep left 02:26 vendethiel left 02:29 egrep joined 02:30 vendethiel joined 02:36 gcole joined 02:40 gcole left 02:43 colomon joined 02:52 mr-foobar left 02:54 vendethiel left 02:55 mr-foobar joined 02:57 noganex_ joined 03:03 perlpilot is now known as PerlJam 03:10 lolisa left 03:11 vendethiel joined 03:17 mr-foobar left 03:18 mr-foobar joined 03:23 lolisa joined 03:24 kst` is now known as kst 03:31 colomon left 03:36 vendethiel left 03:39 mr-foobar left 03:40 mr-foobar joined
b2gills m: say (({ $++ * ++$ } ... *)[2..6,9] :p).perl ; # cheezburger.com/8481296128/funny-fa...ath-school 03:42
camelia rakudo-moar d0a84b: OUTPUT«(2 => 6, 3 => 12, 4 => 20, 5 => 30, 6 => 42, 9 => 90)␤»
03:44 FROGGS_ joined, colomon joined 03:47 FROGGS left 03:49 atweiden joined
atweiden in a grammar, i have a list of reserve words 03:51
is it possible to write <[<target>] - [<reserved>]> ?
03:51 vendethiel joined
atweiden current workaround ix.io/i7b 03:52
03:53 colomon left
skids <!before> maybe? 03:53
03:54 bjz left 03:56 bjz joined 04:01 dnmfarrell joined 04:03 lolisa left, lolisa joined
dnmfarrell hey all, good evening :) My Perl 5 pod grammar (github.com/dnmfarrell/Pod-Perl5/bl...rammar.pm) is taking shape, it can parse 100% of pod directives now. One thing I'm stuck on though - how to parse lists within lists? Anyone got any ideas? Thanks! 04:06
04:10 telex left 04:12 telex joined 04:13 vendethiel left 04:25 gcole joined 04:29 gcole left
skids dnmfarrell: just putting an <over_back> in <over_back>'s alternatives does not work? 04:33
dnmfarrell skids: I could be wrong, but wouldn't that make an infinite loop? 04:35
(as in a reference to the definition is in the definition)
skids Only if it encounters one, or if it can match ''. 04:36
dnmfarrell well, only one way to find out! Let me give it a shot
04:37 quester joined
dnmfarrell skids: damn! looks like it works :D 04:42
skids Yeah recursive grammar rules are fairly common actually. 04:43
04:46 cbk1090 joined, lolisa left
dnmfarrell skids: that's awesome! 04:46
04:46 lolisa joined
dnmfarrell ok now I'll try the same trick for formatting directives 04:47
05:21 atweiden left
moritz dnmfarrell: fwiw recursion only leads to infinite loop if a level of recursion doesn't use up any characters 05:27
quester m: $x=((10..19).item, (30..39).item).any; say 15 ~~ $x; say 35 ~~$x; say (<15 35>.all ~~ $x).perl 05:30
camelia rakudo-moar d0a84b: OUTPUT«5===SORRY!5=== Error while compiling /tmp/xEX8gZLy8q␤Variable '$x' is not declared␤at /tmp/xEX8gZLy8q:1␤------> 3$x7⏏5=((10..19).item, (30..39).item).any; say␤ expecting any of:␤ postfix␤»
quester m: my $x=((10..19).item, (30..39).item).any; say $; say 15 ~~ $x; say 35 ~~$x; say (<15 35>.all ~~ $x).perl 05:31
camelia rakudo-moar d0a84b: OUTPUT«(Any)␤True␤True␤Bool::False␤»
quester m: my $x=((10..19).item, (30..39).item).any; say $x; say 15 ~~ $x; say 35 ~~$x; say (<15 35>.all ~~ $x).perl
camelia rakudo-moar d0a84b: OUTPUT«any(10..19, 30..39)␤True␤True␤Bool::False␤»
quester ... does anyone know smartmatch is supposed to handle List.all ~~ List-of-Range.any? It seems to me that the last result would have been True fairly recently... in the March Rakudo* IIRC. 05:34
... the use case is checking that all of a list of IP addresses, converted into Int, are in a specific network... for example, all of them are private addresses per RFC 1918. 05:36
skids m: say <15 35>.all == <15 35>.any 05:38
camelia rakudo-moar d0a84b: OUTPUT«all(any(True, False), any(False, True))␤»
skids m: say <15 35>.all ~~ <15 35>.any
camelia rakudo-moar d0a84b: OUTPUT«False␤»
skids star: my $x=((10..19).item, (30..39).item).any; say $x; say 15 ~~ $x; say 35 ~~$x; say (<15 35>.all ~~ $x).perl 05:39
camelia star-m 2015.03: OUTPUT«any(10..19, 30..39)␤True␤True␤Bool::False␤»
quester Oh. Oops... maybe that code wasn't really working! Thank you, skids. 05:40
skids m: say <15 35> X== <15 35>.any 05:41
camelia rakudo-moar d0a84b: OUTPUT«any(True, False) any(False, True)␤»
skids m: say so any(<15 35> X== <15 35>.any)
camelia rakudo-moar d0a84b: OUTPUT«True␤»
quester m: $x=((10..19).item, (30..39).item).any; say $x; say so all <15 35>.map( * ~~ $x ) 05:44
camelia rakudo-moar d0a84b: OUTPUT«5===SORRY!5=== Error while compiling /tmp/dd3SxO9vaF␤Variable '$x' is not declared␤at /tmp/dd3SxO9vaF:1␤------> 3$x7⏏5=((10..19).item, (30..39).item).any; say␤ expecting any of:␤ postfix␤»
quester m: my $x=((10..19).item, (30..39).item).any; say $x; say so all <15 35>.map( * ~~ $x ) 05:45
camelia rakudo-moar d0a84b: OUTPUT«any(10..19, 30..39)␤True␤»
quester m: my $x=((10..19).item, (30..39).item).any; say $x; say so all <15 35> X~~ $x ) 05:49
camelia rakudo-moar d0a84b: OUTPUT«5===SORRY!5=== Error while compiling /tmp/NQIMxiy2uL␤Unexpected closing bracket␤at /tmp/NQIMxiy2uL:1␤------> 3.any; say $x; say so all <15 35> X~~ $x 7⏏5)␤»
quester m: my $x=((10..19).item, (30..39).item).any; say $x; say so all <15 35> X~~ $x;
camelia rakudo-moar d0a84b: OUTPUT«any(10..19, 30..39)␤True␤»
05:52 mr-foobar left
quester afk 05:56
05:56 kaare_ joined 05:59 skids left 06:13 gcole joined 06:19 gcole left 06:23 hobbs left 06:24 hobbs joined 06:35 vendethiel joined 06:37 xfix joined 06:48 bjz left, bjz_ joined 06:50 pierrot_ left 06:51 rindolf joined 06:57 pierrot joined 07:08 lolisa left 07:11 BenGoldberg left 07:21 rindolf left 07:41 vendethiel left 07:51 mr-foobar joined 07:58 renormalist joined 07:59 vendethiel joined 08:00 Rounin joined 08:01 Ven joined 08:02 gcole joined 08:07 gcole left 08:11 laouji joined 08:12 darutoko joined 08:22 vendethiel left 08:24 vendethiel joined
lizmat good *, #perl6! 08:25
b2gills: re irclog.perlgeek.de/perl6/2015-04-25#i_10501228 , that's because of TimToady's change to List.rotor's API 08:26
jnthn o/ 08:30
lizmat jnthn o/
is there an easy way to ask for the repr of a class ?
Ven \o, #perl6 08:31
lizmat jnthn: well, class, something :-)
my native int is repr('P6int') is Int { }
jnthn .REPR 08:34
lizmat aha!
lizmat is putting a NYI in the "my int %h" codepath
jnthn Oh 08:35
There's a better way for that
lizmat bad idea ?
jnthn I'ts a good idea, just that .REPR ain't the way :)
In Perl6::World there is a method called somethin glike container_info
And it has a codepath that decides whether to use Array or array
You can re-use that one.
uh, re-use it's approach, I meant. 08:36
lizmat if %cont_info<container_type>.REPR eq 'P6opaque' { ?
container_type_info 08:37
fwiw, I was going to put the check in Array.^parameterize, is that the wrong place as well then ? 08:38
I guess :-) 08:39
nine No more coffee in the channel :/ 08:40
FROGGS_ :~(
08:41 coffee` joined
moritz nine: ☕ 08:43
m: say 42.REPR.^name
camelia rakudo-moar d0a84b: OUTPUT«BOOTStr␤»
08:43 laouji left, RabidGravy joined, laouji joined
moritz does anybody else find it weird that REPRs are just strings? 08:43
like, "everything is an object, except REPRs"? :-) 08:44
lizmat the turtles stop somewhere ?
08:46 laouji left, laouji joined
dalek kudo/nom: 2da5bb2 | lizmat++ | src/Perl6/World.nqp:
Mark "my int %h" as NYI, jnthn++ for pointers
08:47
08:48 EnergyCoffee left 08:49 laouji left, laouji joined 08:53 FROGGS_ is now known as FROGGS
jnthn Pretty much. 08:53
FROGGS I love these NYI markers
jnthn Also only a handful of the REPRs you see are part of the Perl 6 design, and the rest are (for now) implementation defined. 08:54
FROGGS well, you cannot draw a clear line as long as there is only one implementation
jnthn But yeah, sometimes a string identifier is the right level of coupling. :)
moritz and I guess user-defined REPRs exist just in my dream? 08:55
08:55 mr-foobar left
jnthn moritz: Pretty much 08:55
I always had REPR in my mind as being about memory management and binding to the underlying VM
And the MOP stuff as being where all the flexibility is.
FROGGS there might be the need to have certain memory layout though 08:56
jnthn FROGGS: How you achieve that is still going to vary by VM.
FROGGS troo
m: my $foo = "alpha"; say "bar" ~~ / <::($foo)>+ / 08:58
camelia rakudo-moar d0a84b: OUTPUT«「bar」␤»
FROGGS I'm kinda proud to have done something S05ish :o)
jnthn oh, neat :)
FROGGS++
FROGGS I'm also tempted to implement this: m: say '¼' ~~ / <:NumericValue(0..1)> 08:59
errr
m: say '¼' ~~ / <:NumericValue(0..1)>
camelia rakudo-moar d0a84b: OUTPUT«5===SORRY!5=== Error while compiling /tmp/rnDq6NAmzy␤Unable to parse expression in metachar:sym<assert>; couldn't find final '>' ␤at /tmp/rnDq6NAmzy:1␤------> 3say '¼' ~~ / <:NumericValue7⏏5(0..1)>␤ expecting any of:␤ term␤»
FROGGS ohh 09:00
m: my $foo = "alpha"; say "bar" ~~ / <::Flubber::($foo)>+ /
camelia rakudo-moar d0a84b: OUTPUT«Method 'Flubber::alpha' not found for invocant of class 'Cursor'␤ in method INDMETHOD at src/gen/m-CORE.setting:16811␤ in method ACCEPTS at src/gen/m-CORE.setting:16874␤ in block <unit> at /tmp/X3pzpuGjlq:1␤␤»
FROGGS is that supposed to work too?
lizmat FROGGS: could you give me a commit bit on Slang::Tuxic ? 09:01
.oO( it needs a "use nqp" )
nine Can I export CHECK and INIT blocks?
FROGGS lizmat: done
lizmat FROGGS: use nqp added :-) 09:02
labster m: say ("-AAAA-").map( { .subst(/(A+)/, { $0.chars } ) }); say "-AAAA-".subst(/(A+)/, { $0.chars }); #Why are these different?
FROGGS nine: I bet the answer is 'no'
camelia rakudo-moar d0a84b: OUTPUT«-0-␤-4-␤»
FROGGS lizmat++
09:02 eli-se joined
nine FROGGS: that's...unfortunate 09:02
lizmat nine: why would you need to export them?
FROGGS labster: I think we have an open issue about $/ in for loops and map 09:03
lizmat they'll run anywhere they exist?
nine FROGGS: modules that use Inline::Perl5 during BEGIN have to do some cleanup before precomp and initialization on load. jnthn++ told me CHECK and INIT would be closest to that. But we're talking about CHECK and INIT of the module using Inline::Perl5 09:04
Would be sucky to have use DBI:from<Perl5>; be so minimal, just to have the user add strange CHECK and INIT blocks, too. 09:05
moritz fwiw I'm all in favor of being able to export phasers 09:06
09:06 lolisa joined
lizmat moritz: problem is that phasers don't exist in any namespace 09:06
labster thanks FROGGS (looks like it is RT #123005) 09:07
synbot6 Link: rt.perl.org/rt3//Public/Bug/Displa...?id=123005
lizmat they're attributes of the block they exist for
moritz being able to export CATCH blocks would allow us to export custom backtrace printers, for example
lizmat fwiw, I would be in favour of setting phasers in an outer scope
moritz lizmat: then maybe we need some kind of proxy object
lizmat at compule time 09:08
*compile rather
nine If they're attributes of a block, can I access the use'ing block from my module and set these attributes?
lizmat yes, you can actually
FROGGS nine: that would be handy for 'use lib' also
09:08 vendethiel left
FROGGS but I dunno how to make it work 09:09
lizmat *but* if it's the first phaser, we also need to inform the compiler that it needs to run phasers at all
moritz good that 'use' runs at compile time :-)
lizmat for that block (as that is switched off for performance reasons normally)
wrt to "use lib"
I'm working on making that work like a pragma
rather than a module 09:10
eli-se morning
lizmat and make @*INC a compile time constant aka: @?INC
labster m: say ("-AAAA-").map( { my $/; .subst(/(A+)/, { $0.chars } ) }); 09:11
camelia rakudo-moar d0a84b: OUTPUT«-4-␤»
09:12 pierrot left 09:13 torbjorn joined, rindolf joined
Ven labster: my $/ ? 09:14
labster Ven: apparently manually declaring the match variable in that block makes it update $0 09:15
m: say ("-AAAA-").map( { .subst(/(A+)/, { $0.chars } ) }); 09:16
camelia rakudo-moar d0a84b: OUTPUT«-0-␤»
09:18 laouji left
torbjorn I have a grammar that parses my input text, but only if I use Grammar::Tracer. If I comment out use Grammar::Tracer, it no longer parses it (all of it) 09:18
09:19 pierrot joined
FROGGS labster: I guess it is about how we access the caller's $/ in method subst 09:21
labster: I think we might want to pass the correct $/ from Perl6::Actions to method subst, instead of doing the opposite 09:22
labster Doing the opposite of correct does sound suboptimal.
FROGGS ? 09:23
09:23 domidumont joined
FROGGS we currently aren't doing it right 09:23
torbjorn also the grammar contains several rules, and the one im debugin, if i change it to .* , which should be as generic as can be, the grammar matches less than it used to
labster agrees, the wording just made me laugh
torbjorn putting in a more specific pattern makes it match more
FROGGS labster: ahh, gotcha :o) 09:24
09:27 domidumont left, domidumont joined 09:28 laouji joined
FROGGS hmmm, I guess /<:Foo>/ wants to be parsed as a proper colonpair 09:33
09:39 oetiker joined 09:40 vendethiel joined 09:41 laouji left 09:50 quester left 09:51 gcole joined 09:52 Ven left 09:53 lolisa left 09:54 laouji joined 09:55 oetiker left
dalek kudo/nom: b34447e | paultcochrane++ | lib/Test.pm:
Rename test functions to use hyphens instead of underscores

The old test function names have been left as they are for the time being and redirect to the new function names internally.
09:56
kudo/nom: 7da357d | (Jonathan Stowe)++ | lib/Test.pm:
Merge branch 'pr/hyphenate_test_functions' of github.com:paultcochrane/rakudo into hyphenate_test_functions

Conflicts: lib/Test.pm
kudo/nom: 6e278a7 | (Jonathan Stowe)++ | lib/Test.pm:
Add deprecations for underscore names in Test.pm
kudo/nom: 302475c | paultcochrane++ | / (177 files):
Merge pull request #1 from jonathanstowe/hyphenate_test_functions

Hyphenate test functions
kudo/nom: 4bd8670 | lizmat++ | lib/Test.pm:
Merge pull request #371 from paultcochrane/pr/hyphenate_test_functions

Rename test functions to use hyphens instead of underscores
09:56 gcole left 09:57 oetiker joined 10:01 oetiker left 10:02 oetiker joined 10:07 lolisa joined 10:10 xfix left 10:19 kaare__ joined 10:23 kaare_ left 10:24 Vlavv joined 10:27 pierrot left, FROGGS[mobile] joined
FROGGS[mobile] got further with /<:Foo(/bar/)>/... can hopefully push later 10:28
10:29 Ven joined 10:30 Ven left 10:35 pierrot joined
[Tux] gist.github.com/Tux/6e06f3a455a8995adda4 <= WHO BROKE IO? 10:37
lizmat guesses jnthn :-)
perhaps rakudobug it
oddly enough, slurping the file shows only 1 + 10:38
[Tux] This is something I have no workaround for :/ 10:39
lizmat this is something that is *bad* need of a fix
building latest jvm, to make sure it *is* Moar related 10:41
10:43 kaare__ is now known as kaare_
lizmat .IO.spurt("+"),.IO.open.get.perl.say for "t.csv"; # further golf 10:43
10:44 Ven joined
lizmat fwiw, even a null byte gets copied 10:44
$ 6 '.IO.spurt("\0"),.IO.open.get.perl.say for "t.csv"'
"\x[0]\x[0]"
feels like an off-by-one error deep in the bowels of Moar 10:45
10:46 pierrot left
lizmat [Tux]: will you rakudobug it or shall I ? 10:46
Ven FROGGS:: # or ++, ymmv 10:47
[Tux] please do (not me) 10:50
lizmat $ perl6-j -e '.IO.spurt("*"),.IO.open.get.perl.say for "t.csv"' 10:51
"*"
so confirmed, a Moar only bug
10:52 gcole joined 10:57 gcole left, laouji left 11:01 laouji joined, mr-foobar joined 11:03 laouji left 11:09 Ven left 11:10 eli-se left
dalek kudo/nom: 339917c | lizmat++ | src/core/Supply.pm:
Saner way to deprecate Suppl.rotor features
11:12
11:12 colomon joined
dalek ast: c010071 | lizmat++ | S17-supply/rotor.t:
Test for deprecations differently
11:12
lizmat .tell jnthn this may requires some attention: #124394 11:13
yoleaux lizmat: I'll pass your message to jnthn.
synbot6 Link: rt.perl.org/rt3//Public/Bug/Displa...?id=124394
11:24 dayangkun joined 11:25 lolisa left
dalek kudo/nom: 7ac24e4 | lizmat++ | src/core/Supply.pm:
Allow for positive gaps in Supply.rotor
11:34
ast: 2a4bf77 | lizmat++ | S17-supply/rotor.t:
Add tests for positive gap in Supply.rotor
FROGGS[mobile] Ven: um, what? 11:36
11:36 araujo joined, araujo left, araujo joined, araujo left, pierrot joined 11:37 araujo joined 11:40 laouji joined 11:45 diana_olhovik joined
dalek ast: 57d2717 | lizmat++ | / (34 files):
Kebabcase tap_ok
11:46
11:50 Ven joined 11:51 colomon left 11:52 bjz joined, bjz_ left, colomon joined 11:55 rarara joined 11:56 kaare_ left 11:57 ssqq joined
dalek ast: 09fbd75 | lizmat++ | fudge:
Make sure we will fudge kebabcased test functions
12:00
ssqq P6: 1.^mro.say
lizmat m: 1.^mro.say 12:01
camelia rakudo-moar 7ac24e: OUTPUT«(Int) (Cool) (Any) (Mu)␤»
ssqq Where I could see the documents about `object.^mro` usage? 12:03
lizmat doc.perl6.org/language/mop is a more general intro into the MOP 12:07
that might be a good starting point
other than that, I'm not sure atm
perhaps moritz or [ptc] may know 12:08
I should say moritz++ or [ptc]++
as they've done a lot of documentation recently
ssqq lizmat: I would check it in /src of rakudo 12:10
lizmat ssqq: the core is *not* documentation :-) 12:11
12:15 eli-se joined
lizmat ssqq: but feel free to use it as a source of inspiration :-) 12:15
12:23 pippo joined
pippo o/ #perl6 12:23
Anybody could help me? Seems that building scripts fail to detect libreadline on my system. The resulting REPL does not have command history. Anyway to force use of libreadline? 12:25
psch pippo: i think you have to install Linenoise with panda
pippo: or you could supply --with-readline (or similar) to the moar build process
the former got tab completion recently, curtesy of hoelzro++ 12:26
pippo psch: I'll try Linenoise. Thank you!
12:27 BenGoldberg joined
ssqq psch: Hi, Where you get the usage of `object.^mro`. I could not find it everywhere. 12:27
12:27 mr-foobar left
psch ssqq: doc.perl6.org/type/Metamodel::C3MRO 12:28
ssqq psch: thank you! 12:29
pippo psch: BTW I have tried perl Configure.pl --with-readline --gen-moar --gen-nqp --with-backends=moar but it says that it does not reconize --with-readline 12:31
*recognize 12:32
psch pippo: i remember there having been a "--with-readline" or similar flag for Moar, but maybe that got removed when linenoise got removed 12:35
dalek ast: bb0a8fa | lizmat++ | / (211 files):
Use isa-ok instead of isa_ok

This is really a test to check out support for this change. If a Perl 6 implementation is using a Test.pm that is not supporting isa-ok, then this will cause a lot of breakage. OTOH, it *is* dogfooding, so I think it is worth it.
psch yeah, moar commit 0bff0279b7928eab32cb09314d898aab3683fa8d 12:36
pippo: fwiw, it would have been «--moar-option='--with-readline'», but that's gone, as above
pippo psch: :-( 12:37
psch pippo: now you need panda and Linenoise from there 12:38
but you get tab completion for free :)
pippo psch: installed and working well. Thank you!! 12:40
:-)
[Tux] :) panda installs under jvm
:( but it still doesn't run 12:41
Function X::Panda needs parens to avoid gobbling block
at /pro/3gl/CPAN/rakudobrew/jvm-nom/install/share/perl6/site/34:21
------> Panda { %failed{$x}.push($_) && say $_ }⏏ };
12:41 gcole joined 12:45 mr-foobar joined 12:46 gcole left
lizmat [Tux]: could you try adding a "use Panda::Common" in bin/panda ? 12:46
[Tux] yes. gimme a sec
12:48 mr-foobar left
[Tux] same 12:49
afk
12:49 ssqq left
lizmat :-( 12:49
12:49 mr-foobar joined 12:50 Ven left
FROGGS tadzik: had the same issue just recently (at the qa) 12:52
dalek ast: 9c1ad15 | lizmat++ | S16-filehandles/io.t:
Add todo for #124394
synbot6 Link: rt.perl.org/rt3//Public/Bug/Displa...?id=124394
lizmat m: CATCH { when X::Panda { ... } } # the issue, really seems X::Panda is somehow not known on JVM in bin/panda 12:56
camelia rakudo-moar 7ac24e: OUTPUT«5===SORRY!5===␤Function X::Panda needs parens to avoid gobbling block␤at /tmp/9W8k24cmS0:1␤------> 3CATCH { when X::Panda { ... }7⏏5 } # the issue, really seems X::Pand␤Missing block (apparently taken by 'X::Panda')␤at /tmp/9W8k24cm…»
jepeway 'lo, again, p6peeps.
lizmat 'lo to u2, jepeway 12:57
jepeway m: is(1,1,1) # Test.pm loaded into camelia?
camelia rakudo-moar 7ac24e: OUTPUT«5===SORRY!5=== Error while compiling /tmp/uktaYyQN7C␤Undeclared routine:␤ is used at line 1␤␤»
lizmat m: use Test; ok 1 12:58
camelia rakudo-moar 7ac24e: OUTPUT«ok 1 - ␤»
jepeway ah, thanks.
12:58 mr-foobar left, rindolf left
jepeway m: use Test; is(DateTime.new(0, :timezone(3600)).later(seconds => 0).timezone, 3600, ".later preserves timezone"); # more play with DateTime 12:59
camelia rakudo-moar 7ac24e: OUTPUT«not ok 1 - .later preserves timezone␤␤# Failed test '.later preserves timezone'␤# at /tmp/fLuoAeHQAY line 1␤# expected: '3600'␤# got: '0'␤»
jepeway looks like a couple-few methods in DateTime will slice off $.timezone 13:00
I'm thinking forking & fixing would be the most helpful thing to do...well, trying to fix. 13:03
psch jepeway: it looks rather straight forwards, for .later at least
i'm not sure there's other methods though
jepeway yup, 'tis. 13:04
I think tz gets sliced off in at least one .new, too 13:05
haven't dug deeply, yet. 13:06
so...mention here? bug the general "timezone sliced" prob? or bug each slice? 13:07
hm.
mebbe bug the general prob with a set of illustrative tests. 13:08
dalek kudo/nom: dc910b6 | lizmat++ | docs/ChangeLog:
Add some ChangeLog entries
RabidGravy I'm just having a bash at the concurrency doc. Is it fair to say that Thread.start(...) will always hand off directly to the VM facilities or is it more "probably"? 13:09
lizmat RabidGravy: please, don't use Thread directkly 13:10
psch jepeway: there's a bunch of DateTime bugs around on RT, maybe timezone stuff is already there, i didn't look closely
lizmat please use higher level abstractions such as Supply, Channel, Promises, start { }
jepeway will check RT, then.
psch lizmat: i don't think that "we have high-level constructs" should mean we don't want to document the lower level ones 13:11
RabidGravy lizmat, I am writing the missing Language/concurrency.pod - it needs to document Thread as well as say that :)
lizmat ok ok ok :-) 13:12
"Plain Threads are the GOTO of todays computing"
RabidGravy :) 13:13
psch can't «rakudobrew build-panda»
gist.github.com/peschwa/d43698c3b7d7d3fabf23
lizmat "Whatever underlies it, a C<Thread> should always be backed by something that is capable of being scheduled on a CPU core (that is, it may I<not> be a "green thread" or similar)"
is that an answer ?
psch the test results made me smirk though heh
lizmat need to be afk& 13:14
13:14 mr-foobar joined 13:16 dayangkun left
jepeway psch: I'm searching RT as an anonymous guest, and I get 0 hits on "DateTime", 1 on "timezone" (which I bet masak would close, now) 13:23
masak I think I will end up writing a blog reply to blog.plover.com/prog/haskell/monad-search.html -- showing how to implement mjd's Haskell solution in very similar Perl 6 code using next-gen macros. (which are still vaporware, but which we are aiming for.)
psch jepeway: i mostly search rt via google, with e.g. "site:rt.perl.org DateTime"
masak happily accepting suggestions, in the form of gists, of how to translate that Haskell/monad/do-notation code to appropriately macro'd Perl 6. 13:24
psch jepeway: so it may well be that most of the hits i got are closed already 13:25
jepeway psch: well, first few are. 13:26
masak by the way, I notice that there's not one concrete usage of the `let` prefix operator in the whole spec. 13:27
am I right in assuming that it can only operate on already declared variables? it doesn't declare the variables itself? 13:28
psch std: let $x = 5; 13:29
camelia std 28329a7: OUTPUT«5===SORRY!5===␤Variable $x is not predeclared at /tmp/pRYTyUAKYt line 1:␤------> 3let 7⏏5$x = 5;␤Check failed␤FAILED 00:00 137m␤»
13:30 dnmfarrell_ joined, dnmfarrell left 13:35 kaare_ joined 13:43 lolisa joined 13:44 Ven joined 13:49 colomon left 13:51 dnmfarrell_ left
jepeway could somebody delete RT #124392? It's a dup from when I e-mailed rakudobug@ w/o [BUG] in Subject: header 13:53
synbot6 Link: rt.perl.org/rt3//Public/Bug/Displa...?id=124392
jepeway also, RT #124391 is really a [Moar] bug, not a [BUG]. anybody fixy? 13:54
synbot6 Link: rt.perl.org/rt3//Public/Bug/Displa...?id=124391
13:56 tinyblak_ left 13:57 gcole joined 13:58 Rounin is now known as Ninuor 14:01 gcole left 14:02 tinyblak joined 14:08 rindolf joined 14:10 Ninuor is now known as Rounin 14:11 zeleiadi joined
jepeway masak: got time, inclination & headspace for DateTime questions? they're general "how do I contribute" q's, so nothing fiddly...I hope. 14:11
moritz jepeway: I might be able to answer them too 14:12
(depending on the actual questions, of course :-)
jepeway moritz: ah, cool.
so...I found some funkiness in DateTime wrt how it handled $.timezone. 14:13
I thought to just subclass DateTime and override methods where I was having trouble, writing tests that showed where the trouble was. 14:14
moritz jepeway: can you give a very short example of a funkiness?
jepeway now, I'm thinking the thing to do is fork, gin up tests that show the DateTime vs. timezone integration problems, fix those if I can, and send a pull request.
moritz yes, pull request sounds right 14:15
jepeway Sure, it's in today's backlog.
Just a sec.
tony-o FROGGS: is the intention of branch ofjson to get rid of JSON::Pretty from core?
moritz m: say DateTime.new(0, :timezone(3600)).later(seconds => 0). 14:16
camelia rakudo-moar dc910b: OUTPUT«5===SORRY!5=== Error while compiling /tmp/aoWUFwTsNg␤Confused␤at /tmp/aoWUFwTsNg:1␤------> 030, :timezone(3600)).later(seconds => 0).7⏏5<EOL>␤ expecting any of:␤ dotty method or postfix␤»
moritz m: say DateTime.new(0, :timezone(3600)).later(seconds => 0)
camelia rakudo-moar dc910b: OUTPUT«1970-01-01T00:00:00Z␤»
moritz m: say DateTime.new(0, :timezone(3600))
camelia rakudo-moar dc910b: OUTPUT«1970-01-01T01:00:00+0100␤»
jepeway irclog.perlgeek.de/perl6/2015-04-26#i_10505262
moritz yes, that does look funky
a fix would be very welcome
jepeway there are a few other instances of when $.timezone is sliced off. 14:17
ok, will try.
FROGGS tony-o: the intend is to have something faster for the common case
14:17 araujo left
jepeway I've forked rakudo, created a branch for this work, and am now thinking I need to fork roast, too. 14:17
sound right?
14:17 ShimmerFairy left
moritz jepeway: no 14:17
jepeway ok, set me straight.
moritz jepeway: tell me your github username, and I'll give you direct access to roast
jepeway uh...wowsers. 14:18
moritz jepeway: then you need to branch only, not fork, branch + pull request
jepeway it's cjepeway.
moritz jepeway: invitation sent
jepeway moritz: but I should keep the rakudo fork & its branch, though?
moritz jepeway: yes 14:19
jepeway: for legal reasons (The Perl Foundation owns the rakudo code) we aren't as freely with our rakudo access
jepeway moritz: gotcha. re: invite: does it show up on gh or via e-mail.
moritz: sure, understood. 14:20
moritz jepeway: typically both; might depend on your github email settings
14:20 raiph joined, ShimmerFairy joined
El_Che this is a funny book cover: allperlbooks.com/book/en/the-perl-community 14:20
FROGGS hehe 14:22
jepeway moritz: hm. how do y'all handle "some things on gh I do for $dayjob and some things I don't?" 2 different accounts? [gh newbie, here]. 14:24
moritz jepeway: I have one account, but the work stuff lives in organizations on github, not under my personal account 14:25
(though the account is a member of the organizations, of course)
jepeway moritz: oh, right. do you attach your personal e-mail to your account then? or can it have >1? 14:26
moritz jepeway: you can tell github about several e-mail-addreses that will be recognized as your own 14:27
jepeway: though it'll only ever send notifications to the primary email address
tony-o FROGGS: so is the json:pretty going to stay in core even when that gets merged in? 14:28
FROGGS tony-o: I think so, yes
because we need a fallback, for example 14:29
14:29 colomon joined
tony-o awesome - thanks 14:29
jepeway moritz: accepted. tyvm. 14:32
moritz: so, create a roast branch, switch to that inside my local copy of rakudo, and carry on? 14:33
moritz jepeway: yes
jepeway is kinda freaking out, here, over this...privilege, I guess.
moritz jepeway: don't freak out. It's all under version control. If you screw up, we can just revert. 14:34
jepeway: also you're hardly special; there are 173 members in the team I just invited you to :-)
jepeway moritz: understood. the freakout is more...wow, me, too? 14:35
moritz jepeway: and I feel like I've sucked you into the Perl 6 community successfully :-)
14:35 mr-foobar left
FROGGS jepeway: welcome on board :o) 14:35
14:37 mr-foobar joined
jepeway moritz: heh & thanks. 14:37
moritz: so, first foobar to correct - gh or browser ate my branch name. was going for date-time-slices-tz but got just a plain 'date'. how do i either rename it or kill it & branch again 14:39
14:39 zeleiadi left
moritz jepeway: rename the branch 14:39
git branch -m date date-time-slices-tz 14:40
jepeway moritz: got it. hrm... 'error: refname refs/heads/date not found' 14:43
moritz jepeway: how did you create the branch?
jepeway: on github, somehow? or locally in your git repo? 14:44
ah, it's on github
jepeway moritz: from gh, yes.
moritz jepeway: don't worry about that; just create a local branch with the name you want
jepeway moritz: check.
moritz jepeway: and do your changes there, commit, and then 'git push origin <thebranchname>' once you're done 14:45
and I just did a git push --delete origin date to get rid of the wrongly named branch on github
jepeway moritz: again, thankee. 14:46
well, off to write some tests...
RabidGravy going back to the concurrency doc briefly would it be fair to say that Scheduler is the lowest level api that is recommended for user code?
(but even the with caveats) 14:47
14:48 |Tux| joined
moritz RabidGravy: the only thing a typical user will need is occasionally passing CurrentThreadScheduler to the :$scheduler param of some methods 14:49
14:50 lolisa left 14:51 ggoebel left 15:02 molaf__ joined 15:05 molaf_ left 15:06 mr-fooba_ joined, mr-foobar left 15:11 ggoebel joined 15:19 mr-fooba_ left 15:21 telex left 15:22 telex joined 15:30 diana_olhovik left 15:32 MARTIMM joined
moritz blug: perlgeek.de/blog-en/perl-6/2015-wri...-docs.html 15:37
15:39 eli-se left, rarara left 15:40 colomon left
dalek kudo/nom: 265c009 | peschwa++ | src/vm/jvm/ (2 files):
Simplifiy JavaHOW.

Instead of reimplementing partial functionality from MethodContainer we might as well just C<does> it.
15:40
15:41 beastd joined, skids joined 15:42 konsolebox joined
jepeway moritz: do I still 'git push origin <branch>' if I have previously 'git checkout <branch>'? or will 'git push' DTRT? 15:42
psch moritz++ # blog 15:44
moritz: the "kinda" made me stumble a bit, it feels a bit too casual for the rest of the post
RabidGravy jepeway, yes you should specify the branch unless you have explicitly --set-upstream on the local branch 15:45
jepeway RabidGravy: check. 15:46
psch the sentiment in general seems to mirror what i got from pmichaud++'s spec talk slides
15:46 gcole joined
psch i.e. "go back and rethink, if it makes your current task easier" applies to language design and documentation and implementing and... 15:46
(which, coincidinkly, is what my last commit is about \o/ ) 15:47
15:48 Ven left, _mg_ joined 15:51 gcole left, ggoebel left 15:52 Ven joined, btyler joined 15:55 _mg_ left
nine Are there any stats on the #perl 6 user count? 15:56
16:02 ggoebel joined 16:03 Vlavv left 16:04 eli-se joined, _mg_ joined
dalek ast/date-time-slices-tz: d5b51d1 | (Chris Jepeway)++ | S32-temporal/DateTime.t:
Test that DateTime.later() will preserve $.timezone
16:04
masak nine: do you mean Rakudo users? or people on the IRC channel? 16:05
16:07 _mg_ left 16:08 konsolebox left
nine masak: people on the channel 16:11
moritz: I just wonder about all those new names in the past few months :)
16:15 Vlavv joined
masak well, the obvious guess is that people were enthused or drawn in by TimToady++'s announcement. 16:16
same thing happened quite clearly with Rakudo Star, back in the day. 16:17
DrForr Pugs as well, to an extent. 16:18
16:18 lizmat joined
b2gills lizmat: the problem wasn't with the arguments to `.rotor` it was with the flattening of the results 16:19
16:20 yqt joined
jdv79 maybe a spell checker wouldnt be a bad idea - from doc.perl6.org/type/List#method_rotor: "method rotor(*@cylce, Bool() :$partial)" 16:32
16:35 espadrine joined 16:37 tinyblak left 16:42 dnmfarrell joined
dnmfarrell omg I just realized grammars can be inherited ... mind *blown* 16:43
I was struggling through writing a custom pseudopod parser using XML::Simple. Now I can just override my grammar for the custom tokens 16:44
arnsholt Yup. It's a class like any other 16:46
16:51 tinyblak joined 16:52 molaf__ left 17:07 mr-foobar joined
PerlJam m: (1..10).rotor(3,-2).perl.say; # A new "feature" ;) 17:11
camelia rakudo-moar 265c00: OUTPUT«((1, 2, 3), (), (2, 3, 4), (), (3, 4, 5), (), (4, 5, 6), (), (5, 6, 7), (), (6, 7, 8), (), (7, 8, 9), (), (8, 9, 10), ())␤»
17:12 dnmfarrell left
TimToady we'll probably disallow negatives there 17:13
hmm, I think the junctional methods are still flattening 17:15
m: say ((1,2,3),(4,5,6)).any == 2
camelia rakudo-moar 265c00: OUTPUT«any(False, True, False, False, False, False)␤»
TimToady ayup
17:18 Ven left 17:22 mr-foobar left
TimToady from a GLR point of view it's troubling to see both (@array) and (*@array) signatures to Junction.new, which means you could never make a junction of arrays without worrying about the degenerate case of a single array stripping the arrayness 17:22
this is not a place where we should be guessing
17:24 mr-foobar joined 17:31 yqt left 17:35 gcole joined, hobbs left 17:37 hobbs joined 17:39 yqt joined 17:40 gcole left, raiph left 17:42 nwc10_ is now known as nwc10
TimToady the flattening assumptions run deep inside junctions... 17:44
b2gills m: (1..10).rotor( 3 => -2, 0 ).perl.say; 17:45
camelia rakudo-moar 265c00: OUTPUT«((1, 2, 3), (), (2, 3, 4), (), (3, 4, 5), (), (4, 5, 6), (), (5, 6, 7), (), (6, 7, 8), (), (7, 8, 9), (), (8, 9, 10), ())␤»
TimToady the assumptions run deep in the tests, too... 17:46
dalek ast/date-time-slices-tz: 16ce2be | (Chris Jepeway)++ | S32-temporal/DateTime.t:
Use fixtures with more distinctive values in .later() test
17:49
17:52 espadrine left 17:57 BenGoldberg left, BenGoldberg joined 18:05 raiph joined
jdv79 what's wrong with a negative overlap on rotor? though i can't think of a use case it makes sense. 18:05
raydiak that's not an overlap any more 18:08
jdv79 yeah, wording might need help but besides that 18:11
raydiak we now express it in terms of gap (which is a negative overlap the old way), and it goes in the value of a pair...so rotor(3,-2) is now written rotor(3=>2) because (3,-2) now means (3=>0, -2=>0) 18:12
if I understand correctly
FROGGS TimToady: S05 mentions <:!Blk<ASCII>> but that's an illegal colonpair... but I guess we still want to support it? 18:13
dalek c: d24d64d | (Justin DeVuyst)++ | lib/Type/List.pod:
Fix Typos.
18:17
jdv79 oh, i missed that distinction. i guess "feature" should have clued me in to look closer. thanks. 18:19
raydiak yw :) 18:20
dalek kudo/nom: 6a40b9f | lizmat++ | / (2 files):
Bring same API to Supply.rotor (from List.rotor)
18:22
ast: 02522ce | lizmat++ | S17-supply/rotor.t:
Test new Supply.rotor multiple gap functionality
18:23
raydiak m: 0.rotor: 0 18:27
camelia rakudo-moar 265c00: OUTPUT«(timeout)» 18:28
lizmat raydiak: it's the other wat around 18:29
*way
previously, you could specify an overlap (aka , steps backward)
now you should specify a gap, which is intrinsically forward
if you want overlap, you need a negative gap 18:30
18:30 espadrine_ joined
raydiak isn't that what I said? 18:30
well, with less detail...I was just describing the present situation relative to the old one 18:31
lizmat previously, rotor only took 2 params: elems / overlap
now it takes a whole range of values
if a Pair, then the key is the elems and the value is the gap
if something else, then it is the elems, and the gap is 0 18:32
m: (1..10).rotor(3,-2).perl.say # should probably die on negative number of elems
camelia rakudo-moar 265c00: OUTPUT«((1, 2, 3), (), (2, 3, 4), (), (3, 4, 5), (), (4, 5, 6), (), (5, 6, 7), (), (6, 7, 8), (), (7, 8, 9), (), (8, 9, 10), ())␤»
lizmat m: (1..10).rotor(3,0).perl.say # same 18:33
camelia rakudo-moar 265c00: OUTPUT«((1, 2, 3), (), (4, 5, 6), (), (7, 8, 9), ())␤»
lizmat huh?
b2gills the old `.rotor(3,-2)` is now `.rotor( 3 => 2 )` just like radiak wrote
raydiak 3 elems, no elems, 3 elems ... *
b2gills m: (1..10).rotor(3 => -2, 0).perl.say 18:34
camelia rakudo-moar 265c00: OUTPUT«((1, 2, 3), (), (2, 3, 4), (), (3, 4, 5), (), (4, 5, 6), (), (5, 6, 7), (), (6, 7, 8), (), (7, 8, 9), (), (8, 9, 10), ())␤»
18:35 espadrine_ is now known as espadrine
FROGGS what is TR18 which is referenced from S05? 18:35
raydiak (my explanation would have been better if I'd realized that the third major change is that it takes multiple inputs now, like lizmat++ clued me in on) 18:36
FROGGS: maybe this? www.unicode.org/reports/tr18/
FROGGS ahh, yeah
lizmat m: (1..10).rotor(3 => 1, 2 => -1).perl.say 18:37
camelia rakudo-moar 265c00: OUTPUT«((1, 2, 3), (5, 6), (6, 7, 8))␤»
lizmat m: (1..10).rotor(3 => 1, 2 => -1,:partial).perl.say
dalek rl6-roast-data: 66079ed | coke++ | / (9 files):
today (automated commit)
camelia rakudo-moar 265c00: OUTPUT«((1, 2, 3), (5, 6), (6, 7, 8), (10,))␤»
eli-se so many obscure methods 18:39
[Coke] NYC perl mongers hackathon this coming saturday. there is at least one person signed up for the perl 6 track (which is: clean up roast) 18:43
jdv79 that's lonely ole me:( 18:44
party of one is always a blast
esp since i move out of my apt of 7 years 2 days earlier and have to commute 2 hours in and out for the hackathon 18:45
18:45 mr-foobar left 18:48 mr-foobar joined
lizmat afk again& 18:49
moritz Debian Jessie released! \o/
hack et al now run stable again :-)
18:50 pippo left
[Coke] Note: putting [moar] i the subject does not set the moar vm flag on the ticket. 18:50
jepeway: tagged 124391 as Moar 18:51
18:52 hobbs left 18:53 hobbs joined
jdv79 hobbs: you coming? 18:55
18:57 BenGoldberg left, BenGoldberg joined
[Coke] jdv79: looking forward to meeting you in person! 18:58
I don't think there's enought perl 5 interest in albany to get anyone else down there, let alone perl 6 interest.
19:00 mr-foobar left
jepeway [Coke]: thankee. 19:01
19:03 coffee` left 19:06 gcole joined, coffee` joined 19:10 gcole left
dalek pan style="color: #395be5">perl6-examples: 3d447fe | paultcochrane++ | categories/rosalind/dna-gerdr.pl:
Make dna-gerdr.pl calculate the correct result
19:11
b2gills m: <a b c c>.unique>>.^name 19:15
camelia ( no output )
b2gills m: say <a b c c>.unique>>.^name
camelia rakudo-moar 6a40b9: OUTPUT«List␤»
19:15 domidumont left
dalek pan style="color: #395be5">perl6-examples: 1f1c8df | paultcochrane++ | t/categories/rosalind.t:
[rosalind] test examples c*..e*
19:16
19:21 zakharyas joined 19:24 raiph left, diana_olhovik joined
b2gills m: say Int.^roles(:transitive) 19:28
camelia rakudo-moar 6a40b9: OUTPUT«Cannot find method 'roles'␤ in any roles at src/gen/m-Metamodel.nqp:2834␤ in block <unit> at /tmp/B5r7TYcdZr:1␤␤»
19:28 rindolf left
b2gills m: say Int.^roles; say Real.^roles 19:30
camelia rakudo-moar 6a40b9: OUTPUT«(Real)␤Method 'roles' not found for invocant of class 'Perl6::Metamodel::ParametricRoleGroupHOW'␤ in block <unit> at /tmp/3gA4M8Db_A:1␤␤»
RabidGravy are there any other Scheduler implementations other than ThreadPoolScheduler and CurrentThreadScheduler in existence? 19:37
jnthn RabidGravy: The GTK::Simple one has a scheduler that promises to run code on the UI thread. 19:41
yoleaux 11:13Z <lizmat> jnthn: this may requires some attention: #124394
synbot6 Link: rt.perl.org/rt3//Public/Bug/Displa...?id=124394
jnthn lizmat: That's hilarious. I add 1000s of tests to get NFG stuff right, pass just about all existing spectests except a tiny handful that are NFG-incompatible...and then this sneaks through. :P 19:42
RabidGravy jnthn, ah got ya 19:43
19:55 mr-foobar joined, raiph joined 20:01 FROGGS[mobile] left
RabidGravy I can't think of another, even hypothetical, reason to implement a different scheduler 20:06
20:06 tinyblak_ joined
RabidGravy oh well 20:06
20:07 tinyblak left
jnthn RabidGravy: Maybe you want to implement some kind of custom priority mechanism. 20:07
RabidGravy ah yes good one 20:08
moritz or one that binds threads to particular CPUs or something
RabidGravy yep 20:10
lizmat jnthn: leave it to Tux to find the sneaky ones 20:14
jnthn lizmat: Aye. Already got a test added to spectest, working on fix now
lizmat jnthn: I also added a test for it 20:15
t/spec/S16-filehandles/io.t
335:# RT #124394
synbot6 Link: rt.perl.org/rt3//Public/Bug/Displa...?id=124394
RabidGravy you can never have too many tests
lizmat
.oO( jnthn just wants to increase the number of todo's passing :-)
20:16
jnthn lizmat: ok, then we'll have two I guess :P
20:18 mr-foobar left, virtualsue joined
lizmat jnthn: what is the reason for the existence of World.nqp? Why aren't all those methods just subs in Actions.nqp ? 20:20
dalek pan style="color: #395be5">perl6-examples: ac44bbc | paultcochrane++ | categories/rosalind/lcsq-grondilu.pl:
Sample output matches that on Rosalind web site
20:21
pan style="color: #395be5">perl6-examples: bc1834a | paultcochrane++ | t/categories/rosalind.t:
[rosalind] test examples f*..l*
pan style="color: #395be5">perl6-examples: 938ad49 | paultcochrane++ | .travis.yml:
Add LWP::Simple to list of modules to install
pan style="color: #395be5">perl6-examples: 468031e | paultcochrane++ | t/categories/rosalind.t:
[rosalind] test problem solutions m*..r*
pan style="color: #395be5">perl6-examples: f5fb057 | paultcochrane++ | README.md:
Mention build status in README on GitHub
20:22 mohij joined
labster Added Perl 6 to testanything.org/testing-with-tap/perl.html 20:23
masak labster++
jnthn lizmat: Actions is about operations (and so building QAST), World is about declarations that result in objects (that may get serialized)
FROGGS m: say 1 ~~ 0 ^..^ 1
camelia rakudo-moar 6a40b9: OUTPUT«False␤»
jnthn lizmat: It's equally legit to call methods on $*W from Grammar too
FROGGS m: say 0 ~~ 0 ^..^ 1
camelia rakudo-moar 6a40b9: OUTPUT«False␤»
jnthn Tangling operation and declaration was one of the biggest design problems in earlier versions of Rakudo. 20:24
(and a large part of what was sorted out during the "nom" swtich)
*switch
20:25 darutoko left
lizmat I;m about to move sub import from Grammar to World and make it a method 20:26
would you consider that a good thing or not ?
(along with the new "do_pragma" for that matter) 20:27
trying to more generalize module loading
masak I confess to not knowing those parts well, so let me ask a general question: what makes it feel like `sub import` belongs more in World than in Grammar? 20:29
lizmat for one, do_import calls World methods already
jnthn import happens at compile time and results in declarations 20:30
So to be it'd feel natural in World
Most of the compiler-related use stuff lives in World already 20:31
moritz +1 to import in World
lizmat ok, then I'll proceed: the diff sofar: gist.github.com/lizmat/692ba866a8677451bf8f
masak yeah, sounds like `import` is already feature-envious of World.
++lizmat 20:32
skids points out PR#411 while World is being worked on. 20:34
FROGGS $ perl6 -e 'say "½¼" ~~ / <:NumericValue(0 ^..^ 1)>+ /'
「½¼」
^^ that's what I push tomorrow, have to port it to jvm also
masak FROGGS: nice :) 20:36
FROGGS gnight
20:36 FROGGS left
dalek kudo/nom: 1826173 | skids++ | src/ (2 files):
Add typed exception X::NYI::Available for "Please install X for Y support."

This is more for the ecosystem's use than internal, though.
20:36
kudo/nom: df04346 | lizmat++ | src/ (2 files):
Merge pull request #411 from skids/xnyi

Add typed exception X::NYI::Available
skids lizmat++
labster +1 for import in World, even though I don't know anything about it, because all of the $*W become self
jnthn testing a fix for the 1-byte IO bug 20:37
lizmat yes, there was that as well :-)
jnthn (Turns out it was all the way down in the UTF-8 decoder.)
labster code is screaming "I belong elsewhere" :O 20:38
lizmat jnthn: yeah, I figured it'd be somewhere deep in the bowels
jnthn Well, I was expecting it to be in the normalization code. :)
20:38 mohij left
jnthn Turns out I had a thinko when integrating the normalization stuff into the UTF-8 decode stream stuff. 20:39
lizmat is glad Tux found it now 20:40
jnthn Me too
But this is why I prefer to land Big Things a little after releases.
lizmat yeah... confusing times, but better that way 20:41
labster jnthn++ for finding it.
Does anyone use the releases? I would assume that most people inside the development process use the latest commit, and most people outside use the Star releases. 20:43
jnthn labster: The Star releases pick compiler releases.
labster: So anyone using a Star is basically using a release.
labster jnthn: Ah, OK. Never did the Star release process, maybe some day. 20:44
jnthn almost had heart failure on seeing the number of spectest failures, then realizes his Rakudo is behind and they're all because he needs the isa-ok :) 20:45
skids labster: right now I am updating my module to latest commit but post xmas I may go back to only updating on releases, and then later only to star. It is good to have milestones. 20:46
dalek pan style="color: #395be5">perl6-examples: cf570b2 | paultcochrane++ | categories/rosalind/tran-grondilu.pl:
Output expected number of decimal places
20:47
pan style="color: #395be5">perl6-examples: 32484f9 | paultcochrane++ | t/categories/rosalind.t:
[rosalind] add tests for remaining problem solutions
labster skids: Milestones are good. I assume we use them informally for regression testing as well, when a git-bisect seems like a bit much. 20:48
20:52 gcole joined
lizmat jnthn: sorry about that 20:55
labster .oO ( isa-ok Mario; ) 20:56
jnthn lizmat: No worries, I thought I'd pulled but somehow forgot.
20:56 beastd left, gcole left 20:58 diana_olhovik left 21:00 MARTIMM left
jepeway so, I wrote a little thing to stuff call sites into back traces: gist.github.com/42215154aff709d3efd7.git 21:01
and I'm looking for pointers on making it more idiomatic p6. 21:02
dalek p: 15b3ef9 | jnthn++ | tools/build/MOAR_REVISION:
Bump MOAR_REVISION for IO fixes.
21:04
jepeway er...call site == source code of line in backtrace 21:08
21:08 cognominal joined
dalek kudo-star-daily: 98e8ad5 | coke++ | log/ (2 files):
today (automated commit)
21:11
kudo/nom: 58213db | jnthn++ | tools/build/NQP_REVISION:
Bump NQP_REVISION to get MoarVM IO fixes.
21:12
21:14 noganex_ left
dalek ast: c765b8c | jnthn++ | S16-io/basic-open.t:
Test file not found error includes filename.

Hopefully covers RT #124391, where a use-after-free resulted in errors or corruption when doing this error reporting.
21:14
synbot6 Link: rt.perl.org/rt3//Public/Bug/Displa...?id=124391
timotimo hi
ast: 45e3fdf | jnthn++ | S16-io/basic-open.t:
Test for RT #124394 (.get on 1-byte file).
synbot6 Link: rt.perl.org/rt3//Public/Bug/Displa...?id=124394
dalek ast: e37e241 | jnthn++ | / (252 files):
Merge branch 'master' of git://github.com/perl6/roast
jnthn oops 21:15
21:15 noganex joined
RabidGravy I'm minded to push this half finished concurrency.pod to docs to attract early criticism unless anyone has any objections 21:15
jnthn otoh, I've still introduced a couple of orders of magnitude less merge commits than us merging github pull requests :P
timotimo go for it! gravy
21:16 TomHyer joined
dalek c: 7f69b64 | (Jonathan Stowe)++ | lib/Language/concurrency.pod:
add concurrency doc
21:16
c: acc32f7 | (Jonathan Stowe)++ | lib/Language/concurrency.pod:
Re-jig headings
c: 149bca4 | (Jonathan Stowe)++ | lib/Language/concurrency.pod:
document threads
21:16 bjz left
dalek c: 81bdd75 | (Jonathan Stowe)++ | lib/Language/concurrency.pod:
Add scheduler stuff
21:16
c: cd40d42 | (Jonathan Stowe)++ | lib/Type/List.pod:
Merge branch 'master' of github.com:perl6/doc
c: 1eb9518 | (Jonathan Stowe)++ | lib/Language/concurrency.pod:
Done with schedulers
21:17
TomHyer I would like to mention what looks to me like an implementation bug in Rakudo (but maybe just user error)
Gist is at gist.github.com/TomHyer/19fc6729b97bceb858b2
The program merges text files, with a separator string so they can be de-merged 21:18
nothing sophisticated
the symptom is that, no matter what I put in the separator string, I cannot get a carriage return between it and the next line 21:19
21:19 espadrine left
TomHyer i.e., the "\n" seen in the program has no effect 21:19
jnthn TomHyer: It's not that you're on Windows and viewing the file in something like Notepad that doesn't recognize a lone \n, and wants \r\n instead? 21:21
TomHyer checking 21:22
21:22 zakharyas left
RabidGravy isnt't there a .nl somewhere that would make that partoble? 21:23
portable
TomHyer jnthn: got it in one thanks
I have been using Perl (4 and 5 not 6) on Windows for a long time and don't remember being bitten by this 21:24
timotimo how do i get access to my irc via this compjter i dont trust sufficiently...
jnthn I think 5 may magically do some re-writing of \n. We may yet do that in 6 too. 21:25
TomHyer you have my vote already
even in C I don't have to add \r 21:26
anyway, thanks for figuring it out
21:27 kaare_ left 21:30 Rounin left 21:32 zeleiadi joined
masak 'night, #perl6 21:32
b2gills Perl 5 does this with a :CRLF layer on a file-handle ( which is the default on Windows ) 21:33
lizmat goodnight masak
21:34 raiph left
lizmat I recently specced "nl-saying" in the newio branch 21:34
that could be set to \r\n if $*DISTRO.is-win 21:35
21:40 tinyblak joined
lizmat good night, #perl6! 21:42
jnthn sleeps also; 'night o/
21:43 tinyblak_ left 21:44 raiph joined 21:53 zeleiadi left
TimToady .tell moritz ss/need to much/need to know much/ 21:53
yoleaux TimToady: I'll pass your message to moritz.
21:57 yqt left
dalek c: 3c3ce18 | (Jonathan Stowe)++ | lib/Language/concurrency.pod:
typo
22:04
22:09 bjz joined
RabidGravy I'll be finishing that over the week 22:21
22:30 colomon joined 22:32 RabidGravy left 22:34 bjz left 22:41 gcole joined, rurban joined 22:45 gcole left 22:47 hobbs left 22:54 eli-se left, telex left 22:55 hobbs joined 22:56 telex joined 23:04 rmgk is now known as Guest32182, rmgk_ joined, Guest32182 left, rmgk_ is now known as rmgk
raiph ++jepeway++ # source code in backtraces hack :) gist.github.com/cjepeway/42215154aff709d3efd7 (<-- removed `.git`) 23:09
jepeway raiph: ty, ty. 23:11
raiph: any thoughts re: style improvements, by any chance? 23:12
dalek ast/date-time-slices-tz: 1ba8a0d | (Chris Jepeway)++ | S32-temporal/DateTime.t:
Add test for non-short-circuited code path in .later
23:23
23:29 cognominal left
jepeway well, gtg. see y'all.later(days => (1..6).pick) 23:39
23:40 virtualsue left 23:41 cognominal joined 23:42 gcole joined
TimToady o/ 23:46
23:46 gcole left, tinyblak left 23:51 gfldex left 23:55 dayangkun joined
dalek kudo/nom: b80de35 | TimToady++ | src/core/ (2 files):
no flattening for .and/.all/.one/.none methods
23:56