Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2008-06-26

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:01 pmichaud pugs:  say +(1..5)
00:01 p6eval pugs: OUTPUT[5␤]
00:01 pmichaud pugs: say +(10..20)
00:01 p6eval pugs: OUTPUT[11␤]
00:03 nowhea__ joined #perl6
00:10 dolmen will have a look at this tomorrow
00:11 apeiron_ joined #perl6
00:14 pmichaud potential release name:  http://picasaweb.google.com/patrick​.michaud/Misc02?authkey=wXfw2HI43Lo
00:14 lambdabot Title: Picasa Web Albums - Pm - misc, http://tinyurl.com/6dkcqf
00:24 pugs_svnbot r21047 | lwall++ | [STD] ws memo bug, can now get about 4000 bytes into STD.pm
00:24 pugs_svnbot r21047 | lwall++ | [Cursor5] show location in orig code more often
00:58 Limbic_Region joined #perl6
01:12 drbean joined #perl6
01:22 drbean joined #perl6
01:28 pugs_svnbot r21048 | lwall++ | [STD] package name bugs, combined package_def with role_def
01:28 pugs_svnbot r21048 | lwall++ | [Cursor5] can now do pretty trace in color
01:28 TimToady STD5 now gets 4460 bytes into STD.pm before blowing up \o/
01:38 pmichaud yay!  How long is STD.pm ?
01:40 Limbic_Region right, but it did it consume the first 4460 bytes correctly :-)
01:46 Auzon pmichaud: STD.pm is ~96000 chars including POD and comments
01:48 pmichaud so, ~ 5% :-)
01:48 Auzon But probably not 5% of the implementation.
01:50 bacek_ joined #perl6
01:58 cmarcelo joined #perl6
02:03 FurnaceBoy joined #perl6
02:28 pugs_svnbot r21049 | Auzon++ | [vim syntax highlighting] fixed problems with my previous syntax highlighting change. qq{} doesn't work, not sure if I'm responsible for that or not.
02:41 rakudo_svn r28699 | pmichaud++ | [rakudo]:
02:41 rakudo_svn r28699 | pmichaud++ | * Add workarounds for argument checking of 0-ary functions (RT#56366).
02:57 pmichaud pugs:  say (3..7).pick(10).elems
02:57 p6eval pugs: OUTPUT[5␤]
03:02 elmex_ joined #perl6
03:02 redicaps joined #perl6
03:16 Pzt joined #perl6
03:22 drbean joined #perl6
04:26 pugs_svnbot r21050 | Auzon++ | [gsoc_spectest] t/packages -> t/spec/S10-packages/*.t and t/spec/packages/*.pm. Modified a bunch of tests.
04:26 pugs_svnbot r21050 | Auzon++ | packages used for testing are stored in t/spec/packages to avoid a hyphen in the name since hyphens are not legal package/variable names (without quoting them explicitly each time).
04:26 Auzon files left in t/packages are out of date (or rely on unspecced features specific to Pugs)
04:28 Auzon I'll revisit smartlinks and add a handful of tests that I originally intended to add before I got sidetracked reorganizing. But reorganizing is helpful anyway.
05:04 Auzon I'll be out tomorrow until late if at all. night all &
05:08 justatheory joined #perl6
05:08 Psyche^ joined #perl6
05:27 pbuetow joined #perl6
05:39 nothingmuch joined #perl6
05:42 alester joined #perl6
05:50 felipe joined #perl6
05:54 alester Should "my Num $num = 14" work?
05:54 alester 'cause it goes crashy crashy for me.
06:00 rakudo_svn r28703 | pmichaud++ | [rakudo]:
06:00 rakudo_svn r28703 | pmichaud++ | * Add .pick methods and functions.
06:00 rakudo_svn r28703 | pmichaud++ | * Add .elems methods and functions to Any.
06:00 rakudo_svn r28703 | pmichaud++ | * Resolves RT#56266 and RT#49085.
06:06 rakudo_svn r28704 | petdance++ | adding some type sanity
06:13 nowhea__ left #perl6
06:33 rakudo_svn r28705 | pmichaud++ | [rakudo]:
06:33 rakudo_svn r28705 | pmichaud++ | * spectest-progress.csv update
06:33 rakudo_svn r28705 | pmichaud++ | * 73 files, 944 passing tests as of 2008-06-26 00:00
06:39 pugs_svnbot r21051 | pmichaud++ | S29-num/rand.t:  Update #?rakudo skip message to link to RT#56274.
06:56 rakudo_svn r28707 | pmichaud++ | [rakudo]:
06:56 rakudo_svn r28707 | pmichaud++ | * Move .cis and .unpolar into Any.
07:12 pugs_svnbot r21052 | pmichaud++ | S29-num/complex.t:  update #?rakudo skip markers for new passing tests
07:12 araujo joined #perl6
07:26 pmichaud pugs:  say [1,2,3].join('-');
07:26 p6eval pugs: OUTPUT[1-2-3␤]
07:26 pmichaud pugs:  say ([1,2,3], 7).join('-');
07:26 p6eval pugs: OUTPUT[1 2 3-7␤]
07:26 pmichaud pugs:  say join('-', [1,2,3]);
07:26 p6eval pugs: OUTPUT[-␤]
07:27 pmichaud pugs:  say join('-', 1, 2, 3);
07:27 p6eval pugs: OUTPUT[-␤]
07:27 pmichaud pugs:  my @a = 1, 2, 3;  say join('-', @a);
07:27 p6eval pugs: OUTPUT[-␤]
07:27 moritz_ not quite what expected ;)
07:31 moritz_ Auzon: in r21049 (vim syntax hilighting) you reverted my changes to the type names. Was that on purpose?
07:33 moritz_ rakudo: say [1,2,3].join('-')
07:33 p6eval rakudo 28687: OUTPUT[1-2-3␤]
07:33 moritz_ I'm pretty sure that's correct
07:33 moritz_ rakudo: ([1,2,3], 4).join('-')
07:33 p6eval rakudo 28687: RESULT["1 2 3-4"]
07:34 moritz_ I think that's also correct
07:40 pmichaud pugs:  say [1,3,7].values;
07:40 p6eval pugs: OUTPUT[137␤]
07:40 pmichaud pugs:  say ([1,3,7], 2).values;
07:40 p6eval pugs: OUTPUT[1 3 72␤]
07:42 pmichaud pugs:  say ([1,3,7], 2).values.elems;
07:42 p6eval pugs: OUTPUT[2␤]
07:42 pmichaud pugs:  say [1,3,7].values.elems;
07:42 p6eval pugs: OUTPUT[3␤]
07:42 pmichaud rakudo: say [1,3,7].values.elems;
07:42 p6eval rakudo 28687: OUTPUT[3␤]
07:42 pmichaud rakudo: say [1,3,7].values.WHAT;
07:42 p6eval rakudo 28687: OUTPUT[Array␤]
07:43 pmichaud oh.
07:43 pmichaud okay, I think I understand now.
07:44 pmichaud although I'm still a little curious if [1,2,3].join('-')   should be  "1-2-3" or "1 2 3".
07:44 pmichaud (since [1,2,3] is a Scalar)
07:44 pmichaud wow, 2:44a here.  Time for sleep.
07:47 moritz_ pmichaud: scalar containers dispatch method calls to their stored objects
07:47 pugs_svnbot r21053 | pmichaud++ | Update some skip messages in the test suite to include RT ticket numbers.
07:49 pmichaud moritz_++  # good point.
07:50 pmichaud afk
07:51 moritz_ sleep well ;)
08:03 pugs_svnbot r21054 | lwall++ | [STD] bugs, bugs, bugs, bugs...now gets 11% through parsing itself
08:05 a-jing joined #perl6
08:05 a-jing left #perl6
08:11 meppl joined #perl6
08:16 smtms joined #perl6
08:39 cognominal_ joined #perl6
09:06 mj41__ joined #perl6
09:18 icwiener joined #perl6
09:20 Jedai joined #perl6
09:26 |Jedai| joined #perl6
09:26 jfredett_ joined #perl6
09:27 smtms joined #perl6
09:33 masak joined #perl6
09:33 Jedai joined #perl6
09:42 xinming joined #perl6
09:49 Jedai joined #perl6
09:55 Jedai joined #perl6
10:06 bacek joined #perl6
10:08 iblechbot joined #perl6
10:14 pbuetow joined #perl6
10:16 a-jing joined #perl6
10:16 a-jing left #perl6
10:18 X-Scale joined #perl6
11:01 jan joined #perl6
11:13 chris2 joined #perl6
11:21 b_jonas joined #perl6
11:41 ruoso joined #perl6
11:53 xinming_ joined #perl6
12:01 xinming joined #perl6
12:12 alester joined #perl6
12:22 pugs_svnbot r21055 | pmichaud++ | Oops!  Be careful of $_ interpolation in "...".  (pmichaud--)
12:25 pugs_svnbot r21056 | pmichaud++ | Clean up fudging in S29-num/int.t .
12:26 moritz_ pmichaud: do you ever sleep? ;-)
12:37 pmichaud sure!
12:38 BinGOs joined #perl6
12:45 |Jedai| joined #perl6
12:51 cmarcelo joined #perl6
12:54 ispy_ joined #perl6
12:55 smtms joined #perl6
12:58 ggoebel joined #perl6
13:04 iblechbot joined #perl6
13:05 mjk joined #perl6
13:08 rakudo_svn r28711 | pmichaud++ | [rakudo]:
13:08 rakudo_svn r28711 | pmichaud++ | * Small update to postfix:<i>, so that (1i)i comes up with the
13:08 rakudo_svn r28711 | pmichaud++ |   correct result.
13:17 Auzon moritz_: probably not :) I'll look at it tonightish
13:19 moritz_ Auzon: maybe we should import type information from docs/p6types, rhr++ did assembly quite many there
13:19 pmichaud pugs:  say (1i)i    # just curious
13:19 p6eval pugs: OUTPUT[0 + 0i␤]
13:20 pmichaud rakudo:  say (1i)i;   # updated, yet?
13:20 p6eval rakudo 28687: OUTPUT[0+1i␤]
13:20 pmichaud no.  Actually, 28687 is pretty old.
13:24 moritz_ oh, maybe I should start cron in the new chroot...
13:26 gbacon which svnbot does rakudo_svn run?
13:26 moritz_ gbacon: a perl 5 based  (not yet in any repo)
13:27 moritz_ rakudo:  say (1i)i;   # updated, yet?
13:27 p6eval rakudo 28687: OUTPUT[0+1i␤]
13:27 moritz_ wrong chroot
13:28 moritz_ oh, it was actually a locked svn repo causing troubles
13:31 kolibrie joined #perl6
13:48 |mjk| joined #perl6
13:49 smtms joined #perl6
13:51 moritz_ rakudo: sub a(Num $x) { say $x); a(1)
13:51 p6eval rakudo 28714: OUTPUT[Missing '}' at line 1, near "); a(1)"␤current instr.: 'parrot;PGE::Util;die' pc 120 (runtime/parrot/library/PGE/Util.pir:82)␤]
13:51 moritz_ rakudo: sub a(Num $x) { say $x}; a(1)
13:51 p6eval rakudo 28714: OUTPUT[Null PMC access in type()␤current instr.: 'a' pc 137 (EVAL_15:59)␤]
13:56 BinGOs joined #perl6
13:56 rdice joined #perl6
14:00 TJCRI joined #perl6
14:04 jhorwitz joined #perl6
14:09 mjk joined #perl6
14:10 pmichaud The "Null PMC access in type()" is probably worth an RT ticket.
14:10 pmichaud rakudo:  say (1i)i;  # how about now?
14:10 p6eval rakudo 28714: OUTPUT[-1+0i␤]
14:10 pmichaud yay!
14:11 pmichaud rakudo:   say (50..60).pick
14:11 p6eval rakudo 28714: OUTPUT[56␤]
14:12 pmichaud rakudo:   say (50..60).pick(5).join(' ')
14:12 p6eval rakudo 28714: OUTPUT[52 57 53 55 60␤]
14:12 pmichaud rakudo:   say (50..60).pick(*).join(' ')
14:12 p6eval rakudo 28714: OUTPUT[52 54 53 50 59 58 60 55 56 57 51␤]
14:12 pmichaud rakudo:   say 5.pick(5);
14:12 p6eval rakudo 28714: OUTPUT[5␤]
14:12 pmichaud rakudo:   say 5.pick(5, :repl);
14:12 p6eval rakudo 28714: OUTPUT[55555␤]
14:16 [particle] do you need the comma?
14:20 alester joined #perl6
14:20 pmichaud currently, yes.
14:22 pmichaud I'm pretty sure that's the case for all named arguments (i.e., requiring commas between them and other arguments)
14:23 FurnaceBoy joined #perl6
14:30 hercynium joined #perl6
14:34 moritz_ rakudo: say 1 ~~ Int
14:34 p6eval rakudo 28714: OUTPUT[1␤]
14:34 moritz_ rakudo: say 1 ~~ Num
14:34 p6eval rakudo 28714: OUTPUT[0␤]
14:35 pmurias joined #perl6
14:35 pmurias pixie: say 23;
14:35 p6eval pixie: OUTPUT[Subroutine from redefined at ElfCore5.pm line 741.␤Subroutine to redefined at ElfCore5.pm line 742.␤cp: cannot stat `lex/Perl/expect_term': No such file or directory␤Use of uninitialized value in numeric eq (==) at ../../src/perl6/STD5.pm line 3241.␤Use of uninitialized value in ...
14:36 pmurias moritz: is it possible to expand the ...?
14:37 pmurias well, _moritz:
14:37 moritz_ pmurias: I can execute the same from the command line
14:37 pmurias i think the pixie: works only the warnnings hide the output
14:38 moritz_ aye
14:38 moritz_ pmurias: I think the best solution is to add a filter to pixie's output (before it is truncated)
14:39 pmurias makes sense
14:39 moritz_ or (even easier from my POV) a pixie wrapper script
14:39 moritz_ that hides these warnings
14:39 moritz_ (atm length filtering is done before per-impl filtering - a bit stupid :)
14:40 pmurias Maddingue: i'll fetch my laptop and code the wrapper
14:40 pmurias s/Maddingue/moritz_
14:41 pmurias cgi-irc nick completion sucks
14:41 [particle] why can't you fix or disable the warnings in pixie?
14:42 pmurias particle: the are genuine warnings, and most of them are emitted by things used by pixie
14:42 masak moritz_++ # for http://www.perlmonks.org/?node_id=657862
14:42 pmurias fetching laptop&
14:46 moritz_ pixie: say 1;
14:46 p6eval pixie: OUTPUT[Subroutine from redefined at ElfCore5.pm line 741.␤Subroutine to redefined at ElfCore5.pm line 742.␤cp: cannot stat `lex/Perl/expect_term': No such file or directory␤1␤]
14:49 moritz_ difference is that I recompiled STD5.pm in the mean time
14:49 moritz_ perl5.10.0 gimme5 STD.pm > STD5.pm # is that right?
15:04 rakudo_svn r28715 | jonathan++ | [rakudo] Stub in Block, Ruotuine, Sub and Method PMCs and classes. Start using them for subs and methods (not for normal blocks yet - is a tad tickier).
15:04 cjfields joined #perl6
15:04 moritz_ can I have multis with constants in the signature?
15:05 moritz_ ie. multi sub divides(Int $x, Int $divisor){...}; multi sub divides(Int $x, 2) { ... }
15:06 b_jonas moritz_: pattern matching of data? dunno
15:07 TreyHarris moritz_: good point in email, i missed that particular concatenation.  I think TimToady will have to make a ruling here...
15:08 Chillance joined #perl6
15:09 moritz_ TreyHarris: I hope he does
15:10 moritz_ TreyHarris: I think that atm Complex is intended to be completely outside the type structure of numeric types, which makes defining all those multis a real mess
15:15 b_jonas moritz_: it's even intended that way?
15:15 b_jonas that's a pity
15:15 b_jonas I like first class complex numbers
15:16 b_jonas both because of the semantics and because of the implementation
15:17 moritz_ b_jonas: not entirely sure if it's intentend. I seem to recall that, but I forgot where I got that idea from
15:23 justatheory joined #perl6
15:41 pugs_svnbot r21057 | rhr++ | [p6types] Adjust Num heirarchy, pending further clarification
15:41 pugs_svnbot r21057 | rhr++ |           Note that most/all methods in Positional might really be in Any
15:41 pugs_svnbot r21057 | rhr++ |   (although that would make Positional rather pointless)
15:43 moritz_ it wouldn't make Positional pointless, because it's what defines the @ sigial
15:43 moritz_ for example it holds the postcircumfix:<[ ]> method
15:43 masak moritz_: I don't understand your question in the email thread "Type of literals"
15:44 smtms_ joined #perl6
15:44 masak if Foo isa Int, why wouldn't 1 be an Int too?
15:44 moritz_ masak: yes, but 1.WHAT would say Foo, not Int
15:44 masak ah, yes
15:44 masak though isa_ok would do the right thing
15:44 masak then I understand your question
15:44 masak and I agree that the test is likely wrong
15:45 moritz_ ok, we seem to have consensus here
15:45 masak though I can't see how one could make the test fail without leaving 'standard' Perl 6
15:46 masak they are, after all, literals
15:46 moritz_ the question is what the "standard" says about the type of literals
15:46 moritz_ which is what my question asks
15:47 masak why shouldn't 'standard' Perl 6 guarantee that 1.WHAT eq 'Int'?
15:47 moritz_ to allow optimizations
15:47 masak ah.
15:47 moritz_ or perhaps a not-so-contrieved example might be Ranges
15:47 masak how so?
15:47 moritz_ (1^..5) might be implemented by a different class than (1..5)
15:48 masak mm, ok
15:48 moritz_ or you could autmatically flatten short ranges into lists, if that happens to be more efficient
15:49 masak yes.
15:49 masak though that would require analysis about the surroundings
15:49 b_jonas yep
15:49 [particle] moritz: youd' have to do type punning if that's the case
15:49 [particle] otherwise it's just wrong
15:50 meppl joined #perl6
15:50 masak because 3.5 ~~ 2..4 should not be flattened
15:50 [particle] 1..2 ~~ List # ouch
15:50 moritz_ I hope Perl 6 lives long enough to motivate people to write really clever compilers
15:50 b_jonas in ruby for example, 1 is a Fixnum, but you don't actually use Fixnum for anything, only its superclass Integer because integers are transparently upgraded to Bignums when they're large
15:50 masak moritz_: people already write really clever compilers
15:50 b_jonas Fixnums are just a more efficent representation for some Integers
15:51 moritz_ [particle]: ok, perhaps the Range to List autoconvertion was contrieved again ;)
15:51 b_jonas it's only an implementation thing
15:51 moritz_ masak: not optimization wise, not for perl 6 ;)
15:51 masak :)
15:51 peepsalot joined #perl6
15:52 moritz_ "first make it run, then make it right, then make it fast"
15:53 masak though a product is sometimes quite worthless before step 2
15:53 masak and often of little interest before step 3
15:53 [particle] you forgot TimToady's job, "first make it lex"
15:53 b_jonas lol
15:53 moritz_ masak: yes, but for other developers it really helps to have something that runs ;)
15:53 moritz_ [particle]: ;-)
15:54 masak moritz_: true
15:54 jhorwitz joined #perl6
15:54 b_jonas meh, if it's the kind of language where if it parses it almost always is correct, then you only need a syntax checker, not something that runs the programs
15:55 moritz_ I never encountered such a language
15:57 pmichaud moritz_: btw, if you can get me a latest copy of your spectest_regression.csv grapher (or check it into the repo), I can automatically generate graphs and have them hosted on my server.
15:57 moritz_ pmichaud: I'll check it in a few minutes
15:57 pmichaud or we could probably get them hosted on a feather* host
15:58 pmichaud (my server has plenty of bandwidth, though.)
15:58 * moritz_ doesn't care where it's hosted, but it looks nice on rakudo.de, so I'll keep a copy there ;)
16:01 moritz_ my MANIFEST diff contains +languages/perl6/t/01-sanity/09-types.t                      [perl6]
16:01 moritz_ should I commit that?
16:02 pmichaud yes.  we have a couple of people who have been adding files to the repo but forgetting to update manifest
16:04 rakudo_svn r28717 | moritz++ | [perl6] added tools/progress-graph.pl. Also added missing test file to
16:04 rakudo_svn r28717 | moritz++ | MANIFEST
16:09 rakudo_svn r28719 | moritz++ | [perl6] codingstandards
16:10 Lorn joined #perl6
16:16 TimToady /e
16:17 TimToady not to mention \o
16:17 * TimToady has to use o rather than o/ because his left shoulder is sore... :)
16:26 pmurias joined #perl6
16:28 pmurias moritz_: it would be best to implement the error filtering in the evalbot
16:30 moritz_ pmurias: I trust your judgement there
16:30 kanru joined #perl6
16:30 moritz_ pmurias: if you implement the filtering, I'll move the lenght filtering to happen after the per-implementation error filtering
16:32 nowhea__ joined #perl6
16:35 polettix joined #perl6
16:47 pmurias moritz_: i added some hacks to ignore warnings under --quiet
16:47 pugs_svnbot r21058 | pmurias++ | [pixie] the --quiet option dosn't print warnings
16:47 pmurias pixie: say 4;
16:47 p6eval pixie: OUTPUT[Subroutine from redefined at ElfCore5.pm line 741.␤Subroutine to redefined at ElfCore5.pm line 742.␤cp: cannot stat `lex/Perl/expect_term': No such file or directory␤4␤]
16:47 moritz_ pmurias: I svn up'ped now
16:48 moritz_ pixie: say 4
16:48 pmurias pixie: say 4;
16:48 p6eval pixie: OUTPUT[4␤]
16:48 p6eval pixie: OUTPUT[4␤]
16:48 moritz_ W0OO00T
16:48 moritz_ pmurias++
16:50 pmurias how does one get a pugs.blogs.com account?
16:51 moritz_ pmurias: first get a blogs.com account, then poke the right people(tm)
16:51 moritz_ it could be that I'm one of those, I'm not entirely sure
16:55 nowhea joined #perl6
16:55 moritz_ seems I'm not one of those[tm].
16:55 pugs_svnbot r21059 | pmurias++ | [STD_red] fixed => handling (preclim is respected)
16:56 moritz_ pmurias: maybe ask those who already posted there?
16:57 moritz_ afk
16:57 pugs_svnbot r21060 | cjfields++ | more tests
16:59 cmarcelo audreyt: hello. are you deriving those separated packages for pugs from the svn? or there's sth extra? (/me just reading #haskell backlog)...
17:03 pmurias @seen mncharity
17:03 lambdabot I haven't seen mncharity.
17:03 pugs_svnbot r21061 | pmurias++ | [elf] add elfX a unstable/less-hacky elf branch
17:04 pmurias @seen moritz_
17:04 lambdabot moritz_ is in #perl6. I last heard moritz_ speak 6m 32s ago.
17:04 audreyt cmarcelo: no, I'll check them all into svn when I'm done with it...
17:04 audreyt cmarcelo: alternatively! you can check them all into svn and nuke src/{Pugs,Main}*, if you feel like it
17:04 audreyt and hack Makefile.PL to build third-party/Cabal and third-party/cabal-install
17:04 alanhaggai joined #perl6
17:04 audreyt and generally redo the build system
17:05 audreyt to be a shallow shim to cabal
17:05 audreyt (bbl)
17:05 cmarcelo nice.
17:06 cmarcelo but keeping Cabal and cabal-install copies of our own in the tree?
17:07 audreyt sure, if you're aiming for offline installation.
17:07 audreyt (bbl for real)
17:08 cmarcelo k
17:22 moritz_ bak
17:22 kolibrie_ joined #perl6
17:48 vixey joined #Perl6
17:50 smtms joined #perl6
18:03 ggoebel joined #perl6
18:19 vixey` joined #Perl6
18:19 hercynium joined #perl6
18:23 apeiron_ joined #perl6
18:26 zamolxes joined #perl6
18:29 justatheory joined #perl6
18:36 barney joined #perl6
18:41 vixey joined #Perl6
19:00 pugs_svnbot r21062 | lwall++ | [Cursor5] BRACKET should restore outer language
19:00 pugs_svnbot r21062 | lwall++ | [STD] parse :my correctly
19:16 jan__ joined #perl6
19:19 Lorn_ joined #perl6
19:24 justatheory joined #perl6
19:43 vixey joined #Perl6
19:51 hercynium joined #perl6
20:12 justatheory joined #perl6
20:12 jfredett_ joined #perl6
20:18 pbuetow joined #perl6
20:19 ispy_ left #perl6
20:28 FurnaceBoy joined #perl6
20:31 riffraff joined #perl6
20:33 ggoebel joined #perl6
20:34 X-Scale left #perl6
20:47 cognominal_ joined #perl6
20:59 lisppaste3 joined #perl6
21:27 Lorn_ p6eval: say foo
21:27 Lorn_ say 4
21:27 Lorn_ ;
21:27 Lorn_ say 4;
21:28 moritz_ rakudo: say 4;
21:28 p6eval rakudo 28729: OUTPUT[4␤]
21:28 Lorn_ how i test perl6 things?
21:28 moritz_ Lorn_: you have to talk to a particular implementation
21:29 moritz_ implementations are rakudo,pugs,elf,pixie,kp6,nqp,yap6
21:30 Lorn_ moritz_: :) if i has 2 arrays, $a = [0, 1, 2] , $b = [ 0, 1, 4, 5 ] i want to intersect( sorry for the bad english :P) and $intersect will be $intersect = [ 0, 1 ]
21:30 Lorn_ moritz_: how i did this with perl6? i remember that has something to help me with that..
21:30 moritz_ pugs: my @a = 1, 2, 3; my @b = 2, 3, 4; my @inter = grep { $_ ~~ @b } @a; say @inter.perl
21:30 p6eval pugs: OUTPUT[*** ␤    Unexpected "@a"␤    expecting ",", ":" or operator␤    at /tmp/DNFIPN7fPU line 1, column 65␤]
21:31 moritz_ pugs: my @a = 1, 2, 3; my @b = 2, 3, 4; my @inter = grep { $_ ~~ @b }, @a; say @inter.perl
21:31 p6eval pugs: OUTPUT[\()␤]
21:31 moritz_ not good ;)
21:31 Lorn_ :P
21:31 moritz_ best bet is to do it like in p5 and build a hash of one of those arrays
21:32 Lorn_ hey, 5.10 has smart match too ~~
21:32 moritz_ pugs: my @a = 1, 2, 3; my @b = 2, 3, 4; my %b{@b} = 1 xx @b; my @inter = grep { %b{$_} }, @a; say @inter.perl
21:32 p6eval pugs: OUTPUT[\(2, 3)␤]
21:32 Lorn_ i dont have 5.10 at work :/ only at home
21:33 moritz_ much better ;)
21:33 Lorn_ :)
21:33 Lorn_ moritz_: do you have 5.10?
21:33 Lorn_ i think that  my @a = 1, 2, 3; my @b = 2, 3, 4; my @inter = grep { $_ ~~ @b }, @a; say @inter.perl will work in 5.10
21:34 moritz_ it should (with some more parenthesis)
21:34 moritz_ perl5.10.0 -wle 'my @a = qw(a b c); my @b = qw(d c a); my @inter = grep { $_ ~~ @b } @a; print "@inter"'
21:34 moritz_ a c
21:35 moritz_ rakudo: say 3 ~~ (2, 3, 4)
21:35 Lorn_ moritz_: nice
21:35 p6eval rakudo 28729: OUTPUT[Method 'ACCEPTS' not found for invocant of class 'List'␤current instr.: 'infix:~~' pc 10492 (src/gen_builtins.pir:6878)␤]
21:35 * Lorn_ installing 5.10 at $home :)
21:46 pugs_svnbot r21063 | cjfields++ | fix test (should be a space, not underscore)
21:53 pugs_svnbot r21064 | moritz++ | [spec] moved no_implicit_block.t to spec/S04-statements/
21:53 pugs_svnbot r21064 | moritz++ |  (and s/_/-/g in the file name)
21:59 pugs_svnbot r21065 | moritz++ | [spec] fudged no-implict-block.t
21:59 cggoebel joined #perl6
21:59 cggoebel anyone have experience formatting SD cards?
21:59 cggoebel Can anyone tell me why I can fdisk /dev/mmcblk0 create a single linux partition... do a mkfs.ext2 on /dev/mmcblk0p1 (getting "Buffer I/O error" and "io page write" errors then mount /dev/mmcblk0 /mnt -t vfat and see and work with the files which were there from when it was originally formatted as vfat?
21:59 cggoebel oops...
21:59 moritz_ cggoebel: wrong channel ;)
21:59 cggoebel wrong channel... apologies
22:04 pugs_svnbot r21066 | moritz++ | [spec] unfudged two passing tests in anon_block.t, jonathan++ for making them
22:04 pugs_svnbot r21066 | moritz++ | pass
22:09 bacek_ joined #perl6
22:11 rakudo_svn r28730 | moritz++ | [rakudo] one more test for spectest_regression
22:12 cjfields left #perl6
22:22 pugs_svnbot r21067 | moritz++ | [spec] test for $_ being treated as formal parameter of a block
22:25 Juerd cggoebel: The table needs to be reread. hdparm -z
22:26 Juerd fdisk does this on write. However, if it fails, you must reboot first.
22:30 pugs_svnbot r21068 | moritz++ | [spec] moved two tests to a different file (which will
22:30 pugs_svnbot r21068 | moritz++ | follow in next commit.  svn--)
22:30 pugs_svnbot r21069 | moritz++ | [spec] added tests for repeated declaration of a variable in same scope
22:36 pugs_svnbot r21070 | moritz++ | [t] removed redundant test
22:39 pugs_svnbot r21071 | moritz++ | [t] rewrote test in terms of eval_lives_ok, and spell-checked description
22:44 rakudo_svn r28731 | moritz++ | [rakudo] one more test for spectest_regression
22:45 c1sung joined #perl6
23:06 bacek__ joined #perl6
23:22 [particle1 joined #perl6
23:24 Limbic_Region joined #perl6
23:37 bacek_ joined #perl6

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

Perl 6 | Reference Documentation | Rakudo