»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg p6eval perl6: ... | irclog: irc.perl6.org/ | UTF-8 is our friend!
Set by sorear on 4 February 2011.
masak \o/ 00:13
tadzik o/ 00:15
masak tadzik: hi! :)
tadzik ohhai :)
masak so... what's up? :) 00:16
jnthn o/ #perl6 00:17
phenny jnthn: 04 Mar 19:04Z <Tene> ask jnthn if he's had time to look at gist.github.com/838498 yet
masak jnthn: rt.perl.org/rt3/Ticket/Display.html?id=78234
jnthn :P
Tene hi jnthn 00:18
jnthn o/
sorear Hello jnthn 00:19
jnthn I'm...a boyut to sleep.
But I'm hackathoning Sun - Tue
So will have time to look \o/
sorear That's all you do anymore :/
jnthn sorear: I know :/
$dayjob :/
Tene jnthn: what time zone are you on?
jnthn European 00:20
masak Central.
jnthn CET
tadzik nopaste.snit.ch/34387
masak sleeps 00:23
jnthn sleeps too...talks tomorrow 00:23
lue hello world! o/ 01:14
colomon lue! \o/ 01:15
lue
.oO(It's funny. There's always a bunch of stuff I want to look up on my computer, but the second I sit down in front of my old laptop, I have trouble remembering :D)
01:18
dalek ecza: 105a947 | sorear++ | lib/ (6 files):
Rename a couple C# types for 6model consistency
02:01
flussence is there a good way to write a test for a function that's supposed to warn() but not die()? lives_ok doesn't differentiate between them 02:07
TimToady warn is supposed to be a control exception, but I doubt rakudo does it right yet 02:14
flussence pretty sure it doesn't... 02:19
rakudo: try { warn; say 'ok'; CONTROL { say 'fail' } } 02:20
p6eval rakudo 413862: ( no output )
flussence er.
rakudo: try { warn; say 'ok'; CONTROL { say 'fail' }; CATCH { say 'double fail' } }
p6eval rakudo 413862: OUTPUT«double fail␤»
flussence (though I think the right fix is for me to rewrite this code so it DWIM without spewing warnings...) 02:21
colomon is feeling defeated by inkscape. 02:57
lue colomon: what's the problem? 04:21
dalek ecza: ce33cb7 | sorear++ | lib/ (3 files):
Refactor away distinction between loc_ vtables and local methods
07:46
sorear out
donri Is <:Letter> NYI? 10:05
Teedev[1] Hi! I newbie in Perl6 10:20
how to install perl6 module? 10:21
tadzik Teedev[1]: you can try neutro, if it works for you. I'm currently in the middle of rewriting/refactoring it, so I'm sorry for alle the breakages :) 10:26
or you can go the old way with ufo?
s/\?$// 10:27
Teedev[1] tadzik,neutro? 10:35
tadzik Teedev[1]: aye. github.com/tadzik/neutro 10:36
you can try either of the branches, there is a chance that one of them will work :) What do you want to install actually?
dalek ast: 9040c15 | moritz++ | S0 (3 files):
unfudge Parcel related tests for niecza
10:57
Teedev[1] tadzik, Unable to find module 'File::Mkdir' in the @*INC directories. 10:58
(@*INC contains:
/home/ron/.perl6/lib
don't have /usr/lib64/parrot/2.5.0/languages/perl6/lib in root directory!!! 10:59
tadzik Teedev[1]: have you read the README instructions?
moritz_ tadzik: nobody ever read READMEs :( 11:02
tadzik: are you in .nl now?
Teedev[1] tadzik, yse i read it
moritz_ Teedev[1]: so which command did you run?
tadzik moritz_: in this particular case I'm unable to determine whether docs are not read, or whether neutro is _so_ broken :)
moritz_: aye, on the workshop 11:03
Teedev[1] # ./bootstrap.sh
tadzik trying the master branch?
Teedev[1] ?
moritz_ looks like 11:04
tadzik anyway, did it clone the git repos, are the "mt" and "ft" directories present?
Teedev[1] teedev:/home/ron/Downloads/tadzik-neutro-c41d1f3 # ls 11:05
bin bootstrap.sh deps.proto ft mt README
tadzik what if you run 'PERL6LIB=mt/lib:ft/lib bin/neutro .'?
colomon lue: when I ask it to install inkscape, macports works for hours and then dies. 11:08
Teedev[1] tadzik, ron@teedev:~/Downloads/tadzik-neutro-c41d1f3> 'PERL6LIB=mt/lib:ft/lib bin/neutro .' 11:09
bash: PERL6LIB=mt/lib:ft/lib bin/neutro .: No such file or directory
ron@teedev:~/Downloads/tadzik-neutro-c41d1f3>
tadzik oh that's weird 11:11
are those mt/ft directories empty?
Teedev[1] tadzik, not empty. 11:12
tadzik, ron@teedev:~/Downloads/tadzik-neutro-c41d1f3> ls mt ft
ft:
lib LICENSE META.info README t
tadzik are the lib is in there? Looks like something's wrong with either your shell or your files, or I'm missing something 11:13
mberends www.perlworkshop.nl/nlpw2011/ rocks! masak++ is starting his talk :-) 11:14
colomon \o/ 11:18
Teedev[1] no time for online 11:22
tadzik, thanks for help me :D 11:23
bye :P บายครับ
tadzik oh, you're welcome. Shame it's not working for you though 11:24
tadzik did skip() stop working recently? 11:38
tadzik rakudo: use Test; plan 1; skip(1, 'foo'); ok 0, 'blah!' 11:44
p6eval rakudo 413862: OUTPUT«1..1␤get_attr_str() not implemented in class 'Sub'␤ in main program body at line 7530␤»
tadzik at least LTA
TimToady donri: <:Foo> was a recent invention, so yes, NYI, I suspect 12:04
TimToady rakudo: say 'a' ~~ <Letter> 12:05
p6eval rakudo 413862: OUTPUT«Bool::False␤»
TimToady rakudo: say 'a' ~~ <isLetter>
p6eval rakudo 413862: OUTPUT«Bool::False␤»
TimToady rakudo: say 'a' ~~ <isL>
p6eval rakudo 413862: OUTPUT«Bool::False␤»
TimToady bleah
ENOBRANE
rakudo: say 'a' ~~ /<Letter>/ 12:06
p6eval rakudo 413862: OUTPUT«Method 'Letter' not found for invocant of class 'Cursor'␤ in <anon> at line 22:/tmp/8uHMHjW3_1␤ in 'Cool::match' at line 2659:CORE.setting␤ in 'Regex::ACCEPTS' at line 6271:CORE.setting␤ in main program body at line 22:/tmp/8uHMHjW3_1␤»
TimToady rakudo: say 'a' ~~ /<isLetter>/
p6eval rakudo 413862: OUTPUT«a␤»
TimToady donri: ^^
that's what it was before we invented <:Letter>
TimToady is logged in from a livecd while copying files off an undead disk drive... 12:07
TimToady ought to be sharpening a wooden stake instead 12:08
TimToady ought to be sleeping, actually, but jetlag hath its uses... 12:20
donri TimToady: Thanks :) also: melatonin 13:00
dalek kudo: 3abc9c8 | tadzik++ | Test.pm:
Add a variant of skip() to Test.pm to overcome RT #85472

Error message taken from Perl 5's Test::More
13:27
flussence argh, Text::Wrap seems to be doing something insane with how it counts \n as part of the line-length. Sometimes it does, sometimes it doesn't. 13:30
dalek kudo: 12dfa0d | tadzik++ | t/01-sanity/99-test-basic.t:
Fix tests of Test.pm to use the right order of arguments.

Add a test for the wrong order.
13:38
kudo: c463f55 | tadzik++ | Test.pm:
[Test.pm] DRY in skip_rest
flussence rakudo: gist.github.com/856374 14:09
p6eval rakudo 413862: OUTPUT«===SORRY!===␤Unable to parse blockoid, couldn't find final '}' at line 28␤»
flussence huh
std: gist.github.com/856374 14:11
p6eval std 4608239: OUTPUT«===SORRY!===␤Non-declarative sigil is missing its name at /tmp/pDZeQSjxmS line 5:␤------> ⏏&[$_]("abcde");␤Preceding context expects a term, but found infix & instead at /tmp/pDZeQSjxmS line 5:␤------>
..⏏&[$_]("abcd…
flussence works locally :/
oh, no it didn't. 14:15
rakudo: given 'say' { &[$_](1) } 14:16
p6eval rakudo 413862: OUTPUT«invoke() not implemented in class 'Any'␤ in main program body at line 22:/tmp/JqHYEJjX9s␤»
flussence rakudo: given 'say' { &[$_].(1) }
p6eval rakudo 413862: OUTPUT«invoke() not implemented in class 'Any'␤ in main program body at line 22:/tmp/4EPFqSRj91␤»
flussence rakudo: given &say { &[$_].(1) }
p6eval rakudo 413862: OUTPUT«Method 'count' not found for invocant of class 'Perl6MultiSub'␤ in 'Any::postcircumfix:<[ ]>' at line 1791:CORE.setting␤ in main program body at line 1␤»
flussence rakudo: given &say { $_.(1) }
p6eval rakudo 413862: OUTPUT«1␤» 14:17
flussence that's the one...
std: gist.github.com/856374
p6eval std 4608239: OUTPUT«===SORRY!===␤Two terms in a row at /tmp/btY8PWby_l line 7:␤------> (given $! { .Str, .WHAT, .perl })⏏».say␤ expecting any of:␤ POST␤ bracketed infix␤ infix or meta-infix␤ postfix␤
..postfix_prefix_meta_operator␤ statement modifier loop␤…
flussence death by mojibake :(
std: gist.github.com/856374 14:18
p6eval std 4608239: OUTPUT«ok 00:01 128m␤»
flussence rakudo: gist.github.com/856374
p6eval rakudo 413862: OUTPUT«&warn␤abcde␤Exception()␤undef␤&die␤abcde␤Exception()␤undef␤»
flussence there we go.
cpk sorear: hi 14:54
nwc10 what is the p5 post referenced in irclog.perlgeek.de/phasers/2011-02-22#i_3323431 ? 16:29
moritz_ nwc10: not yet published, I fear 16:32
nwc10 and that's all we know about it? :-) 16:33
moritz_ we know it's about the 5th task of strangelyconsistent.org/blog/masaks...ng-contest
nwc10 aha thanks. 16:34
flussence Files=15, Tests=91 Result: PASS \o/ 16:39
sorear good * #perl6 17:12
moritz_ \o 17:13
sorear phenny: tell cpk The last two times you've tried to contact me it's been at night. Please either stick around longer, or PM me an e-mail address. 17:14
phenny sorear: I'll pass that on when cpk is around.
sorear wants to do something with <:Letter> 17:44
TimToady still thinks the right path forward is not to use ICU everywhere, but to steal the data out of Perl 5's tables 17:45
sorear Perl 5's table generators are... big. 17:46
I still don't really understand how most of them are put together
TimToady I'm not suggesting stealing the implementation
just the data
sorear but the data changes with each Unicode version 17:47
TimToady and Perl 5 tracks it
sorear tries to quantify opposition to adding 100+ KB of tables 17:48
TimToady at some point we write our own mktables and track it ourselves
sorear currently niecza uses the CLR platform tables 17:49
which include only General_Category and case mapping for characters 0-65535
moritz_ niecza: say uc 'ß'
TimToady most platforms screw up Unicode support
p6eval niecza v3-36-gce33cb7: OUTPUT«ß␤»
moritz_ seems this one does too
sorear What should that produce? SS? 17:50
moritz_ yes
TimToady not that p5 supports that level either by default... 17:51
moritz_ $ perl -Mutf8 -wE 'say uc "ß"'
SS
TimToady -Mutf8 isn't default :/ 17:52
sorear What about "SS" ~~ /ß/i ?
moritz_ matches in Perl 5
sorear What about "ß" ~~ /SS/i ?
What about "ß" ~~ /ss/i ?
moritz_ too 17:53
sorear ...what.
how.
moritz_ magic! 17:53
TimToady p5 canonicalizes to lc
because it understands there is also titlecase 17:54
course, that probably breaks other languages :)
but we're aiming for language independent grapheme semantics, which can't be perfect for everyone 17:55
moritz_ that's ok as long as it's perfect for *me* :-) 17:55
porter235 is anyone packaging rakudo-star for ubuntu? 17:56
moritz_ is not aware of anybody 17:58
tadzik moritz_: my PM pal was doing this some time ago, hang on 18:05
oh that's just Rakudo: launchpad.net/~dexter/+archive/rakudo-pkg 18:06
dalek ecs: 411f2a5 | masak++ | S32-setting-library/Containers.pod:
[S32/Containers] removed parameter to .keys etc

You could match on indexes/keys using an optional parameter on the .keys,
  .values, .pairs, .enums, .kv methods. I discovered this by accident, and
went to check the source of both Rakudo and Niecza. Neither implements this parameter. It's a very old parameter, but it seems no-one has cared about it enough to ask for it or implement it. Besides, there are better, more readable ways to accomplish the same thing:
   %h.values(/^prefix/); # instead of this...
   %h.pairs.grep({.key ~~ /^prefix/})».value; # ...do this
   %h.kv.map({ $^value if $^key ~~ /^prefix/ }); # ...or this
   %h{%h.keys.grep(/^prefix/)}; # ...or even this
There are plenty of alternative ways to emulate the functionality that the parameter provided, all of them (in my opinion) more tractable.
18:27
ecs: d8e2c04 | masak++ | S32-setting-library/Containers.pod:
[S32/Containers] fixed typo
masak oh hai, #perl6 :) 18:29
sorear Hello, masak.
moritz_ \o
masak is drinking whisky and making the spec smaller :P 18:30
if someone will stand up to defend that feature, please get in touch with me. 18:32
flussence dir() has a similar thing, doesn't it? 18:33
moritz_ yes, but it has a good reason
it defaults to none <. ..>
flussence oh, yeah.
masak dir() has other issues :) 18:34
moritz_ yep, returning Strs for one
masak I especially like how .values(/^prefix/) does filtering on the *keys*. 18:34
moritz_ s/does/did/
sorear dir's issues are related to the poor support for qp-y stuff in stadnard Perl 6 18:35
masak moritz_: troo
flussence (maybe Associative should have a match parameter, and dir() should subclass it... :)
sorear should probably implement dir in niecza soon
moritz_ sorear: if you do, use your imagination, and make it better than rakudo's :-)
flussence: noooooo
neither is a dir() listing associative 18:36
masak flussence: what moritz_said.
flussence just kidding :)
moritz_ nor ... oh, there was a ':)' at the end
masak had this been p6l, there wouldn't have been :)
moritz_ how's the workshop going? 18:46
or are you hackathoning today?
masak moritz_: the workshop has finished. it was successful IMO. 19:17
sorear workshop on what? 19:18
masak sorear: Dutch Perl Workshop 2011
masak thelazydeveloper: oh hai 19:29
thelazydeveloper oharrothar
masak :)
sorear Welcome, thelazydeveloper. 19:30
Did masak invite you?
masak not that I know.
rakudo: my @a = 0..3; @a[0, 1] = @a[1, 3]; say @a.perl
p6eval rakudo c463f5: OUTPUT«[1, 3, 2, 3]␤»
thelazydeveloper tips his hat
masak thelazydeveloper: that doesn't mean you shouldn't feel welcome :)
thelazydeveloper narp, he didn't invite
thelazydeveloper takes off his shoes and kicks back 19:31
sorear niecza: my @a = 0..3; @a[0, 1] = @a[1, 3]; say @a.perl
thelazydeveloper Good to know
p6eval niecza v3-36-gce33cb7: OUTPUT«[1, 3, 2, 3]␤»
masak rakudo++ niecza++
thelazydeveloper: nice shoes.
sorear pugs: my @a = 0..3; @a[0, 1] = @a[1, 3]; say @a.perl
p6eval pugs: OUTPUT«[1, 3, 2, 3]␤»
masak pugs++
sorear alpha: my @a = 0..3; @a[0, 1] = @a[1, 3]; say @a.perl 19:32
p6eval alpha : OUTPUT«[1, 3, 2, 3]␤»
masak alpha++ :)
I was trying to break slice assignment today, but I haven't succeeded yet. 19:33
s/break/expose of bug in/
sorear What bug?
masak none in particular.
was just looking for one :)
sorear is trying to figure out unicode case mapping rules 19:35
sorear particular question: how can my $str = "ss"; "ß" ~~ /$str/i possibly work? 19:35
hi cpk 19:36
for once you didn't come at midnight ;)
cpk hi sorear
phenny cpk: 17:14Z <sorear> tell cpk The last two times you've tried to contact me it's been at night. Please either stick around longer, or PM me an e-mail address.
masak is trying to decide what to hackathon on for three days
cpk i'm living in france
cpk sorear: i tried niecza on my home pc (vista 32bits) and i have the same issue 19:37
sorear the runtime version thing? 19:38
cpk sorear: I have seen the IRC log of yesterday
yep
cpk so the v3 is broken when used with microsoft .net 4 ? 19:38
sorear I don't quite know why it's not working with .net 4 19:39
cpk ok
sorear however I know why it's broken with .net 2 / mono 2.6
sorear I'll try to put together a binary release today for the 2.0 runtime 19:40
hopefully that will work better on .net 4
cpk i hope too
masak I'm eager to try v3. did moritz_ succeed in getting .net 4 to work on Debian? 19:41
cpk I can't wait for using niecza on my windows PC ;-)
masak Niecza seems quite popular these days. :)
cpk masak: I like the fact that perl6 starts to work on other VM than parrot 19:43
tadzik it deserves it
sorear Rakudo is also moving to support Java/.net
moritz_ masak: i just recompiled mono from source 19:44
masak: took some time, but worked
masak moritz_: URL?
moritz_ masak: dunno, but easy to google 19:45
masak gotcha.
cpk I have to go, talk to you next week and have fun !
bye
masak cpk: \o
tadzik hrm, could someone take a look at the skip() madness and what currently happens in the spectests? 19:52
moritz_ tadzik: what about it? 19:53
lue hello world!
tadzik moritz_: seen my latest patch? 19:54
lue: hi!
tadzik then take a look at t/spec/S06-multi/proto.rakudo:33 19:54
that case causes an ambigous dispatch I believe 19:55
masak hi lue!
moritz_ tadzik: well, 'skip 1' is not very fortunate
tadzik moritz_: well, skip(1,1) is quite weird anyway 19:56
lue Trying to get the Principle of Explosion to work in Perl 6 is an interesting distraction :)
tadzik but it still feels like this entire multis are a bit wrongish
tadzik so maybe there should be one multi with 2 params, checking whether the first one is Int inside 19:56
lemme code what I think 19:57
moritz_ tadzik: the signature and error message in that skip() multi don'T fit well together either
+# needed because of RT #85472
+multi sub skip(Int $count, $reason) is export {
+ die "skip() was passed a non-numeric number of tests. Did you get the argu
there's no check in there that $reason is non-numeric 19:58
which is why you get that error
tadzik like this: wklej.org/id/487473/
masak lue: getting the principle of explosion "to work" in Perl 6? :)
dalek ast: 20f0418 | moritz++ | S06-multi/proto.t:
improve fudge message
moritz_ rakudo: say pir::null__p() # EXPLOSION
p6eval rakudo c463f5: OUTPUT«Null PMC access in type()␤ in main program body at line 22:/tmp/4NIeUBmR89␤»
masak lue: isn't it, like, a general logical principle that holds all the time and regardless of circumstances? 19:59
lue Er, trying to use the principle of explosion, I meant :)
tadzik moritz_: well, that patch is due to a different error coming from typechecking $count actually, in your patch 19:59
masak lue: the one that says "anything follows from a contradiction"?
lue Yes, that's the one.
moritz_ tadzik: the error message and the check still aren't aligned in that nopaste 19:59
tadzik what do you mean? 20:00
masak lue: I guess I'm having trouble seeing how anything you might write in a program would change the way that principle plays out.
moritz_ tadzik: it says that something is *not* numeric, but you are checking that some *is* an Int
masak lue: it feels like saying "I'm trying to get gravity to work in English".
moritz_ tadzik: how about $count !~~ Int # instead? 20:01
lue I'm just trying to see how I could make $p ^ $q and $p ^ !$q both come out True.
moritz_ rakudo: say so True ^ False 20:02
p6eval rakudo c463f5: OUTPUT«Bool::True␤»
tadzik oh, I see the point
moritz_ rakudo: say so True ^ !False
p6eval rakudo c463f5: OUTPUT«Bool::False␤»
tadzik I just borrowed the message from Test::More
moritz_ just overload infix:<^> to always return True?
masak :P
let's overload Logic!
lue waitaminute. There's a valid so operator‽
moritz_ sure. 20:03
tadzik die "skip() was passed a numeric reason parameter. -- better now?
masak The Operator Formerly Known As 'true'.
lue moritz_: That feels like cheating though.
moritz_ rakudo: say so True ^ any(True, False)
p6eval rakudo c463f5: OUTPUT«Bool::False␤»
moritz_ rakudo: say so True ^ !any(True, False) 20:04
p6eval rakudo c463f5: OUTPUT«Bool::True␤»
moritz_ hm.
problem is that ! doesn't autothraed
sorear perl6: say defined 1 && 0
p6eval niecza v3-36-gce33cb7: OUTPUT«Bool::True␤»
..pugs, rakudo c463f5: OUTPUT«0␤»
flussence takadonet: ping
masak rakudo: say all(True, False).not
p6eval rakudo c463f5: OUTPUT«Bool::True␤»
masak tadzik, jnthn, and I are sitting in the same sofa behind our laptops. people are stopping by all the time pointing out how cute we look. 20:05
moritz_ send pics! 20:06
tadzik hah, hold on
donri What is <EXPR> really? 20:07
masak donri: it's the rule for Perl 6 expressions.
moritz_ a call to a named subrule
donri (In PCT)
tadzik I actually made a screenshot of us :)
masak right, a call to the rule. 20:07
tadzik i.imgur.com/F5GIX.jpg
donri but do my own rules match on <EXPR> somehow? 20:08
lue does say so mean what it does in English, as in "why didn't you just SAY SO‽‽"
sorear TimToady: Now, I'm pondering "ß" ~~ / [:i .] . /
masak donri: not implicitly, no. 20:09
jnthn heh, I forgot to look at the camera :P
moritz_ masak, tadzik: yes, you're a cute bunch
donri masak: but how do you do that then? e.g. if I have a rule for function calls
masak moritz_: :>
sorear tadzik: where are y'all? 20:10
tadzik blushes
sorear: Dutch Perl Workshop
moritz_ donri: maybe you should rephrase your question
sorear Who'se #4?
moritz_ I have a feeling you didn't mean to ask the question that masak++ answered
sorear: mberends
(on the left)
masak donri: what moritz_ said.
donri: I'm getting a bit of an XY problem vibe here. 20:11
donri doesn't EXPR match calls to functions in squaak for example?
but i can't figure out how/why
masak donri: are you writing an HLL? 20:12
donri toying with it yes
masak ok.
then the question makes sense.
moritz_ donri: EXPR generally matches things of the form <term> [<infix> <term>]*
masak but if the Squaak tutorial doesn't do it for you, I'm not sure I can be of much help. :/
donri yea I should probably go to #parrot but, not on freenode :(
moritz_ as well as prefix and postfix operators 20:13
so I hope that your <term> rule matches function calls
sorear [ <prefix>* <term> <postfix>* ] ** <infix> :)
moritz_ sorear: modulo [post]?circumfix
donri is it about naming, e.g. term: rules? 20:14
it's unclear to me when a rule name is significant and not
moritz_ donri: well, all the term:stuff rules are part of the 'proto term { ... }' rule
donri yes, but is that 'term' rule significant in itself? 20:15
sorear 'term' is significant because it has a well known name
donri its name, I mean, is that used by stuff inherited by HLL::Grammar
hm I should go read the source for the parent grammar
sorear NQP's EXPR uses term, I think
donri: it's written in pir, yhbw 20:16
donri hehe
moritz_ but iirc it's commented at a lot
masak moritz_: is it MonoDevelop I should download? it's just version 2.4.2, I thought I was looking for something 4.x 20:21
moritz_ masak: mono-2.10.1.tar.gz or so
masak oh, ok. 20:22
sorear MonoDevelop is an IDE
moritz_ masak: ftp.novell.com/pub/mono/sources/mon....1.tar.bz2 20:23
sorear it is versioned independantly of mono
masak moritz_: thanks.
tadzik bbi60 20:24
and I think I fixed that Test.pm wrongness
donri yay i can has working hll base 20:38
thanks guys
moritz_ in the Perl 5 code I'm writing right now I'd so love to use :$foo to mean foo => $foo 20:46
sorear TimToady: in light of STD.pm6:4290, what does / <[ \ß ]> / mean? :) 21:06
takadonet1 flussence: yo 21:13
flussence I fixed the infinite loop bug! 21:14
takadonet1 !!!!
flussence (and pretty much rewrote all of Text::Wrap doing so)
takadonet1 i knew you could do it
flussence I guess now all that needs doing is cleaning up the leftover p5 pod stuff 21:15
takadonet1 and put your name as the main author :)
flussence hm, I've got half a mind to give you the blame for starting it :) 21:16
takadonet1 sounds good 21:17
flussence: anything else sir? 21:20
sorear after picking over UTS10 and UTS18, I think I understand how this works 21:23
flussence those global vars need to go away at some point, I'll leave them in for compatibility though until I figure out a better way to do it
sorear in particular, "ß" ~~ / :i <!before s> ss / will match :)
slightly counterintuitive but perfectly well-defined 21:24
takadonet1 flussence: ok
moritz_ sorear: as long as we have something to point people to when they submit bug reports... :-)
flussence (hm, perl6.vim seems to have some outdated "#( )" comment syntax instead of "#`( )"...) 21:27
(":1290,1329s/#/#`/g" seems to make it DWIW) 21:29
sorear std: 1 + #( ) 2 21:38
p6eval std 4608239: OUTPUT«===SORRY!===␤Bogus term at /tmp/EXosEXYD8M line 1 (EOF):␤------> 1 + #( ) 2⏏<EOL>␤Other potential difficulties:␤ Embedded comment seems to be missing backtick at /tmp/EXosEXYD8M line 1:␤------> 1 + #( )⏏ 2␤Parse
..failed␤FAIL…
sorear moritz_: what worries me is that said bug reports probably won't be in English 21:39
moritz_ sorear: if they are in German, I can help :-) 21:40
sorear yes, we're quite lucky to have you
but what if they're in Spanish? 21:41
moritz_ I think in general we can ask for English bug reports 21:43
and if we find nobody who translates, and the automatic translation aren't helpful either, we can still reject them
tadzik is back 22:06
moritz_ wb
tadzik rakudo: say $_ while prompt("asd") # is that correct? 22:28
p6eval rakudo c463f5: OUTPUT«asdAny()␤asdAny()␤asdAny()␤asdAny()␤asdAny()␤asdAny()␤asdAny()␤asd»
flussence I'm guessing the intent is to loop until it gets an EOF, right?
jnthn rakudo: while prompt("asd") -> $line { say $line } 22:30
p6eval rakudo c463f5: OUTPUT«asdLand der Berge, Land am Strome,␤asdLand der Äcker, Land der Dome,␤asdLand der Hämmer, zukunftsreich!␤asdHeimat bist du großer Söhne,␤asdVolk, begnadet für das Schöne,␤asdvielgerühmtes Österreich,␤asdvielgerühmtes Österreich!␤asd»
flussence (should prompt() recognise a ^D?)
tadzik flussence: it does
moritz_ tadzik: yes, prompt() doesn't set $_ implicitly 22:36
no function does
sorear hello jnthn 22:38
masak jnthn just went to sleep. 22:39
sorear moritz_: 'while' is supposed to set $_, though
masak sorear: say what? o.O
would you mind checking the spec again?
moritz_ sorear: no.
sorear actually I'm only sure about that in the prefix case
masak sorry, but no. 22:40
actually, I'm not disagreeing with the fact that you're certain about it. :P
sorear interesting, S04 contradicts itself 22:41
moritz_ rakudo: while 3 { .say; last }
p6eval rakudo c463f5: OUTPUT«Any()␤»
moritz_ rakudo: while 3 -> $_ { .say; last }
p6eval rakudo c463f5: OUTPUT«3␤»
moritz_ interesting.
masak not terribly.
moritz_ perl6: while 3 -> $_ { .say; last }
p6eval pugs, rakudo c463f5: OUTPUT«3␤»
..niecza v3-36-gce33cb7: OUTPUT«Unhandled exception: No value in mainline available for parameter $_␤ at /tmp/QlafEZyHqE line 1 (MAIN mainline @ 3)␤ at /home/p6eval/niecza/lib/CORE.setting line 1261 (CORE C524_ANON @ 2)␤ at /home/p6eval/niecza/lib/CORE.setting line 1262 (CORE module-CORE @ 39)␤
..at /home/p6eva…
moritz_ perl6: while 3 { .say; last } 22:42
p6eval niecza v3-36-gce33cb7: OUTPUT«Unhandled exception: Unable to resolve method say in class Any␤ at /tmp/o7uAnmEFKg line 1 (MAIN mainline @ 4)␤ at /home/p6eval/niecza/lib/CORE.setting line 1261 (CORE C524_ANON @ 2)␤ at /home/p6eval/niecza/lib/CORE.setting line 1262 (CORE module-CORE @ 39)␤ at
../home/p6eval/niec…
..rakudo c463f5: OUTPUT«Any()␤»
..pugs: OUTPUT«␤»
dalek ecs: 6828ff4 | sorear++ | S04-control.pod:
Fix self-contradiction in S04
22:43
Tene prods jnthn about future availability to talk about p6object 22:46
masak Tene: not in another 7-8 hours, I'd guess. 22:49
Tene 'k 22:50
flussence Is there an up-to-date .html translation of S26 anywhere?
masak not that I know. 22:53
maybe try generating one with Damian's CPAN module?
donri Is there a better way to do this in nqp? my $int := ""; for $<digit> { $int := $int ~ $_; } 22:55
dalek kudo: d85450a | tadzik++ | Test.pm:
Hopefully fix the skip() insanity
22:56
kudo: bfdd78d | tadzik++ | src/core/List.pm:
Fail when trying to reverse an infinite list
flussence (hmm, I could use that CPAN module, but I prefer the insane method personally...) 22:58
arnsholt donri: The base HLL grammar has a built-in rule for parsing integers, if that's what you're trying 23:25
donri yep but I'm not sure how to extend it
I want to allow commas
arnsholt Hmm. Not sure how to do that, off-hand 23:26
donri I have it working but not very elegant :)
that is, manually with <digit> 23:27
arnsholt You could try looking at Rakudo's grammar. Think it allows _
Working and not elegant beats elegant and not working, any day =) 23:28
donri haha true 23:34
just curious for sake of learning nqp better
arnsholt If you're working on an HLL I can recommend looking into how NQP is built up as well 23:36
Knowing the grammar well enough to see what constructs are avilable is quite useful, and it's useful for building one's own HLL as well =)
donri Everyone is building their own web framework these days; I predict in the future everyone will build their own Parrot HLL for every problem domain. ;) 23:39
(Joke, but not completely.)
Tene donri: answering your specific question, pir::join('', @($<digit>)) 23:52
oslt
donri ooh
Tene donri: alternately, capture it as one string and subst out the ,s oslt 23:53
donri works without the @() 23:54
Tene yeah, rakudo's &radcalc ignores _, and handles alternate bases, etc. 23:56