»ö« | perl6.org/ | nopaste: paste.lisp.org/new/perl6 | evalbot usage: 'perl6: say 3;' or rakudo: / pugs: / std: , or /msg p6eval perl6: ... | irclog: irc.pugscode.org/ | UTF-8 is our friend!
Set by wolfe.freenode.net on 30 October 2009.
zaslon lolperl6adventhazblogged! perl6advent++ 'Day 19: Whatever': perl6advent.wordpress.com/2009/12/1...-whatever/ 00:04
00:07 nihiliad joined 00:11 cdarroch left 00:12 awwaiid joined 00:21 synth left 00:26 lest_away is now known as lestrrat 00:29 pmurias left 00:32 patspam left 00:37 Exodist joined 00:39 patspam joined
Wolfman2000 evening 00:50
sjohnson hi 00:52
00:56 yahooooo joined 01:01 japhb left 01:12 justatheory left 01:16 colomon left 01:42 colomon_ joined 01:51 japhb joined 02:15 patspam left 02:18 patspam joined 02:19 patspam left 02:20 fatface_ joined 02:23 fatface_ left 02:28 r0bby_ is now known as r0bby, jferrero left 02:29 astrojp joined 02:30 astrojp left 02:33 LionMadeOfLions joined 02:48 TimToady left, zaslon left, pointme left, pointme joined, mubot joined, zaslon joined 02:50 TimToady joined 02:51 diakopter sets mode: +o TimToady 02:54 TimToady left
diakopter 'tis 02:54
colomon_ 'tain't
02:55 carlin sets mode: +vvv zaslon mubot pointme 02:56 TimToady joined, diakopter sets mode: +oo colomon_ TimToady
wayland76 Isn't that "perl -T" ? :) 02:57
colomon_ :)
03:25 Chillance joined
colomon_ would like to point out he just likes the word 'tain't, and has no idea what diakopter was talking about. 03:26
sjohnson i like it 03:28
03:31 ShaneC left 03:50 lestrrat is now known as lest_away 03:54 stephenlb left 04:12 meppel joined, meppl left, meppel is now known as meppl 04:15 Baggio_ joined 04:31 colomon_ left 04:32 colomon joined 04:34 astrojp joined 04:36 diederich joined, diederich left, _jaldhar joined, diederich joined 04:37 rfordinal joined 04:51 Baggio_ left 04:59 rfordinal left 05:02 pmichaud_ joined
diakopter colomon: :) 05:14
05:16 gfx joined 05:18 lest_away is now known as lestrrat 05:19 Baggio_ joined 05:20 mberends joined 05:23 Baggio_ left
diakopter mberends++ | [pugs/src/perl6/vill] introducing vill, a viv+llvm mashup 05:23
mberends++ | perlcabal.org/svn/pugs/revision/?rev=29375
05:29 drbean_ joined
diakopter mberends++ sneaking vill into pugscode svn when no one was watching 05:29
mberends :) hoping some helpful people learn LLVM and help develop 'vill'
05:30 matsuzine joined 05:31 matsuzine left, matsuzine_ joined 05:35 matsuzine joined 05:36 matsuzine_ left
mberends the vill 'make test' is useful to prove and see what it does 05:44
05:45 drbean left
dalek p-rx: 7009fe7 | pmichaud++ | src/Regex/Cursor-protoregex-peek.pir:
Switch to using getattribute for contexts instead of hash interface.
05:51
p-rx: eb9c75a | pmichaud++ | (5 files):
Update bootstrap, PARROT_REVISION.
06:04 _stuuf joined 06:05 stuuf left 06:07 astrojp left 06:16 Jeffrey_ joined 06:18 Jeffrey_ left
mberends skims unladen-swallow.googlecode.com/file..._PyCon.pdf for ideas 06:24
06:29 mj41_ joined 06:35 charsbar_ joined 06:37 araujo left 06:42 kst left, kst joined 06:47 mj41 left 06:50 nicholas_ joined, matsuzine left 06:52 nicholas_ left 06:59 Baggio_ joined
pugs_svn r29376 | mberends++ | [src/perl6/vill] tweak wordcount in Makefile to ignore .svn dirs 07:01
r29377 | pmurias++ | [vill] refer to "someone man known as pmichaud" by his name 07:07
mberends ;-)
pugs_svn r29378 | mberends++ | [vill] added pmurias++ as contributor 07:37
07:48 colomon_ joined, colomon left, colomon_ is now known as colomon 07:51 JimmyZ joined 08:01 colomon_ joined, colomon left, colomon_ is now known as colomon 08:08 meppl left 08:11 JimmyZ left 08:24 am0c left 08:33 lumi joined, kaare joined, kaare is now known as Guest13816 08:35 gfx left 08:40 drbean joined 08:50 meneldor joined, JimmyZ joined 08:52 drbean_ left 08:53 Chillance left 08:56 Chillance joined
meneldor hello moritz_ , i forgot about rakudo on win32 and installed it successfully on my ubuntu 08:57
now i read your PDF book
but it starts with JSON tutorial? 08:58
08:58 Baggio_ left
meneldor is this the right book to start reading for perl5 to perl6 ? 08:58
moritz_ meneldor: it shouldn't start with JSON 08:59
meneldor i've opened a link from the blog 09:00
moritz_ cloud.github.com/downloads/perl6/bo...009-12.pdf
09:01 lumi_ joined
meneldor perlgeek.de/blog-en/perl-6/we-write...r-you.html 09:01
this one
moritz_ meneldor: there are newer versions than the one linked on my blog, we have monthly releases
and that was the first one
meneldor :)
ok tnx
moritz_ maybe we should have a permanent link which always points to the latest
09:02 colomon left
meneldor ah this book is different thing :) thank you moritz_ 09:02
09:03 meppl joined
moritz_ meneldor: it still has a chapter about parsing JSON 09:04
meneldor i can read about it if i start to use perl6 for web later :) 09:05
now i use json module for catalyst with perl5
moritz_ you can also use the knowledge for parsing something else than JSON
09:06 Baggio_ joined
meneldor ok but how perl6 use local module libraries? 09:06
do he use own lib path?
moritz_ if you put modules into ~/.perl6/lib/ rakudo will find them 09:07
or you can set the PERL6LIB environment variable
or you can say BEGIN { @*INC.push: '/path/to/lib' } in your module
meneldor i see
is there a way like in perl5 to install from cpan directly to perl6 lib 09:08
09:08 Baggio_ left
meneldor like: cpan6 install Module 09:09
09:09 nihiliad left
moritz_ there's an installer called "proto" 09:09
github.com/masak/proto/
you have to checkout the installed-modules branch 09:10
and then you can try ./proto install json
meneldor tnx
09:16 Su-Shee joined, iblechbot joined
Su-Shee good morning 09:17
Tene hi!
mberends guten morgen
moritz_ tach! 09:19
meneldor do anyone use Padre with perl6 ? 09:20
09:21 lumi left, JimmyZ left
Su-Shee doesn't. 09:21
moritz_ is a vim user 09:27
Su-Shee so am I. gvim with shiny tabs ;) 09:28
meneldor im trying this from the book: my @names = $file.get.split(' '); 09:35
09:35 agentzh joined
meneldor but it throws an error 09:35
Could not locate a method 'get' to invoke on class 'IO'.
there are 6-7 additional lines below this error 09:36
lisppaste3 meneldor pasted "untitled" at paste.lisp.org/display/92346 09:37
frettled is a whimsical user. 09:41
meneldor can anyone help me with this error please
09:42 lumi joined, ashizawa joined
meneldor is this my fault or this code is obsolete? 09:42
frettled I'm sorry, I'm still too much of a n00b to help you with that. :( 09:44
mberends meneldor: please paste your script file 09:46
09:47 frettled sets mode: +oo mberends Su-Shee
frettled idles again. :) 09:47
mberends :)
if you successfully open a file, get works 09:48
09:49 mikehh left, mikehh joined
meneldor if i only use open it works 09:50
this error appear when i use $file.get.split(' ');
09:50 lestrrat is now known as lest_away
moritz_ $*IN.get.split(' ').perl.say 09:56
rakudo: $*IN.get.split(' ').perl.say 09:57
p6eval rakudo 7f1c3f: ["Land", "der", "Berge,", "Land", "am", "Strome,"]␤
09:58 lumi_ left
meneldor moritz_: i just ran the code in the book 09:58
moritz_ meneldor: and did you create the data files first?
09:59 agentzh left, Baggio_ joined
meneldor yes 09:59
i wrote file named the same way with the same data inside
10:00 justin_ joined 10:01 Alias joined 10:02 justin_ left
moritz_ that's weird 10:02
but I'm afraid I can't investigate right now, have to leave rather soon
mberends copy the source code from the book pdf give the wrong kind of quote characters 10:03
*copying, gives, gah, fingers too cold 10:04
meneldor mberends: i've changed them :)
mberends Also fixing more of them here. The original git version would be more reliable for copying. 10:05
works now. beware of backticks pretending to be single quotes 10:07
meneldor the line: my @names = $file.get.split(' '); 10:08
is hand written
mberends check every quote/backtick on all lines 10:09
meneldor well i did it 10:14
i tryed this: my $file = open 'scores'; say $file;
it prints: IO<0xb5fbe380>
mberends $file is an open file object, ok 10:15
meneldor but it means that OPEN works
then if i use get it throws an error
mberends pasting my copy, then you can diff them 10:16
10:16 vamped joined
meneldor your copy? 10:17
10:18 vamped left
meneldor here is my perl6 version: This is Rakudo Perl 6, revision 37414 built on parrot 0.9.1-devel 10:20
lisppaste3 mberends pasted "book example for meneldor" at paste.lisp.org/display/92347
meneldor mberends: the same error :( 10:22
mberends meneldor: your parrot is too old, you should get newer parrot and rakudo
meneldor but i installed it 1 hour before
mberends you downloaded from an old site
meneldor oh no
mberends parrot is now 1.8 10:23
meneldor i use www.rakudo.org/how-to-get-rakudo
mberends looks
meneldor then i downloaded rakudo-2009-12.tar.gz 10:24
then: perl Configure.pl --gen-parrot
and it check some thinks in the site i think
mberends it could be that your search path is finding an earlier install instead of the new one 10:25
10:25 mikehh left
meneldor nope, i start perl6 executable in the same directory i've builded 10:26
mberends try 'which perl6' and verify the directory
10:27 lumi_ joined
mberends the 0.9.1 must be removed with extreme prejudice 10:27
meneldor ill try to compile it again 10:28
mberends just remove all the new stuff first, and verify that you have *no* old version left 10:29
meneldor this is the first time i install perl6
mberends which OS is this on? 10:30
meneldor ubuntu
10:30 lumi left
meneldor hmm now is different i think 10:30
Checked out revision 43076.
mberends ok, I'll try the webpage download in /tmp on another ubuntu pc
meneldor wait 10:31
let me compile it
mberends 43076 sounds good, I'm using 42558 10:33
10:34 rfordinal joined
meneldor i might had been installed from old archive 10:35
nice! 10:37
tnx mberends
now all works
i dont know how i've installed that old version before :)
mberends remembers the birth of 'get' at NPW in Oslo 10:38
meneldor well today im starting to migrate from perl5
cheers for the help mberends
mberends meneldor: you're very welcome 10:39
meneldor here is the old version I've installed before: github.com/rakudo/rakudo
when you click Download it sends you some archive rakudo-rakudo-26262626.tar.gz 10:40
then i've downloaded rakudo-2009-12.tar.gz and all is OK
mberends the site is current, but the tar file may be obsolete 10:41
10:42 iblechbot left 10:45 mikehh joined 10:52 mjk joined 10:56 meneldor left 11:12 JimmyZ joined 11:25 IllvilJa left 11:29 iblechbot joined 11:39 JimmyZ left 11:44 lumi joined 11:45 lumi_ left, astoria joined 11:53 Baggio_ left 11:54 masak joined
masak mberends++ # vill 11:54
mberends: I vill definitely check it out! :)
phenny: tell moritz that perlgeek.de/blog-en/perl-6/publicit...erl-6.html (while otherwise great as usual) contains a HTML-related glitch in its first paragraph. you don't type in all the HTML manually, do you? :) 11:57
phenny masak: I'll pass that on when moritz is around.
masak oh dang. 11:58
phenny: tell moritz_ that perlgeek.de/blog-en/perl-6/publicit...erl-6.html (while otherwise great as usual) contains a HTML-related glitch in its first paragraph. you don't type in all the HTML manually, do you? :)
phenny masak: I'll pass that on when moritz_ is around.
masak really liked use.perl.org/~Alias/journal/40026 12:03
Alias bows
12:03 colomon joined
masak I think, in all humility of course, that it's one of the areas where Perl 6 will be more adaptable than Perl 5. 12:04
Alias From my perspective, Perl 6 is worse
Because the grammar is utterly intangible
And modules only have a valid document structure if they also compile 12:05
Does P6 have a BEGIN equivalent? 12:06
12:06 Baggio_ joined
Alias Is it possible to do code injection into the compiler? 12:06
masak oh, sure.
macros, defined operators, defined other pieces of syntax... 12:07
but it's, er, homoiconic in a way that Perl 5 isn't.
rachelBROWN what would be the best way to go about donating LSD to the most active contributors of perl6 12:08
masak rachelBROWN: are you really sure that's what's needed at this juncture? :P 12:09
how about we just make sure the ng branch merges instead? 12:10
rachelBROWN perl6 is supposed to do everything, right?
12:10 kidd joined
rachelBROWN I thing LSD would help us with that. 12:10
huf no, just 70% of that
masak rachelBROWN: I see your point, but... I think most people believe more in LTM around here. 12:11
rachelBROWN Large Telescope Metalanguage? 12:13
masak no, but I like the sound of that. :)
Longest-Token Matching. 12:14
huf hmm, my LTM mislead me about the meaning of LTM
12:15 araujo joined
masak huf: you have a telescope? :) 12:15
huf i meant long-term memory ;) no scope, only vision here. 12:20
masak oh. well, hindsight is 20-20. 12:23
huf you are correct. i have 0 eyes in the back of my head. 12:24
jnthn oh hai, #perl6 12:26
masak lolitsjnthn! \o/ 12:28
12:28 Su-Shee_ joined, Su-Shee left
jnthn
.oO( does LSD make meta-models more understandable? )
12:29
Anyway, the ng branch needs Hash far more. ;-) 12:31
12:33 Su-Shee_ is now known as Su-Shee
masak if nothing else, we're pun junkies. 12:33
huf best kind of junkie. 12:34
Su-Shee can stop punning every day, if I want to.
huf right after each pun? and until the next one? impressive.
12:35 mjk left
Su-Shee just a question of will. and a backspace key in good working condition. 12:35
masak the first step is admitting that one is a punster. 12:36
Su-Shee "hello masak!" ;)
carlin Friends don't let friends use puns
masak hi.
my name is masak, and I pun.
huf hmm, this could lead to the punic wars if we arent careful 12:37
masak I started punning when I was 15, sneaking behind the school building and punning where nobody heard me.
Su-Shee huf: you'll have to pay for that one. ;)
carlin Good idea, make a pun jar
Su-Shee there is actually such a thing in english? I always had difficulties translating the german word. 12:38
huf one of intermediate size no longer used in the west?
(but still used in strife-torn bolivia as a reminder of better days)
13:25 pmurias joined 13:31 iblechbot left 13:42 Su-Shee left 13:44 rfordinal left 13:45 Su-Shee joined 13:51 synth joined, JimmyZ joined 13:52 synth left 13:53 cb_ joined 13:58 orafu left, orafu joined 13:59 cb_ left 14:00 Baggio_ left, cb_ joined 14:01 cb_ left 14:05 cotto left 14:10 meppl left, cb_ joined 14:12 cb_ left 14:15 Baggio_ joined 14:18 cls_bsd left 14:22 mikehh left, mikehh joined
masak quiet here today. 14:42
masak tries vill
14:42 mikehh left
mberends oooh, masak! 14:45
masak mberends! \o/ 14:46
mberends you'll have to install LLVM first. Since much of the work is being done at Apple, it should not be a problem :)
masak congratulations on the de-sekkritification! 14:47
mberends :D
masak mberends: I'm on it.
mberends cool!
masak reading the README in the meantime :)
mberends just planning more README items, to pre-answer FAQs 14:49
so if *you* ask, it's ok, it's not RTFM yet ;) 14:50
it's nice to see that llvm-config is a Perl 5 script 14:51
pugs_svn r29379 | pmurias++ | [mildew-js] strings and ints are not wrapped 14:52
masak llvm.org/docs/GettingStarted.html "1. Read the documentation.\n2. Read the documentation.\n3. Remember that you were warned twice about reading the documentation." :)
mberends heehee
14:55 gabiruh left 15:01 hicx174 left 15:02 hicx174 joined 15:03 patspam joined
masak mberends: any particular reason the 'hello world' example in the README is 'print "howdy!"' and not 'say "howdy!"'? 15:07
the latter gives nicer output, and is more of a moral boost, since it's a Perl6ism.
s/moral/morale/ 15:08
mberends masak: there was a trivial reason. I thought I would leave 'say' as a piece of LHF to tempt some hacker to implement it in terms of the existing 'print' ;) 15:11
masak ahah. :) 15:12
mberends so please do
arnsholt I like the idea of leaving stuff to trick new people into contributing
masak still building LLVM... :)
mberends "trick" ? are you insinuating ?
arnsholt I'd never insinuate anything O=) 15:13
But more seriously, it sounds like a good idea. Having some stuff that people not intimately familiar with the codebase can do might be a good way of attracting more contributors 15:14
mberends innocently put, it's optimizing -Ofun for the maximum number of people
diakopter++ got me into Sprixel that, intentionally or not 15:15
*like that # fingers too cold 15:16
masak is your IRC client outside? 15:19
mberends the shop that sells inkjet cartridges was a short walk away :) 15:20
masak mberends: this only creates more questions. :) 15:22
does your IRC client need ink? 15:23
will the inkjet cartridge salesmen be the first against the wall when the revolution comes? 15:24
etc.
mberends this FAQ will need to become bigger than planned :)
masak by the way, compiling LLVM takes a long time. 15:26
mberends hmm. did you read about not building for *all* targets? 15:27
the default LLVM can cross compile to numerous CPUs 15:28
masak is that so?
no, I just followed the build instructions in the documentation.
mberends ./configure --prefix=/usr --enable-optimized --enable-targets=host-only ? 15:30
(from the vill README)
masak oh. 15:31
I'll abort and do like that then.
thanks.
mberends without that, it adds about 10 CPU backends
it still took me 25 45 minutes 15:32
25 - 45 minutes system dependent
15:34 Psyche^ joined 15:36 JimmyZ left
masak mberends: the README is extensive and very enjoyable. 15:39
15:45 colomon_ joined, colomon left, colomon_ is now known as colomon
mberends masak: you know I value docs more than most people do 15:47
15:50 Patterner left, Psyche^ is now known as Patterner
masak mberends: it's a positive trait. kudos. 15:53
mberends masak: you're pretty good yourself too. 15:55
oh, the mutual appreciation society meeting is just beginning 15:56
moritz_ masak: thanks 16:01
phenny moritz_: 11:58Z <masak> tell moritz_ that perlgeek.de/blog-en/perl-6/publicit...erl-6.html (while otherwise great as usual) contains a HTML-related glitch in its first paragraph. you don't type in all the HTML manually, do you? :)
masak mberends: every community is a mutual appreciation society to some extent. :) 16:02
mberends masak++ # just because
masak :)
I wish I took the time to write more documentation and architectural comments, though. 16:03
but I am sorta proud of the GGE README, even though it's much smaller than vill's :) github.com/masak/gge
diakopter Alias: could PPI do "keyhole" grammar mutation in the same way Devel::Declare does? 16:06
masak mberends: are you sure about the v5.8.0 minimal version requirement. ISTR that STD.pm runs on > v5.10 only.
diakopter Alias: (though, if you did that, it'd become as expressive as the languages STD.pm can handle...) 16:08
mberends: yes, v5.10
16:10 holli joined
holli hi. i'm toying with todays calendar entry. 16:11
this line: say @x.map: * ~ 'A';
mberends thanks masak and diakopter, will update with other edits
holli doesnt work in rakudo (No applicable candidates found to dispatch to for 'map' in Main)
masak rakudo: my @x = <a b c>; say @x.map: * ~ 'A';
p6eval rakudo 7f1c3f: No applicable candidates found to dispatch to for 'map'␤in Main (file <unknown>, line <unknown>)␤ 16:12
masak holli: correct.
rakudo: say (* ~ 'A").WHAT
p6eval rakudo 7f1c3f: Confused at line 2, near "~ 'A\").WHA"␤in Main (file <unknown>, line <unknown>)␤
masak rakudo: say (* ~ 'A').WHAT
p6eval rakudo 7f1c3f: Str()␤
masak holli: there you go.
diakopter what? 16:13
masak 's a bug.
16:13 lumi_ joined
diakopter rakudo: my @x = <a b c>; say @x.map: { * ~ 'A' } 16:14
p6eval rakudo 7f1c3f: AAA␤
masak rakudo: my @x = <a b c>; say @x.map: { $_ ~ 'A' } 16:16
p6eval rakudo 7f1c3f: aAbAcA␤
masak diakopter: both * and {} is tautological.
16:16 Baggio_ left
diakopter *and* repetitively redundant :P 16:17
masak and unnecessary :)
diakopter and extraneous
masak here we go, autopunning again.
diakopter in addition to superfluous
holli rakudo: my @x = <a b c>; say @x.map: { * }
p6eval rakudo 7f1c3f: !whatever_closure!whatever_closure!whatever_closure␤
holli lol
diakopter lolhi indeed 16:18
masak we didn't mention repetitive, did we? and repetitive.
carlin rakudo: my @x = <a b c>; say @x.map: *;
p6eval rakudo 7f1c3f: get_number() not implemented in class 'Sub'␤in Main (file <unknown>, line <unknown>)␤
holli and then they say people should write modules for Perl6 16:19
masak holli: you think that's bad? :)
holli: try implementing a functioning wiki engine 18 months ago! 16:20
mberends: slight vill make failure: gist.github.com/260133
mberends thinks 16:21
ok, gcc on OS X may have a different set of C/C++ lib defaults and cannot statically link malloc() 16:22
masak sounds plausible.
mberends you're the first non linux customer (or maybe the first customer, period) 16:23
certainly the first customer with a complaint ;) 16:24
masak help me solve this, and we'll see about that low-hanging 'say' fruit! :)
mberends :) 16:25
holli how complete is file io?
masak holli: not 100%, but usable. 16:26
anything in particular?
16:26 colomon__ joined
holli nah, just letting my thoughts flowing =) 16:26
masak that's encouraged. :) but don't hesitate to make specific requests. 16:27
16:27 nihiliad joined 16:31 colomon left, colomon__ is now known as colomon
holli to be honest, i have absolutely no perl6 experience. was just thinking i try at latest rakudo (given all the talk about rakudo* lately). but when i see that a simple 16:33
example from the advent calendar doesnt run i'm effectively discouraged.
i mean it's map not working, map! 16:34
16:34 lumi left
masak holli: there are a couple of known issues with the Whatever * and operators. 16:35
mberends masak: finally reading every word in your error gist, the make has not reached the library linking stage yet. The C++ compiler does not have the include dir that contains malloc.h in its search path. This is a typical reason why projects have to run a configure before make, to patch the Makefile. I was hoping to avoid having to do that :(
masak holli: I agree that it's unfortunate that one such example crept into the Advent Calendar.
holli: but I won't lie to you -- you're bound to run into similar omissions here and there. it's possible to write elaborate things on top of Rakudo, but one has to work and know which deficiencies to avoid. 16:36
mberends: ah, so it's more of your fault than mine? ;)
mberends yes, ok, blame me, Richard Stallman and Steve Jobs 16:37
holli blames Merlyn 16:39
masak together, you'll have a reality distortion field to make objects materialize!
16:39 subichan joined 16:40 _stuuf left
mberends struggles to avoid adding a pre-make configure 16:41
holli rakudo: say "foo { 1 + 2 } bar"
p6eval rakudo 7f1c3f: foo 3 bar␤
holli neat
rakudo: my $foo = 'foo { 1 + 2 } bar'; say $foo.eval 16:42
p6eval rakudo 7f1c3f: Method 'eval' not found for invocant of class 'Str'␤in Main (file src/gen_setting.pm, line 324)␤
masak eval is a function.
16:43 mj41_ left
holli why? 16:43
masak holli: most things are. 'say' and a few others are the exception. 16:44
colomon I'm with holli. Why the heck isn't there a .eval method on Str? Makes perfectly good sense to me... 16:45
masak it does.
mberends holli++
masak let's add it while no-one's looking :)
colomon Okay, give me sec. :)
holli i contributed to perl6 =) =) =)
masak if someone else does the spec, I'll do Rakudo.
colomon or you get the spec and I'll get ng.
masak I was thinking master. 16:46
holli++ indeed.
colomon Should it be on Any or just Str? 16:47
mberends eval expects Str
16:48 mj41 joined
masak I added it. running spectests. 16:48
colomon really?
rakudo: say eval 10;
p6eval rakudo 7f1c3f: Parameter type check failed on call to 'eval'.␤in Main (file <unknown>, line <unknown>)␤
masak colomon: I'm not pushing until the spectests show green. :)
colomon masak: did you do Any.eval or Str.eval?
masak: that's why it's easier to do it in ng. :) 16:49
masak I put it in Any-str,pm, but I coerce to Str.
colomon eval ~self ?
masak yes.
colomon that's exactly what I wrote here. :)
masak not much room for variation :)
colomon could have been eval self.Str, I suppose. 16:50
masak actually, I used parentheses, because Damian told me so.
(and I agree)
colomon really?
16:51 abra joined
masak yes. parentheses save lives. 16:52
colomon ng spectest passes (no parens) 16:54
seems like Code should have a method version as well? 16:55
Callable?
holli fights to surpress a xkcd reference
a new quoting style for filenames? neat. 16:57
masak colomon: how do you figure that? why not just .() the Callable?
colomon: there's no corresponding subroutine eval for Callable.
holli is there a Perl6 book worth reading?
colomon ah
carlin holli: Now I'm curious, which xkcd? :-)
masak holli: it's not done yet, but yes. definitely.
holli: it's written for people like you. 16:58
holli xkcd.com/297/ of course
mberends not 224 for a change 16:59
carlin Ah, I was thinking 224
mberends++ # heh
colomon ng spectest passes (parens) 17:00
mberends likes 297 as well
carlin xkcd really is a great, so we'll forgive him for 353 ;-) 17:01
masak carlin: nothing to forgive, really. :) 17:02
just because Python has some positive qualities doesn't mean Perl is bad, or one shouldn't use Perl...
TimToady I have more of a hard time forgiving xkcd for not realizing you can end a Perl program with a right parenthesis
holli masak: i'm a good proofreader =) 17:03
masak holli: excellent.
mberends holli: right paren, on cue 17:04
carlin masak: the alt text
holli mberends: huh? 17:05
masak carlin: ah. that might be something that needs forgiveness. :)
colomon BTW, Any.eval pushed to ng. 17:06
mberends holli: TimToady asks for right parentheses and you type one before (probably) reading his remark
dalek kudo/ng: 9d5018c | (Solomon Foster)++ | src/core/Any-str.pm:
Add Any.eval with obvious definition.
17:07
holli noh, i didnt even realize him talking
mberends synchronicity++ 17:08
TimToady asynchronicity++ too
mberends fate, even
holli speaking of it. is there builtin multicore support in Perl6? 17:09
TimToady in the language, yes
holli like a parallellize opeartor
colomon holli: spec'd but not yet implemented
TimToady rakudo: say 1,2,3 »+« 4,5,6 17:10
p6eval rakudo 7f1c3f: 12756␤
TimToady hmm, precedence failure
rakudo: say (1,2,3) »+« (4,5,6)
p6eval rakudo 7f1c3f: 579␤
TimToady rakudo's parser still doesn't believe in list infixes, I guess 17:11
masak TimToady: Rakudo has that one right, right?
or not.
I thought all hyperops had the same prec as their non-hyper counterparts.
but perhaps that's just [] ops, not >> << ops. 17:12
TimToady hmm, you may be right, lemme look
colomon masak: seems to me like that would be the other way around?
how can you stack [] ops?
masak colomon: stack?
TimToady rakudo: say 1,2,3 X 4,5,6
p6eval rakudo 7f1c3f: 141516242526343536␤
TimToady that one is right 17:13
colomon masak: have more than one of them in an expression.
masak: in such a fashion that precedence would be an issue.
TimToady so you're right, rakudo does know about list infix, but >>+<< isn't one
(yet)
masak colomon: [+] 1, 2, [*] 3, 4 17:14
colomon: but no, precedence is not an issue there.
holli what was the name again of this language with all this math symbols as operators? the one that was never widely used because there were no keyboards for it
masak it all falls out naturally, because they're listops.
colomon whereas @a >>+<< @b >>*<< @c is perfectly sensible...
TimToady colomon: actually, pugs did implement the multithreaded hypers at one point
masak holli: APL?
holli: and there were keyboards for it. :)
colomon TimToady: really? wonder if that still works? 17:15
TimToady holli: also, we have feed operators ==> and <== that work like pipelines for cell architectures 17:16
but those aren't implemented yet either 17:17
Juerd wonders if they'll be used much
holli masak: yeah, that's it.
diakopter programs get hungry
TimToady but basically any lazy lists could be constructed by a separate processor, as long as there aren't bad dependencies (side effects) 17:18
masak pipes are another place where I have the feeling that the spec will mutate a bit before settling...
mberends masak: could you confirm that your OS X does *not* have /usr/include/malloc.h or /usr/local/include/malloc.h ?
colomon mine has /usr/include/malloc/malloc.h 17:19
diakopter /usr/include/sys/malloc.h
colomon but neither one you mention. 17:20
mberends ouch, that's the problem
colomon and what diakopter says, too.
diakopter but stdlib.h should cover it
mberends ah, good suggestion
diakopter otherwise, what colomon said 17:21
holli TimToady: why limiting yourself to a single machine? think cloud =) 17:22
17:23 abra left
holli btw cloud. i wnat perl6 on to be runnable in the google app engine =) 17:23
17:23 abra joined
masak holli: that's great! thanks for volunteering! 17:23
diakopter holli: do you mean hosted in one of the supported gae languages? or as its own supported langage? 17:24
TimToady holli: sure, but lazy lists have to keep ordering, even if calculated out of order; clouds tend to be better for map/reducey things
holli the latter preferably
mberends holli's head is in the clouds
diakopter holli: ask again when they support RealPerl 17:25
holli i think that will never happen.
diakopter I mean, Perl 5... oops, did I leak the new name?
masak "RealPerl"? is that the new nickname for Perl 5? :)
strangely, I find myself amused rather than offended. 17:26
TimToady as opposed to ComplexPerl? :)
diakopter it was meant to amuse, so.. .whew
TimToady ImaginaryPerl is a bit long to type 17:27
holli so that becomes iPerl
TimToady but I'd like both Perl 5 and Perl 6 to be real, so maybe NumPerl vs RatPerl
17:27 hydra35 joined
diakopter or RatPerl vs IrratPerl 17:28
TimToady contemplates jokes on Rat.pack
diakopter Frat.pack; Brat.pack; Borat.pack 17:29
or 17:30
17:30 IllvilJa joined
holli how the fuck do i update the rakudo repository? 17:30
diakopter HerePerl vs LagPerl
mberends masak: to avoid a potentially futile edit/commit/revert, could you edit src/run.cpp, s/malloc/stdlib/ on the first occurrence (line 3) and see if 'make' compiles one file more? It works ok on Linux.
diakopter holli: not like that 17:31
masak mberends: sure thing. hold on.
colomon holli: did you get it using git?
holli yeah, but git --help tells me there is no update (<-- svn user)
colomon git pull 17:32
masak mberends: that works. next failure is in save.cpp. the same cause.
mberends masak: thanks, I'll patch 'em all. diakopter++ 17:33
diakopter AGAIN WIN
masak mberends++ # great customer service
diakopter that's, like, twice in one year
holli grrmpff. thanks 17:34
diakopter used to own a mac
17:34 hydra35 left
diakopter then windows rehab ended, and I fell off the wagon 17:35
masak mberends: belated confirmation: I have /usr/include/malloc/malloc.h 17:36
diakopter std: ((())()((())()((((()))))))()()(()())((())()()(()()))((())(((((())()()))))) 17:38
p6eval std 29379: ok 00:01 104m␤
diakopter I like that language
carlin I didn't know std could parse lisp
diakopter perl6: ((())()((())()((((()))))))()()(()())((())()()(()()))((())(((((())()()))))) 17:39
p6eval pugs: *** Cannot cast from VList [] to Pugs.AST.Types.VCode (VCode)␤ at /tmp/g25doSyV16 line 1, column 2-26␤
..elf 29379: Use of uninitialized value in subroutine entry at (eval 138) line 3.␤Can't use string ("") as a subroutine ref while "strict refs" in use at (eval 138) line 3.␤ at ./elf_h line 5881␤
..rakudo 7f1c3f: invoke() not implemented in class 'Undef'␤in Main (file <unknown>, line <unknown>)␤
diakopter mildew: ((())()((())()((((()))))))()()(()())((())()()(()()))((())(((((())()()))))) 17:40
p6eval mildew: Can't open perl script "mildew": No such file or directory␤
diakopter mildew-js: ((())()((())()((((()))))))()()(()())((())()()(()()))((())(((((())()())))))
p6eval mildew-js: Can't open perl script "mildew": No such file or directory␤
diakopter o
p6eval asciirot 17:41
17:42 rfordinal3643 joined
pmurias diakopter: i don't have access to the evalbot box anymore so i can fix that 17:44
17:46 skyheights joined, mubot left, zaslon left, pointme left, pointme joined, mubot joined, zaslon joined
TimToady botrot 17:46
17:53 skyheights left
holli rakudo: say qp{/usr} 17:54
p6eval rakudo 7f1c3f: Confused at line 2, near "{/usr}"␤in Main (file <unknown>, line <unknown>)␤
17:54 lumi joined
holli that should work, shouldnt it? 17:55
17:56 abra left
masak yes. 17:57
not implemented yet in Rakudo.
std: say qp{/usr}
p6eval std 29379: ok 00:01 106m␤
holli so how do i read a directory in rakudo? 17:58
masak you mean list all the files in it?
holli for example
masak I'd use something like qx{ ls } right now.
holli iiek! 17:59
masak 'ilek!'? was that an expression of approbation or distaste? :) 18:00
can't keep up with the slang nowadays...
holli more an expression of panic =)
masak don't panic :)
holli yeah, it's mostly harmless 18:05
masak 'The Guide is definitive. Reality is frequently inaccurate.' 18:07
18:08 justatheory joined
holli you gotta love that book. 18:10
i like the idea of this sprixel thing. beeing able to use perl6 for both, server and client side, would be definitly sexy. 18:11
combined with a neat widget library,,, 18:12
18:12 lumi_ left
pugs_svn r29380 | mberends++ | [vill] portability change malloc.h to stdlib.h, masak++ diakopter++ 18:18
masak \o/
masak tries new, improved version of vill
mberends crosses fingers and legs 18:19
masak awww. :( 18:20
it got to linking this time...
gist.github.com/260181
mberends ok, that's *very* different, not seen such before 18:22
and yet it looks like one detail causes all 151 lines 18:23
masak that sounds like slightly good news... 18:24
mberends the LLVM config is not pointing to a lib directory properly
that probably would need rebuilding LLVM with a different ./configure parameter 18:26
.oO( where would OS X C++ expect to find lib dirs? )
18:27
masak no idea. 18:28
mberends the --prefix option must be different for OS X
TimToady I thought llvm didn't really support C++ yet...
mberends TimToady: it *uses* C++, but is only partly compiling C++ 18:29
their greatest achievement so far is a C compiler that adds -O4, optimization across linked code modules 18:30
dalek kudo/master: 8dc1895 | masak++ | src/setting/Any-str.pm:
[Any-str.pm] added method form of eval
18:32
masak holli: there you go. if you hang around for half an hour or so, the rakudo evalbot will update, and you can have your method .eval :)
and now, I need to go home and fill up on nutrients. running low on blood sugar... 18:34
o/
18:34 masak left 18:35 cotto joined
diakopter pmurias: it's in pugscode svn 18:36
it, meaning p6eval botdna 18:37
pmurias: svn.pugscode.org/pugs/misc/evalbot/evalbot.pl 18:39
18:55 cottoo joined
holli seriously, it really takes a linguist to breed the idea of a "logical non negation" as an operator =D 18:56
18:56 cotto left
holli masak: tx 18:56
18:57 colomon left
holli rakudo: my $foo = 'foo { 1 + 2 } bar'; say $foo.eval 19:00
p6eval rakudo 7f1c3f: Method 'eval' not found for invocant of class 'Str'␤in Main (file src/gen_setting.pm, line 324)␤
holli p6eval sprixel my $foo = 'foo { 1 + 2 } bar'; say $foo.eval
mberends holli: try sprixel: ... 19:04
holli sprixel: my $foo = 'foo { 1 + 2 } bar'; say $foo.eval
p6eval sprixel 29380: NYI: term__S_scope_declarator␤ 19:05
mberends sprixel's like that :(
holli makes me wonder, are the error messages spec'ed?
TimToady the ones in STD.pm are, more or less 19:06
to the extent that STD.pm is spec..
sprixel: $_ = 'foo { 1 + 2 } bar'; say $_.eval
p6eval sprixel 29380: NYI: term__S_variable␤
holli so the same syntax error is supposed to throw the same error in every implementation? 19:07
TimToady sprixel: say 'foo { 1 + 2 } bar'
holli s/same error/same message/
p6eval sprixel 29380: NYI: term__S_identifier␤
TimToady 'is supposed to' is not, strictly speaking, a defined phrase in Standardese... :) 19:08
holli btw, TimToady if you ever happen to be in Freiburg and need a couch, be my guest =)
TimToady but yeah, more or less :)
thanks...I think... 19:09
I'll have to figure out someplace to put the couch, though...
holli no need for scepticism. i just need someone to teach me some emacs tricks ^ 19:10
^^
19:10 colomon joined
subichan TimToady: my proposal for perl6: multi tape finite state transducers 19:11
TimToady I like the ^X^Cvi emacs command, myself :P 19:12
subichan it would be neat and you know it ;) 19:14
TimToady has a Pooh-brain that melts easily.
subichan i know i may be late for proposals but i tried 19:15
it* 19:16
TimToady in what way would this not be possible in a Perl 6 module?
holli multi tape finite state transducer? sounds like a device from Star Trek (tm)
subichan everything is possible, but somebody's gotta code it ! as a computational linguist i loved perl, but I longed a lot for two-tape transducers. had to resort to other toolkits for that. now that two-tape is kinda old and perl6 is coming out then i thought that would be a nice thing to add with its own operator or something.. 19:18
.. as a multi-tape implementation
that's been done only with prolog afaik. 19:19
19:22 rfordinal3643 left
subichan perhaps i'm just being too lazy and egoistical 19:22
holli i thought it's possible to invent your own operators in perl6. 19:25
subichan yeah but i wanted it to be official.. you know, like s/// and tr// 19:26
colomon holli: it certainly is possible.
holli ahhh, good old hybris ;-D 19:28
i'm just reading the wikipedia artictle about this tranducer thingie. my head aches. 19:32
too much symbols.
19:32 zloyrusskiy joined
TimToady subichan: speaking of official, what's the official spelling of your name? 子美チャン、かなあ。。。 19:33
or is it some other exotic language, like English? 19:34
holli TimToady: you should have called this Mu object Poo. so one could say "everything comes down to poo" 19:35
Su-Shee Mu is cool. I already hooked at least 3 japanologists on Perl 6 because of it. 19:36
holli
.oO( writing perl6 code in kanji)
19:37
TimToady std: say 無 19:38
p6eval std 29380: Undeclared routine:␤ '無' used at line 1␤ok 00:01 106m␤
TimToady hmm
subichan it's a nickname lol so i wouldn't know how you should really spell it in japanese.. chan is the japanese suffix but the rest is really a nick.. so katakana i guess 19:39
TimToady well, generally 'bi' comes out 美 'beauty' in names 19:41
and 'su' could be any of various things
subichan haha, no this evolved out of something else
19:48 Psyche^ joined 19:51 justatheory left 19:56 Patterner left, Psyche^ is now known as Patterner 20:01 nihiliad left, iblechbot joined 20:07 colomon left 20:10 astoria left 20:19 subichan left 20:26 vamped joined
vamped is there a preferential file suffix: .pl or .p6 ? 20:35
mberends vamped: .pl because the contents determine 5 or 6 20:37
vamped that's what I thought, but I'm getting my p5 and p6 code mixed up, so I thought maybe .p6
(until perl6 will run perl5 code) 20:38
mberends use .p6 if you prefer, you'll just encounter minor friction occasionally 20:39
rename when the interoperability lands
vamped well, maybe I had better conform to the one_true_way ;) 20:40
mberends lots of files in Unix have no extension, and rely on #!/something
vamped yes. that's another (GOOD) possibility. I think I will do it that way 20:41
20:41 nihiliad joined 20:43 y3llow_ joined
PerlJam for me .pl is still either "prolog" or "perl library" (ergo, I tend to use .p6 if I use anything at all) 20:49
mberends phenny, tell masak an expert at #llvm said the --prefix=/usr *should* work on OS X as well. "probably something is expecting 32-bit code and using 64-bit or vice versa" 20:50
phenny mberends: I'll pass that on when masak is around.
mberends are macs schizophrenic? 20:51
20:52 IMeMyself left 20:55 y3llow left 21:00 pdcawley left
mberends diakopter: ping 21:03
21:04 xomas joined 21:05 xomas left 21:06 xomas joined
pugs_svn r29381 | lwall++ | [S02] rough in idea of moritz_++ to have separate type for convenience loopbacks 21:07
r29381 | also conjecturally put all "last-resort" multis there to see if jnthn++ freaks
21:07 TimToady sets mode: +vvvv buubot dalek hugme iblechbot, TimToady sets mode: +vvv ilbot2 ilogger2 IRSeekBot, TimToady sets mode: +vvvv lisppaste3 mubot p6eval phenny, TimToady sets mode: +vvv pointme pugs_svn zaslon 21:09 TimToady sets mode: +oooo japhb pmichaud_ Su-Shee wayland76, TimToady sets mode: +oo xinming_ [particle] 21:27 Chillance left 21:33 Exodist left 21:38 colomon joined 21:52 zloyrusskiy left 21:57 meppl joined 22:06 astoria joined 22:19 justatheory joined 22:27 astrojp joined 22:43 MikeD joined, MikeD left 22:45 subichan joined
moritz_ TimToady++ 22:46
23:01 Su-Shee left 23:02 colomon left 23:03 lumi_ joined 23:11 subichan left 23:23 lumi left 23:34 astoria left 23:41 colomon joined 23:44 adhoc left 23:48 meteorjay joined 23:57 iblechbot left
holli choses chrome as the one true browser 23:59