»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg camelia perl6: ... | irclog: irc.perl6.org | UTF-8 is our friend!
Set by sorear on 25 June 2013.
timotimo <3 00:00
how's the memory usage?
like, maxrss or something?
jnthn supernovus: For tests on JVM, you're mostly paying startup time... 00:03
timotimo most probably
supernovus jnthn: That's what I was assuming, as 'prove' spawns a separate process for each test.
jnthn aye 00:04
supernovus Well, I'm certainly impressed with the performance of MoarVM so far. I haven't tested any of my socket/networking libraries yet, or anything using Buf/pack/unpack. 00:05
timotimo do we have pack and unpack on moarvm yet?
jnthn We've lots more work to do on MoarVM yet... :) 00:06
supernovus Not a clue, I haven't tried it yet, as the FastCGI library is one of the few of mine that uses it, and given how horrifically slow it was the last time I ran it, I stuck with SCGI for any web apps I was building in Perl 6. 00:07
timotimo pack and unpack seem like a prime target to get the specializer really going, no? 00:08
that was not english. 00:09
jnthn timotimo: Probably not with the way they're written at the moment...
timotimo the specializer should get a good speed boost out of that; if the pack specification is constant, it *could* be specialized away
jnthn Well, but the VM has no clue it's a pack/unpack 00:10
timotimo mhh 00:10
the pypy tracing jit can just do that :P
jnthn I know they do stuff with formats, yes. 00:11
supernovus Well, I'll test some more of my libraries out on the various backends another day. Have a good * #perl6 :-) 00:12
timotimo it's not that they "do stuff with formats" 00:13
it kind of mostly falls out of the tracing jit without much extra stuff
jnthn Ah, found the article 00:14
Yes, I see how it can work. 00:15
timotimo oh, i might be proven wrong :)
jnthn If the string formatter is not opaque to the tracing JIT it can figure out the paths taken.
timotimo i'm kind of sad we don't get a tracing jit like they have easily, because i'm really, really, really impressed by their stuff
jnthn Tracing isn't everything.
timotimo aye, but traces seem to be pretty good for getting turned into super efficient low-level code 00:16
you obviously have to do good work with the guards and bridges, of course 00:17
jnthn Yes; if you can't figure out enough to do sensible method JIT then tracing can really come into its own. 00:17
timotimo well, all my knowledge of the tracing jit stuff is from reading what cool stuff they suddenly made faster with hardly any work :P
jnthn It wouldn't surprise me if Moar ends up doing traces on hot paths also. 00:18
timotimo fair enough
raydiak daydreams about rakudo-lua running Pray under LuaJIT 00:25
jnthn sleep time...should have tuits tomorrow :) 00:42
&
raydiak gnight jnthn
raydiak does not understand why tests which pass with perl6, prove, and panda-test, fail with panda install 01:56
colomon raydiak: might be something wrong with serializing the compiled code during the install... 04:15
I know in the (somewhat distant) past I saw situations where ABC could not be precompiled, but would run just fine if the .pms were called directly. 04:17
tadzik FROGGS: Ooh, it should definitely be absolute 07:00
moritz s/definitely/absolutely/ # :-) 07:03
good morning everybody
tadzik :) 07:04
FROGGS timotimo: about PackFile, I think we'd need to change quite a bit because we are generating pir code in some places in nqp, and my guess is that this will need to go away 07:58
(in case it actually is PIR and not PASM) 07:59
morning o/ 08:00
Mouq o/ 08:05
FROGGS o/
dalek kudo/pod-code-allow: 0bc8fb7 | Mouq++ | src/Perl6/Grammar.nqp:
Separate =code etc. from =comment in grammar
08:07
kudo/pod-code-allow: 39308e5 | Mouq++ | src/Perl6/ (3 files):
Mostly working Pod code block refactor
Mouq ^^ this is meant to eventually fix =begin code :allow<X Y Z> 08:10
Mouq Whoa 08:14
It already fixes it! :D
There are just some issues with the grammar that need to be fixed, but the :allow<X Y Z> thing works 08:15
And then there's some things to be fixed with Pod::To::Text, because it tries to stringify Pod structures in code 08:16
moritz Mouq++ # awesome grammar and pod hacking 08:23
nwc10 good *, #perl6 08:40
FROGGS hi nwc10++ 08:41
moritz \o
jnthn morning, #perl6 09:26
moritz mrnng, jnthn
JimmyZ morning, jnthn 09:28
dalek kudo/pod-code-allow: 5accaed | Mouq++ | src/Perl6/Grammar.nqp:
$*ALLOW_CODE –> $*ALLOW_INLINE_CODE

  $*ALLOW_INLINE_CODE is more descriptive of what it's actually for
09:39
kudo/pod-code-allow: e2b8379 | Mouq++ | src/Perl6/ (2 files):
Save text verbatim when in a code block
tadzik Mouq++
sergot o/ 09:40
tadzik \o
dalek kudo/pod-code-allow: f3b5470 | Mouq++ | src/Perl6/ (2 files):
Parse empty lines in a =begin code block
10:55
kudo/pod-code-allow: efce067 | Mouq++ | src/Perl6/Actions.nqp:
Accept empty code block + unshift recursive stucture

Prior, "=begin code\n=end code" would die. As well, it's more effecient to start with the already made ast and unshift new elements constructing the tail-recursive delimited_code_content
Mouq Only big issue now that I've noticed (besides having to modify the Pod -> $format code) is that indented =begin code blocks aren't parsed correctly, fairly inexplicably 10:59
jnthn Did anybody have any r-m bugs they especially wanted me to look into before the monthly? 11:04
Mouq r: grammar Foo {token TOP {$<f>=[a+] \h+ <again($<f>)>}; token again($what = '') {$what}}; say(Foo.parse('aa aa')) 11:11
camelia rakudo-parrot 9025c3, rakudo-jvm 9025c3, rakudo-moar 9025c3: OUTPUT«#<failed match>␤»
Mouq Yeah
Should that work? 11:12
jnthn Mouq: Try a {} before the <again(...)>
Mouq r: grammar Foo {token TOP {$<f>=[a+] \h+ {} <again($<f>)>}; token again($what = '') {$what}}; say(Foo.parse('aa aa'))
camelia rakudo-parrot 9025c3, rakudo-jvm 9025c3, rakudo-moar 9025c3: OUTPUT«「aa aa」␤ f => 「aa」␤ again => 「aa」␤␤»
Mouq ...
Mouq I don't understand 11:12
But that should fix some issues
jnthn We generate the Match object $/ on demand.
And <rule(args)> is currently not triggering its creation. 11:13
{} on the other hand does.
Mouq jnthn: Ok, thank you. This is a bug, though, right? 11:14
jnthn In full-blown Perl 6, yes. In NQP...we get to choose.
Mouq jnthn++
ok
jnthn It's just that if we make it always sync the $/ before <rule(args)> then things like <pblock(1)> would trigger it needlessly 11:15
Unless we implement more sophisticated analysis.
Mouq :D it works 11:16
jnthn \o/
dalek kudo/pod-code-allow: 354419d | Mouq++ | src/Perl6/Pod.nqp:
Remove unused sub in Perl6/Pod.nqp
11:24
kudo/pod-code-allow: 24a2945 | Mouq++ | src/Perl6/Grammar.nqp:
Make sure $/ is generated before calling Pod rules that need it

Fixes issues with extended configure lines and ending delimiters when these things are indented
dalek p: 321e13b | jnthn++ | tools/build/MOAR_REVISION:
Bump to latest MoarVM, for macro -> inline.
11:29
Mouq –> school 11:30
o/
timotimo Mouq++ # pod hacking that i've been meaning to do for a looooong time, but never made it 12:06
also, o/ 12:07
tadzik Mouq++ # I like what I see :)
timotimo jnthn: should i do a full three-backend-spectest-run of my partially implemented lex-to-local code and merge that for the nqp release or should i rather wait until next month when it'll hopefully do the cascading inlining, too? 12:10
moritz timotimo: if you have to ask, it's probably better to wait until after the release 12:11
jnthn timotimo: It may be better to land such a large thing after a release.
timotimo heh. yeah. 12:12
i think i'll write a few words about MoarVM in the release guide for nqp 12:13
timotimo and i suppose about jvm, too 12:15
dalek p: 7fd93b7 | (Timo Paulssen)++ | docs/release_guide.pod:
mention MoarVM and JVM in the release guide.
12:20
kudo/nom: 1a5cb47 | nicholas++ | src/vm/moar/ops/ (2 files):
Pass an MVMCollectable* to MVM_ASSIGN_REF(), without using casts.

All derivatives of MVMObject and MVMSTable contain a nested MVMCollectable struct. By using structure member access, we can get a pointer to it without using a cast. This encourages type safety, and reduces the number of casts and hence places that might conceal strict aliasing violations.
12:21
kudo/nom: 9660042 | jnthn++ | tools/build/NQP_REVISION:
Get latest NQP, for Moar bump/NativeCall bits.
kudo/nom: 23ecfa4 | jnthn++ | tools/build/ (2 files):
Add debugger build for JVM backend.
12:22
dalek kudo/nom: 3bbd8fd | jnthn++ | tools/build/Makefile-JVM.in:
Correct a debugger dependency in Makefile.
12:29
kudo/nom: 500e609 | jnthn++ | src/Perl6/Actions.nqp:
Make for compilation robust to debug hook addition
dalek kudo/nom: 8c22767 | (Tobias Leich)++ | docs/ChangeLog:
add note about IO::Path.ACCEPTS
12:33
moritz Makefile:726: warning: overriding commands for target `perl6-debug-m' 12:33
Makefile:366: warning: ignoring old commands for target `perl6-debug-m'
jnthn wtf 12:34
moritz tools/build/Makefile-JVM.in:J_DEBUG_RUNNER = perl6-debug-m@runner_suffix@ 12:34
should be -j
timotimo do we also build the debug runner for parrot? 12:34
jnthn oh...
timotimo: No, I'm half way through writing that patch. 12:35
timotimo good :)
timotimo is reviewing changes done to spice up the changelog
jnthn :)
I did a ChangeLog for Moar this month and it's quite long :) 12:36
timotimo saw it :) 12:36
timotimo i think i'll not write moar-related changes into the rakudo changelog until that whole situation has calmed down a bit 12:36
jnthn Well, I think we could have a line in there along the lines of "Many improvements to Rakudo on MoarVM, including sockets support" or so. 12:37
dalek kudo/nom: d1610ac | moritz++ | tools/build/Makefile-JVM.in:
[build] fix copy&paste-o
jnthn And any others that seem noteworthy
moritz: oh, that's why my push failed... 12:38
moritz jnthn: sorry :-)
timotimo yes, but only one entry :D 12:39
jnthn timotimo: no, moar! :P 12:41
.oO( <timotimo> no, no moar! )
12:42
dalek kudo/nom: b23cbc6 | jnthn++ | tools/build/Makefile-JVM.in:
Fix JVM make install on Windows.
13:04
kudo/nom: 1f690c7 | jnthn++ | tools/build/Makefile-Parrot.in:
Build debugger on Parrot also.
kudo/nom: f30f805 | jnthn++ | .gitignore:
Update .gitignore for debugger build additions.
timotimo notes that in the changelog
timotimo "allow definition of custom postcircumfixes" warrants a changelog entry also, don't you think? 13:06
jnthn I've tagged 2014.01 in rakudo-debugger for the "worked with that release" version 13:07
Going to remove the Build.pm since it's now never needed/wanted against HEAD
timotimo sounds good 13:08
dalek kudo/nom: fafd39e | (Timo Paulssen)++ | docs/ChangeLog:
add a bunch more changelog entries
13:09
jnthn wiki.perl6.org/Create%20and%20Distr...%20Modules currently doesn't say anything about "provides" 13:10
Shuld it?
timotimo i suppose so 13:11
dalek kudo-debugger: 7082cb8 | jnthn++ | META.info:
Add "provides" to META.info.
13:13
kudo-debugger: c27659f | jnthn++ | / (2 files):
perl6-debug now in Rakudo; remove it from here.

This module is now just a command-line front end, meaning it needs no Build.pm either, and should install/work with Parrot, JVM and Moar.
timotimo so ... i forgot again ... parrot on moar works how well now?
dalek kudo-debugger: 7fe0967 | jnthn++ | META.info:
Tweak module name to reflect what it is now.
timotimo ... panda on moar*
jnthn tries it on Windows 13:21
Hopefully perl6-m bootstrap.pl dos it...
*does 13:22
==> Bootstrapping Panda
==> Fetching File::Find
===SORRY!===
Start of substr out of range. Is: 40, should be in 0..38
:(
timotimo oh, oops 13:23
hm. i just tried translating S26-documentation with latest perl6 and the allowed formatting codes don't work there yet; maybe support is still missing from ::To::HTML?
timotimo oh, that's because it's in a branch %) 13:26
dalek kudo/nom: 7f4e733 | (Timo Paulssen)++ | lib/Pod/To/Text.pm:
eval -> EVAL in Pod::To::Text
timotimo there's still something quite b0rked regarding :allow in code blocks 13:40
"=begin R<BLOCK_TYPE> R<OPTIONAL CONFIG INFO>" renders out as "OPTIONAL CONFIG INFO BLOCK_TYPE =begin" 13:41
dalek kudo/nom: ecdb527 | (Timo Paulssen)++ | src/Perl6/Compiler.nqp:
document --doc flag in usage
13:42
kudo/nom: ebd80a1 | (Timo Paulssen)++ | docs/ChangeLog:
:allow wasn't actually merged into nom yet
dalek kudo/nom: 0d367e2 | (Timo Paulssen)++ | docs/ChangeLog:
wording tweaks
13:44
jnthn huh...somehow my make spectest on Moar has suddenly got slower... 13:45
FROGGS uhh 13:47
moritz jnthn: are you using 6 cores again? :-)
tadzik only 6? :P
FROGGS jnthn: the IO-Socket-INET should not have a huge impact...
timotimo Perl6 cores? :) 13:48
jnthn moritz: No, still set to 8
No, I mean slower compared to earlier today
FROGGS ohh
tadzik CORE.setting, RESTRICTED.setting, FORGOTTENREALMS.setting...
FROGGS is there a process dangling around?
I think I had to kill a server+client from that said test once that was still there after hours 13:49
jnthn FROGGS: Doesn't seem like it
Hmm. Startup seems longer. 13:50
dalek kudo/nom: 1d2c436 | (Timo Paulssen)++ | docs/ChangeLog:
typo, dedup, merge, ...
13:51
jnthn oh...
jnthn Yeah. I turned on the ConEmu thingy that injects an extra DLL into every process that re-writes ANSI escape codes 13:52
Which adds a rather noticable amount to eveyr process start. 13:53
timotimo bleeeeeh, i can't reproduce the spectest results from moritz easily, i still get the "no subtests run" thing after a while 13:57
jnthn timotimo: How many test jobs are you using? 13:58
timotimo 4
jnthn Sometimes reducing that helps, if the problem is it's hitting the RAM limit 13:59
timotimo mhh 14:00
i still get occasional "no subtests run" even with only 1 test job 14:06
timotimo moritz: i could not reproduce any fail in perl.rakudo.jvm 14:16
and the roll.t fail is a pass on my machine as well 14:17
the exceptions/misc.rakudo.jvm and tc.rakudo.jvm failures seem legit, though 14:18
btyler hi all. I've been using vim-perl for my perl 6 highlighting needs -- it does a great job with syntax coloring, but it is really sluggish - I get noticable lag when moving around the text, and it makes editing a bit of a pain. do most just write p6 sans syntax highlighting? 16:07
FROGGS btyler: I use SciTE with P5 highlighting 16:12
and SciTE is always astonishing fast
btyler hm, maybe just forcing p5 highlighting would be good enough. thanks FROGGS 16:19
dalek p/moar-conc: 58e1b65 | jnthn++ | src/vm/jvm/ (8 files):
Add VMThread REPR and thread-related nqp:: ops.
16:22
kudo/moar-conc: 2097d53 | jnthn++ | / (11 files):
Move non-JVM-specific conc code out of src/vm/jvm.

This makes it clearer what bits are JVM-specific and need abstracting or porting.
16:25
kudo/moar-conc: 9a717ab | jnthn++ | src/vm/jvm/core/Thread.pm:
Re-work Thread class using new nqp::ops.
kudo/moar-conc: a2204bc | jnthn++ | / (3 files):
Move Thread.pm to src/core, now it uses nqp:: ops.
timotimo \o/ 16:32
FROGGS ohh! 16:34
awesome times these are :o) 16:35
jnthn Well, abstracting what already works on JVM is the easy part :P 16:36
I'm hoping if I start on it now, though, then we'll be able to mostly pass S17-concurrency/ in r-m by the March release. 16:38
colomon btyler: I use p5 highlighting for p6 too, but honestly it is frequently terrible looking 17:12
timotimo Byays 17:24
nwc10 Easter is the new Christmas?
isBEKaml btyler: If you're using vim-perl for p6 highlighting, turn off ft detection. Just use syntax highlighting. 17:26
timotimo uses the perl6 syntax highlighting and knows what btyler is talking about 17:42
TimToady jnthn: arguably, using {} to force $/ is going to backfire in all those places where we're merely using it to stop LTM 18:09
jnthn TimToady: Well, it already does force it today
TimToady: I agree it should optimize that away in the end. 18:10
TimToady: By which point we need to either have done a fix for <foo($<bar>)> or found a different way to cheat... :)
dalek p/moar-conc: 469bf84 | jnthn++ | src/vm/moar/QAST/QASTOperationsMAST.nqp:
Map thread related ops for MoarVM.
18:15
kudo/moar-conc: f38d5ba | jnthn++ | tools/build/Makefile-Moar.in:
Add Thread.pm to MoarVM build.

No, don't expect it to work yet.
18:16
TimToady jnthn: the way STD cheats is by pulling $<foo> straight out of the cursor 18:21
it does go as far as to do 'my $M = $C;' to officially put the cursor into $/, but simply ignores the fact that there's extra stuff in $/ related to $¢ 18:22
masak evening, #perl6 18:23
jnthn TimToady: That feels...hacky :)
TimToady so {} really does translate to a P5 'do {}'
jnthn Finding dinner & 18:25
TimToady and I think the codegen knows whether a $M is needed, so it differentiages <foo($x)> from <foo($<x>)>
*ates
timotimo would xterm-256color support go into Term::ANSIColor? Term::ANSIColor::256? 18:56
TimToady I'd think only if it were an ANSI standard... 18:57
timotimo okay. Term::256Color then? 18:58
and would 24bit color get its own module as well?
Term::ExtendedColors perhaps
FROGGS Term::Color? that hides the actual terminal used?
timotimo you mean it would do things like probe for 256color support and 24bit color support and then do approximation if needed? 18:59
FROGGS I'd make it Term::Color::XTerm256
yes
timotimo mhm 19:00
FROGGS and if you are on a terminal without coloring support it should just print the text
timotimo and then Term::Color::ANSI as an alias for Term::ANSIColor?
FROGGS so the "end user" does not have to care about the terminal at all
as one of the backends, yes
timotimo what exactly is the interface supposed to look like then? just give it rgb color triplets and it tries to do its best? 19:01
FROGGS I mean, Term::Color could do some diagnostics and pass these information to the user's script
so you can ask Term::Color for coloring support and the actual palette if available 19:02
rgb triplets, color names, palette indexes
timotimo okay. this is about colors; would these modules also handle underline/blink/reverse video/...? 19:03
FROGGS hmmmm, dunno
I think I would let it do one thing only
jnthn There's also Term::WindowsColor that we maybe want at some point 19:06
timotimo yeah, sure 19:09
because ConEmu is not so nice
jnthn No, emus are already bad enough when they aren't trying to con you... 19:11
timotimo aye!
jnthn nom ready...bbiab 19:13
[Coke] wonders if anyone else is excited for Guardians of the Galaxy this summer. :) 19:28
dalek kudo-star-daily: 7ac6940 | coke++ | log/ (5 files):
today (automated commit)
benabik [Coke]: Saw the trailer today. It definitely looks like something...
dalek rl6-roast-data: f189a44 | coke++ | / (6 files):
today (automated commit)
[Coke] rakudo.parrot has the fewest failing tests today with 1. 19:29
star is clean, no failures or deprecations. 19:30
benabik \o/ 19:30
moritz \o/ 19:31
[Coke] ^^ s/today/yesterday/ 19:32
today is still running.
planeteria updates are through.
[Coke] parrot 6.1.0 out. 19:32
colomon is cautiously optimistic about Guardians of the Galaxy. 19:36
[Coke] did you see the trailer? 19:40
rurban_ I'm now working to update the nqp new-packfile-api branch (for newer parrots) 19:48
rurban_ Oh, I missed patrick's better pm-packfile-api branch on nqp. Trying that now 20:00
timotimo rurban_: thank you! if you get it to work, ping me a quick message and i'll see to it that it can get into tomorrow's rakudo release 20:14
rurban_ timotimo: there are some merge conflicts I don't really understand yet. Should be easier for a nqp guy 20:15
timotimo i'll have a look 20:16
FROGGS I don't we can release it even if it does work... 20:17
timotimo the only merge conflicts seem to be the stage0 files 20:18
FROGGS as I understand it the perl6 binary will support --target=pbc but not --target=pir afterwards
timotimo oh
so that will change the way we stage0 on parrot
FROGGS I mean, I can be totally off 20:19
rurban_ No, both should be possible
arnsholt o/ 20:19
rurban_ method is_precomp_stage($stage) { 20:20
$stage eq 'pir' || $stage eq 'pbc'
}
so you can still dump to pir
FROGGS that sounds very good 20:23
hi arnsholt
masak arnsholt: \o 20:27
rurban_ I was wrong. nqp-p already works with latest parrot. I did a fresh reinstall. pmichaud already merged pm-packfile-api 4 months ago 20:50
timotimo oh! 20:54
[Coke] yawns. 21:08
dalek rl6-roast-data: 250b4eb | coke++ | / (3 files):
today (automated commit)
lue is :nested(integer) roughly equivalent to =over integer ? 21:08
[Coke] rurban++ 21:10
Mouq lue: I don't think so.. but I'm not sure
also o/
lue \o
Mouq actually 21:11
I think it is
lue Seems like it to me, just wanted to be sure :)
Mouq lue: Looks like it's defined to be a more general nesting than =over, but I think if you implement it the same it should be fine 21:12
lue: Though if this is for the translator, =item already implies nesting in Pod 21:13
*6
lue I just want something to replace =over with, and the only other choice is getting rid of indentation altogether.
Mouq And that's the primary thing I've seen =over used with
lue =over isn't just for item lists though, which is the issue. 21:13
Mouq lue: Yeah, I'd just do it and see how it looks :) 21:14
lue Right now my converter just rewriting a few directives as seen fit. It'll be a while before it can do fancy stuff like replacing =over/=item/=back with =item1, and nested lists, and... 21:16
*converter is just 21:17
Mouq Well, lue++ anyhow :)
lue ooh, I just imagined a nasty corner case with POD5 =item * # is for comments 21:17
lue *facepalm* guess what I just spotted in S26? "To specify an unnumbered list item that starts with a literal #, either make the octothorpe verbatim:" 21:18
timotimo Mouq: did you see what happens with allowed formatting codes in code blocks? 21:34
Mouq timotimo: What do you mean? 21:36
Pod::To::HTML works fine with it btw
gimme a sec to finish a commit and I'll push; it's 99% finished
s/sec/few minutes/ :P 21:37
timotimo: I've been testing my changes on S26 actually, and the examples are much nicer when bits of the code are bolded etc.
lue I can't wait, S26 should look much improved :) (it uses :allow I<a lot>)
Mouq I don't think those tables at the end that have all the C<>s around everything work... I'll have to look into that 21:39
lue timotimo: remember when we were talking about if implicit code blocks should be indented and such? According to S26, code blocks are nested (usually represented as indentation) by default.
Mouq: if they're actually =table tables, then they don't need :allow, each cell should be as a nested =para 21:40
Mouq lue: I know, I don't know what the problem is... 21:43
I'll look at it in a bit
Mouq Does anyone know if there's a less verbose way in NQP to say "return $bool ?? sub-routine('arg', :named, :sometimes) !! sub-routine('arg', :named)" 21:45
lue Mouq: :sometimes($bool) ? 21:47
timotimo lue: i remember that and i forgot why i didn't go ahead and implement my changes 21:48
Mouq: ah, so you made changes to Pod::To::HTML?
Mouq * "return $bool ?? sub-routine('arg', :named($thing), :sometimes($other_thing)) !! sub-routine('arg', :named($thing))" 21:50
timotimo: Nope
timotimo: I needed to fix Pod::To::Text, but Pod::To::HTML just works :)
lue Run this script on a synopsis (I tried S03), and tell me if you see any problems: github.com/lue/pod_vvi 21:51
lue This is the error I get trying to run that: gist.github.com/lue/9102506 21:56
PerlJam lue: run it through the debugger? 21:57
lue looks like a low-level error, but I can tr.. wait, I don't think perl6-debug-m will work
Nope, stupid IO segfaults 21:58
jnthn IO segfaults? 22:02
lue Yeah, I and someone else (can't remember who) run into issues with perl6-debug-m when IO (like open()) is involved, or so it seems. 22:03
Don't have another backend's debugger to see if it's Moar specific or not.
jnthn Dunno. I fixed a debugger issue today that caused issues with for loops...
btyler lue: yep, that was me. I meant to rakudobug it but didn't get to it yesterday
lue jnthn: irclog.perlgeek.de/perl6/2014-02-17#i_8299165 22:04
btyler I'll rebuild moar & company and see if its still happening 22:05
Mouq :/ I'm having a harder time removing this feature than I would adding it. I'm just going to revert the work on it and push. It's a little off topic to the branch I guess 22:06
jnthn I just tried "my $f = open('README'); for $f.lines -> $l { say $l; }" with perl6-debug-m and it worked out ok 22:07
lemme try the exact one
jnthn btyler: I just tried it now and it worked out for me. 22:08
btyler jnthn: great! I'm rebuilding nqp and will try as soon as that finishes 22:09
jnthn btyler: I did fix a bug with for today. I didn't get a SEGV, but I did not a nasty error on JVM, which is where I discovered it
The bug was independent of any particular backend.
Aytan Hello everyone. Can anyone help me with a "simple" @ARGV question, please? 22:10
masak Aytan: sure. it's not @ARGV, it's @*ARGS 22:12
next!
masak grins 22:13
Aytan perl API-CloudSearch.pl drilling, in my code I need to use the "drilling" as a variable. So, I use @ARGV[0]. But the results are VAR1 = "drilling", how do I get just the value and save it to a string variable?
masak Aytan: you might want to try a Perl 5 channel.
geekosaur or are you asking a perl5 question? that'd be #perl
masak Aytan: this is #perl6.
Aytan Oh ok. Sorry about that.
masak no problem. easy mistake to make.
masak .oO( the languages are, like, right next to each other ) 22:14
dalek kudo/pod-code-allow: e08bdbb | Mouq++ | src/Perl6/Actions.nqp:
Fix delimited_code for multiple lines + simplify
22:20
kudo/pod-code-allow: 1217268 | Mouq++ | lib/Pod/To/Text.pm:
Update Pod::To:Text to handle formatted code blocks
kudo/pod-code-allow: 91334ce | Mouq++ | src/Perl6/Grammar.nqp:
Make =code follow spec better
kudo/pod-code-allow: a9cf04d | Mouq++ | src/Perl6/ (2 files):
Add code for "=for code" too
Mouq r: =code :this-should-be-literal␤but isn't␤␤say $=pod 22:23
camelia rakudo-parrot 1d2c43, rakudo-jvm 1d2c43, rakudo-moar 1d2c43: OUTPUT«Pod::Block::Code("config" => "\{\"this-should-be-literal\" => \"1\"}").hash␤ but isn't␤␤␤»
Mouq ^^ I was trying to fix that, but it's not really pressing and it causes all kinds of issues 22:24
timotimo Mouq: what did i do wrong to get Pod::To::HTML to fail with allowed formatting codes? 22:35
tkhey were formatted properly, but outputted in reverse order
Mouq timotimo: Is it like that with the latest? 22:36
timotimo: That was a bug in my own code at a point
timotimo ah, i should update then 22:40
i'm very glad you're doing this 22:41
it kind of plays right into my secret project 22:44
Mouq timotimo: Glad to hear it :) 22:45
lue timotimo: what kind of secret project? :) 22:46
timotimo lue: the lovely kind 22:50
except i'm not actually putting in lots of work yet
though i really should
Mouq r: my token foo { d+ }; 'abcddcd' ~~ /a b [ c ( <foo> ) ]+/; .say for $/ 22:53
camelia rakudo-parrot 1d2c43, rakudo-jvm 1d2c43, rakudo-moar 1d2c43: OUTPUT«「abcddcd」␤ 0 => 「dd」␤ foo => 「dd」␤ 0 => 「d」␤ foo => 「d」␤␤»
Mouq r: my token foo { d+ }; 'abcddcd' ~~ /a b [ c ( <foo> ) ]+/; .say for @$/ 22:54
camelia rakudo-parrot 1d2c43, rakudo-jvm 1d2c43, rakudo-moar 1d2c43: OUTPUT«「dd」␤ foo => 「dd」␤␤「d」␤ foo => 「d」␤␤»
Mouq r: my token foo { d+ }; 'abcddcd' ~~ /a b [ c $<t>=[ <foo> ] ]+/; .<foo>.say for $<t> 22:59
camelia rakudo-parrot 1d2c43, rakudo-jvm 1d2c43, rakudo-moar 1d2c43: OUTPUT«(Any)␤(Any)␤»
Mouq :|
lue r: my token foo { d+ }; 'abcddcd' ~~ /a b [ c $<t>=[ <foo> ] ]+/; say $/ 23:01
camelia rakudo-parrot 1d2c43, rakudo-jvm 1d2c43, rakudo-moar 1d2c43: OUTPUT«「abcddcd」␤ t => 「dd」␤ foo => 「dd」␤ t => 「d」␤ foo => 「d」␤␤»
lue r: my token foo { d+ }; 'abcddcd' ~~ /a b [ c ( <foo> ) ]+/; .<foo>.say for $/ 23:03
camelia rakudo-parrot 1d2c43, rakudo-jvm 1d2c43, rakudo-moar 1d2c43: OUTPUT«(Any)␤»
lue Mouq: What's the problem? Looks to me like you were testing two different things.
Mouq lue: I was trying to figure out how to iterate over something in NQP 23:04
jnthn r: my token foo { d+ }; 'abcddcd' ~~ /a b [ c $<t>=[ <foo> ] ]+/; .<foo>.say for %$<t> 23:13
camelia rakudo-parrot 1d2c43, rakudo-jvm 1d2c43, rakudo-moar 1d2c43: OUTPUT«(Mu)␤»
jnthn oh, no. Hmm. 23:14
r: my token foo { d+ }; 'abcddcd' ~~ /a b [ c $<t>=[ <foo> ] ]+/; say $<t>.WHAT
camelia rakudo-parrot 1d2c43, rakudo-jvm 1d2c43, rakudo-moar 1d2c43: OUTPUT«(Parcel)␤»
jnthn r: my token foo { d+ }; 'abcddcd' ~~ /a b [ c $<t>=[ <foo> ] ]+/; say $<t>
camelia rakudo-parrot 1d2c43, rakudo-jvm 1d2c43, rakudo-moar 1d2c43: OUTPUT«「dd」␤ 「d」␤␤»
jnthn Oh...'cus that doesn't actually make a sub-match I guess. 23:15
pmichaud good afternoon, #perl6 23:24
timotimo hello pmichaud! :)
i hear the newest parrot already works OOTB with current rakudo (the packfile api change) 23:25
pmichaud sure, rakudo supports the new packfile api
fsvo "supports" (in this case, "doesn't break") 23:26
the next step is to enable --target=pbc, which is on my "todo" list.
timotimo ah, ok. so all i'll have to do is bump parrot to the newest version for this motnh's release
pmichaud well, we normally only bump if we need a parrot improvement that the bump provides. 23:30
jnthn o/ pmichaud 23:31
pmichaud o/ jnthn
btyler jnthn: sorry to take so long getting back about the debug segfault. after getting the latest moar/nqp/rakudo all installed on jvm/moar, perl6-debug-m gives me "missing or wrong version of src/gen/m-BOOTSTRAP.nqp". perl6-debug-j works though 23:32
so I imagine I messed up a dependency somewhere along the chain
arnsholt "missing or wrong version" usually means one of your precompiled modules has to be recompiled 23:33
btyler arnsholt: ah ha, yep, thanks. needed to make clean/make install on rakudo::debugger 23:34
btyler and indeed perl6-debug-m works on that gist I posted for me as well. jnthn++ 23:35
jnthn yay
jnthn OK, I should cut the release... 23:37
jnthn uh, ww 23:37