Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2008-07-14

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:10 meppl good night
00:50 jjore joined #perl6
01:41 kanru joined #perl6
02:30 alester joined #perl6
03:30 pugs_svn r21329 | Auzon++ | [gsoc_spectest] added some real multi-d array tests. (added 10 tests)
03:31 Auzon So many multi dimensional array tests to be written, so little time :-/
03:32 alester hey, where does one get a perl6.vim?
03:32 Auzon alester: pugs/util/perl6.vim
03:35 alester thanks
03:35 Auzon No problem :)
03:36 alester Also, I noticed
03:36 alester Why is the Subset rule  $^n % 2 == 0 in Jonathan's slides and $_ % 2 == 0 in spectest?
03:36 alester Is one outdated and wrong?
03:39 Auzon I am uncertain.
03:45 ilogger2 joined #perl6
04:59 tuxdna joined #perl6
05:23 Psyche^ joined #perl6
05:39 araujo joined #perl6
05:48 zamanfou joined #perl6
05:49 penk joined #perl6
05:49 fullermd joined #perl6
06:03 Alias_ joined #perl6
06:04 pbuetow joined #perl6
06:19 moritz_ there are cases where you can use either $_ or a self-declared implicit parameter like $^n
06:22 masak joined #perl6
06:24 fullermd joined #perl6
06:32 ashizawa joined #perl6
06:56 masak joined #perl6
06:57 nipotan joined #perl6
07:29 justatheory joined #perl6
07:38 barney joined #perl6
07:57 sri_work joined #perl6
08:11 agentzh left #perl6
08:30 Jedai joined #perl6
08:33 masak hm, $obj.HOW.can($obj, "bark") ?
08:34 masak usually, I consider Perl to follow the philosophy of DWIM quite well, but this...
08:34 moritz_ $obj.can('bark') ?
08:34 masak yes, I hope that still works
08:34 masak maybe I misunderstood the syn change
08:35 masak yes, that's probably it: the latter delegates to the former under-the-hood
08:52 rindolf joined #perl6
09:00 jan_ joined #perl6
09:02 elmex joined #perl6
09:09 ruoso @tell pmurias libjit is a possibility, yes. llvm is also a good one. nothingmuch was sorting out how to work with llvm in p5. This would make it even easier to integrate the smop runloop with p5.
09:09 lambdabot Consider it noted.
09:10 moritz_ ... at least if somebody manages to get XS modules working with llvm
09:10 ruoso @tell pmurias I'm not sure how a file can be pure sm0p, since sm0p doesn't support nested blocks, and since you need initialization in C for sm0p blocks.
09:10 lambdabot Consider it noted.
09:25 wknight8111 joined #perl6
09:28 meppl joined #perl6
09:38 pmurias joined #perl6
09:41 GeJ joined #perl6
10:04 chris2 joined #perl6
10:40 sri_work_ joined #perl6
10:45 ludan joined #perl6
10:51 meppl joined #perl6
11:15 ggoebel joined #perl6
11:18 kanru joined #perl6
11:40 wknight8111 joined #perl6
11:51 jferrero joined #perl6
12:04 iblechbot joined #perl6
12:31 pbuetow joined #perl6
12:40 masak perl6: my $b; { my $x=1; sub get_x() { return $x }; sub foo() { return &get_x }; $b = foo() } say $b()
12:40 p6eval elf 21329: OUTPUT[Parse error in: /tmp/TDZpl37m9C␤panic at line 1 column 7 (pos 7): Can't understand next input--giving up␤WHERE: my $b; { my $x=1; sub get_x() { retur␤WHERE:       /\<-- HERE␤  STD_red/prelude.rb:99:in `panic'␤  STD_red/std.rb:76:in `scan_unitstopper'␤  STD_red/std.rb:224:in
12:40 p6eval ..`comp...
12:40 p6eval ..pugs: OUTPUT[*** ␤    Unexpected "say"␤    expecting operator␤    at /tmp/1dqB6ctABO line 1, column 88␤]
12:40 p6eval ..rakudo 29426: OUTPUT[Statement not terminated properly at line 1, near "say $b()"␤current instr.: 'parrot;PGE::Util;die' pc 120 (runtime/parrot/library/PGE/Util.pir:82)␤]
12:40 masak pugs: my $b; { my $x=1; sub get_x() { return $x }; sub foo() { return &get_x }; $b = foo() }; say $b()
12:41 p6eval pugs: OUTPUT[1␤]
12:41 masak rakudo: my $b; { my $x=1; sub get_x() { return $x }; sub foo() { return &get_x }; $b = foo() }; say $b()
12:41 p6eval rakudo 29426: OUTPUT[␤]
12:41 masak offhand, I'd say pugs has this one right.
12:41 masak pugs++
12:42 zamanfou can someone explain me something about perl6.. perl will become a programming language?
12:44 masak zamanfou: Perl is a programming language. Perl 5 and Perl 6 are the two latest versions
12:45 masak Perl 5 is very stable, Perl 6 is under development
12:45 zamanfou masak, isnt perl 5 a scripting language?
12:46 masak zamanfou: what do you consider the difference between a scripting language and a programming language to be?
12:47 tuxdna_ joined #perl6
12:47 zamanfou masak, you tell me :P
12:47 masak zamanfou:
12:48 masak according to me, very little
12:48 masak http://use.perl.org/~Ovid/journal/30565
12:48 lambdabot Title: Journal of Ovid (2709)
12:50 masak even more so, http://use.perl.org/~chromatic/journal/35804
12:50 lambdabot Title: Journal of chromatic (983)
12:50 masak the latter was the one I was actually looking for
12:51 masak zamanfou: in summary, the programming/scripting difference is hazy at best. unless you find something important to separate them, you might as well consider scripting languages programming languages :)
12:51 bacek joined #perl6
12:54 zamanfou masak, I read lot of things about perl6, but I didnt understand what's the significant advantage. and the syntax is quite different than perl 5.
12:55 zamanfou which will force me to learn the new syntax/functions/way of coding if I want to continue use perl.
12:55 masak zamanfou: you don't have to switch
12:56 masak perl 5 will be around for a long time
12:56 masak but -- I have to add -- perl 6 is way cool, it's just not implemented yet
12:56 zamanfou but as an outdated version of perl
12:57 masak zamanfou: perl 5 is hardly outdated. 5.10 was released a few months ago
12:58 masak perl 6 is just a sort of clean-slate upgrade incorporating backwards incompatible lessons learned since 1987
13:00 zamanfou masak, so, is perl6 a low or high level programming language? :)
13:00 masak zamanfou: I'd say it's on the higher end of the scale
13:01 masak it sports closures, currying, lazy data structures and threading
13:01 zamanfou I heard from people, perl is better than C. but I dont get why... I can code in perl ( I am quite good )
13:01 masak (among other things, most of which escape me now)
13:02 masak zamanfou: the sentence "Perl is better than C" is only meaningful if you also supply a context
13:02 masak such as, which problem are you trying to solve
13:02 masak without a context, the sentence is neither true nor false
13:03 zamanfou I see, I just heard it from other coders , is not my personal opinion. Btw, my problem is, should I learn a new programming language or perl can do everything?
13:03 zamanfou this question sounds "stupid" but I really need an answer
13:03 masak ok. I'll try to provide an answer. hold on
13:04 zamanfou thank you
13:04 masak when delving into Perl (5), you will find that many problems have already been solved for you
13:04 * fullermd thinks the answer is "yes".
13:04 masak zamanfou: have you heard of CPAN?
13:04 zamanfou masak, I know almost every function in perl, using references, etc
13:05 zamanfou I am not newbiew
13:05 masak zamanfou: have you heard of CPAN?
13:05 zamanfou yep
13:05 masak and do you use it when coding in Perl?
13:05 zamanfou hmm well, only when I need to install modules
13:05 cmarcelo joined #perl6
13:05 masak that was what I meant
13:06 zamanfou I use CPAN's shell mostly
13:06 masak so what is it then that you fear that Perl cannot do?
13:06 zamanfou masak, I heard some things about "client hooking" , detours, ...
13:06 * masak doesn't know about that
13:07 zamanfou hmm
13:07 zamanfou http://en.wikipedia.org/wiki/Dynamic_linker
13:07 lambdabot Title: Dynamic linker - Wikipedia, the free encyclopedia
13:08 zamanfou In C you can write libs and load them using LD_PRELOAD
13:08 zamanfou the above link will explain it a bit
13:08 masak zamanfou: I see. loading stuff into a program at runtime?
13:08 zamanfou yes
13:08 masak I haven't done much of that in Perl
13:09 masak maybe you should ask around on #perl
13:09 masak both here at freenode and over at irc.perl.org
13:10 zamanfou mm how can I be specific for this question?
13:12 masak zamanfou: ask "is it possible to load things dynamically in Perl, like with C'S LD_PRELOAD?"
13:13 * zamanfou knows how to c&p :P
13:14 moritz_ perldoc DynaLoader # that stuff?
13:15 zamanfou hmm
13:18 penk joined #perl6
13:18 masak zamanfou: the reply you just got at #perl is because they think you are not yet aware about modules/CPAN
13:19 masak ...and it might actually be the answer you're looking for, I don't know
13:19 zamanfou masak, I am trying to get some informations to help them understand me
13:19 zamanfou masak, http://www.nixcoders.org/forum/index.php?sho​wtopic=50&amp;pid=372&amp;st=0&amp;#entry372 this is what I am talking about
13:19 lambdabot Title: [C/C++] LD_PRELOAD tutorial #1 - *C Board, http://tinyurl.com/6ddefl
13:21 masak zamanfou: it feels like a very specific thing you want to do. I'm afraid I don't know enough C to understand exactly what it is you need. however, I'm pretty sure that Perl can load things at runtime, since runtime and compile time can be mixed through verious mechanisms
13:24 zamanfou masak, then could you tell me, if its possible to "override" some of the functions of the program I wish to run? (some C program)
13:24 pugs_svn r21330 | bacek++ | [spec] Fix fudging for rakudo
13:25 masak zamanfou: I'm not sure I understand the question. but if it's a C question, you've now proceeded to become off-topic to the second degree :) you should try a C forum
13:26 masak zamanfou: I'd like to help you, but I'm simply not qualified. people on the right forum might be able to help you.
13:26 gbacon joined #perl6
13:27 zamanfou you already helped me:)
13:27 zamanfou thank you
13:27 masak np
13:27 masak and good luck
13:38 pugs_svn r21331 | moritz++ | [spec] remove bogus try{} in S29-num/trig.t
13:41 pugs_svn r21332 | moritz++ | [spec] continued to remove bogus try {}
13:42 pmurias joined #perl6
13:43 pmurias zamanfou: do you want to load perl things into your perl program or c things into your perl program?
13:43 lambdabot pmurias: You have 2 new messages. '/msg lambdabot @messages' to read them.
13:46 Lorn joined #perl6
13:47 hercynium joined #perl6
13:47 pugs_svn r21333 | moritz++ | [t] added 'try' usage to deprecated-syntax.pod, bacek++ pmichaud++
13:48 pmurias zamanfou: loading perl functions into a c program is possible but it would require you embedding a perl interpreter in the program you want to modify
13:50 zamanfou pmurias, I want to override C functions before the program loads using perl. I also want to access a process at runtime.
13:53 pmurias why do you want to use perl?
13:54 zamanfou cause is the only programming language im good :-)
13:54 pmurias you'll have to be good in c to use perl for that
13:54 moritz_ good reason ;)
13:54 zamanfou "good" is relative. compared to you guys, I am still newbie. but w/e...
13:55 moritz_ zamanfou: if you don't know it already: http://www.perlmonks.org/
13:55 lambdabot Title: PerlMonks - The Monastery Gates
13:55 * pmurias dosn't know all perl functios for sure ;)
13:56 masak Perl is build to take into account the fact that people will not learn everything about it
13:56 donaldh joined #perl6
13:56 moritz_ very well stated, masak ;)
13:56 masak it's a diagonal language, not an orthogonal one :)
13:57 pmurias masak: aren't most languages like that?
13:57 masak pmurias: to some degree, I guess
13:57 masak but I'd say Perl makes a... thing out of it
13:58 masak you can write FORTRAN in any language, but Perl encourages C style writing, Pascal style, Haskell style etc
13:58 moritz_ Perl actually encourages lisp-like writing, only the docs don't do it ;-)
13:59 * pmurias dosn't know FORTRAN ;)
13:59 masak moritz_: I thought we weren't supposed to mention the Perl/Lisp conspiracy... :P
14:00 masak pmurias: those who don't know FORTRAN are doomed to reinvent it, poorly :)
14:00 * masak doesn't either, actually
14:01 * pmurias hopes sm0p dosn't turn into fortran any time soon
14:01 icwiener joined #perl6
14:01 moritz_ pmurias: FOORTRAN perhaps, OO Fortran ;-)
14:02 masak oO
14:10 alester joined #perl6
14:16 pmichaud pugs: my $a = foo(); { my $x = 1; sub get_x() { return $x; }; sub foo() { return &get_x; }; }; say $a();
14:16 p6eval pugs: OUTPUT[1␤]
14:16 pmichaud pugs: my $a = foo(); { my $x = 1; sub get_x() { return $x; }; sub foo() { return &get_x; }; }; say $a(); say foo()();
14:16 p6eval pugs: OUTPUT[1␤1␤]
14:17 pmichaud pugs: my @array; for 1..3 -> $x { sub get_x() { return $x; }; push @array, &get_x; }; for @array -> $f { say $f(); };
14:17 p6eval pugs: OUTPUT[␤␤␤]
14:18 pmichaud pugs: my @array; for 1..3 -> $x { my sub get_x() { return $x; }; push @array, &get_x; }; for @array -> $f { say $f(); };
14:18 p6eval pugs: OUTPUT[␤␤␤]
14:18 pmichaud pugs: my @array; for 1..3 -> $x { push @array, { return $x; }; }; for @array -> $f { say $f(); };
14:18 p6eval pugs: No output (you need to produce output to STDOUT)
14:18 moritz_ pugs doesn't seem to do lexical subs
14:19 pmichaud nor closures (from that last example, unless I'm misunderstanding something)
14:19 moritz_ pugs: { my $x ; sub foo { return ++$x }}; foo(); foo();
14:19 p6eval pugs: RESULT[2]
14:20 moritz_ pugs: { my $x ; sub foo { say ++$x }}; foo(); foo();
14:20 p6eval pugs: OUTPUT[1␤2␤]
14:20 moritz_ closures are implemented
14:20 pmichaud that doesn't really demonstrate cloning a closure, though.
14:20 moritz_ but it doesn't seem to close over the new lexical pad in a loop
14:20 pmichaud that just shows lexical scoping is working to some degree
14:20 jhorwitz joined #perl6
14:22 pmichaud pugs: my @array; for 1..3 -> $x { my $s = { return $x; }; push @array, $s; }; for @array -> $f { say $f(); };
14:22 p6eval pugs: No output (you need to produce output to STDOUT)
14:23 masak pugs: my @array; for 1..3 -> $x { my $s = { return $x; }; push @array, $s; say $_() for @array
14:23 p6eval pugs: OUTPUT[*** ␤    Unexpected end of input␤    expecting operator or "}"␤    at /tmp/SX9Mw6qkth line 2, column 1␤]
14:23 masak pugs: my @array; for 1..3 -> $x { my $s = { return $x; }; push @array, $s; }; say $_() for @array
14:24 p6eval pugs: No output (you need to produce output to STDOUT)
14:24 masak hm
14:28 pmurias pugs: sub foo {my $x=0;-> {++$x}};say foo.();say foo.();
14:28 p6eval pugs: OUTPUT[<SubPointy(<anon>)>␤<SubPointy(<anon>)>␤]
14:28 pmurias pugs: sub foo {my $x=0;-> {++$x}};say foo().();say foo().();
14:28 p6eval pugs: OUTPUT[1␤1␤]
14:29 masak pugs: my @array; for 1..3 -> $x { my $s = { say $x; }; push @array, $s; }; $_() for @array
14:29 p6eval pugs: OUTPUT[1␤2␤3␤]
14:29 masak there you go.
14:30 pmichaud pugs: my @array; for 1..3 -> $x { my $s = { return $x; }; push @array, $s; say 'x'; }; for @array -> $f { say $f(); };
14:30 p6eval pugs: OUTPUT[x␤x␤x␤]
14:30 pmichaud oops, wrong line
14:30 pmichaud my @array; for 1..3 -> $x { my $s = { say $x; }; push @array, $s; say 'x'; }; $_() for @array
14:30 pmichaud pugs: my @array; for 1..3 -> $x { my $s = { say $x; }; push @array, $s; say 'x'; }; $_() for @array
14:30 p6eval pugs: OUTPUT[x␤x␤x␤1␤2␤3␤]
14:31 masak also good.
14:31 pmichaud oh, 'return' in a { ... }   isn't quite right
14:31 pmichaud because { ... } isn't a sub
14:31 pmichaud so
14:31 pmichaud pugs: my @array; for 1..3 -> $x { my $s = sub { return $x; }; push @array, $s; say 'x'; }; for @array -> $f { say $f(); };
14:31 p6eval pugs: OUTPUT[x␤x␤x␤1␤2␤3␤]
14:31 masak aha!
14:31 masak pugs++
14:32 pmichaud pugs: my @array; for 1..3 -> $x { sub foo() { return $x; }; push @array, &foo; say 'x'; }; for @array -> $f { say $f(); };
14:32 p6eval pugs: OUTPUT[x␤x␤x␤␤␤␤]
14:32 pmichaud pugs: my @array; for 1..3 -> $x { my sub foo() { return $x; }; push @array, &foo; say 'x'; }; for @array -> $f { say $f(); };
14:32 p6eval pugs: OUTPUT[x␤x␤x␤␤␤␤]
14:32 masak not so good...
14:33 pmichaud pugs: my @array; for 1..3 -> $x { my $s = { $x; }; push @array, $s; say 'x'; }; for @array -> $f { say $f(); };
14:33 p6eval pugs: OUTPUT[x␤x␤x␤1␤2␤3␤]
14:33 pmichaud pugs: my @array; for 1..3 -> $x { push @array, { $x; }; }; for @array -> $f { say $f(); };
14:33 p6eval pugs: OUTPUT[1␤2␤3␤]
14:33 pmichaud okay, those are better.  it's just the 'sub foo' case that has trouble (which, of course, is the case I'm interested in at the moment).
14:34 masak yes.
14:36 pmurias no
14:36 pmurias ;)
14:37 pmurias misunderstood :(
14:44 tuxdna_ joined #perl6
15:00 pmurias joined #perl6
15:02 pmurias masak: re Perl is build to take into account, are there technical implications of that approach?
15:03 pmurias besides it being used as an excuse for having System V shared memory routines in the core?
15:03 masak I see now I meant s/build/built/, a slight typo
15:03 masak pmurias: I'm not too well versed in System V, so I can't say anything about that
15:04 masak by 'technical implications', do you mean things that affect different implementations?
15:05 pmurias masak: neither am i
15:06 pmurias just looked at perlfunc to see what functions i don't know ;)
15:06 masak :)
15:07 pmurias masak: i mean how does it actually affect the languager
15:07 masak pmurias: I wasn't mainly talking about cross-platformness when I mentioned the diagonality thing
15:07 masak I was talking about the fact that there are often several language primitives to help reach the same goal
15:08 masak ...to, prehaps, a greater extent than in other languages
15:09 pmurias s/languager/language
15:09 pmurias typoes--
15:09 masak yes :/
15:12 masak pmurias: "If I'm in one corner of a park and the restrooms are in the opposite corner of the park, I don't walk due east and then due north. I go northeast -- unless there's a pond in the way or something." -- Larry Wall
15:12 masak http://www.techgnosis.com/wall1.html
15:12 lambdabot Title: Larry Wall Interview, by Erik Davis
15:14 nothingmuch pmurias: IMAP on my server is dead right now, if you were using that you can use imap.gmail.com. mail *delivery* is not affected
15:17 pmurias nothingmuch: hi
15:17 pmurias nothingmuch: is mail forwarding affected?
15:19 nothingmuch nope
15:19 nothingmuch if you were using pasta.woobling.org for IMAP then that's shot now
15:20 nothingmuch i'm still debating as to whether or not it's worth fixing now that gmail has IMAP
15:20 nothingmuch if you used forwarding from gmail directly then that server has nothing to do with you
15:20 nothingmuch if you used forwarding on that server then it should be working
15:20 nothingmuch (using procmail presumably? i dunno)
15:23 pmurias nothingmuch: i think i used gmail
15:24 pmurias nothingmuch: what did you attempt with llvm and perl5?
15:26 pmurias and what did you achive? ;)
15:28 nothingmuch so far I achieved a clean compile of the perl tree with llvm-gcc to llvm bytecode
15:29 nothingmuch what I hope to achieve is to use the opcode definitions that are now available as llvm bytecode
15:29 nothingmuch at runtime
15:29 nothingmuch the idea is to generate llvm bytecode that for perl subroutines
15:29 nothingmuch that makes calls to the opcode definitions by symbol instead of by function pointer when pp_addr is not changed
15:30 nothingmuch and that would allow llvm to do its famous interprocedural optimizations
15:31 nothingmuch but too much $real_work is in the way so far
15:31 nothingmuch and I'm kinda burnt out recently
15:34 pmurias does llvm have a nice c interface or is it just llvm assembly manipulation?
15:34 pmurias s/is it just/does it require/
15:36 masak speaking of assembly (and slightly OT): I read http://canonical.org/~kragen/strlen-utf8.html with delight, and now I'm curious as to what generates output like the one in the second listing
15:36 lambdabot Title: Counting Characters in UTF-8 Strings Is Fast
15:36 masak i.e., given a binary, I want to show its assembly instructions
15:37 nothingmuch it has very good C integration in the sense that it can call to C code, compile C code (with llvm-gcc), be embedded in C (it's in C++ but there are C headers and a C api to call link with the C++), etc
15:37 masak I tried toying around with gdb, but didn't get very far
15:38 nothingmuch that said generating LLVM assembly is probably much easier than generating C
15:38 nothingmuch there's a very nice tutorial I followed
15:38 nothingmuch i think it covers all my needs for compiling optrees dynamically at runtime
15:41 pmurias moritz_: what's was the box you have me a shell account on called, and can i use it to test if my webserver is accessbile from outside my LAN?
15:42 moritz_ pmurias: timtowtdi.org
15:42 moritz_ pmurias: and you
15:43 moritz_ 're welcome to to do anything that's not harmful
15:43 moritz_ and doesn't suck up resources like hell ;)
15:44 penk left #perl6
15:44 jeremy-wrk joined #perl6
15:48 Exodist joined #perl6
15:48 pmurias nothingmuch: thanks, looked at the tutorial and it answered my questions
16:07 * pmurias hates system administration
16:07 icwiener joined #perl6
16:48 REPLeffect joined #perl6
16:55 rpag joined #perl6
16:55 rpag will perl6 ever be released?
16:55 moritz_ sure
16:56 moritz_ but don't ask when ;-)
16:56 armagad When?
16:56 moritz_ on christmas
16:56 rpag this year?
16:57 moritz_ not necessarily
16:57 moritz_ but once it's released every day will feel like christmas
16:58 armagad joined #perl6
17:16 pmurias rpag: pugs had many releases
17:17 masak actually, I think pugs and rakudo have enough features to make every day feel a little bit like christmas already
17:17 moritz_ parrot (+ rakudo) is going to have one tomorrow ;-)
17:17 masak it can only get better for christmas :)
17:18 moritz_ masak: they have nice features, but both aren't suitable for every day programming
17:21 justatheory joined #perl6
17:24 pmurias usability for every day programmin is a lot less than full perl6ness
17:24 moritz_ aye
17:26 pmurias aye = yes?
17:26 moritz_ but for example modifiers in regexes are crucial for me
17:26 moritz_ s/in/on/
17:26 moritz_ aye = yes, aye ;-)
17:29 pmurias you are refering to pugs?
17:44 pmurias moritz_: elf has them in a twisted and evil way
17:50 jfredett_ joined #perl6
18:08 awwaiid joined #perl6
18:18 cjfields joined #perl6
18:20 pugs_svn r21334 | pmurias++ | [smop]
18:20 pugs_svn r21334 | pmurias++ | method calls and strings in s1p, variables are translated to c variables as we don't have namespaces yet
18:20 pugs_svn r21334 | pmurias++ | test 13_io is moved to perl6 as traditional it memory leaks
18:20 pmurias moritz_: you have a c compiler in the evalbot?
18:20 pbuetow joined #perl6
18:29 pmurias * do you
19:07 rakudo_svn r29443 | pmichaud++ | [rakudo]: spectest-progress.csv update:  95 test files, 1691 passing tests
19:31 hercynium joined #perl6
19:51 icwiener joined #perl6
20:04 lisppaste3 joined #perl6
20:29 moritz_ pmurias: yes
20:30 moritz_ pmurias: re modifiers, rakudo and pugs
20:30 pmurias moritz_: it might make sense too put s1p in the evalbot soon
20:32 moritz_ pmurias: no objections from me
20:32 * moritz_ decides that security is overrated :/
20:32 pmurias fake security is definitly overrated
20:34 pmurias s1p is a perl6 implemenation, so it *might* get a safe mode in the far future
20:34 pmurias it's an elf variant to be exact
20:36 pmurias moritz_: you need regex modifier for perl5 regexes?
20:36 pmurias you could use the (?flag...) syntax
20:37 moritz_ pmurias: no. The discussion was if perl6 feels like christmas today, and I just mentioned that for me it's not yet, because such crucial features are regex modifiers are missing from both pugs and rakudo - that's all
20:38 * pmurias wonder how many people would actually like eternal christmas
20:38 pmurias * wonders
20:43 r0bby joined #perl6
20:43 pmurias what would be a good syntax for none \w+ constant identifiers?
20:45 moritz_ pmurias: what for?
20:45 rpag joined #perl6
20:48 pmurias moritz_: sm0p
20:49 moritz_ q:identifier[...] ?
20:50 moritz_ or $MY::('identifier with spaces') - I guess that's even valid Perl 6
20:50 moritz_ or something along these lines
20:52 pmurias i was considering idconst.new("...")?
20:54 bacek joined #perl6
20:55 pmurias the second syntax issue is how should variables taken from the c namespace (?) be marked in perl6 code
21:00 pmurias how is the place c identifiers are stored?
21:00 pmurias s/?/ called ?/
21:01 ingy joined #perl6
21:01 gugod joined #perl6
21:04 jovs joined #perl6
21:21 simcop2387 joined #perl6
21:22 spinclad pugs: my @array; for 1..3 -> $x { push @array, sub { return $x; }; }; for @array -> &f { say f; };
21:22 p6eval pugs: OUTPUT[1␤2␤3␤]
21:22 spinclad pugs: my @array; for 1..3 -> $x { unshift @array, sub { return $x; }; }; for @array -> &f { say f; };
21:22 p6eval pugs: OUTPUT[3␤2␤1␤]
21:23 gugod joined #perl6
21:23 spinclad pugs: my @array; for 1..3 -> $x { my sub f { return $x; }; push @array, &f; }; for @array -> &f { say f; };
21:23 p6eval pugs: OUTPUT[␤␤␤]
21:23 ingy joined #perl6
21:24 spinclad pugs: my @array; for 1..3 -> $x { my &f = sub { return $x; }; push @array, &f; }; for @array -> &f { say f; };
21:24 p6eval pugs: OUTPUT[*** Can't modify constant item: VStr "MkCode {isMulti = True, subName = \"&\", subType = SubPrim, subOuterPads = [], subInnerPad = MkPad (padToList []), subPackage = , subAssoc = AIrrelevantToParsing, subParams = [], subBindings = [], subSlurpLimit = [], subReturns = (mkType \"An...
21:24 spinclad pugs: my @array; for 1..3 -> $x { my $f = sub { return $x; }; push @array, $f; }; for @array -> &f { say f; };
21:24 p6eval pugs: OUTPUT[1␤2␤3␤]
21:31 Alias__ joined #perl6
21:33 jferrero joined #perl6
21:34 planofish joined #perl6
21:34 Limbic_Region joined #perl6
21:34 jovs left #perl6
21:59 bacek joined #perl6
22:14 |jedai| joined #perl6
22:14 gugod_ joined #perl6
22:14 ingyfoo joined #perl6
22:27 PZt joined #perl6
22:27 gugod joined #perl6
22:27 ingy joined #perl6
22:43 gugod joined #perl6
22:49 GeJ left #perl6
22:50 ingy joined #perl6
22:57 bacek_ joined #perl6
23:10 rpag joined #perl6
23:16 gugod joined #perl6
23:19 rpag left #perl6
23:28 bacek joined #perl6
23:33 Alias_ joined #perl6
23:45 gugod joined #perl6
23:46 eternaleye joined #perl6

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

Perl 6 | Reference Documentation | Rakudo