Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2007-09-13

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:05 theorb joined #perl6
00:11 vel joined #perl6
00:14 weinig joined #perl6
01:07 lyokato joined #perl6
01:35 [particle1 joined #perl6
01:37 weinig joined #perl6
01:39 daxim_ joined #perl6
01:52 Greenn joined #perl6
01:55 amnesiac joined #perl6
02:46 Lunchy joined #perl6
02:58 vel joined #perl6
03:08 drupek1226 joined #perl6
03:20 vel joined #perl6
03:59 penk joined #perl6
04:05 sunnavy joined #perl6
04:07 baest joined #perl6
04:11 araujo joined #perl6
04:17 drupek1266 joined #perl6
04:31 finchely joined #perl6
04:40 finchely left #perl6
04:42 ruoso joined #perl6
04:55 ruz joined #perl6
05:23 dduncan joined #perl6
05:27 pugs_svnbot r17781 | Darren_Duncan++ | ext/Muldis-DB/ : Removed the file Copying.pod; it isn't particularly useful anymore.
05:27 pugs_svnbot diff: http://dev.pugscode.org/changeset/17781
05:27 lambdabot Title: Changeset 17781 - Pugs - Trac
05:29 weinig joined #perl6
05:30 vel joined #perl6
05:31 jisom joined #perl6
05:35 devogon joined #perl6
05:45 Ashizawa joined #perl6
05:45 silug joined #perl6
06:00 Partizx joined #perl6
06:02 lyokato joined #perl6
06:12 c9s_ joined #perl6
06:24 iblechbot joined #perl6
06:44 elmex joined #perl6
06:58 Maddingue joined #perl6
07:10 lyokato_ joined #perl6
07:19 lyokato__ joined #perl6
07:24 franck___ joined #perl6
07:40 Aankhen`` joined #perl6
07:55 lyokato joined #perl6
08:21 dduncan left #perl6
08:39 dalecooper joined #perl6
08:40 dalecooper joined #perl6
08:56 andara joined #perl6
08:59 masak joined #perl6
09:15 chris2 joined #perl6
09:21 marmic joined #perl6
09:26 drrho joined #perl6
09:26 flokuehn joined #perl6
09:28 pugs_svnbot r17782 | ruoso++ | [kp6] changing kp6-kp6 to emit with a different runtime where needed
09:28 pugs_svnbot diff: http://dev.pugscode.org/changeset/17782
09:28 lambdabot Title: Changeset 17782 - Pugs - Trac
09:35 f0rth joined #perl6
09:40 fglock joined #perl6
09:46 pugs_svnbot r17783 | ruoso++ | [kp6] new environment more consistent
09:46 pugs_svnbot diff: http://dev.pugscode.org/changeset/17783
09:46 lambdabot Title: Changeset 17783 - Pugs - Trac
09:52 pugs_svnbot r17784 | ruoso++ | [kp6] lib-modules needs two target compilations too;
09:52 pugs_svnbot diff: http://dev.pugscode.org/changeset/17784
09:52 lambdabot Title: Changeset 17784 - Pugs - Trac
09:53 dolmans joined #perl6
09:53 buetow joined #perl6
10:07 pugs_svnbot r17785 | ruoso++ | [kp6] using correctly the new lib-modules target compilation
10:07 pugs_svnbot diff: http://dev.pugscode.org/changeset/17785
10:07 lambdabot Title: Changeset 17785 - Pugs - Trac
10:08 ruoso fglock, kp6-mp6 and kp6-kp6 runtimes now have the exact same results in tests ;)
10:08 fglock :)
10:19 szbalint does anyone know how pugscode.org's architecture looks like? Is it run by Jifty? I'm planning to put some content on to perl.hu and I'm wondering what to use for it, and whether I can use the same style/css as perl.org/pugscode.org for it
10:25 beppu joined #perl6
10:30 Juerd szbalint: Do you want an account on feather to peek at the source? :)
10:31 szbalint I got a feather account already I think, where is it on feather?
10:31 Juerd szbalint: I have no idea, but it's somewhere
10:32 szbalint ok I'll look, ta
10:32 Juerd Probably /var/www/pugscode.org
10:32 Juerd Looks like it's pretty static
10:34 szbalint yeah
10:34 ruoso fglock, 'a' | 'b' against an empty string is the case of failure for one of the tests
10:37 pugs_svnbot r17786 | fglock++ | [kp6] fixed hash interpolation
10:37 pugs_svnbot diff: http://dev.pugscode.org/changeset/17786
10:37 lambdabot Title: Changeset 17786 - Pugs - Trac
10:43 moritz_ kp6: my %a = (foo => 3); say "%a"
10:43 exp_evalbot r17786: OUTPUT[%a␤]
10:43 moritz_ kp6: my %a = (foo => 3); say "%a{}"
10:43 exp_evalbot r17786: OUTPUT[foo      3␤]
10:46 rindolf joined #perl6
10:47 knewt so, just curios, do we think that perl6 might be completed and released within a year?
10:48 moritz_ yes, within a year... but I don't know which year ;-)
10:48 moritz_ presumably 2008
10:49 knewt heh. was just wondering because i noticed that python3 is apparently supposed to be about a year away
10:49 moritz_ and so is duke nukem forever ;-)
10:51 knewt hehe
10:51 moritz_ nobody is more impatient to see Perl 6 released than we are, that's why we're working on it
10:52 wolverian knewt, note that python 3k is not a complete reimplementation and respecification of the language
10:52 wolverian (unlike perl 6)
10:52 moritz_ but it's a language with quite a complex grammar and many nifty features, that's not so easy to tackle
10:52 knewt what's the current status? have to admit i haven't been paying much attention just lately
10:52 moritz_ knewt: status of what? specs or the implementations?
10:53 knewt specs
10:53 moritz_ "we're done with the first 80% and well into the second 80%"
10:54 moritz_ most things are specced, but a few things like concurrency and a few builtins are still missing
10:54 knewt cool
10:54 moritz_ and the POD specs are currently pending
10:55 moritz_ knewt: http://perlcabal.org/syn/ <-- offical specs, annotated with tests and test results from pugs
10:55 lambdabot Title: Official Perl 6 Documentation
10:57 knewt oooh, that embedded tests with results is rather neat
11:00 moritz_ aye ;)
11:12 Schwern joined #perl6
11:37 masak how does async blocks work? do they spawn their own threads and do stuff in that thread?
11:39 vel joined #perl6
11:40 masak is there a way to know when an async block has finished?
11:53 agentzh masak: in Perl 6?
11:53 agentzh masak: in Perl 5, i think there's a threads->join or something like that :)
11:53 agentzh masak: in Perl 5, Thread::Queue is handly as well :)
11:54 masak agentzh: yes, in Perl 6?
11:54 agentzh masak: i knew little about Perl 6's multithread API...
11:54 masak I notice it's still in the unspecced folder
11:54 masak so maybe there's no answer
11:54 agentzh heh
11:54 agentzh maybe larry and audreyt have the answers in their head...
11:54 masak I'm a fan of the async {} syntax
11:55 agentzh or some random docs in their local machines..
11:55 * agentzh too.
11:55 masak but it's not immediately obvious to me how one would do a thread->join with it
12:01 masak of course, there's always polling a shared variable... but that hardly sounds sanitary
12:22 flokuehn joined #perl6
12:35 cmarcelo joined #perl6
13:02 Lunchy joined #perl6
13:15 kanru joined #perl6
13:19 lumi $foo = async { blah }; f($foo) # waits? Maybe?
13:19 lumi Is this what join does?
13:21 masak lumi: that's what I had in mind, at least
13:23 jhorwitz joined #perl6
13:38 TJCRI joined #perl6
13:52 fglock joined #perl6
13:57 Casan joined #perl6
13:59 pmurias joined #perl6
14:04 pugs_svnbot r17787 | ruoso++ | [kp6] added length, >=, <. constant or match agains empty string still fails
14:04 pugs_svnbot diff: http://dev.pugscode.org/changeset/17787
14:04 lambdabot Title: Changeset 17787 - Pugs - Trac
14:08 cognominal_ joined #perl6
14:13 pugs_svnbot r17788 | ruoso++ | [kp6] kp6-kp6 recompiled
14:13 pugs_svnbot diff: http://dev.pugscode.org/changeset/17788
14:13 lambdabot Title: Changeset 17788 - Pugs - Trac
14:18 amnesiac joined #perl6
14:21 rfordinal joined #perl6
14:25 pugs_svnbot r17789 | ruoso++ | [kp6] reverting changes of constant match
14:25 pugs_svnbot diff: http://dev.pugscode.org/changeset/17789
14:25 lambdabot Title: Changeset 17789 - Pugs - Trac
14:35 rindolf joined #perl6
14:40 [particle] joined #perl6
14:44 pugs_svnbot r17790 | fglock++ | [kp6] smaller Term.pm
14:44 pugs_svnbot diff: http://dev.pugscode.org/changeset/17790
14:47 agentzh left #perl6
14:50 pugs_svnbot r17791 | ruoso++ | [kp6] fixed "a | b" against empty string
14:50 pugs_svnbot diff: http://dev.pugscode.org/changeset/17791
14:50 lambdabot Title: Changeset 17791 - Pugs - Trac
14:59 pugs_svnbot r17792 | ruoso++ | [kp6] infix<<> fixed. only three tests failing now
14:59 pugs_svnbot diff: http://dev.pugscode.org/changeset/17792
14:59 lambdabot Title: Changeset 17792 - Pugs - Trac
15:00 ruoso fglock, take a look at the test grammar/05
15:00 ruoso say is outputting HASH(0x8414dd8)
15:01 fglock fixing
15:08 pugs_svnbot r17793 | fglock++ | [kp6] arrow blocks
15:08 pugs_svnbot diff: http://dev.pugscode.org/changeset/17793
15:11 pugs_svnbot r17794 | lwall++ | [STD] captures distinguished from mere lexical bindings
15:11 pugs_svnbot r17794 | lwall++ | [Cursor] Original $_ now stored in the $._ attribute
15:11 pugs_svnbot diff: http://dev.pugscode.org/changeset/17794
15:11 lambdabot Title: Changeset 17794 - Pugs - Trac
15:17 rgs_ joined #perl6
15:17 pugs_svnbot r17795 | fglock++ | [kp6] fixed Str-to-native and Int-to-native
15:17 pugs_svnbot diff: http://dev.pugscode.org/changeset/17795
15:17 lambdabot Title: Changeset 17795 - Pugs - Trac
15:23 avar fglock: http://sial.org/pbot/27475 :)
15:23 pugs_svnbot r17796 | ruoso++ | [kp6] a fix in 09
15:23 pugs_svnbot diff: http://dev.pugscode.org/changeset/17796
15:23 lambdabot Title: Paste #27475 from Someone at 208.78.101.240
15:23 lambdabot Title: Changeset 17796 - Pugs - Trac
15:24 * avar was looking through the kp6 code and made some nits
15:24 avar constant.pm was faster than I recalled:)
15:24 moritz_ avar: why don't you just commit them?
15:25 avar does lib-kp6-kp6-p5 work for anything?
15:25 ruoso avar, it's kp6 compiled to use pure kp6 runtime
15:25 pugs_svnbot r17797 | ruoso++ | [kp6] left test grammar/09 with a different syntax from 08
15:25 pugs_svnbot diff: http://dev.pugscode.org/changeset/17797
15:25 lambdabot Title: Changeset 17797 - Pugs - Trac
15:25 ruoso the other one still uses mp6 runtime at some points
15:26 fglock avar: you can commit nits directly :)
15:26 ruoso avar, basically the kp6-kp6 is compiled by kp6, while kp6-mp6 is compiled in part by mp6
15:26 avar Yeah I figured that, I guess I'm asking how the bootstrapping is going:)
15:28 pugs_svnbot r17800 | avar++ |  r63361@t:  avar | 2007-09-13 15:26:02 +0000
15:28 pugs_svnbot r17800 | avar++ |  Don't load Data::Dumper unless ->perl is called ; don't import blessed from Scalar::Util
15:28 pugs_svnbot diff: http://dev.pugscode.org/changeset/17800
15:28 lambdabot Title: Changeset 17800 - Pugs - Trac
15:30 avar mm, make test works now, Was broken for some reason yesterday
15:30 pugs_svnbot r17801 | fglock++ | [kp6] map() can now use arrow blocks
15:30 pugs_svnbot diff: http://dev.pugscode.org/changeset/17801
15:30 lambdabot Title: Changeset 17801 - Pugs - Trac
15:30 kanru joined #perl6
15:31 * avar gives fglock more amphetamines
15:31 moritz_ fglock: I think they are called 'pointy blocks'
15:31 fglock avar: last commit was on bootstrapped code (uses a feature implemented in r17793)
15:31 ruoso avar, I'm writing a little more of kp6.p6
15:31 fglock moritz_: thanks :)
15:31 ruoso the libraries already load without syntax errors
15:31 avar ruoso: WHEE:)
15:32 ruoso fglock, is there already any way to load STDIN?
15:32 pugs_svnbot r17802 | ruoso++ | [kp6] some more code in kp6.p6, included GLOBAL::require
15:32 pugs_svnbot diff: http://dev.pugscode.org/changeset/17802
15:32 lambdabot Title: Changeset 17802 - Pugs - Trac
15:32 fglock ruoso: you can implement it in IO
15:33 chris2 joined #perl6
15:34 ruoso hmm... the visitors still don't load without syntax errors...
15:35 pugs_svnbot r17803 | ruoso++ | [kp6] require dies if eval require died...
15:35 pugs_svnbot diff: http://dev.pugscode.org/changeset/17803
15:35 lambdabot Title: Changeset 17803 - Pugs - Trac
15:38 ruoso wheeeeeee.... kp6 loads all the visitors without syntax errors...
15:38 moritz_ kp6++
15:39 ruoso hmm... attribute bind fails in kp6-mp6 too....
15:39 pugs_svnbot r17804 | ruoso++ | [kp6] attribute binding not working in kp6-kp6
15:39 pugs_svnbot diff: http://dev.pugscode.org/changeset/17804
15:39 lambdabot Title: Changeset 17804 - Pugs - Trac
15:42 pugs_svnbot r17805 | fglock++ | [kp6] cleanup fixed workarounds
15:42 pugs_svnbot diff: http://dev.pugscode.org/changeset/17805
15:42 lambdabot Title: Changeset 17805 - Pugs - Trac
15:47 fglock can this file be published in pugs? if not, does someone have an alternate? http://www.perlmonks.org/?node_id=485885
15:47 lambdabot Title: PBP's .perltidyrc file, was Re: Perl Best Practices
15:47 fglock we need this in order to fix the unnecessary diffs
15:48 avar you can publish it, a bunch of command line options don't have very strong copyright and I don't think anyone would care:)
15:48 ruoso fglock, why did you re-created lib-kp6-kp6?
15:49 fglock ruoso: i don't know - it must be some Makefile difference
15:49 fglock avar: ok
15:51 pugs_svnbot r17806 | ruoso++ | [kp6] removing lib-kp6-kp6 again
15:51 pugs_svnbot diff: http://dev.pugscode.org/changeset/17806
15:51 lambdabot Title: Changeset 17806 - Pugs - Trac
16:00 pugs_svnbot r17807 | fglock++ | [kp6] added a perltidy configuration in order to have smaller diffs
16:00 pugs_svnbot diff: http://dev.pugscode.org/changeset/17807
16:00 lambdabot Title: Changeset 17807 - Pugs - Trac
16:01 fglock i set perltidy line width to 250, let's see how it works
16:05 mr_ank joined #perl6
16:05 pugs_svnbot r17808 | ruoso++ | [kp6] implemented a prototype slurp
16:05 pugs_svnbot diff: http://dev.pugscode.org/changeset/17808
16:05 lambdabot Title: Changeset 17808 - Pugs - Trac
16:12 avar those traq diffs look really crappy in a text browser
16:20 moritz_ in the command line you can use svn diff ;-)
16:23 avar where is the ::DISPATCH sub defined?
16:23 moritz_ in MOP.pm iirc
16:24 avar ah, yes
16:24 avar calls to the runtime library
16:25 justatheory joined #perl6
16:26 justatheory joined #perl6
16:37 avar kp6 dies at $Test::ALWAYS_CALLER = %*ENV<TEST_ALWAYS_CALLER> in Test.pm
16:37 avar of course it then dies later if you comment that out..
16:39 fglock avar: it's not meant to run Test.pm yet; we are meaning to run STD first in order to fix the grammar
16:39 pugs_svnbot r17809 | fglock++ | [kp6] moved most of COMPILER.pm to Pad.pm
16:39 pugs_svnbot diff: http://dev.pugscode.org/changeset/17809
16:39 lambdabot Title: Changeset 17809 - Pugs - Trac
16:51 pugs_svnbot r17810 | ruoso++ | [kp6] more work on kp6.p6
16:51 pugs_svnbot diff: http://dev.pugscode.org/changeset/17810
16:51 lambdabot Title: Changeset 17810 - Pugs - Trac
16:52 vel joined #perl6
16:53 pugs_svnbot r17811 | avar++ |  r63377@t:  avar | 2007-09-13 16:50:48 +0000
16:53 pugs_svnbot r17811 | avar++ |  Report the line, column and position the syntax error occured at instead of just screaming error
16:53 pugs_svnbot diff: http://dev.pugscode.org/changeset/17811
16:53 lambdabot Title: Changeset 17811 - Pugs - Trac
16:53 avar lots of copy pasting for the different .pl files:)
16:53 pugs_svnbot r17812 | ruoso++ | [kp6] one more failing test... "while" is not supported by kp6
16:53 pugs_svnbot diff: http://dev.pugscode.org/changeset/17812
16:53 lambdabot Title: Changeset 17812 - Pugs - Trac
16:54 avar sh-3.1$ perl kp6-kp6-perl5.pl ../../ext/Test/lib/Test.pm > /dev/null
16:54 avar syntax error at position 190, line 10 column 48
16:54 fglock avar++
16:56 andara left #perl6
16:57 avar after that it mostly fails because it doesn't support advanced param syntax and attributes
16:58 avar like <is Export>, <returns Bool> <(*@fleh)>
16:58 ahmadz joined #perl6
16:58 avar supports (@fleh) though
16:58 vel joined #perl6
16:59 fglock the infrastructure is mostly in place, but parameter handling is hard
17:05 pugs_svnbot r17813 | ruoso++ | [kp6] implemented "while"
17:05 pugs_svnbot diff: http://dev.pugscode.org/changeset/17813
17:06 lambdabot Title: Changeset 17813 - Pugs - Trac
17:08 Psyche^ joined #perl6
17:10 avar I wonder if while (state $don't_calculate_this_again = ::DISPATCH(....)) will work in 5.10
17:10 pugs_svnbot r17814 | pmurias++ | [kp6] prints out the line where the syntax error occured
17:10 pugs_svnbot diff: http://dev.pugscode.org/changeset/17814
17:10 lambdabot Title: Changeset 17814 - Pugs - Trac
17:10 TJCRI joined #perl6
17:11 avar that prints out the rest of the file
17:12 zomgb00bie_ joined #perl6
17:12 pugs_svnbot r17815 | ruoso++ | [kp6] yet more work in kp6.p6... a simple say string causes a deep recursion... hmmm
17:12 pugs_svnbot r17816 | ruoso++ | [kp6] yet more work in kp6.p6... a simple say string causes a deep recursion... hmmm
17:12 pugs_svnbot diff: http://dev.pugscode.org/changeset/17816
17:12 lambdabot Title: Changeset 17816 - Pugs - Trac
17:13 avar my $error = %*ENV<HERE>;
17:13 avar and then ^ on the line below would be nice:)
17:14 ruoso pmurias?
17:17 * avar fixes it
17:19 rgs joined #perl6
17:22 ruoso hmmmm
17:22 ruoso maybe it isn't an infinite loop
17:23 * [particle] counts to *
17:24 * moritz_ starts to laugh when [particle] is finished
17:25 avar sh-3.1$ perl  kp6-perl5.pl ../../ext/Test/lib/Test.pm > /dev/null
17:25 avar syntax error at position 957, line 45 column 8:
17:25 avar sub ok (Bool $cond, Str $desc?, :$todo, :$depends)  {
17:25 avar ^ HERE
17:25 pugs_svnbot r17818 | avar++ |  r63389@t:  avar | 2007-09-13 17:24:33 +0000
17:25 pugs_svnbot r17818 | avar++ |  Print out the line that the error occured at and indicate the column
17:25 pugs_svnbot diff: http://dev.pugscode.org/changeset/17818
17:25 lambdabot Title: Changeset 17818 - Pugs - Trac
17:25 avar sh-3.1$ perl  kp6-perl5.pl ../../ext/Test/lib/Test.pm > /dev/null
17:25 avar syntax error at position 957, line 45 column 8:
17:25 avar sub ok (Bool $cond, Str $desc?, :$todo, :$depends)  {
17:25 avar ^ HERE
17:25 avar urr mixed pastes
17:28 drupek1295 joined #perl6
17:28 pugs_svnbot r17819 | fglock++ | [kp6] say %*ENV{'HOME'} works
17:28 pugs_svnbot diff: http://dev.pugscode.org/changeset/17819
17:28 lambdabot Title: Changeset 17819 - Pugs - Trac
17:32 rhizo joined #perl6
17:37 pugs_svnbot r17820 | fglock++ | [kp6] say %*ENV<HOME> works
17:37 pugs_svnbot diff: http://dev.pugscode.org/changeset/17820
17:37 moritz_ pugs: say %*ENV<HOME>
17:38 exp_evalbot OUTPUT[*** Can't modify constant item: VUndef␤    at /tmp/IYIQgW9LP9 line 1, column 5 - line 2, column 1␤       /tmp/IYIQgW9LP9 line 1, column 5 - line 2, column 1␤]
17:38 moritz_ kp6: say %*ENV<HOME>
17:38 exp_evalbot r17820: OUTPUT[/home/evalbot␤]
17:38 moritz_ YaY
17:38 weinig joined #perl6
17:38 moritz_ fglock++
17:40 fglock is this unsafe for evalbot?
17:41 moritz_ yes, mostly ;)
17:45 ferreira joined #perl6
17:46 ruoso kp6: say %*ENV<SHELL>
17:46 exp_evalbot r17820: OUTPUT[/bin/bash␤]
17:46 ruoso heh
17:46 cognominal_ joined #perl6
17:46 moritz_ ruoso: it's a debian in a chroot
17:47 moritz_ kp6: for %*ENV.keys  { say $_ }
17:47 exp_evalbot r17820: OUTPUT[DISPATCH: calling APPLY HASH(0x84de35c) on invalid object:$VAR1 = {};␤␤ at lib-kp6-mp6-p5/KindaPerl6/Runtime/Perl5/MOP.pm line 32␤   main::DISPATCH('undef', 'APPLY', 'HASH(0x84de35c)') called at - line 16␤]
17:47 moritz_ kp6: for %*ENV -> $a, $b  { say "$a|$b" }
17:47 exp_evalbot r17820: OUTPUT[syntax error at position 10, line 1 column 11:␤           ^ HERE␤DISPATCH: calling APPLY HASH(0x84bd1b8) on invalid object:$VAR1 = {};␤␤ at lib-kp6-mp6-p5/KindaPerl6/Runtime/Perl5/MOP.pm line 32␤      main::DISPATCH('undef', 'APPLY', 'HASH(0x84bd1b8)') called at - line 20␤]
17:47 ruoso kp6: for %*ENV.keys -> a { say $_ }
17:47 exp_evalbot r17820: OUTPUT[syntax error at position 15, line 1 column 16:␤                ^ HERE␤DISPATCH: calling APPLY HASH(0x84de06c) on invalid object:$VAR1 = {};␤␤ at lib-kp6-mp6-p5/KindaPerl6/Runtime/Perl5/MOP.pm line 32␤ main::DISPATCH('undef', 'APPLY', 'HASH(0x84de06c)') called at - line 16␤]
17:47 ruoso kp6: for %*ENV.keys -> a { say $a }
17:48 exp_evalbot r17820: OUTPUT[syntax error at position 15, line 1 column 16:␤                ^ HERE␤DISPATCH: calling APPLY HASH(0x84de06c) on invalid object:$VAR1 = {};␤␤ at lib-kp6-mp6-p5/KindaPerl6/Runtime/Perl5/MOP.pm line 32␤ main::DISPATCH('undef', 'APPLY', 'HASH(0x84de06c)') called at - line 16␤]
17:48 ruoso kp6: for %*ENV.keys -> $a { say $a }
17:48 exp_evalbot r17820: OUTPUT[HOME␤LOGNAME␤SHLVL␤_␤PATH␤LS_COLORS␤SHELL␤MAIL␤PWD␤TERM␤USER␤HISTCONTROL␤]
17:48 moritz_ ruoso: don't use 'a' as a variable ;)
17:48 ruoso kp6: for %*ENV.keys -> $a { say $a ~ %*ENV{$a} }
17:48 exp_evalbot r17820:
17:48 exp_evalbot ..OUTPUT[HOME/home/evalbot␤LOGNAMEevalbot␤SHLVL2␤_/usr/bin/perl␤PATH/usr/local/bin:/usr/bin:/bin:/usr/games␤LS_COLORSno=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31
17:48 exp_evalbot ..:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:...]
17:48 ruoso kp6: for %*ENV.keys -> $a { say $a ~ '=' %*ENV{$a} }
17:48 exp_evalbot r17820: OUTPUT[error in Block at lib-kp6-mp6-p5//KindaPerl6/Grammar/Sub.pm line 12, <> line 1.␤Illegal declaration of anonymous subroutine at - line 20.␤]
17:48 ruoso kp6: for %*ENV.keys -> $a { say $a ~ '=' ~ %*ENV{$a} }
17:48 exp_evalbot r17820:
17:48 exp_evalbot ..OUTPUT[HOME=/home/evalbot␤LOGNAME=evalbot␤SHLVL=2␤_=/usr/bin/perl␤PATH=/usr/local/bin:/usr/bin:/bin:/usr/games␤LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj
17:48 exp_evalbot ..=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=...]
17:48 ruoso heh
17:49 moritz_ now you can spy on evalbot's environment ;)
17:49 moritz_ kölle?
17:49 fglock kp6: say %*ENV
17:50 TimToady I never did the ^ trick with Perl because you don't know what will happen to the error message if it happens from inside an eval
17:51 moritz_ TimToady: you could print out parts of the eval()ed string
17:52 TimToady point is, the contents of $! often get munged into a different form, and adding a ^ line tends to make it point at the wrong spot, which is worse than no pointer at all
17:53 moritz_ right
17:53 TimToady that's why p5 just lists the two next tokens
17:53 mncharity joined #perl6
17:54 cognominal_ joined #perl6
17:54 mncharity What is $¢ ?  (used in STD)
17:55 TimToady current position of the match
17:55 TimToady now equivalent to $_.pos, really, so may go away
17:55 mncharity ah, ok.  tnx
17:56 TimToady STD is not likely to be in a runnable state currently in any case, what with all the recent refactorings
17:57 TimToady I'll need to whack on it some to get it back into the state it was in earlier
17:57 TimToady also need to figure out how to propagate "lexicals" from tokens to actions without actually nesting the action within the token
17:58 TimToady since the whole point is to be able to bypass the token if the DFA matcher has already matched that part
17:58 francois joined #perl6
17:58 TimToady so it has to fake up earlier bindings somehow
17:59 TimToady alternately, it should put the routines all in one scope so it can do lexical nesting, and just have a way of bypassing the token matching part
17:59 francois left #perl6
17:59 TimToady might work better for anonymous subrule alternatives in any case
18:00 * mncharity looks at log to determine refactoring delta...
18:00 TimToady but if so, the "bypass token match" info has to get passed in somehow
18:05 TimToady afk &
18:07 pugs_svnbot r17821 | ruoso++ | forcerecompile
18:07 pugs_svnbot diff: http://dev.pugscode.org/changeset/17821
18:07 lambdabot Title: Changeset 17821 - Pugs - Trac
18:18 mncharity TimToady: hmm.  perhaps there needs to be a code block variant with the desired semantics? :)
18:27 sunnavy joined #perl6
18:29 sunnavy joined #perl6
18:33 TimToady or use context vars to go up the dynamic scope to a lexical scope
18:34 TimToady but in that case the outer lexical scope needs something like the %*ENV hash to allow arbitrary $+foo to be intercepted
18:34 TimToady so that the outer lexical scope can be emulated by the DFA layer
18:35 TimToady or, as you say, a way of attaching an outer dynamic scope as the genuine fake outer lexical scope :)
18:36 TimToady but I need to think through anonymous alternations in any case, and how they'll propagate longest token info upward
18:40 jisom joined #perl6
18:44 pmurias joined #perl6
18:45 pmurias ruoso: sorry for not fixing it, wasn't at home
18:54 rindolf joined #perl6
18:56 riffraff joined #perl6
19:10 snearch joined #perl6
19:14 justatheory joined #perl6
19:45 weinig joined #perl6
19:56 randomity joined #perl6
20:02 TJCRI joined #perl6
20:02 vel joined #perl6
20:07 avar %*ENV<HOME>.STORE("woohoo") is a parse error in kp6, don't hashes support these methods directly or am I doing it wrong?
20:10 pmurias kp6: it's a grammar error
20:10 pmurias well bug
20:10 polettix joined #perl6
20:11 pmurias it's a problem with term_meth
20:11 avar so that error reporting thingy finally doesn't suck
20:11 pugs_svnbot r17822 | avar++ |  r63398@t:  avar | 2007-09-13 20:10:19 +0000
20:11 pugs_svnbot r17822 | avar++ |  kp6*.pl would fail to report where the error occurred on one-liners
20:11 pugs_svnbot diff: http://dev.pugscode.org/changeset/17822
20:11 lambdabot Title: Changeset 17822 - Pugs - Trac
20:12 pmurias avar: proper error reporting is really nice
20:13 avar $ echo '%*ENV<fleh>.STORE("meh"); say %*ENV<fleh>' | perl kp6-kp6-perl5.pl | perl -I lib-kp6-kp6-p5/
20:13 avar syntax error at position 11, line 1 column 11:
20:13 avar %*ENV<fleh>.STORE("meh"); say %*ENV<fleh>
20:13 avar that error message could be less lame probably
20:13 avar ^ HERE
20:14 avar sucks that there are 5 kp6*pl files
20:16 [particle] avar: how about abstracting common stuff to a module?
20:16 avar [particle]: I find your ideas foreign and dangerous
20:16 avar :)
20:17 avar well mostly they do the exact same thing, could be solved with command-line options or by having them look at $0
20:17 [particle] it seems we have a perl 4 programmer in our midst
20:18 avar we must kung-foo fight!
20:20 [particle] my object oriented assembly language is more powerful than your lambda lifting!
20:20 avar foo ya!
20:26 c9s_ joined #perl6
20:35 pmurias avar: the position in %*ENV<fleh>.STORE("meh"); is correct
20:36 pmurias it's the line which is wrong
20:37 avar yeah, I thought hashes supported a STORE method
20:39 pmurias they do
20:39 pmurias kp6: my $tmp = %*ENV<fleh>;$tmp.STORE("meh");say %*ENV<fleh>
20:40 pmurias why is the evalbot dead?
20:40 pmurias :(
20:42 avar $ echo 'my $tmp = %*ENV<fleh>; $tmp.STORE("fleh"); say %*ENV<fleh>' | perl kp6-kp6-perl5.pl | perl -I lib-kp6-kp6-p5/
20:42 avar attempt to modify a read-only value at lib-kp6-kp6-p5//KindaPerl6/Runtime/Perl5/MOP.pm line 549.
20:43 pmurias avar: i'm wrong hashes don't support a STORE meh
20:43 pmurias hash elems do
20:45 pmurias something like VAR(%*ENV<fleh>).STORE("meh") would be needed in this case
20:45 pmurias only kp6 dosn't support VAR
20:46 pmurias do i make any sense?
20:48 pmurias i propably don't
20:49 pmurias ;)
20:49 pmurias sleep&
21:30 KingDiamond joined #perl6
21:33 Psyche^ joined #perl6
21:57 fglock joined #perl6
21:57 fglock kp6: ( %*ENV<fleh> ).STORE("meh");
21:58 IllvilJa joined #perl6
22:04 fglock ah - my implementation of %*ENV is read-only by mistake
22:04 pugs_svnbot r17823 | avar++ |  r63400@t:  avar | 2007-09-13 22:02:58 +0000
22:04 pugs_svnbot r17823 | avar++ |  test an accumulator in the closure test
22:04 pugs_svnbot diff: http://dev.pugscode.org/changeset/17823
22:04 lambdabot Title: Changeset 17823 - Pugs - Trac
22:15 Limbic_Region joined #perl6
22:18 avar fglock: FIXIT!:)
22:21 fglock avar: i think it's a bug elsewhere, looking
22:21 pugs_svnbot r17824 | fglock++ | [kp6] non-working read-write %*ENV - possible bug in hash-key autovivification
22:21 pugs_svnbot diff: http://dev.pugscode.org/changeset/17824
22:21 lambdabot Title: Changeset 17824 - Pugs - Trac
22:25 weinig joined #perl6
23:10 drbean joined #perl6
23:10 diotalevi joined #perl6
23:28 avar http://sial.org/pbot/27483 # kp6 no workie
23:28 lambdabot Title: Paste #27483 from Someone at 208.78.101.240
23:28 avar DISPATCH: calling new HASH(0x8119f0) on invalid object:$VAR1 = {};
23:31 avar ah, -kp6- breakage
23:35 Khisanth joined #perl6
23:55 weinig joined #perl6

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

Perl 6 | Reference Documentation | Rakudo