| Time |
S |
Nick |
Message |
| 00:00 |
|
|
snarkyboojum_ joined #perl6 |
| 00:10 |
|
|
wknight8111 joined #perl6 |
| 00:20 |
|
|
stepnem joined #perl6 |
| 00:25 |
|
snarkyboojum |
sorear: just discovered that ~ is a parser combinator (see http://perlgeek.de/blog-en/per[…]008-10.writeback) |
| 00:25 |
|
snarkyboojum |
in STD.pm |
| 00:31 |
|
|
Sanitoeter joined #perl6 |
| 00:38 |
|
|
yinyin joined #perl6 |
| 00:39 |
|
|
lue joined #perl6 |
| 00:39 |
|
|
stepnem joined #perl6 |
| 00:39 |
|
lue |
...never. again. will I believe that a speed optimization will help _me_ |
| 00:45 |
|
|
ashleydev joined #perl6 |
| 00:45 |
|
lue |
http://en.wikipedia.org/wiki/Main_Page check the first item of In the News! |
| 00:46 |
|
snarkyboojum |
lue: are you finding the new parrot fixes/optimisations helpful during a rakudo build? |
| 00:46 |
|
lue |
no, it hung during the compilatiion of parrot, even after killall perl (which I used to run Configure.pl) :/ |
| 00:47 |
|
snarkyboojum |
lue: bugger - what parrot REV? |
| 00:47 |
|
m6locks |
rakudo: role A { has $!b = 4; method foo() { say $!b; } }; A.foo() |
| 00:48 |
|
lue |
but if you look on the wiki's main page, you'll see that people were 4sent back in time! |
| 00:48 |
|
p6eval |
rakudo 7d00af: OUTPUT«Type objects are abstract and have no attributes, but you tried to access current instr.: 'perl6;A[];foo' pc 615 (EVAL_1:237)» |
| 00:48 |
|
lue |
snarky: don't know -- the latest as defined by rakudo |
| 00:48 |
|
snarkyboojum |
ah ok |
| 00:49 |
|
snarkyboojum |
it'll be defined in build/PARROT_REVISION |
| 00:49 |
|
snarkyboojum |
I'm guessing r45178 |
| 00:50 |
|
lue |
I must contact Sony and figure out their time-travel secrets! |
| 00:51 |
|
snarkyboojum |
well battery about to die (those new macbook pro with 7hr battery life look good :)) |
| 00:51 |
|
snarkyboojum |
well, not new anymore perhaps |
| 00:51 |
|
lue |
I know, I'd like just the battery :) |
| 00:51 |
|
lue |
.oO(I must also contact Nintendo and convince them to use cartridges instead of CDs in their next console) |
| 00:52 |
|
snarkyboojum |
bbl |
| 00:52 |
|
lue |
alright |
| 00:54 |
|
* lue |
is trying to find the names of creators of various programming languages to create a Phoenix Wright parody :) |
| 01:03 |
|
|
snarkyboojum joined #perl6 |
| 01:05 |
|
|
astinus joined #perl6 |
| 01:07 |
|
|
nihiliad joined #perl6 |
| 01:09 |
|
lue |
hai again snarky o/ |
| 01:12 |
|
snarkyboojum |
hi lue \o |
| 01:13 |
|
lue |
I wonder, who created parrot? |
| 01:14 |
|
lue |
(it's hard finding a developer who's last name is somewhat like Edgeworth :/( |
| 01:14 |
|
lue |
s/(/)/ |
| 01:19 |
|
snarkyboojum |
lue: have you read http://www.perl.com/pub/a/2001/04/01/parrot.htm ? |
| 01:20 |
|
snarkyboojum |
enjoyable read :) |
| 01:20 |
|
snarkyboojum |
esp poignant given today's date |
| 01:20 |
|
lue |
is it 4/1 in your area? |
| 01:20 |
|
snarkyboojum |
aye |
| 01:20 |
|
snarkyboojum |
we're halfway through it here |
| 01:20 |
|
lue |
still 3/31 here :) |
| 01:22 |
|
snarkyboojum |
lue: I read this a long time ago too - http://www.sidhe.org/~dan/blog[…]hives/000435.html |
| 01:22 |
|
lue |
17->12 ... (accounting for DST, right now it's 18 PDT) -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2,3,4,5,6,7,8,9,10,11 |
| 01:22 |
|
lue |
you're UTC+11 ! |
| 01:23 |
|
snarkyboojum |
we see the sun come up earlier :P |
| 01:24 |
|
lue |
was I right? |
| 01:24 |
|
snarkyboojum |
yeah |
| 01:25 |
|
* lue |
will post the cast list for the P6 Phoenix Wright parody after finishing it |
| 01:26 |
|
|
astinus joined #perl6 |
| 01:27 |
|
lue |
I'm UTC+3i :) |
| 01:27 |
|
lue |
I tend to drift into UTC-7π though |
| 01:31 |
|
|
am0c joined #perl6 |
| 01:39 |
|
|
astinus joined #perl6 |
| 01:39 |
|
|
meppel joined #perl6 |
| 01:39 |
|
|
meppl joined #perl6 |
| 01:47 |
|
|
simcop2387 joined #perl6 |
| 01:55 |
|
|
Psyche^ joined #perl6 |
| 01:59 |
|
|
sorear joined #perl6 |
| 02:10 |
|
|
simcop2387 joined #perl6 |
| 02:14 |
|
|
hicx174_ joined #perl6 |
| 02:17 |
|
|
ash_ joined #perl6 |
| 02:18 |
|
|
colomon_ joined #perl6 |
| 02:20 |
|
colomon_ |
o/ |
| 02:22 |
|
lue |
o/ colomon_ |
| 02:27 |
|
lue |
rakudo: print eval( say "hi" ) |
| 02:27 |
|
p6eval |
rakudo 7d00af: OUTPUT«hiNominal type check failed for parameter '$code'; expected Str but got Bool insteadcurrent instr.: 'eval' pc 284330 (src/gen/core.pir:0)» |
| 02:28 |
|
lue |
rakudo: print eval(' say "hi" ') |
| 02:28 |
|
p6eval |
rakudo 7d00af: OUTPUT«hi1» |
| 02:30 |
|
lue |
afk |
| 02:31 |
|
snarkyboojum |
rakudo: Perl6::Compiler.eval("say 'See ya lue'"); |
| 02:31 |
|
p6eval |
rakudo 7d00af: OUTPUT«See ya lue» |
| 02:31 |
|
snarkyboojum |
:) |
| 02:33 |
|
snarkyboojum |
you could even do, Perl6::Compiler.compile("say 'See ya lue'", target => 'pir'); to get PIR :) |
| 02:36 |
|
sorear |
Is it just me, or are INIT blocks run twice when Rakudo is loaded as a library |
| 02:36 |
|
sorear |
there's some fishy stuff in gen/core.pir |
| 02:37 |
|
sorear |
:load's !UNIT_START is being passed a reference to a function which also calls !UNIT_START |
| 02:37 |
|
sorear |
while :init's isn't |
| 02:37 |
|
|
jhuni joined #perl6 |
| 02:37 |
|
* sorear |
tries changing it, to see what breaks. |
| 02:43 |
|
am0c |
rakudo: Perl6::Compiler.compile("say 'See ya lue'", target => 'pir'); |
| 02:43 |
|
p6eval |
rakudo 7d00af: ( no output ) |
| 02:43 |
|
* sorear |
wonders how to make need Bot::BasicBot :from<perl5>; class MyBot is Bot::BasicBot { ... } Just Work |
| 02:43 |
|
|
gfx joined #perl6 |
| 02:44 |
|
snarkyboojum |
am0c, you'd need to do something with the output, like say it |
| 02:44 |
|
snarkyboojum |
apologies if that's obvious :) |
| 02:45 |
|
am0c |
ah, thanks! |
| 02:50 |
|
|
JimmyZ joined #perl6 |
| 02:50 |
|
|
ash_ joined #perl6 |
| 02:51 |
|
JimmyZ |
April Fools' Day? Parrot language will be born? |
| 02:52 |
|
sorear |
actually, my goal is to get use Tk :from<perl5>; working |
| 02:52 |
|
sorear |
because apparently there's demand for that |
| 03:06 |
|
|
hitsubunnu joined #perl6 |
| 03:13 |
|
|
hitsubunnu left #perl6 |
| 03:20 |
|
spinclad |
.oO{ quadrupedal negative } # ain't never heard no horse sing no song # another backlogged thought |
| 03:26 |
|
* sorear |
guts the "interesting" logic from comp_unit to see what happens |
| 03:35 |
|
sorear |
Knowledge of PAST would help here. |
| 03:36 |
|
lue |
hai again |
| 03:36 |
|
lue |
it's not 4/1 yet! :) |
| 03:37 |
|
lue |
( I'm waiting for 4/2 -- it's a Hitchhiker's Holy Day :) ) |
| 03:48 |
|
lue |
sorear: there's demand™ for Tk? |
| 03:48 |
|
sorear |
lue: Demand, measured in money |
| 03:48 |
|
sorear |
http://news.perlfoundation.org[…]tk_access_in.html |
| 03:49 |
|
lue |
OK. I was just wondering. (<mumble>not that Qt and GTK are more important</mumble>) |
| 03:52 |
|
sorear |
in about an hour we'll know if my change to Actions.pm did anything useful |
| 03:53 |
|
lue |
Quick! What languages inspired Perl 6? (excluding P5) |
| 03:54 |
|
ash_ |
all of them? |
| 03:54 |
|
sorear |
All of them |
| 03:54 |
|
sorear |
perl 6 is a postmodernist's language |
| 03:54 |
|
lue |
Who knew it'd be so difficult to find the name of a developer who's last name even somewhat resembles 'Edgeworth' ? |
| 03:59 |
|
sorear |
nice, my new rakudo segfaults |
| 03:59 |
|
sorear |
I only changed p6 code |
| 03:59 |
|
lue |
\o/ Segfaults™ |
| 03:59 |
|
lue |
"there should be one—and preferably only one—obvious way to do it" --Python |
| 04:00 |
|
lue |
unfortunately, it never works out that nicely, so always, TIMTOWTDI. |
| 04:01 |
|
lue |
http://en.wikipedia.org/wiki/Perl has a nice "Influenced by" piece :) |
| 04:20 |
|
lue |
.oO(The CEO's of both Microsoft and Apple are named Steve. Interesting) |
| 04:24 |
|
lue |
"Got that? Larry is always right, even when he was wrong." |
| 04:39 |
|
|
alester joined #perl6 |
| 04:40 |
|
|
flight16 joined #perl6 |
| 04:43 |
|
sorear |
ok, trying again |
| 04:46 |
|
lue |
.u hand |
| 04:46 |
|
phenny |
U+270C VICTORY HAND (✌) |
| 04:46 |
|
lue |
✌o✌ |
| 04:47 |
|
lue |
(fingers crossed) |
| 04:53 |
|
am0c |
is that right c-style 'for' statement is named to 'loop' to stop overuse? |
| 04:55 |
|
lue |
rakudo: for (my $i=0; $i<11; $i++) { say $i;}; |
| 04:55 |
|
p6eval |
rakudo 7d00af: OUTPUT«Unsupported use of C-style "for (;;)" loop; in Perl 6 please use "loop (;;)" at line 11, near "(my $i=0; "current instr.: 'perl6;HLL;Grammar;panic' pc 500 (ext/nqp-rx/src/stage0/HLL-s0.pir:328)» |
| 04:55 |
|
lue |
rakudo: loop (my $i=0; $i<11; $i++) { say $i;}; |
| 04:55 |
|
p6eval |
rakudo 7d00af: OUTPUT«012345678910» |
| 04:55 |
|
lue |
I'm not sure _why_, but I know it just is this way. |
| 04:55 |
|
snarkyboojum |
also - loop { say "forever" } :D |
| 04:55 |
|
am0c |
hm - hm - |
| 04:56 |
|
am0c |
i like this syntax. :) heh |
| 04:56 |
|
lue |
rakudo: my %h = (3,4); say %h |
| 04:56 |
|
p6eval |
rakudo 7d00af: OUTPUT«3 4» |
| 04:57 |
|
snarkyboojum |
rakudo: my %h = 3 => 4; say %h; |
| 04:57 |
|
p6eval |
rakudo 7d00af: OUTPUT«3 4» |
| 05:00 |
|
lue |
rakudo: my %h = ('key'=>4); say %h.key('key'); |
| 05:00 |
|
p6eval |
rakudo 7d00af: OUTPUT«Method 'key' not found for invocant of class ''current instr.: '_block14' pc 29 (EVAL_1:0)» |
| 05:00 |
|
lue |
rakudo: my %h = ('key'=>4); say %h.kv('key'); |
| 05:00 |
|
p6eval |
rakudo 7d00af: OUTPUT«Too many positional parameters passed; got 2 but expected 1current instr.: 'perl6;EnumMap;kv' pc 425204 (src/gen/core.pir:61588)» |
| 05:00 |
|
lue |
rakudo: my %h = ('key'=>4); say %h.keys('key'); |
| 05:00 |
|
p6eval |
rakudo 7d00af: OUTPUT«Too many positional parameters passed; got 2 but expected 1current instr.: 'perl6;EnumMap;keys' pc 424921 (src/gen/core.pir:61502)» |
| 05:01 |
|
lue |
rakudo: my %h = ('key'=>4); say %h<key> |
| 05:01 |
|
p6eval |
rakudo 7d00af: OUTPUT«4» |
| 05:01 |
|
lue |
there we go :) |
| 05:02 |
|
lue |
Tomorrow I'll release the current cast for Larry Wright: Ace Attorney. Until then, good night |
| 05:02 |
|
snarkyboojum |
rakudo: my %h = ('key'=>4); %h.perl.say |
| 05:02 |
|
p6eval |
rakudo 7d00af: OUTPUT«{"key" => 4}» |
| 05:03 |
|
snarkyboojum |
rakudo: foreach <1 2 3> { .say }; # shouldn't work |
| 05:03 |
|
p6eval |
rakudo 7d00af: OUTPUT«Confused at line 11, near "foreach <1"current instr.: 'perl6;HLL;Grammar;panic' pc 500 (ext/nqp-rx/src/stage0/HLL-s0.pir:328)» |
| 05:04 |
|
snarkyboojum |
rakudo: for <1 2 3> { .say }; |
| 05:04 |
|
p6eval |
rakudo 7d00af: OUTPUT«123» |
| 05:06 |
|
am0c |
rakudo: for <1 2 3> -> { .say } |
| 05:06 |
|
p6eval |
rakudo 7d00af: OUTPUT«Too many positional parameters passed; got 1 but expected 0current instr.: '_block50' pc 358 (EVAL_1:148)» |
| 05:06 |
|
am0c |
rakudo: for <1 2 3> -> $x { $x.say } |
| 05:06 |
|
p6eval |
rakudo 7d00af: OUTPUT«123» |
| 05:10 |
|
diakopter |
hee http://cappuccino.org/discuss/[…]nagement-problem/ |
| 05:15 |
|
snarkyboojum |
std: foreach <1 2 3> { .say }; # shouldn't work |
| 05:15 |
|
p6eval |
std 30253: OUTPUT«===[0mSORRY!===[0mUnexpected block in infix position (two terms in a row, or previous statement missing semicolon?) at /tmp/xvFVhRh904 line 1:------> foreach <1 2 3> ⏏{ .say }; # shouldn't work expecting any of: bracketed infix infix or |
| 05:15 |
|
p6eval |
..meta-… |
| 05:15 |
|
snarkyboojum |
I was hoping for an awesome-ised error :) |
| 05:16 |
|
snarkyboojum |
rakudo: .say for <1 2 3> |
| 05:16 |
|
p6eval |
rakudo 7d00af: OUTPUT«123» |
| 05:19 |
|
sorear |
ok, this time I got it to compile! |
| 05:19 |
|
sorear |
but it crashes on stage2 startup |
| 05:24 |
|
|
Psyche^ joined #perl6 |
| 05:26 |
|
|
xinming joined #perl6 |
| 05:31 |
|
snarkyboojum |
rakudo: my $x = * ** *; say <1 2 3>.map: $x |
| 05:31 |
|
p6eval |
rakudo 7d00af: OUTPUT«Method 'Num' not found for invocant of class 'Block'current instr.: 'perl6;Mu;' pc -1 ((unknown file):-1)» |
| 05:32 |
|
snarkyboojum |
alpha: my $x = * ** *; say <1 2 3>.map: $x |
| 05:32 |
|
p6eval |
alpha 30e0ed: OUTPUT«1427» |
| 05:32 |
|
snarkyboojum |
std: my $x = * ** *; say <1 2 3>.map: $x |
| 05:32 |
|
p6eval |
std 30253: OUTPUT«ok 00:01 107m» |
| 05:38 |
|
sorear |
it looks like my crash was just caused by using a stale Makefile |
| 05:54 |
|
pugssvn |
r30254 | lwall++ | [STD] awesomize foreach message for snarkyboojum++ |
| 05:54 |
|
snarkyboojum |
std: foreach <1 2 3> { .say }; |
| 05:54 |
|
p6eval |
std 30253: OUTPUT«===[0mSORRY!===[0mUnexpected block in infix position (two terms in a row, or previous statement missing semicolon?) at /tmp/jKsGS5pwvE line 1:------> foreach <1 2 3> ⏏{ .say }; expecting any of: bracketed infix infix or |
| 05:54 |
|
p6eval |
..meta-infixUndeclared … |
| 05:54 |
|
TimToady |
has to recompile |
| 05:54 |
|
snarkyboojum |
TimToady++ |
| 05:54 |
|
TimToady |
may take an hour |
| 05:55 |
|
sorear |
STD takes an hour to recompile? |
| 05:55 |
|
sorear |
or do you mean cron timing |
| 05:55 |
|
TimToady |
the latter |
| 05:55 |
|
snarkyboojum |
now that's what you call user-centred programming language design :) |
| 05:59 |
|
TimToady |
zzz & |
| 06:03 |
|
|
hudnix joined #perl6 |
| 06:10 |
|
jnthn |
ergh...early mornings suck... |
| 06:14 |
|
sorear |
hello! |
| 06:14 |
|
jnthn |
oh hai |
| 06:15 |
|
sorear |
jnthn: Why does dalek only announce Blizkost commits in a channel you aren't even in? |
| 06:16 |
|
jnthn |
sorear: I'm not sure...I didn't set it up. :-) |
| 06:17 |
|
sorear |
it spams in #parrot anyhow |
| 06:17 |
|
jnthn |
I only noticed they were reported at all when you mentioned this last time. :-) |
| 06:17 |
|
jnthn |
We could ask for it to spam here too probably. ;-) |
| 06:18 |
|
sorear |
argharghargh my fix didn't work |
| 06:19 |
|
jnthn |
Gotta associate with some folks in Malmö, so I'd best commute. bbl. |
| 06:22 |
|
diakopter |
std: foreach <1 2 3> { .say }; |
| 06:22 |
|
p6eval |
std 30254: OUTPUT«===[0mSORRY!===[0mUnexpected block in infix position (two terms in a row, or previous statement missing semicolon?) at /tmp/9Z3fTVXq7u line 1:------> foreach <1 2 3> ⏏{ .say }; expecting any of: bracketed infix infix or |
| 06:22 |
|
p6eval |
..meta-infixUndeclared … |
| 06:24 |
|
sorear |
I give up |
| 06:24 |
|
sorear |
somebody else, please make parrot-nqp -e 'pir::load_bytecode("perl6.pbc")' not die messily |
| 06:27 |
|
sorear |
what was the rakudobug address? |
| 06:32 |
|
snarkyboojum |
rakudobug perl.org ? |
| 06:33 |
|
snarkyboojum |
from the README at http://github.com/rakudo/rakudo |
| 06:36 |
|
|
daemon joined #perl6 |
| 06:50 |
|
|
hudnix joined #perl6 |
| 06:55 |
|
snarkyboojum |
std: foreach <1 2 3> { .say }; |
| 06:55 |
|
p6eval |
std 30254: OUTPUT«===[0mSORRY!===[0mUnexpected block in infix position (two terms in a row, or previous statement missing semicolon?) at /tmp/J9GoXFc9Xl line 1:------> foreach <1 2 3> ⏏{ .say }; expecting any of: bracketed infix infix or |
| 06:55 |
|
p6eval |
..meta-infixUndeclared … |
| 07:10 |
|
|
rgrau joined #perl6 |
| 07:14 |
|
|
iblechbot joined #perl6 |
| 07:15 |
|
|
Dystopia joined #perl6 |
| 07:16 |
|
snarkyboojum |
std: foreach <1 2 3> { .say }; |
| 07:16 |
|
p6eval |
std 30254: OUTPUT«===[0mSORRY!===[0mUnsupported use of 'foreach'; in Perl 6 please use 'for' at /tmp/r9FOJ7cRKf line 1:------> foreach⏏ <1 2 3> { .say };FAILED 00:01 107m» |
| 07:17 |
|
snarkyboojum |
awesome :) TimToady++ :) |
| 07:19 |
|
|
Dystopia left #perl6 |
| 07:30 |
|
|
felipe joined #perl6 |
| 07:45 |
|
mathw |
Morning |
| 07:51 |
|
|
[opx] joined #perl6 |
| 07:54 |
|
|
JimmyZ joined #perl6 |
| 08:15 |
|
|
Sarten-X joined #perl6 |
| 08:59 |
|
|
Su-Shee joined #perl6 |
| 09:05 |
|
|
pmurias joined #perl6 |
| 09:07 |
|
|
jaldhar joined #perl6 |
| 09:15 |
|
|
leon_mu joined #perl6 |
| 09:15 |
|
|
Chillance joined #perl6 |
| 09:19 |
|
moritz_ |
\o/ first day at $work, seems they allow ssh connections to the outside :-) |
| 09:19 |
|
|
astrojp joined #perl6 |
| 09:20 |
|
mathw |
\o/ |
| 09:22 |
|
|
hanekomu joined #perl6 |
| 09:24 |
|
* jnthn |
back from $meeting |
| 09:25 |
|
* mathw |
back from @meeting[0], waiting for @meeting[1] |
| 09:26 |
|
jnthn |
Ah, I'm done for the day on @meeting :-) |
| 09:28 |
|
|
[opx] joined #perl6 |
| 09:45 |
|
|
hudnix joined #perl6 |
| 09:50 |
|
|
xomas joined #perl6 |
| 09:55 |
|
|
leon_mu left #perl6 |
| 10:08 |
|
|
masak joined #perl6 |
| 10:08 |
|
masak |
oh hai, #perl6 |
| 10:09 |
|
jnthn |
lolitsmasak |
| 10:30 |
|
colomon |
o/ |
| 10:30 |
|
jnthn |
o/ colomon |
| 10:31 |
|
* masak |
realizes that 'also' is a kind of assymmetric dual to '.each' |
| 10:32 |
|
masak |
from the description at http://perlgeek.de/blog-en/per[…]2008-10.writeback , I don't immediately see why I'd want to use 'also' rather than 'and' or '&&'... |
| 10:33 |
|
masak |
hm, ISTR infix:<also> was subsequently named infix:<andthen>... |
| 10:33 |
|
jnthn |
I think andthen probably captures the ordered semantics better. |
| 10:34 |
|
masak |
ok; in what way? |
| 10:35 |
|
masak |
hm, from S03 I gather that it's sort of a loose opposite of // |
| 10:35 |
|
jnthn |
"jnthn is drinking pivo and also vodka" vs "jnthn is drinking pivo and then vodka" - in one it could be the two at once (eww) but in the the second it's much clearer it's one then the other. |
| 10:35 |
|
masak |
and 'orelse' is a loose version of // |
| 10:36 |
|
masak |
jnthn: but 'test1() and test2()' is sequential too, and always was. |
| 10:36 |
|
masak |
ok, 'andthen' does things with INVISIBLE BLOCKS. |
| 10:36 |
|
jnthn |
and failures |
| 10:36 |
|
jnthn |
Yeah |
| 10:36 |
|
masak |
a bit like a monad would, I guess. |
| 10:37 |
|
jnthn |
That's a scary world. |
| 10:37 |
|
moritz_ |
masak: and by INVISIBLE BLOCKS you mean.. thunks? :-) |
| 10:37 |
|
jnthn |
.u INVISIBLE BLOCK |
| 10:37 |
|
phenny |
jnthn: Sorry, no results for 'INVISIBLE BLOCK'. |
| 10:37 |
|
jnthn |
.u INVISIBLE |
| 10:37 |
|
phenny |
U+2062 INVISIBLE TIMES () |
| 10:37 |
|
jnthn |
:-) |
| 10:37 |
|
jnthn |
There's still (to me) no difference between a block and a thunk, fwiw. |
| 10:37 |
|
moritz_ |
masak: btw after our discussion about joining the community, I backlogged very far to see what you first asked in here... it was what a thunk is :-) |
| 10:38 |
|
moritz_ |
jnthn: there should be one, in that a thunk does not introduce a scope |
| 10:38 |
|
jnthn |
(at the "what they compile to" level |
| 10:38 |
|
jnthn |
moritz_: I don't have a way to implement that. |
| 10:38 |
|
jnthn |
Well, not easily at least. |
| 10:38 |
|
moritz_ |
std: my $x = Any // (my $y = 6); say $y |
| 10:38 |
|
p6eval |
std 30254: OUTPUT«ok 00:01 109m» |
| 10:39 |
|
|
payload joined #perl6 |
| 10:39 |
|
moritz_ |
rakudo: my $x = Any // (my $y = 6); say $y |
| 10:39 |
|
p6eval |
rakudo 7d00af: OUTPUT«6» |
| 10:39 |
|
moritz_ |
jnthn: that's another matter |
| 10:39 |
|
moritz_ |
wow |
| 10:39 |
|
jnthn |
I hadn't really regarded that as a thunk. |
| 10:39 |
|
jnthn |
To me that kinda isn't one. |
| 10:39 |
|
jnthn |
I mean, it's just syntactic sugar for an "if"-ish kinda thing |
| 10:40 |
|
jnthn |
But we don't have to run the code at some unknown point in the future and called from a different place. |
| 10:40 |
|
jnthn |
Hmm...maybe we need to distinguish the two somehow. |
| 10:40 |
|
moritz_ |
maybe |
| 10:41 |
|
moritz_ |
or maybe my idea of "thunk" is not yet fine grained enough |
| 10:41 |
|
jnthn |
Or maybe mine isn't either. :-) |
| 10:41 |
|
jnthn |
Or our ideas of thunks don't entirely overlap. |
| 10:42 |
|
moritz_ |
$str ~~ s[foo] = $code |
| 10:42 |
|
moritz_ |
$code is a thunk here, right? |
| 10:42 |
|
|
iblechbot joined #perl6 |
| 10:42 |
|
jnthn |
It's turned into a closure |
| 10:42 |
|
masak |
for your definition of thunk, yes. :) |
| 10:42 |
|
jnthn |
I think the spec even says it should be though. |
| 10:42 |
|
masak |
std: sub foreach(@list) {}; foreach <1 2 3> |
| 10:42 |
|
p6eval |
std 30254: OUTPUT«===[0mSORRY!===[0mUnsupported use of 'foreach'; in Perl 6 please use 'for' at /tmp/tSpGyjbHyD line 1:------> sub foreach(@list) {}; foreach⏏ <1 2 3>FAILED 00:01 107m» |
| 10:42 |
|
masak |
TimToady: ^ |
| 10:43 |
|
jnthn |
ooh! |
| 10:43 |
|
jnthn |
From S05: |
| 10:43 |
|
jnthn |
This is not a normal assigment, since the right side is evaluated each |
| 10:43 |
|
jnthn |
time the substitution matches (much like the pseudo-assignment to declarators |
| 10:43 |
|
jnthn |
can happen at strange times). It is therefore treated as a "thunk", that is, |
| 10:43 |
|
jnthn |
as if it has implicit curlies around it. |
| 10:44 |
|
jnthn |
Thus thunk = implicit curlies = scope? :-) |
| 10:44 |
|
|
clintongormley joined #perl6 |
| 10:44 |
|
moritz_ |
that's the big question |
| 10:44 |
|
jnthn |
:-) |
| 10:44 |
|
jnthn |
Maybe the distinction is thunk vs "thunk" ;-) |
| 10:45 |
|
moritz_ |
:-) |
| 10:45 |
|
jnthn |
But don't quote me on it. |
| 10:45 |
|
|
avuserow joined #perl6 |
| 10:49 |
|
moritz_ |
it seems the parrot folks have improved the string handling quite a bit |
| 10:49 |
|
moritz_ |
so please folks, test rakudo (compilation + spectest) on parrot r45367 |
| 10:50 |
|
* moritz_ |
can't, due to absense from $home computer |
| 10:51 |
|
|
xabbu42 joined #perl6 |
| 10:52 |
|
* snarkyboojum |
testing |
| 10:52 |
|
* mathw |
eagerly awaits the outcome |
| 10:52 |
|
snarkyboojum |
"chromatic: Rakudo !perl 6 compiles five times faster with a simpler four line change from me and @bacek. Should run faster too" - sounds promising :) |
| 10:59 |
|
|
payload joined #perl6 |
| 11:00 |
|
* jnthn |
will try it too |
| 11:00 |
|
snarkyboojum |
real 4m17.106s on my machine during make - felt much faster |
| 11:01 |
|
snarkyboojum |
should have done a build prior to bumping parrot rev |
| 11:02 |
|
snarkyboojum |
used to take more than 10 |
| 11:02 |
|
snarkyboojum |
at the very least :) |
| 11:06 |
|
|
hudnix joined #perl6 |
| 11:11 |
|
|
hudnix joined #perl6 |
| 11:22 |
|
jnthn |
rakudo: say 252 / 60 |
| 11:22 |
|
p6eval |
rakudo 7d00af: OUTPUT«4.2» |
| 11:22 |
|
jnthn |
rakudo: say 0.2 * 60 |
| 11:22 |
|
p6eval |
rakudo 7d00af: OUTPUT«12» |
| 11:22 |
|
jnthn |
My build takes 4 mins 12 seconds now :-) |
| 11:23 |
|
snarkyboojum |
spectest ran in under 20 mins on my little lappy |
| 11:23 |
|
snarkyboojum |
but I got a fail in S12-methods/instance.t |
| 11:24 |
|
jnthn |
I think I accidentally that test yesterday. :-( |
| 11:25 |
|
snarkyboojum |
it's the 'dies_ok( { Zoo.new.c }, "meth(%h) is not a valid method call syntax"' test |
| 11:26 |
|
dalek |
rakudo: 0dcfc67 | (Solomon Foster)++ | src/core/Any-num.pm: |
| 11:26 |
|
dalek |
rakudo: Rewrite Any.abs to dispatch to the proper Numeric role. |
| 11:26 |
|
dalek |
rakudo: review: http://github.com/rakudo/rakud[…]0fb6368f74a5446b3 |
| 11:26 |
|
jnthn |
Yup |
| 11:26 |
|
jnthn |
$*SCOPE somehow leaks. |
| 11:27 |
|
jnthn |
And ourses something it shouldn't. |
| 11:28 |
|
snarkyboojum |
:| |
| 11:28 |
|
snarkyboojum |
more contextuals fun |
| 11:30 |
|
|
M_o_C joined #perl6 |
| 11:31 |
|
snarkyboojum |
w00t.. touched a file in builtins and in core and did a make - 2m30s :) |
| 11:36 |
|
snarkyboojum |
just pulled colomon's change to Any-num.pm and did a make - 2m31s :) |
| 11:36 |
|
snarkyboojum |
ok I'll stop now |
| 11:36 |
|
colomon |
:) |
| 11:48 |
|
m6locks |
so hows things with that debugger, i'd seriously like to have one |
| 11:48 |
|
m6locks |
regards, newbie |
| 11:49 |
|
m6locks |
it's not that i can't survive without it, i's just that it's pretty time-consuming adding a thousand lines of say "$thisvariable" |
| 11:50 |
|
m6locks |
cs i make a lot of mistakes ;P |
| 11:52 |
|
|
meppl joined #perl6 |
| 11:54 |
|
|
hanekomu joined #perl6 |
| 11:55 |
|
dalek |
rakudo: a1a04af | jonathan++ | build/PARROT_REVISION: |
| 11:55 |
|
dalek |
rakudo: Bump to latest Parrot that includes build performance improvements. |
| 11:55 |
|
dalek |
rakudo: review: http://github.com/rakudo/rakud[…]6fd6faf4aac7582e3 |
| 11:59 |
|
colomon |
So this is the bump that will slow down our builds again, right? ;) |
| 11:59 |
|
moritz_ |
colomon: I hope not |
| 11:59 |
|
masak |
over at StackOverflow today, everyone's picture has been replaced by a colorful unicorn... |
| 12:00 |
|
moritz_ |
colomon: there was a commit that should fix the slowness that was introduces by the memory savings |
| 12:00 |
|
jnthn |
colomon: No, the performance has been improved as well as the memory usage now. :-) |
| 12:00 |
|
colomon |
\o/ |
| 12:00 |
|
jnthn |
colomon: It built fast enough for me. |
| 12:00 |
|
jnthn |
Possibly faster than before the memory improvements. |
| 12:00 |
|
snarkyboojum |
2.5 min builds are rocking here |
| 12:01 |
|
colomon |
wow, that's a lot of parrot update. |
| 12:03 |
|
moritz_ |
is Z, the same as Z (as an infix operator)? |
| 12:03 |
|
jnthn |
Think so. |
| 12:03 |
|
moritz_ |
rakudo: say <a b c> Z, <1 2 3> |
| 12:03 |
|
p6eval |
rakudo 0dcfc6: OUTPUT«a 1b 2c 3» |
| 12:03 |
|
jnthn |
rakudo: say <a b c> Z <1 2 3> |
| 12:03 |
|
p6eval |
rakudo 0dcfc6: OUTPUT«a1b2c3» |
| 12:03 |
|
moritz_ |
rakudo: say (<a b c> Z, <1 2 3>).perl |
| 12:04 |
|
p6eval |
rakudo 0dcfc6: OUTPUT«(("a", "1"), ("b", "2"), ("c", "3"))» |
| 12:04 |
|
* masak |
smells a bug |
| 12:04 |
|
moritz_ |
well, I think the parcels should flatten in list context |
| 12:05 |
|
colomon |
rakudo: say (<a b c> Z <1 2 3>).perl |
| 12:05 |
|
p6eval |
rakudo 0dcfc6: OUTPUT«("a", "1", "b", "2", "c", "3")» |
| 12:06 |
|
jnthn |
aye |
| 12:06 |
|
colomon |
I think we still have flattening issues... |
| 12:06 |
|
jnthn |
EOUTOFSTEAMROLLERS |
| 12:08 |
|
* masak |
submits rakudobug |
| 12:10 |
|
|
JimmyZ joined #perl6 |
| 12:10 |
|
JimmyZ |
hello, moritz_ |
| 12:11 |
|
colomon |
Z doesn't even try to return the pairs as a parcel. |
| 12:11 |
|
moritz_ |
good localtime() JimmyZ |
| 12:11 |
|
colomon |
I have a vague memory that bad things happened when I did try to return the pairs that way. |
| 12:12 |
|
JimmyZ |
I saw there were two Announce of release #27 on rakudo.org |
| 12:12 |
|
moritz_ |
JimmyZ: aye. Before I wrote the second, the first one would not show up |
| 12:12 |
|
moritz_ |
I fear that deleting one takes down the other |
| 12:12 |
|
JimmyZ |
oh |
| 12:12 |
|
takadonet1 |
morning all |
| 12:13 |
|
|
writer joined #perl6 |
| 12:14 |
|
colomon |
o/ |
| 12:14 |
|
|
ruoso joined #perl6 |
| 12:14 |
|
masak |
takadonet1: \o |
| 12:14 |
|
writer |
Hi everyone |
| 12:15 |
|
takadonet1 |
writer: hey |
| 12:15 |
|
* writer |
tried to run a program from the perl6 book and got this error: http://pastebin.com/1d5VmLCt |
| 12:15 |
|
writer |
hello takadonet1 :) |
| 12:15 |
|
masak |
writer: I'll have a look. we don't expect all programs from the book to run on master yet... |
| 12:15 |
|
writer |
Oh, okay. |
| 12:15 |
|
moritz_ |
writer: it's a known problem of the current rakudo |
| 12:16 |
|
writer |
BtW, I'm running rakudo 2010.03 with 2.2.0 |
| 12:16 |
|
moritz_ |
writer: you can work around it by changing line 27 to read # |
| 12:16 |
|
moritz_ |
my @sorted = @names.sort({ %sets{$_} }).Seq.sort({ %games{$_} }).reverse; |
| 12:16 |
|
* masak |
grumbles |
| 12:16 |
|
masak |
a paste service that can't copy/paste properly has missed something. |
| 12:17 |
|
moritz_ |
with rakudo 2010.01 it should work (after that some regressions were introduces by a huge rewrite) |
| 12:17 |
|
writer |
thanks moritz_ masak |
| 12:18 |
|
m6locks |
rakudo: role A { method foo($arg is rw) { $arg = 42; return $arg; } }; say A.foo(6) |
| 12:18 |
|
p6eval |
rakudo 0dcfc6: OUTPUT«Cannot assign to readonly valuecurrent instr.: '&die' pc 17192 (src/builtins/Junction.pir:399)» |
| 12:18 |
|
writer |
so ideally, you don't need '.Seq' ? |
| 12:18 |
|
m6locks |
shouldn't that argument be rw? |
| 12:18 |
|
moritz_ |
writer: no, you don't |
| 12:18 |
|
moritz_ |
m6locks: how do you write to the integer 6? |
| 12:19 |
|
writer |
okay, thanks |
| 12:19 |
|
moritz_ |
m6locks: in ideal Perl 6, the binding of the signature would already fail |
| 12:19 |
|
moritz_ |
because 6 is not writeable |
| 12:19 |
|
moritz_ |
in rakudo only the assignment fails |
| 12:20 |
|
m6locks |
ok, but can i has rw arguments at all? |
| 12:20 |
|
moritz_ |
sure |
| 12:20 |
|
jnthn |
Yes, but you need to pass in a variable. :-) |
| 12:21 |
|
jnthn |
The binder should akshually check it for you... |
| 12:21 |
|
m6locks |
rakudo: role A { method foo($arg is rw) { $arg = 42; return $arg; } }; my $six = 6; say A.foo($six) |
| 12:21 |
|
p6eval |
rakudo 0dcfc6: OUTPUT«42» |
| 12:21 |
|
m6locks |
ok, workd |
| 12:21 |
|
m6locks |
:) |
| 12:22 |
|
jnthn |
rakudo: say [min] <man e kass> |
| 12:22 |
|
p6eval |
rakudo 0dcfc6: OUTPUT«e» |
| 12:25 |
|
snarkyboojum |
masak: pity about the foreach issue you noted |
| 12:25 |
|
colomon |
alpha: for <a b c> Z <1 2 3> -> $x { say $x; } |
| 12:25 |
|
p6eval |
alpha 30e0ed: OUTPUT«a1b2c3» |
| 12:26 |
|
colomon |
> for <a b c> Z <1 2 3> -> $x { say $x; } |
| 12:26 |
|
colomon |
a 1 |
| 12:26 |
|
colomon |
b 2 |
| 12:26 |
|
colomon |
c 3 |
| 12:26 |
|
colomon |
(that's with Z patched to be Z,) |
| 12:26 |
|
* moritz_ |
doesn't think that's correct |
| 12:26 |
|
colomon |
as far as I know, alpha is correct here. |
| 12:30 |
|
masak |
snarkyboojum: yes, well, Perl tends to favour a "liberty at all costs" party line. it'd be strange if you were allowed to call your subs "sub", "loop". "while". "class" and "multi", but not "foreach" :) |
| 12:31 |
|
snarkyboojum |
I'd still like an awesomized error message tho :) |
| 12:31 |
|
jnthn |
Just change it to |
| 12:31 |
|
masak |
yes, me too. |
| 12:31 |
|
jnthn |
<sym> <!before '('> |
| 12:32 |
|
jnthn |
or better, <sym> <.nofun> |
| 12:32 |
|
snarkyboojum |
excellent :) |
| 12:32 |
|
jnthn |
btw |
| 12:32 |
|
jnthn |
rakudo: /lol/i |
| 12:32 |
|
p6eval |
rakudo 0dcfc6: OUTPUT«Unsupported use of /i; in Perl 6 please use :i at line 11, near ""current instr.: 'perl6;HLL;Grammar;panic' pc 500 (ext/nqp-rx/src/stage0/HLL-s0.pir:328)» |
| 12:32 |
|
jnthn |
rakudo: class A { }; my $x = new A(); |
| 12:32 |
|
p6eval |
rakudo 0dcfc6: OUTPUT«Unsupported use of C++ constructor syntax; in Perl 6 please use method call syntax at line 11, near "();"current instr.: 'perl6;HLL;Grammar;panic' pc 500 (ext/nqp-rx/src/stage0/HLL-s0.pir:328)» |
| 12:32 |
|
snarkyboojum |
w00t |
| 12:33 |
|
snarkyboojum |
so v. cool :) |
| 12:35 |
|
snarkyboojum |
I'd like to add the @array = [Proxy.new, Proxy.new], ok !@array.exists(2) type test to S32-array/exists.t :), but that's probably not appropriate if Proxy is temporary |
| 12:35 |
|
snarkyboojum |
but would make exists fail :P |
| 12:36 |
|
masak |
snarkyboojum: try to create the two proxies in some other way. |
| 12:36 |
|
masak |
for example by using .delete |
| 12:36 |
|
snarkyboojum |
masak: I like it - will have a tinker |
| 12:36 |
|
|
bphillips joined #perl6 |
| 12:38 |
|
bphillips |
I'm not sure who owns this but the rakudo.org RSS feed is broken (doesn't show any updates since February 2009 |
| 12:41 |
|
masak |
bphillips: thanks for letting us know. I also don't really know who has responsibility. |
| 12:41 |
|
masak |
maybe pmichaud. |
| 12:42 |
|
writer |
Is perl6 also a lazy language like haskell ? |
| 12:43 |
|
colomon |
writer: I think haskell may be more lazy, but basically yes. |
| 12:44 |
|
masak |
writer: there's a tendency to make list-like things lazy in Perl 6. |
| 12:46 |
|
colomon |
rakudo: (1, 1, *+* ... * ZR~ 'a'..'z').perl.say |
| 12:46 |
|
p6eval |
rakudo a1a04a: ( no output ) |
| 12:46 |
|
writer |
so this means, if I never used value from of a function invocation, then that function will never be invoked ? or it is just applicable to list, like if I read a whole 3G file in memory $file.get and then never used it, then that will not any cause disk activity ? |
| 12:47 |
|
colomon |
writer: functions are generally not lazy in p6 |
| 12:47 |
|
JimmyZ |
rakudo: ( 1+1, (2+2).say).perl.say |
| 12:47 |
|
p6eval |
rakudo a1a04a: OUTPUT«4(2, Bool::True)» |
| 12:48 |
|
colomon |
if you read the file using $file.lines and don't do anything with it, that shouldnot cause disk activity. (Ideally, may still be some issues in the current Rakudo implementation.) |
| 12:48 |
|
jnthn |
writer: In that case, you probably want $file.lines, for example. But that will return an iterator. |
| 12:48 |
|
jnthn |
Thus only reading the file if you iterate it. |
| 12:48 |
|
masak |
rakudo: say say say say 1 |
| 12:48 |
|
p6eval |
rakudo a1a04a: OUTPUT«1111» |
| 12:48 |
|
masak |
:P |
| 12:49 |
|
JimmyZ |
rakudo: ( 1+1, (2+2).WHAT.say).perl.say |
| 12:49 |
|
writer |
okay |
| 12:49 |
|
p6eval |
rakudo a1a04a: OUTPUT«Int()(2, Bool::True)» |
| 12:49 |
|
jnthn |
Perl 6. Stuttering compatible. :-) |
| 12:50 |
|
colomon |
rakudo: ((1, 1, *+* ... *) ZR~ 'a'..'z').perl.say |
| 12:50 |
|
p6eval |
rakudo a1a04a: OUTPUT«("a1", "b1", "c2", "d3", "e5", "f8", "g13", "h21", "i34", "j55", "k89", "l144", "m233", "n377", "o610", "p987", "q1597", "r2584", "s4181", "t6765", "u10946", "v17711", "w28657", "x46368", "y75025", "z121393")» |
| 12:51 |
|
masak |
that's crazy :) |
| 12:52 |
|
* moritz_ |
loves craziness |
| 12:52 |
|
snarkyboojum |
rakudo: say say say say 2 |
| 12:52 |
|
p6eval |
rakudo a1a04a: OUTPUT«2111» |
| 12:52 |
|
snarkyboojum |
it changed my stutter! |
| 12:52 |
|
snarkyboojum |
:P |
| 12:53 |
|
jnthn |
> foreach my $x (1,2,3) { } |
| 12:53 |
|
jnthn |
Unsupported use of 'foreach'; in Perl 6 please use 'for' at line 1 (1," |
| 12:53 |
|
jnthn |
> sub foreach() { say "pijem rad pivo" }; foreach() |
| 12:53 |
|
jnthn |
pijem rad pivo |
| 12:53 |
|
colomon |
writer: took me a minute to get that right, needed the extra parens. anyway, (1, 1, *+* ... *) is the infinite Fibonacci series, but because lists are lazy, there's no problem using it. In this case, the ZR~ operation stops when either side runs out of elements. |
| 12:55 |
|
writer |
okay, I'm still understanding, btw, regarding the code I posted, I added: "@names.sort({ %sets{$_} }).WHAT.say;  @names.sort({ %sets{$_} }).Seq.WHAT.say;" and it printed "Parcel()Seq()" |
| 12:55 |
|
writer |
rakudo: (1, 1).WHAT.say |
| 12:55 |
|
p6eval |
rakudo a1a04a: OUTPUT«Parcel()» |
| 12:55 |
|
moritz_ |
so the result of .sort is a Parcel |
| 12:55 |
|
moritz_ |
although it should probably be a Seq |
| 12:56 |
|
writer |
moritz_: okay, Parcel is like tuples, right ? |
| 12:56 |
|
moritz_ |
but more importantly, .sort on a Parcel doesn't work properly |
| 12:56 |
|
moritz_ |
writer: it's not that easy to answer... a Parcel is what you get when you write (something) |
| 12:56 |
|
moritz_ |
Parcel = parenthesis cell |
| 12:57 |
|
moritz_ |
but it should hide rather quicklz |
| 12:57 |
|
moritz_ |
*quickly |
| 12:57 |
|
snarkyboojum |
with a , right? |
| 12:57 |
|
JimmyZ |
rakudo: ( -1, -2, (2+2).say ).pick(1).say |
| 12:57 |
|
snarkyboojum |
rakudo: (1).WHAT.say |
| 12:57 |
|
p6eval |
rakudo a1a04a: OUTPUT«4-2» |
| 12:57 |
|
p6eval |
rakudo a1a04a: OUTPUT«Int()» |
| 12:57 |
|
moritz_ |
so if you write @A = (1, 2, 3) you get an Array, not Parcel |
| 12:57 |
|
moritz_ |
snarkyboojum: right |
| 12:57 |
|
snarkyboojum |
rakudo: (1,).WHAT.say |
| 12:57 |
|
p6eval |
rakudo a1a04a: OUTPUT«Parcel()» |
| 12:57 |
|
moritz_ |
and a parcel of a single item should behave just like that item |
| 12:58 |
|
moritz_ |
so it's mostly transparent |
| 12:58 |
|
JimmyZ |
rakudo: ( -1, -2, (2+2).say ).pick(1).say; # is not lazy? |
| 12:58 |
|
moritz_ |
but in rakudo it's not |
| 12:58 |
|
p6eval |
rakudo a1a04a: OUTPUT«4-1» |
| 12:58 |
|
moritz_ |
JimmyZ: apparently not |
| 12:58 |
|
writer |
rakudo: [1,2,3].WHAT.say ; (1,2,3).WHAT.say |
| 12:58 |
|
p6eval |
rakudo a1a04a: OUTPUT«Array()Parcel()» |
| 12:58 |
|
writer |
rakudo: [9,8,7].sort.WHAT.say |
| 12:58 |
|
p6eval |
rakudo a1a04a: OUTPUT«Parcel()» |
| 12:58 |
|
snarkyboojum |
rakudo: (1..2).WHAT.say |
| 12:59 |
|
p6eval |
rakudo a1a04a: OUTPUT«Range()» |
| 12:59 |
|
* JimmyZ |
wonders whether it will be lazy? |
| 12:59 |
|
writer |
okay, so, sort converts Array() into Parcel() |
| 12:59 |
|
snarkyboojum |
so commas construct parcels... |
| 12:59 |
|
snarkyboojum |
or do I have that wrong |
| 12:59 |
|
PerlJam |
good morning |
| 13:00 |
|
moritz_ |
snarkyboojum: no, you have that right |
| 13:00 |
|
writer |
rakudo: (1..10).say |
| 13:00 |
|
p6eval |
rakudo a1a04a: OUTPUT«12345678910» |
| 13:00 |
|
writer |
rakudo: (10..1).sort.say |
| 13:00 |
|
p6eval |
rakudo a1a04a: OUTPUT«Method 'sort' not found for invocant of class 'Range'current instr.: '_block14' pc 29 (EVAL_1:0)» |
| 13:00 |
|
moritz_ |
snarkyboojum: I was wrong to say that the parens alone do it - that has changed |
| 13:00 |
|
snarkyboojum |
moritz_: ok. cheers. |
| 13:00 |
|
moritz_ |
writer: that should also work |
| 13:00 |
|
writer |
moritz_: what should ? |
| 13:00 |
|
moritz_ |
writer: ... but 10..1 is the empty range |
| 13:00 |
|
moritz_ |
writer: .sort on a Range |
| 13:01 |
|
moritz_ |
alpha: say (1..10).sort |
| 13:01 |
|
p6eval |
alpha 30e0ed: OUTPUT«12345678910» |
| 13:01 |
|
moritz_ |
alpha: say Range ~~ Positional |
| 13:01 |
|
p6eval |
alpha 30e0ed: OUTPUT«1» |
| 13:01 |
|
moritz_ |
and .sort is a method from the Positional role |
| 13:01 |
|
jnthn |
...is it? |
| 13:01 |
|
writer |
rakudo: (1..10,2..4).WHAT |
| 13:01 |
|
p6eval |
rakudo a1a04a: ( no output ) |
| 13:01 |
|
writer |
rakudo: (1..10,2..4).WHAT.say |
| 13:01 |
|
p6eval |
rakudo a1a04a: OUTPUT«Parcel()» |
| 13:02 |
|
jnthn |
moritz_: I think akshually it's in Cool... |
| 13:02 |
|
writer |
rakudo: (1..10,2..4).sort.WHAT.say |
| 13:02 |
|
p6eval |
rakudo a1a04a: OUTPUT«Multiple Dispatch: No suitable candidate found for 'cmp', with signature 'PP->I'current instr.: '_block14' pc 29 (EVAL_1:0)... call repeated 1 times» |
| 13:02 |
|
moritz_ |
jnthn: that too |
| 13:03 |
|
writer |
rakudo: 2..3.WHAT.say |
| 13:03 |
|
p6eval |
rakudo a1a04a: OUTPUT«Int()» |
| 13:04 |
|
PerlJam |
that's the same one as ... |
| 13:04 |
|
writer |
rakudo: [10..1].sort.say |
| 13:04 |
|
p6eval |
rakudo a1a04a: OUTPUT«» |
| 13:04 |
|
writer |
rakudo: (10..1).sort.say |
| 13:04 |
|
PerlJam |
rakudo: my Int @a; @a.WHAT.say; |
| 13:04 |
|
p6eval |
rakudo a1a04a: OUTPUT«Method 'sort' not found for invocant of class 'Range'current instr.: '_block14' pc 29 (EVAL_1:0)» |
| 13:04 |
|
p6eval |
rakudo a1a04a: OUTPUT«()» |
| 13:04 |
|
writer |
rakudo: (1..10).sort.say |
| 13:04 |
|
p6eval |
rakudo a1a04a: OUTPUT«Method 'sort' not found for invocant of class 'Range'current instr.: '_block14' pc 29 (EVAL_1:0)» |
| 13:04 |
|
PerlJam |
Hmm |
| 13:05 |
|
writer |
moritz_: you said, <moritz_> writer: that should also work, <moritz_> writer: .sort on a Range |
| 13:05 |
|
writer |
Is, "say (1..10).sort", any different than "(1..10).sort.say" ? |
| 13:06 |
|
writer |
rakudo: (1..10).sort.WHAT.say |
| 13:06 |
|
p6eval |
rakudo a1a04a: OUTPUT«Method 'sort' not found for invocant of class 'Range'current instr.: '_block14' pc 29 (EVAL_1:0)» |
| 13:06 |
|
PerlJam |
writer: different in dispatch |
| 13:06 |
|
writer |
rakudo: say (1..10).sort |
| 13:06 |
|
p6eval |
rakudo a1a04a: OUTPUT«Method 'sort' not found for invocant of class 'Range'current instr.: '_block14' pc 29 (EVAL_1:0)» |
| 13:06 |
|
writer |
so alpha, and rakudo are different versions ? |
| 13:07 |
|
PerlJam |
writer: alpha is the version of rakudo as it existed in January (basically) |
| 13:07 |
|
moritz_ |
writer: 'alpha' is rakudo before the big refactor |
| 13:07 |
|
PerlJam |
writer: before the move to nqp-rx |
| 13:07 |
|
dalek |
rakudo: b3e08f9 | jonathan++ | src/Perl6/Grammar.pm: |
| 13:07 |
|
dalek |
rakudo: Add totally awesome error message for foreach. |
| 13:07 |
|
dalek |
rakudo: review: http://github.com/rakudo/rakud[…]83d2f2771c352153b |
| 13:07 |
|
writer |
Oh, okay |
| 13:07 |
|
snarkyboojum |
rakudo: (5..6, 2..4).iterator.sort.say |
| 13:08 |
|
p6eval |
rakudo a1a04a: OUTPUT«23456» |
| 13:08 |
|
snarkyboojum |
rakudo: (5..6, 2..4).sort.say |
| 13:08 |
|
p6eval |
rakudo a1a04a: OUTPUT«Multiple Dispatch: No suitable candidate found for 'cmp', with signature 'PP->I'current instr.: '_block14' pc 29 (EVAL_1:0)... call repeated 1 times» |
| 13:08 |
|
JimmyZ |
rakudo: foreach <1 2 3> {} |
| 13:08 |
|
p6eval |
rakudo a1a04a: OUTPUT«Confused at line 11, near "foreach <1"current instr.: 'perl6;HLL;Grammar;panic' pc 500 (ext/nqp-rx/src/stage0/HLL-s0.pir:328)» |
| 13:08 |
|
writer |
alpha: (5..6, 2..4).sort.say |
| 13:08 |
|
p6eval |
alpha 30e0ed: OUTPUT«23456» |
| 13:09 |
|
snarkyboojum |
rakudo: (5..9).iterator.sort.say |
| 13:09 |
|
writer |
alpha: (5..6, 2..4).sort.WHAT.say |
| 13:09 |
|
p6eval |
rakudo a1a04a: OUTPUT«56789» |
| 13:09 |
|
p6eval |
alpha 30e0ed: OUTPUT«List()» |
| 13:09 |
|
writer |
alpha: (5..6, 2..4).WHAT.say |
| 13:09 |
|
p6eval |
alpha 30e0ed: OUTPUT«List()» |
| 13:09 |
|
writer |
alpha: (5..6).WHAT.say |
| 13:09 |
|
p6eval |
alpha 30e0ed: OUTPUT«Range()» |
| 13:09 |
|
writer |
alpha: (5,3,6).WHAT.say |
| 13:09 |
|
p6eval |
alpha 30e0ed: OUTPUT«List()» |
| 13:09 |
|
jnthn |
JimmyZ: ETOOSOON :-) |
| 13:09 |
|
writer |
rakudo: (5,3,6).WHAT.say |
| 13:09 |
|
p6eval |
rakudo a1a04a: OUTPUT«Parcel()» |
| 13:10 |
|
JimmyZ |
rakudo: ( -1, -2, (2+2).say ).pick(1).say; # Will it be lazy? |
| 13:10 |
|
p6eval |
rakudo a1a04a: OUTPUT«41» |
| 13:10 |
|
JimmyZ |
jnthn: Yeah, just want to took a look. |
| 13:11 |
|
moritz_ |
JimmyZ: laziness is only guarantueed for infinite lists |
| 13:11 |
|
moritz_ |
so maybe not |
| 13:11 |
|
* writer |
thanks god for not hacking world in perl6 ;) |
| 13:12 |
|
jnthn |
infix:<,> doesn't itself caused any thunking or delayed evaluation. |
| 13:12 |
|
jnthn |
It just doesn't cause already lazy thingies to become unlazy. |
| 13:12 |
|
JimmyZ |
ok |
| 13:19 |
|
|
christine joined #perl6 |
| 13:22 |
|
|
cookys joined #perl6 |
| 13:28 |
|
JimmyZ |
Good night, perl6 |
| 13:32 |
|
masak |
night, Jimmy of the Light. |
| 13:37 |
|
slavik |
it's 9:37AM ... what night |
| 13:38 |
|
jnthn |
slavik: In China they're like, really technologically advanced now, so night comes earlier there. |
| 13:39 |
|
slavik |
US fail :( |
| 13:40 |
|
snarkyboojum |
it's night at 9:37am in Antartica around late June :) |
| 13:41 |
|
mathw |
it's night all the time in Antarctica around late June :) |
| 13:41 |
|
m6locks |
could parrot be made run as a daemon instance so that it wouldn't take so much tim to parse, now it takes 3 seconds to load the module even if it is pir-compiled |
| 13:41 |
|
snarkyboojum |
mathw: aye ;) |
| 13:41 |
|
jnthn |
Clearly the penguins are extremely advanced technologically. |
| 13:42 |
|
PerlJam |
jnthn: certainly! They gave us linux after all. |
| 13:42 |
|
moritz_ |
m6locks: are you using the newest parrot from svn? |
| 13:42 |
|
jnthn |
m6locks: Closest I've seen to anyone doing that was mod_perl6. |
| 13:42 |
|
snarkyboojum |
images of penguins wearing microcomputers running linux in 24 hr darkness lol |
| 13:42 |
|
m6locks |
moritz_: i guess so |
| 13:42 |
|
mathw |
all they need is the faint illumination from their OLED displays |
| 13:43 |
|
moritz_ |
m6locks: guessing is no good |
| 13:43 |
|
masak |
halp, #perl6! why won't these two tests not pass? http://gist.github.com/351813 |
| 13:43 |
|
m6locks |
funny how --version does not print the revision number |
| 13:44 |
|
m6locks |
oh, was trying parrot ,sorry |
| 13:44 |
|
m6locks |
parrot revision 45178 |
| 13:45 |
|
masak |
here's the whole program, just for full disclosure: http://github.com/masak/tardis[…]f1a4/lib/Yapsi.pm |
| 13:45 |
|
mathw |
masak: ...because declaration is 'my' <variable>, and then it doesn't know what to do with the ' = 42;' bit? |
| 13:45 |
|
jnthn |
masak: Was the double negative intentional? :-) |
| 13:45 |
|
masak |
mathw: at which point it should backtrack, no? |
| 13:45 |
|
mathw |
then what's it going to find? |
| 13:46 |
|
masak |
jnthn: oops. no :) |
| 13:46 |
|
mathw |
where else will it match my? |
| 13:46 |
|
masak |
<assignment> calls <lvalue> which calls <declaration> |
| 13:46 |
|
PerlJam |
masak: expression is what backtracks and when that happens, it no longer matches "my" |
| 13:47 |
|
jnthn |
yes, but it's already committed to declaration |
| 13:47 |
|
jnthn |
Remember rules and tokens don't backtack. |
| 13:47 |
|
masak |
d'oh! |
| 13:47 |
|
PerlJam |
ah, indeed. |
| 13:47 |
|
PerlJam |
jnthn++ |
| 13:47 |
|
mathw |
this is why I don't use them |
| 13:47 |
|
mathw |
because that always bites me |
| 13:47 |
|
masak |
:) |
| 13:48 |
|
masak |
the first failing test passes now. |
| 13:48 |
|
masak |
what about the second one? |
| 13:48 |
|
masak |
(I just rearranged <assignment> to be first in <expression>, btw) |
| 13:49 |
|
jnthn |
masak: Maybe whitespace handling fejl? |
| 13:49 |
|
masak |
no, I think I found it. |
| 13:49 |
|
PerlJam |
jnthn: that's what I would guess too |
| 13:49 |
|
jnthn |
Though assignment is a rule, so maybe not... |
| 13:49 |
|
masak |
yup, it was the try block in the test file catching a warning from the module. |
| 13:49 |
|
PerlJam |
(but guessing is apparently no good ;) |
| 13:49 |
|
masak |
the warning was 'useless redeclaration of $a' |
| 13:50 |
|
masak |
alpha: try { warn "A"; say "B" }; say "C" |
| 13:50 |
|
p6eval |
alpha 30e0ed: OUTPUT«C» |
| 13:50 |
|
masak |
rakudo: try { warn "A"; say "B" }; say "C" |
| 13:50 |
|
p6eval |
rakudo b3e08f: OUTPUT«C» |
| 13:51 |
|
jnthn |
d'oh. |
| 13:52 |
|
moritz_ |
it's fine to catch warnings, iirc |
| 13:52 |
|
moritz_ |
if you don't want warnings to be caught, you, do use note() instead of warn() |
| 13:52 |
|
jnthn |
oh |
| 13:53 |
|
* jnthn |
didn't know that one |
| 13:53 |
|
PerlJam |
there's a guy down the hall from my office whose voice sounds like a little girl crying right now (though I'm pretty sure that's *not* the effect he's going for) |
| 13:53 |
|
masak |
rakudo: note("But note() isn't implemented! :(") |
| 13:53 |
|
p6eval |
rakudo b3e08f: OUTPUT«Could not find sub ¬ecurrent instr.: '_block14' pc 29 (EVAL_1:0)» |
| 13:53 |
|
|
bamccaig joined #perl6 |
| 13:54 |
|
masak |
I'll just use $*ERR.say for now :) |
| 13:54 |
|
jnthn |
masak: note("it'd be easy to implement") ;-) |
| 13:54 |
|
masak |
:) |
| 13:54 |
|
|
riffraff joined #perl6 |
| 13:55 |
|
masak |
all tests pass! \o/ |
| 13:55 |
|
jnthn |
Write more tests. |
| 13:55 |
|
jnthn |
;) |
| 13:55 |
|
* masak |
is on it :) |
| 13:55 |
|
masak |
I think I might be able to make that release today :) |
| 13:55 |
|
masak |
just need to write a SIC serializer and a small runtime :P |
| 13:59 |
|
bamccaig |
Anybody know why perl6-all perl.org has me receiving messages from bugs-bitbucket rt.perl.org? They appear to contain logs from here? |
| 14:00 |
|
masak |
I can explain why they contain logs from here, but not the first part. |
| 14:00 |
|
moritz_ |
bamccaig: the bugs address seems to be partially aliased to perl6-compiler@perl.org, because that's where bug reports are sent to |
| 14:01 |
|
moritz_ |
and the bug tracking system tracks answers to these messagegs |
| 14:01 |
|
moritz_ |
*messages |
| 14:03 |
|
bamccaig |
I see. |
| 14:04 |
|
bamccaig |
They have just be very cryptic and too hard for me to understand so I wanted to figure out why I was getting them. >_> I'll just have Gmail archive them, I guess. |
| 14:05 |
|
|
envi^home joined #perl6 |
| 14:05 |
|
masak |
bamccaig: sorry about making them cryptic. over the years, each of them are 'complete' in that they describe a bug in sufficient detail... but most of them are quite mundane and perhaps require a greater involvement to be interesting. |
| 14:05 |
|
moritz_ |
bamccaig: if you mean the bug reports, they often contain snippets of Perl 6 code, and how we feed them to a bot, and its response |
| 14:08 |
|
|
M_o_C joined #perl6 |
| 14:11 |
|
bamccaig |
It's all good. What really threw me is that they appear to be machine sent, but contain no disclaimers to explain where they came from any why... |
| 14:11 |
|
masak |
:) |
| 14:11 |
|
* masak |
has been called a machine before |
| 14:11 |
|
bamccaig |
^_^ |
| 14:12 |
|
masak |
"I know Kung Fu." |
| 14:14 |
|
moritz_ |
I've heard of Kung Fu too. Does that count? :-) |
| 14:14 |
|
masak |
bamccaig: they end up in RT, here: http://rt.perl.org/rt3/Ticket/[…]lay.html?id=73948 |
| 14:15 |
|
masak |
at least one email is sent to p6c, upon their creating. |
| 14:15 |
|
PerlJam |
I used to watch Kung Fu when I was younger. And not too long ago I used to watch Kung Fu Theater |
| 14:16 |
|
* mathw |
doesn't know kung fu, but does know some aikido... does that count? |
| 14:16 |
|
moritz_ |
mathw: nope, cheating |
| 14:16 |
|
* masak |
doesn't actually know Kung Fu, but has high hopes for those brain software loaders |
| 14:17 |
|
mathw |
moritz_: that's okay, as long as I get to keep winning fights with people who think they know kung fu :) |
| 14:17 |
|
moritz_ |
mathw: that's okay, as long as we never meet in meat space :-) |
| 14:18 |
|
moritz_ |
(or you just chose not to fight :-) |
| 14:18 |
|
mathw |
fighting would be counterproductive |
| 14:18 |
|
mathw |
we wouldn't get much hacking done |
| 14:19 |
|
PerlJam |
mathw: especially with someone lying injured on the floor |
| 14:19 |
|
masak |
swimming & |
| 14:20 |
|
|
payload joined #perl6 |
| 14:24 |
|
pmichaud |
good morning, #perl6 |
| 14:24 |
|
pmichaud |
(spectest-update) I have the updated numbers for march, just need to post/commit them. |
| 14:24 |
|
jnthn |
morning, pmichaud |
| 14:25 |
|
PerlJam |
greetings pm |
| 14:25 |
|
|
newbie joined #perl6 |
| 14:27 |
|
colomon |
o/ |
| 14:27 |
|
mathw |
o/ pmichaud |
| 14:28 |
|
moritz_ |
/o/ |
| 14:29 |
|
mathw |
\o\ |
| 14:29 |
|
|
pyrimidine joined #perl6 |
| 14:29 |
|
jnthn |
\o/ |\o/| o< /o\ |
| 14:29 |
|
jnthn |
;-) |
| 14:30 |
|
mathw |
aaaaargh |
| 14:30 |
|
* mathw |
hides |
| 14:30 |
|
okeCay |
o/\o ! |
| 14:36 |
|
|
dual joined #perl6 |
| 14:37 |
|
PerlJam |
http://www.starbucks.com/blog/[…]r-more-sizes.aspx |
| 14:37 |
|
PerlJam |
that one is almost good enough to be real :) |
| 14:41 |
|
|
nihiliad joined #perl6 |
| 14:41 |
|
mathw |
http://aht.seriouseats.com/arc[…]ggie-burgers.html is my favourite so far |
| 14:45 |
|
|
justatheory joined #perl6 |
| 14:50 |
|
* bamccaig |
now seems why perl6 is just a dream... :P |
| 14:50 |
|
bamccaig |
s/seems/sees/ |
| 14:51 |
|
moritz_ |
it's so nice when dreams gradually become reality |
| 14:52 |
|
|
simcop2387 joined #perl6 |
| 14:54 |
|
TimToady |
@carlmasak RT Going back and forth between Perl 5 and Perl 6, I'm constantly relieved at how much easier either one is to program in than the other. ☺ |
| 14:55 |
|
* okeCay |
tries to parse that. |
| 14:57 |
|
snarkyboojum |
rakudo: foreach 1,2,3 { .say } |
| 14:57 |
|
p6eval |
rakudo b3e08f: OUTPUT«Unsupported use of 'foreach'; in Perl 6 please use 'for' at line 11, near " 1,2,3 { ."current instr.: 'perl6;HLL;Grammar;panic' pc 500 (ext/nqp-rx/src/stage0/HLL-s0.pir:328)» |
| 14:57 |
|
snarkyboojum |
yay |
| 14:59 |
|
* Coke-san |
wonders if rakudo is generating its PBCs with -O |
| 15:00 |
|
moritz_ |
don't think so... should it? |
| 15:00 |
|
moritz_ |
and does it really make a difference? |
| 15:00 |
|
snarkyboojum |
std: sub foreach {}; foreach(); |
| 15:00 |
|
p6eval |
std 30254: OUTPUT«ok 00:01 107m» |
| 15:00 |
|
|
ash_ joined #perl6 |
| 15:01 |
|
snarkyboojum |
rakudo: sub foreach {}; foreach(); |
| 15:01 |
|
p6eval |
rakudo b3e08f: ( no output ) |
| 15:01 |
|
snarkyboojum |
std: foreach 1,2,3 { .say } |
| 15:01 |
|
p6eval |
std 30254: OUTPUT«===[0mSORRY!===[0mUnsupported use of 'foreach'; in Perl 6 please use 'for' at /tmp/G1RNvGEHHf line 1:------> foreach⏏ 1,2,3 { .say }FAILED 00:01 104m» |
| 15:01 |
|
pyrimidine |
std: tr/A-Z/a-z/ |
| 15:01 |
|
p6eval |
std 30254: OUTPUT«===[0mSORRY!===[0mUnsupported use of - as character range; in Perl 6 please use .. at /tmp/3BY2pqvMWX line 1:------> tr/A-⏏Z/a-z/FAILED 00:01 106m» |
| 15:02 |
|
pyrimidine |
std: tr/A..Z/a..z/ |
| 15:02 |
|
p6eval |
std 30254: OUTPUT«ok 00:01 105m» |
| 15:02 |
|
Coke-san |
moritz_: there are some small optimizations that occur when you do that. It's probably not worth the extra compile time at this point. |
| 15:02 |
|
|
Trashlord joined #perl6 |
| 15:03 |
|
snarkyboojum |
rakudo: sub foreach(@list) {}; foreach <1 2 3> |
| 15:03 |
|
p6eval |
rakudo b3e08f: OUTPUT«Unsupported use of 'foreach'; in Perl 6 please use 'for' at line 11, near " <1 2 3>"current instr.: 'perl6;HLL;Grammar;panic' pc 500 (ext/nqp-rx/src/stage0/HLL-s0.pir:328)» |
| 15:04 |
|
snarkyboojum |
std: sub foreach(@list) {}; foreach <1 2 3> |
| 15:04 |
|
p6eval |
std 30254: OUTPUT«===[0mSORRY!===[0mUnsupported use of 'foreach'; in Perl 6 please use 'for' at /tmp/ujgz7NU5Sz line 1:------> sub foreach(@list) {}; foreach⏏ <1 2 3>FAILED 00:01 107m» |
| 15:04 |
|
snarkyboojum |
so masak's test case still fails |
| 15:06 |
|
snarkyboojum |
bed& |
| 15:06 |
|
pyrimidine |
std: 'AAAA' ~~ tr/A..D..H/a..d..h/ |
| 15:06 |
|
p6eval |
std 30254: OUTPUT«ok 00:01 106m» |
| 15:07 |
|
pyrimidine |
TimToady: should that work? |
| 15:07 |
|
pyrimidine |
I'm guessing that would be converted to tr/A..H/a..h/? |
| 15:10 |
|
|
alester joined #perl6 |
| 15:12 |
|
TimToady |
it should probably be disallowed |
| 15:12 |
|
TimToady |
std isn't quite that sophisticated yet |
| 15:13 |
|
|
synth joined #perl6 |
| 15:15 |
|
|
SmokeMachine joined #perl6 |
| 15:15 |
|
pyrimidine |
yes, I think so too. I just collapse them in alpha |
| 15:15 |
|
pyrimidine |
alpha: say 'ABCDE'.trans('A..D..H' => 'a..d..h'); |
| 15:15 |
|
p6eval |
alpha 30e0ed: OUTPUT«abcde» |
| 15:15 |
|
|
Oejet joined #perl6 |
| 15:16 |
|
|
elmex joined #perl6 |
| 15:51 |
|
|
M_o_C joined #perl6 |
| 15:52 |
|
|
Gothmog_ joined #perl6 |
| 16:16 |
|
|
proller joined #perl6 |
| 16:30 |
|
|
elmex joined #perl6 |
| 16:32 |
|
|
payload joined #perl6 |
| 16:45 |
|
|
synth joined #perl6 |
| 16:48 |
|
colomon |
lolIblogged: http://justrakudoit.wordpress.[…]ipping-my-toe-in/ |
| 16:48 |
|
colomon |
and now off to the dentist. :( |
| 16:50 |
|
ash_ |
my dog just chipped one of her teeth, hope nothing like thats happened to you |
| 16:50 |
|
|
rgrau` joined #perl6 |
| 16:52 |
|
|
buubot joined #perl6 |
| 16:56 |
|
Coke-san |
austin from parrot just had a tooth pulled unexpectedly. Watch out for those dentists! |
| 16:57 |
|
m6locks |
i just scheduled my tooth pulling sessoin... |
| 16:57 |
|
|
cotto_work joined #perl6 |
| 16:57 |
|
Coke-san |
colomon: is your blog in the planet perl6 ? |
| 16:57 |
|
Coke-san |
s/the/ |
| 16:58 |
|
jnthn |
Coke-san: We'd like it added, asked obra but not sure if he noticed the message or got chance. |
| 16:58 |
|
jnthn |
Coke-san: Is it something you have access to do too? |
| 16:59 |
|
Coke-san |
jnthn: ... I have privs on the parrot one. They might have given me privs on the p6 one too. let me see if I can find the repo. |
| 17:00 |
|
jnthn |
Cool, thanks. :-) |
| 17:00 |
|
Coke-san |
nope. it is correctly limited to parrot. I can ask for privs to the perl6 one too, though. |
| 17:01 |
|
jnthn |
OK, and thank for checking. :-) |
| 17:01 |
|
|
stephenlb joined #perl6 |
| 17:02 |
|
Coke-san |
I pinged the admins. |
| 17:04 |
|
obra |
Someone other than me should ask webmaster perl.org for planet6 bits, since I don't really...have a whole lot to do with perl6 these days |
| 17:07 |
|
* moritz_ |
writes email |
| 17:10 |
|
Coke-san |
obra: I'm on it. |
| 17:10 |
|
Coke-san |
obra: you going to risk buying an ipad? =-) |
| 17:11 |
|
obra |
Coke-san: "risk"/ |
| 17:11 |
|
obra |
? |
| 17:12 |
|
Coke-san |
obra: didn't you have fun purchasing a nook? |
| 17:14 |
|
obra |
ah, i'm buying the ipad retail |
| 17:15 |
|
Coke-san |
I'm wondering it it would make a decent travel machine. I look forward to reading a blog entry about it. |
| 17:16 |
|
TimToady |
obra: o/ |
| 17:16 |
|
|
pmurias joined #perl6 |
| 17:16 |
|
pmurias |
ruoso: hi |
| 17:18 |
|
obra |
Coke-san: I'll see what I can do :) |
| 17:18 |
|
obra |
Right now, most of my cycles that aren't work are going toward getting 5.12.0 out. |
| 17:19 |
|
obra |
And trying to find a reasonable middleground around getting old perl4 libraries onto the CPAN since it was decided that they should be removed from the core (before I got involved). |
| 17:20 |
|
obra |
I'm absolutely thrilled that we're getting toward a reasoanble way to migrate outdated libraries from core to the CPAN without unduly hurting end users. |
| 17:20 |
|
|
M_o_C joined #perl6 |
| 17:21 |
|
TimToady |
Perl 6 is still in the business of hurting people on purpose :) |
| 17:22 |
|
TimToady |
hopefully not for much longer though... |
| 17:22 |
|
* obra |
grins. |
| 17:23 |
|
obra |
I do wish that things which were deprecated had warned by default since day one. |
| 17:24 |
|
obra |
I've been having a bit of a hard time working through any reasonable way to engage with Tom C's "if my perl 4 scripts start to emit new warnings in Perl 5.12, then the terrorists have won" argument. |
| 17:25 |
|
[particle] |
today, we are all terrorists. |
| 17:25 |
|
ruoso |
hi pmurias |
| 17:26 |
|
|
japhb joined #perl6 |
| 17:27 |
|
Coke-san |
obra: ... is that an actual argument or a strawman? |
| 17:27 |
|
Coke-san |
(seems the obvious answer to that is: please keep using perl4.) |
| 17:27 |
|
[particle] |
Coke-san: this is tchrist, it's an actual argument. |
| 17:27 |
|
pmurias |
ruoso: i'm considering including releasing mildew to CPAN in the gsoc application |
| 17:28 |
|
Coke-san |
I used to compile perl4 on xenix and sco unix after downloading it off a 2600 baud modem. those were heady days. |
| 17:28 |
|
* Coke-san |
questions his faulty memory of baud rates. |
| 17:29 |
|
obra |
You read 2600 while waiting for perl to download on your 2400 baud modem |
| 17:29 |
|
pmurias |
ruoso: so it would the proposal would be "put mildew on CPAN and then work on the type inference" |
| 17:29 |
|
pmurias |
ruoso: do you think that makes sense? |
| 17:30 |
|
pugssvn |
r30255 | pmurias++ | [mildew] progress on Type::Scope |
| 17:30 |
|
ruoso |
pmurias, releasing mildew on CPAN is certainly a nice project |
| 17:31 |
|
ruoso |
I think it would be a good project on its own |
| 17:31 |
|
pugssvn |
r30256 | pmurias++ | [mildew] infering the type of container in a lexical |
| 17:31 |
|
pugssvn |
r30257 | pmurias++ | [mildew] |
| 17:31 |
|
pugssvn |
r30257 | infering the type of integer constants |
| 17:31 |
|
pugssvn |
r30257 | infering the type of the content of the scalar |
| 17:31 |
|
pugssvn |
r30258 | pmurias++ | [mildew] register usage information can be gathered from many registers |
| 17:39 |
|
pmurias |
ruoso: getting rid of the haskell and python deps, refactoring out the backends, generate Makefiles.PLpacking up smop,bundling STD |
| 17:40 |
|
pmurias |
ruoso: getting rid of the haskell and python deps, refactoring out the backends, generate Makefiles.PL's with Dist::Zilla, packing up smop,bundling STD |
| 17:40 |
|
pmurias |
ruoso: anything else needed for releasing mildew to CPAN? |
| 17:42 |
|
ruoso |
pmurias, I don't think so... |
| 17:42 |
|
ruoso |
It's a cool project |
| 17:43 |
|
ruoso |
it would be even cooler if you could add a v6-mildew variant |
| 17:45 |
|
pmurias |
there's already a v6 on CPAN |
| 17:45 |
|
ruoso |
v6-mildew? |
| 17:47 |
|
pmurias |
use v6-mildew compiles into 'use v6 qw(mildew)' |
| 17:48 |
|
pmurias |
use v6_mildew would work fine, but looks a bit less cool |
| 17:50 |
|
ruoso |
I'm pretty sure fglock would like the idea of turning v6 into\' |
| 17:50 |
|
ruoso |
\ |
| 17:50 |
|
Coke-san |
obra; that sounds MUCH more plausible. =-) |
| 17:50 |
|
Coke-san |
I blame the xenix exposure. |
| 17:50 |
|
ruoso |
into something modular, that could load different implementations |
| 17:50 |
|
* ruoso |
's child trying to type at the same time |
| 17:51 |
|
ruoso |
and get Pugs::Compiler::Rule based version to a different package |
| 17:59 |
|
pmurias |
std: use v6-mildew |
| 17:59 |
|
p6eval |
std 30258: OUTPUT«Potential difficulties: Can't locate module v6-mildew at /tmp/hWSINfwTiz line 0 (EOF):------> use v6-milde⏏wok 00:01 107m» |
| 17:59 |
|
pmurias |
std: use v6-alpha |
| 17:59 |
|
p6eval |
std 30258: OUTPUT«Can't call method "Str" on an undefined value at STD.pm line 11718.FAILED 00:01 104m» |
| 17:59 |
|
TimToady |
that is ancient syntax, long gone in p6 |
| 18:01 |
|
pmurias |
TimToady: any ideas what should be used to tell p5 to switch to p6? |
| 18:02 |
|
TimToady |
well, STD still contains: token module_name:deprecated { 'v6-alpha' } |
| 18:02 |
|
|
Trashlord joined #perl6 |
| 18:02 |
|
TimToady |
but it is deprecated, and if we can find another way |
| 18:03 |
|
TimToady |
maybe if we simply remove that rule, it'll now parse 'v6-alpha' as a single name, and if that can be made to do the right thing... |
| 18:04 |
|
|
Oejet left #perl6 |
| 18:04 |
|
|
eternaleye joined #perl6 |
| 18:04 |
|
TimToady |
or switch to v6-mildew; as you can see, it tried to look that up. |
| 18:05 |
|
pmurias |
Can't call method "Str" on an undefined value at STD.pm line 11718. what could be causing that |
| 18:06 |
|
|
skyler_ joined #perl6 |
| 18:06 |
|
* pmurias |
tries to hunt that error down |
| 18:06 |
|
|
xinming joined #perl6 |
| 18:07 |
|
TimToady |
that's easy, there's no longname |
| 18:07 |
|
TimToady |
if we just delete that rule, no problem :) |
| 18:09 |
|
pmurias |
should i do that? |
| 18:11 |
|
TimToady |
we added it as a special rule before - was allowed in identifiers, I think |
| 18:12 |
|
TimToady |
now v6-alpha is a valid name, so we can just use it like that |
| 18:12 |
|
TimToady |
so we'll just delete the special rule |
| 18:12 |
|
pugssvn |
r30259 | pmurias++ | [STD] remove the v6-alpha rule |
| 18:35 |
|
pugssvn |
r30260 | lwall++ | [STD] catch bad ranges in tr/// for pyrimidine++ |
| 18:40 |
|
|
riffraff joined #perl6 |
| 18:49 |
|
|
mberends joined #perl6 |
| 18:50 |
|
moritz_ |
wow, rakudo rebuild + spectest now in 16min |
| 18:50 |
|
moritz_ |
(with two cores) |
| 18:51 |
|
mberends |
I believe it's chromatic++ bacek++ who deserve our tremendous thanks :) |
| 18:51 |
|
moritz_ |
aye |
| 18:52 |
|
Coke-san |
(16m) down from? |
| 18:53 |
|
moritz_ |
about half an hour - didn't really measure though |
| 18:54 |
|
moritz_ |
and memory usage is also drastically reduced |
| 18:55 |
|
alester |
How did we ever live without say? |
| 18:56 |
|
moritz_ |
alester: painfully |
| 18:57 |
|
TimToady |
there was already one obvious way to do it. :) |
| 19:01 |
|
TimToady |
std: tr/a..z/a..b..z/ |
| 19:01 |
|
p6eval |
std 30260: OUTPUT«===[0mSORRY!===[0mRange missing start character on the left at /tmp/39HZleORNX line 1:------> tr/a..z/a..b..⏏z/FAILED 00:01 108m» |
| 19:01 |
|
TimToady |
std: use v6-alpha; |
| 19:01 |
|
p6eval |
std 30260: OUTPUT«Potential difficulties: Can't locate module v6-alpha at /tmp/vafcqLobfD line 1:------> use v6-alpha⏏;ok 00:01 105m» |
| 19:04 |
|
|
ShaneC joined #perl6 |
| 19:04 |
|
Coke-san |
I suppose it's too late to complain that 'say' is occupied by /usr/bin/say (OS X) , and we'll need to pick some other word. =-) |
| 19:06 |
|
|
ShaneC left #perl6 |
| 19:09 |
|
pyrimidine |
TimToady: nice! (re: tr///) |
| 19:09 |
|
TimToady |
it was harder than I expected... |
| 19:10 |
|
|
ash_ joined #perl6 |
| 19:14 |
|
|
sorear joined #perl6 |
| 19:16 |
|
Coke-san |
t/spec/S32-array/exists.rakudo (Wstat: 0 Tests: 15 Failed: 0) TODO passed: 9 |
| 19:17 |
|
|
drew_ joined #perl6 |
| 19:21 |
|
|
LaidBack_01 joined #perl6 |
| 19:21 |
|
|
LaidBack_01 left #perl6 |
| 19:22 |
|
pugssvn |
r30261 | moritz++ | [t/spec] skip a passing TODO test that is likely a false positive |
| 19:30 |
|
* jnthn |
back |
| 19:46 |
|
|
payload left #perl6 |
| 19:48 |
|
|
payload joined #perl6 |
| 19:49 |
|
colomon |
rakudo: say 1 <=> 2 |
| 19:49 |
|
p6eval |
rakudo b3e08f: OUTPUT«-1» |
| 19:51 |
|
|
pmurias joined #perl6 |
| 19:53 |
|
pmurias |
Coke-san: a lot of other functions are also commands |
| 19:53 |
|
|
dual joined #perl6 |
| 19:54 |
|
moritz_ |
rakudo: sub a([$a, @b]) { say @b.perl }; a(<h j k>) |
| 19:54 |
|
p6eval |
rakudo b3e08f: OUTPUT«Nominal type check failed for parameter '@b'; expected Positional but got Str insteadcurrent instr.: 'a' pc 193 (EVAL_1:78)» |
| 19:54 |
|
moritz_ |
rakudo: sub a([$a, *@b]) { say @b.perl }; a(<h j k>) |
| 19:54 |
|
p6eval |
rakudo b3e08f: OUTPUT«["j", "k"]» |
| 19:55 |
|
|
riffraff joined #perl6 |
| 19:57 |
|
Coke-san |
pmurias: I was not at all serious. |
| 19:58 |
|
moritz_ |
rakudo: sub a([$a, *@b]) { say @b.perl }; a() |
| 19:58 |
|
p6eval |
rakudo b3e08f: OUTPUT«Not enough positional parameters passed; got 0 but expected 1current instr.: 'a' pc 179 (EVAL_1:77)» |
| 19:58 |
|
moritz_ |
rakudo: sub a([$a, *@b]) { say @b.perl }; a(()) |
| 19:58 |
|
p6eval |
rakudo b3e08f: OUTPUT«Not enough positional parameters passed; got 0 but expected at least 1current instr.: 'a' pc 190 (EVAL_1:78)» |
| 19:58 |
|
moritz_ |
rakudo: sub a([$a, *@b]) { say @b.perl }; my @a; a(@a) |
| 19:58 |
|
p6eval |
rakudo b3e08f: OUTPUT«Not enough positional parameters passed; got 0 but expected at least 1current instr.: 'a' pc 219 (EVAL_1:91)» |
| 20:00 |
|
* colomon |
is kind of worried the sign tests must be broken, or at least severely lacking. |
| 20:06 |
|
jnthn |
moritz_: I plan to awesomize the error to point out when it's coming from a sub-sig at some point. |
| 20:09 |
|
* moritz_ |
tries to find the syntax for unpacking hashes |
| 20:09 |
|
jnthn |
parens |
| 20:10 |
|
moritz_ |
that's... inconsistent |
| 20:10 |
|
moritz_ |
why not {...}? |
| 20:10 |
|
|
lichtkind joined #perl6 |
| 20:11 |
|
moritz_ |
rakudo: sub a(%h(:$id, *%bla)) { say %bla.perl }; a { id => 3, b => 3, c => 6 }; |
| 20:11 |
|
p6eval |
rakudo b3e08f: OUTPUT«{"b" => 3, "c" => 6}» |
| 20:11 |
|
|
masak joined #perl6 |
| 20:11 |
|
moritz_ |
rakudo: sub a(%(:$id, *%bla)) { say %bla.perl }; a { id => 3, b => 3, c => 6 }; |
| 20:11 |
|
masak |
ahoy, #perl6! |
| 20:11 |
|
p6eval |
rakudo b3e08f: OUTPUT«{"b" => 3, "c" => 6}» |
| 20:11 |
|
moritz_ |
\o/ it's masak |
| 20:11 |
|
colomon |
ahoy, masak! |
| 20:12 |
|
jnthn |
orkaitsmasak! |
| 20:12 |
|
masak |
:P |
| 20:12 |
|
jnthn |
;-) |
| 20:12 |
|
TimToady |
we can't have {...} unpacking because it's ambiguous after -> |
| 20:12 |
|
jnthn |
Couldn't resist. :-) |
| 20:12 |
|
moritz_ |
TimToady: ah, right |
| 20:12 |
|
jnthn |
moritz_: (...) works for all of them akshually. |
| 20:12 |
|
jnthn |
moritz_: For positionals too. |
| 20:13 |
|
jnthn |
moritz_: The [...] form is just a little sugar for "and also label this parameter as needing a Positional" |
| 20:13 |
|
TimToady |
it's just [...] is a little more visually distinctive for that |
| 20:13 |
|
jnthn |
That too. :-_ |
| 20:14 |
|
TimToady |
std: (1, 1, *+* ... * ZR~ 'a'..'z').perl.say |
| 20:14 |
|
p6eval |
std 30261: OUTPUT«===[0mSORRY!===[0m"..." and "ZR~" are non-associative and require parens at /tmp/KUQaAymEdS line 1:------> (1, 1, *+* ... * ZR~ ⏏'a'..'z').perl.sayFAILED 00:01 109m» |
| 20:15 |
|
TimToady |
rakudo: (1, 1, *+* ... * ZR~ 'a'..'z').perl.say |
| 20:15 |
|
colomon |
TimToady: very nice |
| 20:15 |
|
p6eval |
rakudo b3e08f: ( no output ) |
| 20:15 |
|
colomon |
TimToady: doesn't properly error in Rakudo; I think it's trying to build 1, 1, *+* ... (* ZR~ 'a'..'z') |
| 20:16 |
|
TimToady |
yes, those used to all be right associative, so not surprising |
| 20:17 |
|
colomon |
hmmm..... |
| 20:18 |
|
|
nihiliad joined #perl6 |
| 20:20 |
|
|
espadrine joined #perl6 |
| 20:22 |
|
|
kst joined #perl6 |
| 20:22 |
|
dalek |
book: 2d8922b | moritz++ | src/operators.pod: |
| 20:22 |
|
dalek |
book: [operators] small excursion to [+] and [*]; fix a thinko |
| 20:22 |
|
dalek |
book: review: http://github.com/perl6/book/c[…]b03ec8027af92b0ff |
| 20:22 |
|
dalek |
book: ac507ae | moritz++ | src/subs-n-sigs.pod: |
| 20:22 |
|
dalek |
book: [sigs] don't talk about type captures yet - they will later be explained in the multi dispatch chapter |
| 20:22 |
|
dalek |
book: review: http://github.com/perl6/book/c[…]97ea5c0e2cb782edf |
| 20:22 |
|
dalek |
book: 5946226 | moritz++ | src/subs-n-sigs.pod: |
| 20:22 |
|
dalek |
book: [subs] first shot at unpacking |
| 20:22 |
|
dalek |
book: review: http://github.com/perl6/book/c[…]8c0b99d80277abb44 |
| 20:22 |
|
TimToady |
try is not supposed to catch warnings, since it's a control exception |
| 20:22 |
|
dalek |
book: f563b19 | moritz++ | src/subs-n-sigs.pod: |
| 20:22 |
|
dalek |
book: [subs] mention slurpy named |
| 20:22 |
|
dalek |
book: review: http://github.com/perl6/book/c[…]74bb6d4e0a77295b3 |
| 20:24 |
|
TimToady |
rakudo: try { warn "A"; say "B" }; say "C" |
| 20:24 |
|
p6eval |
rakudo b3e08f: OUTPUT«C» |
| 20:24 |
|
TimToady |
this is incorrect |
| 20:24 |
|
moritz_ |
it should say B\nC\n, right? |
| 20:25 |
|
TimToady |
try doesn't catch control exceptions, of which warn is one |
| 20:25 |
|
TimToady |
so it should say it all |
| 20:25 |
|
moritz_ |
oh |
| 20:25 |
|
masak |
and 'note' only writes to STRERR, it doesn't throw anything, right? |
| 20:25 |
|
jnthn |
TimToady: Oh. |
| 20:25 |
|
TimToady |
correct |
| 20:26 |
|
colomon |
TimToady: how does ZR~ get to be non-assoc? I'm not seeing it in STD.pm... |
| 20:27 |
|
moritz_ |
rakudo: say $*ERR.say("foo") |
| 20:27 |
|
p6eval |
rakudo b3e08f: OUTPUT«foo1» |
| 20:27 |
|
TimToady |
S04:1101 |
| 20:28 |
|
pmurias |
moritz_: when will be the book be ready for testing? (i could attempt to try it out on my flatmate) |
| 20:28 |
|
TimToady |
colomon: well, if you scan for the error message, you should find it about line 4691 |
| 20:28 |
|
moritz_ |
pmurias: don't know; not yet :( |
| 20:28 |
|
moritz_ |
pmurias: but I'll notify you when it's ready |
| 20:29 |
|
colomon |
TimToady: is it this bit, then? |
| 20:29 |
|
colomon |
when 'list' { |
| 20:29 |
|
colomon |
$assoc = 0 unless $infix<sym> eqv @opstack[*-1]<sym>; |
| 20:29 |
|
colomon |
} |
| 20:29 |
|
TimToady |
yes |
| 20:29 |
|
colomon |
thank you |
| 20:30 |
|
colomon |
It's only conditionally non-assoc, that's why I wasn't finding it up at the top of the file. :) |
| 20:31 |
|
|
[particle] joined #perl6 |
| 20:34 |
|
TimToady |
nap & |
| 20:37 |
|
moritz_ |
TimToady: should there be a method form of note()? |
| 20:40 |
|
|
justatheory joined #perl6 |
| 20:41 |
|
pugssvn |
r30262 | moritz++ | [t/spec] some (un)fudges for rakudo |
| 20:41 |
|
pugssvn |
r30263 | moritz++ | [t/spec] test that note() in a try block is not surpressed |
| 20:43 |
|
dalek |
rakudo: 833852d | moritz++ | (2 files): |
| 20:43 |
|
dalek |
rakudo: implement note() |
| 20:43 |
|
dalek |
rakudo: review: http://github.com/rakudo/rakud[…]0c12c33ac26da337c |
| 20:44 |
|
moritz_ |
any other LHFs in rakudo that I might look at? |
| 20:45 |
|
* jnthn |
ponders |
| 20:45 |
|
masak |
rakudo: Match |
| 20:45 |
|
p6eval |
rakudo b3e08f: OUTPUT«Could not find sub &Matchcurrent instr.: '_block14' pc 29 (EVAL_1:0)» |
| 20:46 |
|
masak |
that one? |
| 20:46 |
|
moritz_ |
masak: I've started to attack that, but it waits on review from pmichaud++ |
| 20:46 |
|
masak |
oh. |
| 20:46 |
|
jnthn |
moritz_: S02-names_and_variables/fmt.t is still not being run. |
| 20:46 |
|
jnthn |
moritz_: I suspect that adding back missing .fmt methods would be quite LHF. |
| 20:47 |
|
jnthn |
moritz_: S03-metaops/reduce.t may be worth looking at too - we implement reduce now |
| 20:47 |
|
moritz_ |
jnthn: good ideas, thanks |
| 20:48 |
|
moritz_ |
rakudo: say (1.3,2.4,3).WHAT |
| 20:48 |
|
p6eval |
rakudo b3e08f: OUTPUT«Parcel()» |
| 20:48 |
|
moritz_ |
rakudo: say Parcel ~~ Seq |
| 20:48 |
|
p6eval |
rakudo b3e08f: OUTPUT«0» |
| 20:48 |
|
moritz_ |
rakudo: say Seq ~~ Parcel |
| 20:48 |
|
p6eval |
rakudo b3e08f: OUTPUT«0» |
| 20:48 |
|
jnthn |
moritz_: Another thing - if you write a variant of the reduce that has a :triangle adverb, I can very trivially then wire up [\+] to pass it. |
| 20:48 |
|
jnthn |
s/adverb/named parameter/ |
| 20:48 |
|
moritz_ |
rakudo: say Parcel ~~ Positional |
| 20:48 |
|
moritz_ |
noted. |
| 20:48 |
|
p6eval |
rakudo b3e08f: OUTPUT«1» |
| 20:48 |
|
jnthn |
making it multi and :$reduce! would do it. |
| 20:49 |
|
moritz_ |
oh, Positional is still in PIR :/ |
| 20:49 |
|
* jnthn |
is also quite curious about S04-statement-modifiers/given.t not being run. |
| 20:50 |
|
jnthn |
oh wait |
| 20:50 |
|
jnthn |
statement-modifiers, not statements |
| 20:52 |
|
masak |
what's the term for when something is bound like `$b := 42`? read-only variable? non-container variable? |
| 20:52 |
|
jnthn |
It's not very variable. ;-) |
| 20:52 |
|
moritz_ |
"constant"? |
| 20:52 |
|
moritz_ |
wait, a constant can't be rebound either, can it? |
| 20:52 |
|
masak |
but $b is still nominally a variable. |
| 20:52 |
|
masak |
that, too. |
| 20:52 |
|
jnthn |
Yeah |
| 20:52 |
|
moritz_ |
it's a symbol |
| 20:53 |
|
jnthn |
$b ::= 42 and $b := 42 are different in that sense. |
| 20:56 |
|
moritz_ |
rakudo: say (1..3).map({$_}).perl |
| 20:56 |
|
p6eval |
rakudo b3e08f: OUTPUT«(1, 2, 3)» |
| 20:56 |
|
colomon |
reduce doesn't actually handle the backwards cases yet either, does it? |
| 20:56 |
|
colomon |
like [**] |
| 20:57 |
|
jnthn |
no |
| 20:58 |
|
colomon |
more LHF... |
| 20:58 |
|
moritz_ |
is it? :-) |
| 20:58 |
|
moritz_ |
doesn't seem very L to me |
| 20:58 |
|
|
lichtkind joined #perl6 |
| 20:59 |
|
jnthn |
Requires minor scrambling. |
| 21:01 |
|
dalek |
rakudo: 06ac481 | (Solomon Foster)++ | src/core/ (5 files): |
| 21:01 |
|
dalek |
rakudo: Move various versions of sign to Real.sign, clean up Any.sign a bit. |
| 21:01 |
|
dalek |
rakudo: review: http://github.com/rakudo/rakud[…]b5852f66610c8ddb1 |
| 21:02 |
|
colomon |
also, adding the zero-arg versions of the various infix operators... LHF if ever there was LHF. |
| 21:02 |
|
jnthn |
Rakudo. It's like an orchard of low trees. |
| 21:04 |
|
moritz_ |
.fmt patch coming... |
| 21:04 |
|
moritz_ |
rakudo: say $_ given 2 * 3; |
| 21:04 |
|
p6eval |
rakudo b3e08f: OUTPUT«Missing block at line 11, near ";"current instr.: 'perl6;HLL;Grammar;panic' pc 500 (ext/nqp-rx/src/stage0/HLL-s0.pir:328)» |
| 21:05 |
|
moritz_ |
jnthn: that's why given.t is not run - the statement modifying form is not run :/ |
| 21:05 |
|
moritz_ |
erm, s/run/parsed/ |
| 21:05 |
|
jnthn |
moritz_: on it. |
| 21:07 |
|
pyrimidine |
jnthn: did bkeeler's patch make it in yet? |
| 21:07 |
|
pyrimidine |
(var interp in regexes) |
| 21:07 |
|
moritz_ |
pyrimidine: nope, pmichaud wanted to review thoroughly first |
| 21:08 |
|
pyrimidine |
okay, thanks |
| 21:09 |
|
moritz_ |
rakudo: say [||] 0, 7, 3 |
| 21:09 |
|
p6eval |
rakudo b3e08f: OUTPUT«Could not find sub &infix:<||>current instr.: '' pc -1 ((unknown file):-1)» |
| 21:10 |
|
moritz_ |
rakudo: say [or] 0, 7, 3 |
| 21:10 |
|
p6eval |
rakudo b3e08f: OUTPUT«Could not find sub &infix:<or>current instr.: '' pc -1 ((unknown file):-1)» |
| 21:11 |
|
colomon |
I noticed those were missing when I was working on !op, but never got around to looking into it. |
| 21:11 |
|
moritz_ |
rakudo: sub infix:<m>($a + $b + 1); say [m] 3, 4 |
| 21:11 |
|
p6eval |
rakudo b3e08f: OUTPUT«Symbol '$ss_SS_S_S__S_S_s' not predeclared in <anonymous>current instr.: 'perl6;PCT;HLLCompiler;panic' pc 152 (compilers/pct/src/PCT/HLLCompiler.pir:108)» |
| 21:11 |
|
moritz_ |
that's an p6eval fuckup |
| 21:12 |
|
colomon |
rakudo: sub infix:<m>($a, $) {$a + $b + 1}; say [m] 3, 4 |
| 21:12 |
|
p6eval |
rakudo b3e08f: OUTPUT«Symbol '$b' not predeclared in infix:<m>current instr.: 'perl6;PCT;HLLCompiler;panic' pc 152 (compilers/pct/src/PCT/HLLCompiler.pir:108)» |
| 21:12 |
|
colomon |
rakudo: sub infix:<m>($a, $b) {$a + $b + 1}; say [m] 3, 4 |
| 21:12 |
|
p6eval |
rakudo b3e08f: OUTPUT«Could not find sub &infix:<m>current instr.: '' pc -1 ((unknown file):-1)» |
| 21:12 |
|
moritz_ |
rakudo: say [<] 1, 3, 2, 4 |
| 21:12 |
|
p6eval |
rakudo b3e08f: OUTPUT«1» |
| 21:13 |
|
moritz_ |
it seems rakudo doesn't like reduces of chained ops |
| 21:13 |
|
colomon |
it doesn't do them right, that's for sure. |
| 21:13 |
|
jnthn |
moritz_: The problem is that we don't have an infix:<||> defined atm. |
| 21:14 |
|
jnthn |
moritz_: Because we compile it specially rather than calling infix:<||> |
| 21:14 |
|
colomon |
I'm assuming that's so it can short circuit? |
| 21:14 |
|
jnthn |
moritz_: However, you can add one (it won't interfere with normal || uses) |
| 21:14 |
|
jnthn |
colomon: Correct. |
| 21:14 |
|
colomon |
std: say [<] 1, 3, 2, 4 |
| 21:14 |
|
p6eval |
std 30263: OUTPUT«ok 00:01 109m» |
| 21:14 |
|
jnthn |
rakudo: say [<] 1, 3, 2, 4 |
| 21:14 |
|
p6eval |
rakudo b3e08f: OUTPUT«1» |
| 21:15 |
|
|
wknight8111 joined #perl6 |
| 21:17 |
|
lichtkind |
TimToady: if we have say why dont have we an buildin called ask reading from $*IN ? :) |
| 21:17 |
|
jnthn |
lichtkind: It's called prompt ;-) |
| 21:18 |
|
lichtkind |
jnthn: goth and its even in my own docs and i forgot |
| 21:19 |
|
|
jaldhar joined #perl6 |
| 21:20 |
|
colomon |
I presume [<] 1, 3, 2, 4 is doing ((1 < 3) < 2) < 4... |
| 21:21 |
|
jnthn |
Guess so. |
| 21:21 |
|
jnthn |
Well |
| 21:21 |
|
jnthn |
Not quite |
| 21:21 |
|
lichtkind |
no |
| 21:21 |
|
jnthn |
Oh |
| 21:21 |
|
jnthn |
hmm |
| 21:21 |
|
lichtkind |
actually it does |
| 21:21 |
|
jnthn |
Yes, we get that wrong. |
| 21:21 |
|
jnthn |
:-S |
| 21:21 |
|
lichtkind |
1<3, 3<2.... |
| 21:21 |
|
lichtkind |
but wait i will look |
| 21:22 |
|
lichtkind |
colomon: yes i was remembering correct |
| 21:22 |
|
lichtkind |
colomon: actually if [<] @zahlen returns positive that array is sorted |
| 21:24 |
|
colomon |
yes, it's supposed to do 1 < 3 < 2 < 4, with proper chaining. |
| 21:24 |
|
colomon |
but that is not what it actually does |
| 21:24 |
|
lichtkind |
thats jnthns domain :) |
| 21:25 |
|
jnthn |
huh...what... |
| 21:25 |
|
jnthn |
:-P |
| 21:25 |
|
lichtkind |
haha |
| 21:25 |
|
colomon |
.reduce isn't actually defined at all, there's just a woefully inadequate implementation of the method in the spec. :( |
| 21:28 |
|
moritz_ |
jnthn: now trying with another infix:<||> rule |
| 21:28 |
|
moritz_ |
s/rule/operator/ |
| 21:28 |
|
pmurias |
is it possible to specify lazy builders for an attribute in Perl 6? |
| 21:28 |
|
pmurias |
that is a lazily built default |
| 21:28 |
|
jnthn |
pmurias: lazy builders as in...built first time it's accessed? |
| 21:29 |
|
moritz_ |
has $.x = lazy { foo() } |
| 21:29 |
|
moritz_ |
sure, why not? |
| 21:31 |
|
pmurias |
that feature of moose is very addictive |
| 21:33 |
|
newbie |
is it true that perl 6 compiler has speeded up at least 4 fold? |
| 21:34 |
|
Tene |
jaffa4: depends on when you're measuring from. |
| 21:34 |
|
jaffa4 |
I read it on some twitter. |
| 21:34 |
|
jaffa4 |
today |
| 21:35 |
|
jaffa4 |
it said some 4 line changed caused substantial speed ups. |
| 21:35 |
|
Tene |
jaffa4: Yes, that's right. |
| 21:35 |
|
moritz_ |
jaffa4: try it out yourself |
| 21:36 |
|
sorear |
A recent change caused a 16 fold speed up for me |
| 21:36 |
|
sorear |
it's still too slow, but at least it's within the realm of hackability now |
| 21:36 |
|
colomon |
that's a speed up in building the compiler, mind you. |
| 21:36 |
|
jaffa4 |
is it not the compilation speed? |
| 21:37 |
|
jnthn |
I'd guess it generally helps a bit with parsing. |
| 21:37 |
|
jnthn |
jaffa4: Yes, that's where the real win is. |
| 21:37 |
|
jnthn |
jaffa4: otoh if you're using Perl 6 grammars in your program, you probably benefit from it too. |
| 21:38 |
|
jaffa4 |
so compiling a program has not speeded up |
| 21:39 |
|
moritz_ |
try it. |
| 21:39 |
|
jaffa4 |
according to colomon |
| 21:39 |
|
sorear |
jaffa4: The compiler is a program |
| 21:40 |
|
sorear |
The compiler is also the largest Perl 6 program you're likely to encounter |
| 21:40 |
|
sorear |
the speedups are in the stage 2 compilation, which is done using Rakudo itself |
| 21:40 |
|
[particle] |
that's sad |
| 21:41 |
|
sorear |
if you compile a Perl 6 program the size of the setting (10,000 lines give or take), you'll see the same speedups |
| 21:41 |
|
|
SmokeMachine joined #perl6 |
| 21:41 |
|
moritz_ |
if you compile many regexes, you also see a speedup |
| 21:41 |
|
moritz_ |
etc. |
| 21:41 |
|
moritz_ |
that's why I said "try it" |
| 21:41 |
|
jaffa4 |
is there a binary release of that version? |
| 21:41 |
|
moritz_ |
but trying involves effort, which some people don't seem to like |
| 21:42 |
|
jaffa4 |
that is possible |
| 21:42 |
|
sorear |
hopefully by Christmas Rakudo will compile itself as quickly as P5 |
| 21:43 |
|
pmurias |
should have written the mildew AST viewer in curses instead of gtk so he wouldn't have to use a clumsy gui interface |
| 21:43 |
|
moritz_ |
jnthn: is it easy to dispatch to a different reduce sub if the operator being reduced is a chaining one? |
| 21:44 |
|
moritz_ |
oh wait... don't chaining ops already handle arbitrary number of arguments? |
| 21:44 |
|
|
jmarti joined #perl6 |
| 21:44 |
|
moritz_ |
rakudo: say [<] 0.1, 0.2, 0.3 |
| 21:44 |
|
p6eval |
rakudo b3e08f: OUTPUT«0» |
| 21:45 |
|
jnthn |
moritz_: I forget off hand how they work. |
| 21:45 |
|
moritz_ |
rakudo thinks it's false because (0.1 < 0.2) == 1, and 1 > 0.3 :-) |
| 21:45 |
|
jaffa4 |
rakudo: say [+] 0.1, 0.2, 0.3 |
| 21:45 |
|
p6eval |
rakudo b3e08f: OUTPUT«0.6» |
| 21:45 |
|
masak |
anyone would like to proof the Yapsi announcement before I post it to p6c? http://gist.github.com/352405 |
| 21:46 |
|
moritz_ |
masak: you need to hurry up, only 14 minutes left in your time zone :-) |
| 21:46 |
|
masak |
I'm all set. |
| 21:46 |
|
masak |
just need to push the button. |
| 21:47 |
|
jaffa4 |
rakudo: say [/] 0.1, 0.2, 0.3 |
| 21:47 |
|
p6eval |
rakudo 06ac48: OUTPUT«1.66666666666667» |
| 21:47 |
|
moritz_ |
masak: looks fine to me |
| 21:48 |
|
* masak |
ships it |
| 21:48 |
|
moritz_ |
masak++ |
| 21:48 |
|
jnthn |
masak: nice |
| 21:49 |
|
masak |
:) |
| 21:49 |
|
jaffa4 |
rakudo: say 0.1/ 0.2/ 0.3 |
| 21:49 |
|
p6eval |
rakudo 06ac48: OUTPUT«1.66666666666667» |
| 21:53 |
|
masak |
\o/ announcement sent to p6c, blog post posted. both with the correct date. :P |
| 21:54 |
|
dalek |
rakudo: 22f81c1 | moritz++ | (4 files): |
| 21:54 |
|
dalek |
rakudo: implement .fmt enough to pass the tests |
| 21:54 |
|
dalek |
rakudo: This contains a disturbing amount of code duplication, which could be avoided |
| 21:54 |
|
dalek |
rakudo: if Positional was written in Perl 6 (or .fmt in PIR, but I'm not masochist |
| 21:54 |
|
dalek |
rakudo: enough to do that after 11pm) |
| 21:54 |
|
dalek |
rakudo: review: http://github.com/rakudo/rakud[…]a15a1ba3356a1db93 |
| 21:54 |
|
dalek |
rakudo: 4384e1b | moritz++ | src/core/operators.pm: |
| 21:54 |
|
dalek |
rakudo: implement sub versions of the || and "or" operators |
| 21:54 |
|
dalek |
rakudo: review: http://github.com/rakudo/rakud[…]5fb411c896213e60c |
| 21:55 |
|
masak |
moritz_: if I propose a yapsi target for p6eval, will you tell me that patches are welcome? :P |
| 21:55 |
|
moritz_ |
rakudo: say [+]() |
| 21:55 |
|
p6eval |
rakudo 06ac48: ( no output ) |
| 21:55 |
|
moritz_ |
masak: sure, if it compiles in a reasonable time, and executes in a reasonable time |
| 21:55 |
|
masak |
I think it's rather reasonable. |
| 21:55 |
|
masak |
hold on, I'll test it. |
| 21:56 |
|
pugssvn |
r30264 | pmurias++ | [mildew] types for |
| 21:56 |
|
pugssvn |
r30264 | my $a = 1; |
| 21:56 |
|
pugssvn |
r30264 | my $b = $a; |
| 21:56 |
|
pugssvn |
r30264 | my $c = $c; |
| 21:56 |
|
pugssvn |
r30264 | are infered |
| 21:56 |
|
pugssvn |
r30264 | (the code is a rough first draft) |
| 21:56 |
|
sorear |
p6c? |
| 21:57 |
|
masak |
sorear: perl6-compiler |
| 21:57 |
|
* moritz_ |
is afraid his concentration doesn't even permit LHF anymore |
| 21:58 |
|
masak |
moritz_: it seems to take 1.6 s to run 'say 42' here. that's the total time, inclusing Rakudo parsing the yapsi script, loading the Yapsi.pir file, Yapsi parsing the program, and Yapsi running the program. |
| 21:59 |
|
moritz_ |
masak: that's sufficiently reasonble |
| 21:59 |
|
jnthn |
Not bad. :-) |
| 21:59 |
|
masak |
a program which does 'say 42;' five times takes 3.3 s, so the runtime is rather slow. :) |
| 22:00 |
|
jnthn |
Ouch! |
| 22:00 |
|
jnthn |
:-) |
| 22:00 |
|
pmurias |
masak: what's Yapsi? |
| 22:00 |
|
masak |
:D |
| 22:00 |
|
masak |
pmurias: it's Yet Another Perl Six Implementation. |
| 22:00 |
|
jnthn |
Something that'll REALLY confuse everyone at YAPC. |
| 22:00 |
|
masak |
pmurias: Perl 6 compiler and runtime written in Perl 6. |
| 22:01 |
|
masak |
pmurias: there's an announcement at p6c. |
| 22:01 |
|
pmurias |
masak: what do you intend it to be used for? |
| 22:01 |
|
masak |
pmurias: that's also in the announcement, but I'm happy to tell you in person. :) |
| 22:01 |
|
masak |
first off, as a basis for tardis, lid and sigmund. |
| 22:02 |
|
masak |
those are our time-traveling debugger, our coverage tool and our static analyzer. |
| 22:02 |
|
masak |
second, to scout a few areas of Perl 6 that haven't been implemented by any other implementation so far. |
| 22:02 |
|
masak |
I'm looking forward to toying with phasers especially. |
| 22:02 |
|
moritz_ |
which ones? |
| 22:02 |
|
moritz_ |
ah |
| 22:02 |
|
masak |
but also constant folding. |
| 22:03 |
|
moritz_ |
set phasers to stun! |
| 22:03 |
|
masak |
and compiler->runtime and runtime->compiler communication. |
| 22:03 |
|
sorear |
do you have a link for sigmund? |
| 22:03 |
|
masak |
no, it doesn't exist. |
| 22:03 |
|
masak |
it iz a figment of your imagination! |
| 22:04 |
|
masak |
(apart from a list I keep of things to syntactically check) |
| 22:04 |
|
sorear |
masak: how about global type inference in yapsi? |
| 22:04 |
|
moritz_ |
masak: does yapci use gge? |
| 22:04 |
|
masak |
moritz_: no, but it will as soon as it's possible. |
| 22:04 |
|
masak |
moritz_: it'll also use STD as soon as we can read YAML. |
| 22:05 |
|
masak |
moritz_: and it might also hook into the Rakudo parser. |
| 22:05 |
|
pmurias |
sorear: i'm working on that for mildew |
| 22:05 |
|
masak |
sorear: to the extent that global type inference helps find bugs statically, I expect sigmund to do it. |
| 22:06 |
|
masak |
sorear: but pmurias has actually written stuff, so look at mildew first :) |
| 22:06 |
|
masak |
pmurias++ |
| 22:08 |
|
pmurias |
masak: shouldn't (tardis,lid,sigmund) be built on top of rakudo? |
| 22:08 |
|
masak |
oh, for some definition of built, they are. |
| 22:08 |
|
masak |
and to the extent that I can plug Rakudo into this, I'll sure try. |
| 22:08 |
|
jnthn |
\o/ |
| 22:08 |
|
masak |
this is more an inclusive effort than an exclusive one. :) |
| 22:09 |
|
jnthn |
masak: After Rakudo *, I'll be quite interested to play with things like that. :-) |
| 22:09 |
|
masak |
it's just... in the long run, we need something that's very purely Perl 6. |
| 22:09 |
|
masak |
it might not be Yapsi, but Yapsi might inform our view on what it'll be. |
| 22:10 |
|
jnthn |
All Perl 6 implementation efforts tend to inform us about stuff. :-) |
| 22:10 |
|
masak |
since Elf was put on ice about a year ago, we haven't had a fully bootstrapping Perl 6 implementation. |
| 22:10 |
|
masak |
now we do again :) |
| 22:10 |
|
pmurias |
masak: Perlito is a bootstrapped implemenation |
| 22:11 |
|
sorear |
how fully bootstrapped? |
| 22:11 |
|
pmurias |
masak: why do you name all your project with strange names |
| 22:11 |
|
masak |
哈哈 |
| 22:11 |
|
pmurias |
sorear: Perlitio is fully fully bootstraped ;) |
| 22:11 |
|
masak |
pmurias: do you have a URL to Perlito? |
| 22:12 |
|
sorear |
(how many perl6 implementations will there be on Christmas? How many times will each thing be implemented?) |
| 22:12 |
|
masak |
pmurias: I wasn't aware I was giving my projects strange names. is everyone else giving their projects ordinary, normal names? |
| 22:12 |
|
pmurias |
http://github.com/fglock/Perlito |
| 22:12 |
|
jnthn |
Zavolaj and Blizkost are totally ordinary and normal. |
| 22:12 |
|
masak |
thanks. |
| 22:12 |
|
pmurias |
what i mean is lid vs Devel::Cover |
| 22:13 |
|
jnthn |
;-) |
| 22:13 |
|
|
jferrero joined #perl6 |
| 22:13 |
|
sorear |
I give projects really boring names like "Space-optimized storage manager for Perl 5" |
| 22:15 |
|
masak |
pmurias: I was quite proud when the name 'lid' struck me. :P |
| 22:15 |
|
masak |
pmurias: it's a coverage tool, see? |
| 22:15 |
|
masak |
in the same vein, 'sigmund' analyzes stuff. |
| 22:15 |
|
jnthn |
OH! |
| 22:15 |
|
jnthn |
I only just got lid. :-D |
| 22:16 |
|
moritz_ |
:-) |
| 22:16 |
|
jnthn |
spectesting a patch for given statement mod. |
| 22:16 |
|
jnthn |
(It passes all of the given.t) |
| 22:17 |
|
|
pyrimidine left #perl6 |
| 22:17 |
|
sorear |
15:16 <+dalek> parrot: [PMC] Removed a COW from key_string(); hopefully it's unnecessary. This gives |
| 22:17 |
|
sorear |
15:16 <+dalek> parrot: Rakudo a 1.975% performance improvement on the bootstrapping benchmark. If |
| 22:17 |
|
jnthn |
If what? |
| 22:17 |
|
jnthn |
:-) |
| 22:18 |
|
sorear |
If this breaks, *directions* |
| 22:18 |
|
jnthn |
OK. :-) |
| 22:19 |
|
moritz_ |
"If anything starts to go weird, this is the one we want to revert." |
| 22:20 |
|
|
lichtkind joined #perl6 |
| 22:20 |
|
|
ShaneC joined #perl6 |
| 22:20 |
|
|
ShaneC left #perl6 |
| 22:22 |
|
masak |
jnthn: don't know if this is a correct diagnosis, but you might be interested in it anyway: http://use.perl.org/comments.p[…]d=44692&cid=71809 |
| 22:24 |
|
jnthn |
Hmm |
| 22:24 |
|
jnthn |
Dunno. |
| 22:24 |
|
jnthn |
Worth looking into |
| 22:33 |
|
masak |
"Thus Klingon shows its superiority, in that it already honours the new Perl 6 sigil conventions." schwern++ http://search.cpan.org/dist/Li[…]nganHol/yIghun.pm |
| 22:37 |
|
moritz_ |
btw rakudo passed 28919 tests on my test_summary.pl just now |
| 22:38 |
|
jnthn |
Wow, so close to 29k! |
| 22:43 |
|
m6locks |
:) |
| 22:45 |
|
jnthn |
std: my $i = 1; do { $i++ } while $i < 5; |
| 22:45 |
|
p6eval |
std 30263: OUTPUT«===[0mSORRY!===[0mUnsupported use of do...while; in Perl 6 please use repeat...while at /tmp/lyErxFrhCR line 1:------> my $i = 1; do { $i++ } while $i < 5⏏;FAILED 00:01 109m» |
| 22:57 |
|
masak |
rakudo: my $i = 1; do { $i++ } while $i < 5; |
| 22:57 |
|
p6eval |
rakudo 4384e1: ( no output ) |
| 22:58 |
|
masak |
o.O |
| 22:58 |
|
* masak |
submits rakudobug |
| 22:58 |
|
masak |
rakudo: my $i = 1; do { $i++ } while $i < 5; say $i |
| 22:58 |
|
p6eval |
rakudo 4384e1: OUTPUT«5» |
| 22:59 |
|
jnthn |
std: my $i = 1; do { $i++ } if $i; |
| 22:59 |
|
p6eval |
std 30264: OUTPUT«ok 00:01 109m» |
| 23:01 |
|
jnthn |
masak: Heh, guess why I was checking if STD detected it. ;-) |
| 23:01 |
|
masak |
jnthn: because it's already in RT? |
| 23:02 |
|
masak |
very well. no rakudobug... :) |
| 23:02 |
|
jnthn |
masak: Actually 'cus I'm just sticking it in Rakudo...no idea if there's an RT |
| 23:02 |
|
jnthn |
There are tests though. :-) |
| 23:02 |
|
masak |
ok, I'm standing down :) |
| 23:06 |
|
lue |
hello! |
| 23:06 |
|
|
mikehh joined #perl6 |
| 23:06 |
|
masak |
lue! |
| 23:07 |
|
masak |
\o/ |
| 23:07 |
|
|
sundar joined #perl6 |
| 23:11 |
|
lue |
oh! Why did masak have to leave now |
| 23:12 |
|
jnthn |
lue: 'cus it's bedtime |
| 23:12 |
|
|
prism joined #perl6 |
| 23:13 |
|
lue |
that's not a reason |
| 23:14 |
|
lue |
(trying to find the XKCD comic, but the stupid Unixkcd interface is in the way) |
| 23:15 |
|
Coke-san |
google! |
| 23:16 |
|
lue |
http://xkcd.com/269/ this is why bedtime is not a reason :) |
| 23:16 |
|
snarkyboojum |
masak++ re Yapsi 2010.04 release! :) |
| 23:16 |
|
snarkyboojum |
classic email to perl6-compiler :) |
| 23:17 |
|
lue |
When does the next version of parrot come out? (the one this April) |
| 23:17 |
|
sorear |
third tuesday |
| 23:18 |
|
sorear |
20th |
| 23:19 |
|
lue |
OK. If it were released on the 15th, then Rakudo would be 17th. |
| 23:19 |
|
lue |
Which is the US Premere of Doctor Who, and I'd be hyperventalating right now |
| 23:21 |
|
|
am0c joined #perl6 |
| 23:24 |
|
pugssvn |
r30265 | jnthn++ | [t/spec] Correct and unfudge some tests. |
| 23:25 |
|
|
elmex joined #perl6 |
| 23:26 |
|
lichtkind |
good night |
| 23:27 |
|
dalek |
rakudo: 5a74e09 | jonathan++ | src/Perl6/ (2 files): |
| 23:27 |
|
dalek |
rakudo: Implement given statement modifier. |
| 23:27 |
|
dalek |
rakudo: review: http://github.com/rakudo/rakud[…]8e5b7639205600f43 |
| 23:27 |
|
dalek |
rakudo: 022d8a9 | jonathan++ | t/spectest.data: |
| 23:27 |
|
dalek |
rakudo: Turn on S04-statement-modifiers/given.t. |
| 23:27 |
|
dalek |
rakudo: review: http://github.com/rakudo/rakud[…]e2bc23e022579d39e |
| 23:27 |
|
dalek |
rakudo: 63ff066 | jonathan++ | src/Perl6/Grammar.pm: |
| 23:27 |
|
dalek |
rakudo: Whine about do...while style thingies. |
| 23:27 |
|
dalek |
rakudo: review: http://github.com/rakudo/rakud[…]5a0ca8db203b9eba3 |
| 23:28 |
|
snarkyboojum |
rakudo: sub foreach(@list) { }; foreach <1 2 3>; |
| 23:28 |
|
p6eval |
rakudo 4384e1: OUTPUT«Unsupported use of 'foreach'; in Perl 6 please use 'for' at line 11, near " <1 2 3>;"current instr.: 'perl6;HLL;Grammar;panic' pc 500 (ext/nqp-rx/src/stage0/HLL-s0.pir:328)» |
| 23:28 |
|
snarkyboojum |
std: sub foreach(@list) { }; foreach <1 2 3>; |
| 23:28 |
|
p6eval |
std 30264: OUTPUT«===[0mSORRY!===[0mUnsupported use of 'foreach'; in Perl 6 please use 'for' at /tmp/ny08B4RscG line 1:------> sub foreach(@list) { }; foreach⏏ <1 2 3>;FAILED 00:01 107m» |
| 23:29 |
|
snarkyboojum |
std: sub foreach(@list) { }; foreach <1 2 3>); |
| 23:29 |
|
p6eval |
std 30264: OUTPUT«===[0mSORRY!===[0mUnsupported use of 'foreach'; in Perl 6 please use 'for' at /tmp/FvvX3M8TV3 line 1:------> sub foreach(@list) { }; foreach⏏ <1 2 3>);FAILED 00:01 107m» |
| 23:29 |
|
snarkyboojum |
looks like a syntax error to me |
| 23:29 |
|
snarkyboojum |
std: sub foreach(@list) { }; foreach <1 2 3>)()(); |
| 23:29 |
|
p6eval |
std 30264: OUTPUT«===[0mSORRY!===[0mUnsupported use of 'foreach'; in Perl 6 please use 'for' at /tmp/9fGI4iyziU line 1:------> sub foreach(@list) { }; foreach⏏ <1 2 3>)()();FAILED 00:01 107m» |
| 23:29 |
|
|
eternaleye joined #perl6 |
| 23:29 |
|
snarkyboojum |
std: sub foreach(@list) { }; foreach xya 'k<1 2 3>)()(); |
| 23:29 |
|
p6eval |
std 30264: OUTPUT«===[0mSORRY!===[0mUnsupported use of 'foreach'; in Perl 6 please use 'for' at /tmp/VD8P2eGmP0 line 1:------> sub foreach(@list) { }; foreach⏏ xya 'k<1 2 3>)()();FAILED 00:01 107m» |
| 23:30 |
|
snarkyboojum |
hehe |
| 23:30 |
|
Coke-san |
I am working on tcl's foreach atm, and keep seeing this in my screen window and getting confused. =-) |
| 23:30 |
|
snarkyboojum |
rakudo: foreach(@list) { }; foreach xya 'k<1 2 3>)()(); |
| 23:30 |
|
p6eval |
rakudo 4384e1: OUTPUT«Confused at line 11, near "foreach(@l"current instr.: 'perl6;HLL;Grammar;panic' pc 500 (ext/nqp-rx/src/stage0/HLL-s0.pir:328)» |
| 23:30 |
|
lue |
lichtkind: good night |
| 23:30 |
|
snarkyboojum |
oops sorry Coke-san :) |
| 23:30 |
|
Coke-san |
heh. sokay. =-) |
| 23:31 |
|
lichtkind |
thanks |
| 23:31 |
|
sorear |
std: for(my $pp = \$head; defined $$pp; $pp = \( $$pp->{NEXT} )) { while ($$pp->{VALUE} == 2) { $$pp = $$pp->{NEXT} } } |
| 23:31 |
|
p6eval |
std 30264: OUTPUT«===[0mSORRY!===[0mVariable $head is not predeclared at /tmp/B1nCCllUIp line 1:------> for(my $pp = \$head⏏; defined $$pp; $pp = \( $$pp->{NEXT} ))FAILED 00:01 107m» |
| 23:31 |
|
sorear |
std: my $head; for(my $pp = \$head; defined $$pp; $pp = \( $$pp->{NEXT} )) { while ($$pp->{VALUE} == 2) { $$pp = $$pp->{NEXT} } } |
| 23:31 |
|
p6eval |
std 30264: OUTPUT«===[0mSORRY!===[0mUnsupported use of '->{' as postfix dereferencer; in Perl 6 please use '.{' or just '{' to deref, or whitespace to delimit a pointy block at /tmp/mo97y2zYSr line 1:------> = \$head; defined $$pp; $pp = \( $$pp->{⏏NEXT} )) { while |
| 23:31 |
|
p6eval |
..($$pp… |
| 23:31 |
|
sorear |
I thought C-for was gone |
| 23:32 |
|
sorear |
(incidentally, how do you translate that use of references to P6?) |
| 23:32 |
|
jnthn |
rakudo: for (my $i = 0; $i < 42; $i++) { } |
| 23:32 |
|
p6eval |
rakudo 4384e1: OUTPUT«Unsupported use of C-style "for (;;)" loop; in Perl 6 please use "loop (;;)" at line 11, near "(my $i = 0"current instr.: 'perl6;HLL;Grammar;panic' pc 500 (ext/nqp-rx/src/stage0/HLL-s0.pir:328)» |
| 23:33 |
|
snarkyboojum |
phenny: tell masak 'lid' is an awesome name for the coverage tool :) |
| 23:33 |
|
phenny |
snarkyboojum: I'll pass that on when masak is around. |
| 23:43 |
|
|
avuserow joined #perl6 |
| 23:47 |
|
lue |
rakudo: say (0 orelse 0 orelse 1 orelse "hi") |
| 23:47 |
|
p6eval |
rakudo 63ff06: OUTPUT«Unable to parse postcircumfix:sym<( )>, couldn't find final ')' at line 11current instr.: 'perl6;Regex;Cursor;FAILGOAL' pc 1664 (ext/nqp-rx/src/stage0/Regex-s0.pir:907)» |
| 23:47 |
|
lue |
rakudo: say (0 orelse 0 orelse 1) |
| 23:48 |
|
p6eval |
rakudo 63ff06: OUTPUT«Unable to parse postcircumfix:sym<( )>, couldn't find final ')' at line 11current instr.: 'perl6;Regex;Cursor;FAILGOAL' pc 1664 (ext/nqp-rx/src/stage0/Regex-s0.pir:907)» |
| 23:48 |
|
jnthn |
orelse nyi |
| 23:48 |
|
lue |
too bad :( |
| 23:50 |
|
lue |
std: say (0 orelse 0 orelse 1) |
| 23:50 |
|
p6eval |
std 30264: OUTPUT«ok 00:01 107m» |
| 23:50 |
|
lue |
at least p6eval is speedy today :) |
| 23:51 |
|
lue |
rakudo: say (0 andthen 1) |
| 23:51 |
|
p6eval |
rakudo 63ff06: OUTPUT«Unable to parse postcircumfix:sym<( )>, couldn't find final ')' at line 11current instr.: 'perl6;Regex;Cursor;FAILGOAL' pc 1664 (ext/nqp-rx/src/stage0/Regex-s0.pir:907)» |
| 23:51 |
|
lue |
NYI either |
| 23:52 |
|
* sorear |
wonders how to translate the sorear linked list filtering algorithm into Perl6 |
| 23:54 |
|
lue |
It's not in Perl6? |
| 23:54 |
|
lue |
:O |
| 23:55 |
|
sorear |
it depends on the ability to manipulate references to arbitrary scalars |
| 23:55 |
|
sorear |
I've used it in Perl5 and C |
| 23:56 |
|
lue |
So it involves references? |
| 23:56 |
|
lue |
rakudo: my $a = 3; my $b := $a; $b = 4; say $a; |
| 23:56 |
|
p6eval |
rakudo 63ff06: OUTPUT«:= binding of variables not yet implementedcurrent instr.: '&die' pc 17192 (src/builtins/Junction.pir:399)» |
| 23:56 |
|
lue |
alpha: my $a = 3; my $b := $a; $b = 4; say $a; |
| 23:56 |
|
p6eval |
alpha 30e0ed: OUTPUT«4» |