Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2006-08-04

Perl 6 | Reference Documentation | Rakudo

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:00 clkao [particle]: why is todo a hash?
00:04 [particle] clkao: it's for custom attributes, todo is one of them
00:04 [particle] todo => 'reason', tags => 'op regex v6', ...
00:05 [particle] this style is used in parrot's test suite
00:05 [particle] so i just continued that here
00:07 clkao uhm. not in pugs Test.pm
00:07 clkao :$todo
00:07 [particle] heh, duh.
00:16 ludan for $i (1..4) { say $i; } <= why does it not work on pugs?
00:16 mugwump ?eval for 1..4 -> $i { say $i }
00:16 evalbot_11895 is now known as evalbot_11910
00:16 evalbot_11910 OUTPUT[1 2 3 4 ] undef
00:17 ludan argh
00:17 ludan is no longer possible to write a for like before?
00:18 mugwump it's a major language revision, expect everything except the general feel to change
00:18 mugwump well, that's an exaggeration
00:19 mugwump ?eval for (1..4) { say $_ }
00:19 evalbot_11910 OUTPUT[1 2 3 4 ] undef
00:19 mugwump ?eval for (1..4) { say $^i }
00:19 evalbot_11910 OUTPUT[1 2 3 4 ] undef
00:19 rodi mugwump: could you remind me what $^i means?
00:20 rodi everything made sense until that one :-D
00:20 mugwump it's an implicit argument
00:20 mugwump for (1..4) { say "$^i, $^j" }
00:20 mugwump ?eval for (1..4) { say "$^i, $^j :) " }
00:20 evalbot_11910 OUTPUT[1, 2 :)  3, 4 :)  ] undef
00:20 rodi that is a beautiful thing.
00:20 mugwump isn't it just
00:21 mugwump I sure don't miss the old for form
00:21 rodi I'm only on Synopse 3 :)
00:21 rodi I HATED the old for,
00:21 rodi and I'd been using some version of it since 1992.
00:21 mugwump ?eval loop($i=0;$i<4;$i++) { say $i }
00:21 evalbot_11910 Error: Undeclared variable: "$i"
00:22 mugwump ?eval loop(my$i=0;$i<4;$i++) { say $i }
00:22 ludan coooool
00:22 evalbot_11910 OUTPUT[0 1 2 3 ] undef
00:22 * rodi salivates
00:22 ludan this implicit value is very cool $^
00:22 * rodi is pavlov's lambdacamel...
00:24 rodi ?eval sub bar {<1 2 3 4>}; for bar() -> $i { say $i }
00:24 evalbot_11910 OUTPUT[1 2 3 4 ] undef
00:25 ludan it's fantastic
00:25 ludan but not so easy to read at the first impact :/
00:26 mugwump perl has always been a bit like that...
00:26 ludan yep :P
00:26 mugwump but the funny thing is, which parts you find easy to read and which seem natural depend on your background
00:26 mugwump to a ruby programmer, the pointy sub notation ( -> $x { ... }) would seem very natural
00:27 ludan for me it's the first time
00:27 ludan but in your opinion, it's better to have (1..4) -> $x than $x ( 1 .. 4 ) ?
00:29 lollan joined perl6
00:40 [particle] no spaces allowed between subname and parens in p6, rats.
00:40 [particle] one bug squashed.
00:44 rodi [particle]: aren't you allowed to do foo\  .() # or is this not what you were talking about?
00:46 [particle] you are, i had foo  ()
00:46 rodi right-o
00:46 [particle] it was two spaces, so not really worth doing \.
00:47 toku_away is now known as tokuhirom
00:52 hikozaemon joined perl6
01:02 meppl gute nacht
01:11 sahadev2 hello, i am getting a bunch of errors like: src/DrIFT/YAML.hs:43:50: Not in scope: data constructor `ENil'
01:12 sahadev2 compiling rev 11910
01:12 sahadev2 any ideas?
01:12 Khisanth joined perl6
01:20 christo joined perl6
01:29 justatheory joined perl6
01:35 dolmans joined perl6
01:37 christo left perl6
01:56 svnbot6 r11911 | clkao++ | hack for support /$pattern/ interpolation
01:58 weinig|away is now known as weinig
02:14 weinig is now known as weinig|sleep
02:44 dolmans for (@foo, @bar) {} just traverse the two array object, how to flatten them in place?
02:44 leoncamel_ joined perl6
02:48 clkao [particle]: still around?
02:48 revdiablo dolmans: for (*@foo, *@bar) {}
02:50 leoncamel_ left perl6
02:51 dolmans revdiablo: cool, thanks.
02:53 revdiablo Steamroller operator =)
02:53 revdiablo Or maybe that's **, I forget
02:53 revdiablo But *@foo flattens
02:54 dolmans i tested *, it works fine.
02:54 svnbot6 r11912 | clkao++ | p6regex.t now reads from the test spec file.
02:54 svnbot6 r11911 | clkao++ | hack for support /$pattern/ interpolation
02:56 svnbot6 r11913 | clkao++ | EXECUTABLE_NAME or PROGRAM_NAME?  Both for now.
02:57 vel joined perl6
02:57 clkao alright, done with pugs hacking today
02:59 svnbot6 r11914 | clkao++ | Make v6 compile (and segfault while running) p6regex.t
02:59 svnbot6 r11914 | clkao++ | * Implement Perl6::Internals::open.
02:59 svnbot6 r11914 | clkao++ | * Support prefix = for reading a line from file.
03:23 amnesiac joined perl6
03:30 svnbot6 r11915 | clkao++ | Fix binding for other mg.
03:34 clkao fglock: we can now run regex_tests
03:34 svnbot6 r11916 | clkao++ | Use $/ directly.  Passing 193 tests of 485.
03:35 clkao oops, it's failing 193 tests out of 485
03:47 lisppaste3 joined perl6
03:59 TreyHarris ?eval my $x = 0 but true; say "yes" if $x
03:59 evalbot_11910 is now known as evalbot_11916
03:59 evalbot_11916 Error: No such sub: "&true"
03:59 TreyHarris what did "0 but true" become?  I remember it changed, but I don't remember to what
04:19 buu ?eval my $x 0 but TRUE
04:19 evalbot_11916 Error:  unexpected "0" expecting comment, "?", "!", trait, operator, postfix conditional, postfix loop, postfix iteration, ";" or end of input
04:19 buu er
04:19 buu ?eval my $x = 0 but TRUE
04:19 evalbot_11916 Error: No such sub: "&TRUE"
04:24 stevan joined perl6
04:44 jlhamilton joined perl6
04:51 shachaf joined perl6
04:55 lollan joined perl6
04:55 lollan_ joined perl6
04:57 Khisanth joined perl6
05:01 jlhamilton left perl6
05:05 wolverian ?eval True
05:05 evalbot_11916 Bool::True
05:05 wolverian ?eval my $x = 0 but True
05:05 evalbot_11916 Error: Cannot cast from VBool True to Pugs.AST.Internals.VCode (VCode)
05:14 [particle] joined perl6
05:38 kanru joined perl6
05:55 rgs joined perl6
05:58 Aankhen`` joined perl6
06:07 buetow joined perl6
06:16 gaal sahadev2: could you nopaste more context to the error? looks like you're trying to compile a file you shouldn't be compiling.
06:40 dolmans what dose the perl6/pugs ffi look like? especially call c libs.
06:49 pwnny joined perl6
06:49 pwnny http://z6.invisionfree.com/Best​_Damn_Sports/index.php?act=idx
06:51 pwnny left perl6
07:03 gaal in vim, how do I get the unicode code point for the character under the cursor? 'g8' gives utf8 value, which is not quite what I want.
07:04 iblechbot joined perl6
07:05 gaal ah, 'ga' works.
07:16 gaal In S02, there's an example:  my Dog $spot; say $spot; # # "Dog"
07:16 gaal Shouldn't that better print "::Dog" ?
07:29 lambdabot joined perl6
07:34 gaal hmm, maybe not, because of the binding property of ::...
07:41 baest joined perl6
07:43 gaal should the paragraph in S02 beginning "All prefix sigil operators accept one positional argument, evaluated in scalar context as a rvalue." be raised to its own bullet item?
08:05 iblechbot joined perl6
08:12 clkao is it open($fh, ...) or $fh = open(...) ?
08:17 dolmans the latter i saw in examples, but don't know the prior works or not.
08:20 clkao it's everywhere in t/
08:20 clkao oh no nevermind
08:20 clkao i am crazy. it's in the .tc file. of course.
08:21 dolmans yes, it's in t/builtin/io/...
08:23 gaal sure, the latter, and it's a first-class object.
08:24 clkao *nod*
08:24 clkao gaal: v6 already implements that
08:24 clkao if you haven't noticed
08:27 marmic joined perl6
08:27 ruoso joined perl6
08:29 dolmans the haskell fans scared me so much, they talked about "programming is essential mathematics". Buddha save me, i am always in the impression that programming is literature and art.
08:30 azuroth did they say that isn't what maths is?
08:30 kattana_ Different people see beauty in different fields.
08:30 TreyHarris clkao: did you see my question earlier?  how is "0 but true" written nowadays?
08:31 dolmans kattana_: indeed, oh, somebody says math is also art, so i laughed.
08:31 kattana_ fractals are math and art.
08:32 clkao ?eval my $x = 0 but True; say "yes" if $x
08:32 evalbot_11916 Error: Cannot cast from VBool True to Pugs.AST.Internals.VCode (VCode)
08:32 clkao bug
08:33 dolmans and da vinchi's paint is math too.:)
08:33 TreyHarris clkao: ok, good
08:34 kattana_ Lots of painters actualy used math in their paintings, precise color and contrast, only without knowing it.
08:35 kattana_ But is it beautiful because it is mathamaticaly precise, or fits the math because it is beautiful?
08:36 dolmans this is a philosophy question
08:36 azuroth your mother is a philosophy question
08:36 dolmans azuroth: what do you mean?
08:36 kattana_ Everything is if you twist the question the right way, thats the beauty of philosophy ;)
08:37 azuroth umm... I mean that the concept of life and birth is a philosophical one
08:37 dolmans that's true.
08:37 dolmans but otherwise is not.
08:38 rgs programming little algorithms might be maths, but programming large projects is definitively literature, and often not so good literature.
08:38 rgs crime stories mostly (when you try to discover the murdere^Wbug)
08:40 clkao rgs++
08:40 clkao with perl6 hopefully it's going to poetry
08:40 azuroth crime stories written in pig latin...
08:40 clkao to be poetry
08:40 dolmans i hope too.
08:42 azuroth hmm. I have a whole weekend to commoditise - what to do!
08:44 rgs go to the moose zoo !
08:44 clkao make 100 tests pass for v6
08:45 azuroth one hundred?? want to show me where to start? :-p
08:46 clkao i just implemented IO a few hours ago... making stuff under builtin/io pass might be a good start
08:46 clkao er i meant i implemented open
08:46 clkao thunking the methods etc
08:46 azuroth humm, okay. I'll need to find the v6 repo
08:47 clkao it's pugs/perl5/Pugs-Compiler-Perl6
08:47 azuroth oh. sweet
08:47 clkao ./make_build_perl5; perl util/src_to_blib.pl
08:47 clkao then you can start util/prove6 t/builtin/io
08:48 * clkao goes to bed
08:48 azuroth I'll see how far I can get...
08:51 pasteling "cmarcelo" at 200.232.237.151 pasted "Implement IArray and IHash using HsJudy. Tested against r11916." (535 lines, 21.9K) at http://sial.org/pbot/18775
08:53 nothingmuch joined perl6
08:53 svnbot6 r11917 | cmarcelo++ | * Just hides some debug messages.
08:55 cmarcelo audreyt: "pugs -e 'my @a; @a[999999999] = 2'" works here with this patch.. I tested things in t/0* t/builtins t/data_types and all seem to be broken (btw, they were VERY helpful in debugging). i'll let two smokes (trunk and my local version) running here while I sleep to see if anything is damaged.
08:57 elmex joined perl6
08:58 cmarcelo audreyt: a strange thing is [email@hidden.address] "pop @a" and others are being trapped somewhere before array_pop or array_fetchSize being called, i don't know where =P..
08:59 cmarcelo oh, just in case: "./pugs -e 'my @a; @a[999999999] = 2; say @a[999999999];'" works too =)
09:00 cmarcelo also, what's that comment in IArray's array_storeElem and array_fetchElem saying "wraparound"?
09:02 cmarcelo oh my: s/all seem to be broken/all seem to be broken only where original trunk were broken/
09:04 azuroth aha! that makes more sense :D
09:04 cmarcelo =D
09:04 revision17_ joined perl6
09:09 nothingmuch audreyt: around?
09:14 nothingmuch gaal: around?
09:15 sqd joined perl6
09:15 sqd hi
09:15 nothingmuch hi
09:16 sqd could someone help me please with a little conversion`?
09:16 * nothingmuch is willing to try
09:16 sqd can I paste 6 lines?
09:16 nothingmuch use the link in /topic
09:18 pasteling "sqd" at 129.16.101.79 pasted "script 1 (old working version)" (6 lines, 377B) at http://sial.org/pbot/18776
09:18 sqd this perl script is converting java script from a website
09:19 sqd and now that website was change and I can't manage with converting perl script
09:19 sqd changed*
09:20 nothingmuch FYI, this channel is for perl 6 discussion, not perl help
09:20 nothingmuch what's dk42?
09:20 sqd it's a js function
09:20 nothingmuch that you're parsing??
09:22 sqd I'm not familiar with that function
09:22 nothingmuch okay, nevermind
09:22 nothingmuch so you're trying to not match the additional ' + ' ?
09:22 sqd script 1 was changed and is working now
09:22 sqd and I need to convert wcript 2
09:23 nothingmuch the perl is just matching
09:23 sqd dk42 was replaced by write in js
09:24 sqd js: dk42( unescape( 'some key' ) ) perl: ~ /dk42\( unescape\( '([^']+)/;
09:24 sqd js: + write( unescape( 'some key' ) )      perl: this is the question ;)
09:24 nothingmuch oh
09:25 nothingmuch s/\bdk42\(/write\(/gs;
09:25 nothingmuch that should do the trick
09:25 sqd $line=s/\bdk42\(/write\(/gs;
09:25 sqd right?
09:26 nothingmuch yep
09:26 nothingmuch but be careful
09:26 nothingmuch that'll also replace dk42( in strings
09:26 sqd there is no dk42 in new js
09:26 nothingmuch i menat in the old js
09:26 sqd there is "write" instead of "dk42
09:26 nothingmuch to do a 100% safe find/replace you need to parse the js with a grammar
09:27 nothingmuch and replace only the function call nodes
09:27 sqd old is working, I need to fix the new one
09:27 azuroth does < and > work in perl regex like in vim..? ^_^;
09:27 nothingmuch oh
09:27 nothingmuch so do you want to replace all the write() to dk42() ?
09:27 sqd no no
09:27 sqd I have to get the key from js using perl
09:28 sqd in old version of js it was done like shown in the file
09:28 gaal nothingmuch: moose
09:28 nothingmuch gaal: i want someone to talk to about composed interfaces for Moose
09:28 nothingmuch or actually Class::MOP
09:28 sqd and now admin changed the js replacing function dk42 with "write"
09:28 nothingmuch sqd: the file doesn't do any ocnversion
09:28 nothingmuch the nopaste, anyway
09:28 nothingmuch just matching
09:28 sqd and I don't know how to fix that in perl
09:29 gaal nothingmuch: shoot
09:29 azuroth it captures the key in ()s?
09:29 nothingmuch gaal: #moose?
09:29 gaal you got it
09:30 sqd nothingmuch what makes this line: $line =~ m#\+ write\( unescape\( '([^']+)#)  with this js: dk42( unescape( 'some key' ) )  ?
09:30 nothingmuch sqd: i don't understand the question
09:31 sqd to get "a key" form the website I have to use perl script
09:32 sqd in the js on the website was a piece: dk42( unescape( 'some key' ) )
09:32 sqd respective perl script to get the key was: ($line =~ m#dk42[^']*'([^']*)'#)
09:32 sqd now the js on the website was changed to: + write( unescape( 'some key' ) ) +
09:33 sqd and respective working perl script to get the key is: ($line =~ m#\+ write\( unescape\( '([^']+)#)
09:33 sqd my question is:
09:33 sqd I have another perl script to get that key
09:33 cmarcelo I did a "./make_build_perl5; perl util/src_to_blib.pl", make install and then tried perl t/01-sanity/01-tap.t and got a lot of errors like: String found where operator expected at t/01-sanity/01-tap.t line 6, near "say '1..10'" (Do you need to predeclare say?)
09:33 sqd for old js version is was: $line=~ /dk42\( unescape\( '([^']+)/;
09:34 cmarcelo anyone knows what is causing this?
09:34 sqd how to change the second perl script to work for the new js.
09:35 azuroth just change the dk42 to write?
09:35 sqd no
09:35 sqd it doesn't work
09:36 sqd working example is shown above
09:36 sqd but I don't know how to fix script 2
09:37 sqd ($line =~ m#dk42[^']*'([^']*)'#) <--for dk42
09:37 sqd ($line =~ m#\+ write\( unescape\( '([^']+)#)  <--- for "write"
09:37 sqd this was script 1
09:37 sqd how to do the same in script 2?
09:38 sqd both scripts are here: http://sial.org/pbot/18776
09:38 lambdabot Title: Paste #18776 from "sqd" at 129.16.101.79
09:39 azuroth I don't see why the first wouldn't still work..
09:39 sqd the first is working
09:39 sqd but forsome reason I have to use script 2
09:41 sqd script 1 was succesfully converted, my task is to do the same with script 2
09:42 azuroth hmm. well the first regex matches the second write( etc ) for me..
09:44 sqd hmm
09:51 sqd what makes m# in ($line =~ m#\+ ?
09:52 azuroth m# ... # is just like m/ ... / or m( ... )
09:53 sqd # replaces whatever?
09:55 kane-xs joined perl6
09:55 azuroth # is just hte delimiter
09:55 azuroth only works for regexes and qw and stuff, I think
09:56 sqd azuroth, could you please explain that line: ($line =~ m#\+ write\( unescape\( '([^']+)#)
09:56 azuroth how much of it do you already understand? :-)
09:56 sqd a little
09:56 sqd I'm newbie
09:56 sqd let'¨s say almost nothing :D
09:57 sqd I'm not familiar with perl
09:58 azuroth well variables are preceded by $.. so $line is a variable. =~ is the regex operator - do you know about regular expressions?
09:58 StudiesInWords try #perlhelp
09:58 sqd I don't know, but about regex
09:58 sqd I don't know about regex
09:58 sqd (sorry)
09:59 sqd I want to undestand that piece: m#\+ write\( unescape\( '([^']+)#)
09:59 sqd what does it make with "line" variable
10:00 sqd StudiesInWords there is only one person at #perlhelp
10:00 nothingmuch #perl
10:01 azuroth it just takes $line's value (say the string "foo bar + write( unescape" )
10:01 StudiesInWords efnet/#perlhelp (right?)
10:02 sqd right
10:04 rodi joined perl6
10:05 sqd thanks azuroth
10:05 azuroth that's alright
10:06 dolmans just takes $line's value (say the string "foo bar + write( unescape" )
10:06 dolmans <StudiesInWords> efnet/#perlhelp (right?)
10:06 dolmans oops,sorry.
10:06 sqd that I already know dolmans :)
10:07 dolmans :-P, that's true.
10:10 sqd azuroth do you have a minute to help me with a little problem?
10:10 azuroth sure
10:10 sqd http://sial.org/pbot/18776
10:10 lambdabot Title: Paste #18776 from "sqd" at 129.16.101.79
10:11 sqd I need to fix script 2
10:11 azuroth hmm, I still can't see why script 2 won't work as it is
10:11 sqd script 1 was fixed and is working, i have to do the same with script2
10:12 azuroth it should just be the same as script 1
10:12 sqd azuroth script 2 doesn't exist
10:13 azuroth well script 1 should do everything that script 2 has to
10:13 sqd that's the problem
10:13 sqd azuroth right
10:13 sqd script 1 was already fixed
10:13 sqd the problem is with script2
10:16 sqd in script 1 is a function dk42, in script 2 is write
10:17 azuroth hmm, okay... how is it a problem with script 2 if script 2 doesn't exist? :S
10:17 chris2 joined perl6
10:18 sqd the problem is to write perl script 2
10:18 sqd (exactly one line)
10:18 rodi In S03, the word "brainos" - does it just mean "silly mistakes" ?
10:18 azuroth like typos, yeah
10:18 azuroth except brainographical errors
10:19 rodi I have learned a lot of new syntax reading these things, just wanted to make sure I'm not missing some obscure linguistics term ;)
10:21 sqd azuroth could yopu please look at computers.ovh.org/problem1.txt  ?
10:23 azuroth the regex should all be OK
10:23 sqd all are OK
10:24 sqd all are/were(before js changes, script 1) working
10:26 sqd #example in that file is in js
10:27 azuroth hmm, okay
10:28 azuroth I really don't know :x
10:28 sqd ok, thanks for help anyway
10:48 theorbtwo joined perl6
11:21 marmic joined perl6
11:37 ivas joined perl6
11:40 SM_ax joined perl6
11:42 ludan joined perl6
11:46 kane__ joined perl6
12:01 Limbic_Region joined perl6
12:15 dolmans joined perl6
12:38 gaal in s02, this example for adverbial modification isn't clear to me:
12:38 gaal for =$handle :prompt('$ ') { say $_ + 1 }
12:38 gaal why is it the read that's being modified?
12:40 gaal is auxilary:<prompt> simply { $^v ~ $_ }  ?
12:56 ludan joined perl6
12:59 cmarcelo audreyt: re: patch, after smokes I found that t/operators/assign.t has a lot of tests broken with my version, I'm checking on that.
13:01 scook0 joined perl6
13:03 mako132 is now known as maco132
13:11 sahadev2_ joined perl6
13:13 mauke_ joined perl6
13:15 kolibrie I would like to try out v6.pm, and tried clkao's instructions at http://use.perl.org/~clkao/journal/30407
13:15 lambdabot Title: Journal of clkao (1687)
13:15 kolibrie unfortunately, make build_perl5 seems to not find Data::Bind and other modules under pugs/perl5
13:16 kolibrie and util/prove6 t/01-sanity says:
13:16 kolibrie bash: util/prove6: /bin/perl: bad interpreter: No such file or directory
13:16 kolibrie do I need to set some environment variable or path so that the modules under perl5 are found?
13:17 cmarcelo kolibrie: about prove6, you can change the first line to match your perl location... i.e., /usr/bin/perl
13:17 cmarcelo first line of util/prove6 script
13:18 kolibrie cmarcelo: hmm, well, now that appears to run, but the 01-sanity says...dubious
13:18 kolibrie t/01-sanity...pugs: t/01-sanity: openFile: inappropriate type (is a directory)
13:18 cmarcelo ops
13:19 cmarcelo try with t/01-sanity/*.t
13:20 kolibrie cmarcelo: yes, that seems to work nicely
13:20 kolibrie thank you
13:20 cmarcelo tests passed?
13:20 kolibrie cmarcelo: yes, except for two which were skipped
13:20 kolibrie but that is the haskell backend
13:20 cmarcelo hmm
13:20 justatheory joined perl6
13:21 cmarcelo util/prove6 --perl t/01-sanity/*.t
13:21 kolibrie that gets me lots of errors
13:21 cmarcelo something like this: "String found where operator expected at t/01-sanity/01-tap.t line 6"
13:21 cmarcelo ?
13:22 kolibrie yes, like that
13:23 kolibrie String found where operator expected at t/01-sanity/01-tap.t line 6, near "say '1..10'"
13:23 cmarcelo kolibrie: welcome to my world =o)... i'm stuck at this point too...
13:24 kolibrie I think that not everything from pugs/perl5 made it into the blib
13:24 kolibrie or something
13:24 kolibrie fglock: clkao: can you shed any insights into your v6.pm setup?
13:27 penk joined perl6
13:28 nothingmuch joined perl6
13:28 mauke_ is now known as mauke
13:30 cmarcelo kolibrie: i'm going to sleep... report in the channel if you find how to solve it before rescue come. tks &
13:35 fglock kolibrie: you can do a first install from cpan, and then install the newer perl5/ modules to get the latest devel version
13:39 vel joined perl6
13:39 justatheory joined perl6
13:43 iblechbot joined perl6
13:44 kolibrie fglock: so you generally install, rather than just running from the pugs tree?
13:45 fglock kolibrie: the cpan is known to work, so it's easier to start with
13:45 fglock cpan version
13:46 * kolibrie thought that since he already had the pugs tree, that would be easier
13:46 fglock please install Cache::Cache also
13:47 kolibrie that makes it faster, I presume?
13:49 fglock yes, it is used to cache rules as perl5 code
13:49 kolibrie sounds nice
13:49 [particle] gah. cpan v6 fails make test on windows
13:50 [particle] it assumes the shell does globbing for you
13:50 [particle] this should be an easy fix
13:50 [particle] by putting double quotes around "t/*.t" etc
13:54 [particle] i'll post a small patch
13:55 fglock [particle]: thanks!
14:01 hexmode joined perl6
14:07 Anil joined perl6
14:15 robkinyon joined perl6
14:18 robkinyon joined perl6
14:21 chris2 joined perl6
14:22 svnbot6 r11918 | fglock++ | pX/Pugs-Compiler-Rule - /{ return undef }/ actually returns an undef value
14:22 weinig|sleep is now known as weinig
14:27 lolage joined perl6
14:36 tokuhirom is now known as toku_away
14:36 svnbot6 r11919 | fglock++ | pX/Pugs-Compiler-Perl6 - '--compile-only' works
14:36 svnbot6 r11918 | fglock++ | pX/Pugs-Compiler-Rule - /{ return undef }/ actually returns an undef value
14:38 prefiks joined perl6
14:38 ruz joined perl6
14:46 weinig is now known as weinig|away
14:49 [particle] okay, my changes seem to work
14:50 [particle] boy, it takes a while for these tests to run, though
14:52 fglock [particle]: yes, i hope the pX rewrite will make it faster
14:53 [particle] fglock: are there expected test failures?
14:54 amnesiac_ joined perl6
14:55 amnesiac_ is now known as amnesiac
14:55 fglock the numbered tests should pass - 01-sanity, 02-test-pm; the pugs test suite may fail some tests
14:56 pasteling "[particle]" at 144.81.84.180 pasted "modified v6-alpha Makefile.PL for cross-platform friendliness" (59 lines, 1.6K) at http://sial.org/pbot/18778
14:56 [particle] okay, that's good then.
14:56 [particle] i pasted it here, it was easier to do than diff
14:57 [particle] note 'use File::Spec' and the changes in makemaker_args() and clean_files()
14:58 [particle] All tests successful (12 subtests UNEXPECTEDLY SUCCEEDED), 2 subtests skipped.
14:58 [particle] yay!
14:58 fglock [particle]: commit Makefile.PL to svn?
14:59 [particle] oh, v6-alpha-0.11  is in the pugs repo?
15:00 fglock perl5/Pugs-Compiler-Perl6/
15:01 fglock the Makefile.PL in svn may be different from cpan
15:02 [particle] close enough
15:03 [particle] fixed a bug in it, too
15:03 [particle] hence the 12 unexpected success
15:04 fglock :)
15:06 svnbot6 r11920 | particle++ | [Pugs-Compiler-Perl6]: modified Makefile.PL for cross-platform friendliness
15:12 svnbot6 r11921 | fglock++ | pX/Pugs-Compiler-Perl6 - added a source file line counter
15:12 meppl joined perl6
15:13 frederico joined perl6
15:16 buetow joined perl6
15:23 [particle] t/p6regex/p6regex....Can't locate v6.pm in @INC (@INC contains:
15:23 [particle] aargh
15:25 crem_ joined perl6
15:28 kanru joined perl6
15:43 cjeris joined perl6
15:44 weinig|away is now known as weinig
16:05 mindbob whats the best way to go about playing with environment variables in perl, more specifically, accepting a given env variable and displaying its memory addy?
16:07 weinig is now known as weinig|bbl
16:08 Psyche^ joined perl6
16:14 TimToady SageLT: {xxx} in P5 doesn't treat curlies as metacharacters unless xxx =~ /\d+(?:,\d*)?/
16:16 iblechbot joined perl6
16:16 Psyche^ is now known as StudiesInWords
16:17 TimToady clkao: A orz B can parse as infix:<orz> only if it is predefined.
16:18 TimToady fglock is correct, the only possible parse for an undeclared orz is A( orz(B)), and that requires orz to be defined as compatible to listop by the end of the file.
16:18 svnbot6 r11922 | fglock++ | pX/Pugs-Compiler-Perl6 - fixed source file line counter for one-liners
16:18 PerlJam mindbob: This channel is about perl6.  You probably want to stay on #perl
16:19 TimToady and even that parse is impossible if A is unambiguously the end of a term.
16:19 TimToady since you can never have two terms in a row.
16:20 Corion joined perl6
16:20 TimToady dolmans: * as flattener is deprecated--we use [,] now, but it shouldn't be necessary (@foo, @bar) in list context, which should flatten anyway (lazily)
16:21 TimToady did I miss anything?
16:21 Corion What? The steamroller operator is dead? Awww :-(
16:21 Corion Anyway, just passing through, have fun;)
16:21 TimToady if you're on the way to the fjords, maybe you'll find the steamroller there. :)
16:24 Corion TimToady: I'm not dead yet. I still have lots of voom!
16:35 weinig|bbl is now known as weinig
16:38 TreyHarris TimToady: and "0 but True" is correct, and a Pugs bug?
16:38 TreyHarris ?eval 0 but True
16:38 evalbot_11916 is now known as evalbot_11922
16:38 evalbot_11922 Error: Cannot cast from VBool True to Pugs.AST.Internals.VCode (VCode)
16:41 clkao oh, v6 passes 1229 tests now
16:42 [particle] clkao++ for getting p6regex harness working
16:42 [particle] if only i had v6 working, i could test it :)
16:42 fglock clkao: I'm starting to s/Regex/Token/ in pX
16:44 [particle] how will C<rule dbi_ns { ::DBI }> parse? is :: a cut marker or ns sigil?
16:45 fglock {} is a closure, so it's a sigil
16:45 fglock oops, no
16:46 Corion_ joined perl6
16:46 fglock the rule is ' ::DBI ', so it's a cut marker
16:46 clkao [particle]: what's stopping v6 working for you?
16:46 [particle] clkao: i fixed win32 makefile issues this morning
16:46 [particle] but prove6 can't find v6 in @INC
16:48 PerlJam clkao: Is there some roadmap for future svk changes somewhere?
16:48 weinig joined perl6
16:48 * [particle] is running nmake install again, to be sure
16:50 PerlJam fglock, [particle]: having a cut marker at  the beginning of a pattern is weird.
16:51 [particle] i think '::' as a sigil is weird
16:51 clkao PerlJam: if it's not on svktodo then there's not. perhaps i wrote something on the mailing list
16:51 [particle] how does C<rule { $x }> parse? (sigil or eol?)
16:53 fglock $x interpolates to a string or to a subrule
16:53 [particle] right. so does ::foo interpolate to something?
16:54 DaGo joined perl6
16:55 clkao TimToady: ok... so the parser has to change the way parsing when it sees infix:<orz> defined
16:55 [particle] what if i have C< grammar foo; ...; package bar; rule baz { ::foo };> ?
16:55 PerlJam ::foo should probably warn IMHO
16:56 [particle] :: is also a sigil for grammar (as per S02)
16:56 [particle] can a grammar be inside a rule?
16:56 [particle] if not, s/grammar/enum/
16:57 [particle] i don't see a clear answer
16:59 PerlJam I thought the only uses of :: as sigil were in declarations and as ::(...) for interpolation
17:00 tup joined perl6
17:00 [particle] hrmm
17:00 [particle] so rule { ::(foo) }
17:00 [particle] still ambiguous
17:00 TimToady TreyHarris: yes, 0 but True should work.
17:03 TreyHarris ok.  hopefully i'll be able to write a test soon.  supposedly, the application just needs final approval in general counsel's office or somesuch...  the past few weeks have been really excruciating, seeing all these things i want to contribute and not being able to... :-)
17:03 frederico joined perl6
17:03 * [particle] wonders if s/True/true/ might work
17:04 PerlJam I'm having trouble seeing why anyone would want to do rule foo { ::(...) } where :: is cut, so I'm inclined to say that it never is.
17:04 GODAttach joined perl6
17:04 GODAttach left perl6
17:04 [particle] istr there was a case change in pugs recently, dunno if it was completed
17:05 bernhard joined perl6
17:05 [particle] it doesn't have to be empty in front of the ::
17:05 [particle] foo::bar(baz)
17:06 TimToady clkao: yes all function definitions mutate the language to some degree.  As a kind of macro, installing an infix is required to have only lexical scope.
17:06 PerlJam we have whitespace disambiguation for that.
17:06 PerlJam foo::bar (:: is never cut),  foo :: bar (:: is always cut)
17:07 [particle] but rules are ws sensitive
17:07 [particle] so, i suppose you need <?wb> disambiguation
17:07 TimToady what do you mean by ws sensitive?
17:08 [particle] what's the modifier... :sigspace
17:08 TimToady the inside of a rule works the same way as the outside, linguistically speaking--we still follow longest-token rule.  It's just a different language
17:08 TimToady :sigspace gives extra significance to whitespace.
17:08 clkao i wonder if/how PCR can handle this
17:09 TimToady so ::foo should be reserved for types, in case we ever want to bind a type:  ::foo := (...) somehow.
17:09 [particle] clkao: the parser should handle that
17:09 TimToady basically, I think backtrack controllers should almost always have a space after them.
17:09 TimToady much like label colons
17:10 [particle] oh, label colons have required post-space? wasn't aware of that
17:10 clkao ya, i know it should. just wonder if we can already handle it
17:10 [particle] oh, *already*
17:11 [particle] well, longest token rule works for me. i should have thought of that.
17:12 PerlJam [particle]: yeah, it's hard to keep everything in your head at once though :)
17:12 [particle] and if you really want to be clear, <'::'>foo
17:12 [particle] pj: this is why i ask questions :)
17:13 [particle] i've forgotten more than i'll ever know
17:14 [particle] (to turn a phrase)
17:25 * PerlJam wonders if bestpractical has an RT queue setup for svk so that he could add a ticket for clkao to produce an svk roadmap  ;)
17:26 * [particle] joins #svk
17:29 clkao PerlJam: for now we are using hiveminder ;) you want to join svk group ?
17:30 PerlJam clkao: what does that mean to me?
17:35 tup joined perl6
17:39 clkao PerlJam: what's your email?
17:39 PerlJam clkao: [email@hidden.address]
17:42 frederico joined perl6
17:48 svnbot6 r11923 | fglock++ | pX/Pugs-Compiler-Perl6 - s/Regex/Token/ in several places
17:56 hexmode joined perl6
17:56 pasteling "[particle]" at 144.81.84.180 pasted "svk debug (#perl6 please ignore, intended for #svk)" (101 lines, 3.1K) at http://sial.org/pbot/18779
17:59 ajs joined perl6
18:08 xinming_ joined perl6
18:13 vel joined perl6
18:14 vel joined perl6
18:22 Eimi joined perl6
18:23 iblechbot joined perl6
18:30 cookys joined perl6
18:36 crem joined perl6
18:42 [particle] figured out why v6 wasn't found in @INC
18:42 [particle] because it wasn't in @INC!
18:42 [particle] it's in PERL5LIB
19:17 crem joined perl6
19:21 rindolf joined perl6
19:21 rindolf Hi all!
19:21 rindolf TimToady: here?
19:25 fglock joined perl6
19:27 rindolf audreyt: here?
19:27 bradb joined perl6
19:38 embedded_cm joined perl6
19:38 rindolf http://www.shlomifish.org/philosophy/computers/edu​cation/introducory-language/introducory-language/
19:38 lambdabot Title: Toughts about the Best Introducory Language
19:40 weinig joined perl6
19:41 weinig is now known as weinig|bbl
20:08 tup joined perl6
20:18 sahadev2 joined perl6
20:21 svnbot6 r11924 | fglock++ | pX/Pugs-Compiler-* - implemented 'fail' inside rules
20:34 larsen joined perl6
20:35 fglock joined perl6
20:42 svnbot6 r11925 | fglock++ | pX/Pugs-Compiler-Perl6 - Prelude compiles
20:44 clkao whoot
20:44 svnbot6 r11926 | Darren_Duncan++ | Updated the documentation in ext/Rosetta/lib/Rosetta/SeeAlso.pod and ext/Set-Relation/lib/Set/Relation.pm
20:59 SageLT joined perl6
21:00 SageLT audreyt: you available for a quick question on running ghc on intel macs?
21:03 fglock_ joined perl6
21:05 fglock_ clkao: I think it is possible to start the merge
21:10 hexmode joined perl6
21:16 clkao fglock_: excellent
21:17 svnbot6 r11927 | fglock++ | pX/Pugs-Compiler-Perl6 - cleanup debug info
21:17 clkao do the tests pass?
21:19 fglock_ I only run a few tests - I'll try in windows now
21:30 kolibrie cmarcelo: I never got back to v6.pm, I'll try again after the weekend
21:46 clkao fglock_: also have you noticed we can run p6regex.t
21:46 TimToady joined perl6
21:47 prefiks left perl6
21:51 clkao fglock_: fyi, tailcall is not passing
21:53 clkao fglock_: but we might as well merge up to trunk and fix it there.
22:01 fglock_ clkao: I'll take a look
22:01 fglock_ TimToady: ping
22:02 clkao ok. meanwhile i found the merge doing something stupid. i will look at svk
22:02 clkao ETOOMANYYAKS
22:04 fglock_ notice: YAPC::SouthAmerica is moving nov 3-5 (was nov 9-11)
22:04 fglock_ we got a bigger place, but we had to change dates
22:05 clkao oh this is getting interesting.
22:05 clkao how far is it from SFO or BOS?
22:05 clkao and do i need a visa
22:05 TimToady fglock_: pong
22:06 clkao fglock_: ah anotehr thing is can we change the parse on the fly inserting now infix prefix etc?
22:06 fglock_ TimToady: please check if the new date is ok for you
22:07 TimToady I'll have to check with Gloria.
22:07 fglock_ clkao: yes, there is a 'recompile' method in each class, that can be used to create a new local grammar
22:08 fglock_ TimToady: ok
22:08 fglock_ clkao: the airport code is GRU
22:12 SageLT audreyt: Are you around? I got a quick question on ghc on intel macs.
22:14 fglock_ YAPC::SA -> http://en.wikipedia.org/wik​i/Anhembi_Convention_Center
22:16 clkao TAM has direct flight
22:18 weinig|bbl is now known as weinig
22:19 cjeris left perl6
22:22 svnbot6 r11928 | Sage++ | This is the script I've been using for testing. It's simple and underdocumented at this point, but it runs translate across all yaml files in a directory. Since I've been testing on a Mac that has problems with ghc compiling, there's also an extremely slow option to run ghc seperately for each test (with no comiling).
22:30 fglock_ clkao: are you in US or England?
22:30 fglock_ i mean, in november
22:32 xinming_ is now known as xinming
22:34 clkao fglock_: london
22:34 clkao i don't know, might be in US
22:40 hexmode joined perl6
22:44 fglock_ biab &
22:45 fglock_ left perl6
23:28 weinig is now known as weinig|bbl
23:30 justatheory joined perl6
23:49 mdiep joined perl6

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

Perl 6 | Reference Documentation | Rakudo