svn switch --relocate svn.openfoundry.org/pugs svn.pugscode.org/pugs/ | run.pugscode.org | spec.pugscode.org | paste: sial.org/pbot/perl6 | pugs.blogs.com | dev.pugscode.org/
Set by putter on 11 February 2007.
00:13 charsba__ joined 00:15 nbrown04 joined 00:16 neonse joined 00:17 justatheory joined
Debolaz looks at the new ruby benchmarks. 00:29
moritz Debolaz: the ones that appeared on /.? 00:30
avar parrot be sloww:)
and very incomplete 00:31
[particle] *extremely* incomplete
it can do 2 + 2
moritz but for arbitrary integers... I can't do that ;))
Debolaz moritz: Yes. 00:35
00:41 Aankhen`` joined 00:59 nipotaway is now known as nipotan 01:09 nothingmuch joined
putter Hmm. Looks like src/perl6/Perl-6.0.0-STD.pm doesn't have regex aliases yet. fudging... 01:28
TimToady regex aliases? 01:37
I'm just about to check in a major overhaul on symbol processing that uses less magic 01:38
you mean the {*} #= thingies? 01:41
svnbot6 r15315 | lwall++ | symbol processing now uses normal capture. 01:44
r15315 | lwall++ | endsyms are done with context sigs on the proto tokens.
r15315 | lwall++ | the only magic is now that proto sig contexts are expected to propagate
r15315 | lwall++ | context var declarations even if the multi adds a (--> Foo) sig.
01:46 UWC joined
TimToady putter: or do you mean naming a [...] and calling back to it? 01:51
putter mumble := construct where mumble is a named/numbered scalar, array, or hash alias, or an external scalar, array, or hash alias. ;) 01:55
$3 := (foo)
TimToady oh, yeah, it's missing... 01:57
hmm
putter arg. the parrot rx_ tests repeatedly use a target string. which starts with \n and continues through $% on to 0123 etc. so the question is, what can you do toi this string so that \n is expanded but $% isn't. ($% expands as "0", so guess where the first <alnum> hit is :). weeeeee. 01:59
ah, well. special casing coming up. 02:00
re alias, I used a modified version of misc/Grammars/rx_grammar.pm's. 02:01
TimToady took a whack at adding it. 02:10
svnbot6 r15316 | lwall++ | Added regex binding
TimToady decommuting &
putter :) 02:12
02:34 REPLeffect joined 02:40 Caelum joined, Limbic_Region joined 02:45 weinig is now known as weinig|zZz
putter Anyone around who understands the p6 "logical newline" concept? 03:06
avar in say and such? 03:07
03:09 justatheory joined
svnbot6 r15317 | lwall++ | fixed syntax error, added more #= to regex 03:09
avar TimToady: Do you recall when in perl history you brought in Henry Spencer's regexp code? It's for an evolving joke in re::engine::POSIX docs 03:11
avar snickers
putter it initially seems like p5's /\n/ has a different concept of what \x0a and \x0d patterns should be matched than p6 does
avar # $1 works too, but one should never half-ass nostalgia 03:12
s/\(.*\)/string: \1/g;
:)
putter (or so I'm currently interpreting some rx_ test failures)
TimToady I believe that was version 2 03:13
but the switch from \(...\) to (...) was version 1 03:14
putter: \n is intentionally different in p6
\n is "newline character" in Perl 5. 03:15
in P6 it's "logical newline", even if that's more than one character
putter or even if it's just \r?
TimToady or a newline character from another culture
putter k 03:16
TimToady \x0D was newline on old macs
maybe new macs too
03:16 silug joined
TimToady so a bare \r is interpreted as a newline as well. 03:17
putter very very (blow of the dust decades old) fuzzy recollection is that one can't unambiguously count "platform independent newlines". no idea what the screw case was. i could easily be wrong. 03:18
TimToady in p5 \n was just \x0A on most machines but \x0D on macs
allbery_b windows ises 0x0d 0x0A as newline, but you sometimes get unixy files or even files which mix them 03:19
and then there's the question of what to do with 0x0A 0x0D..
putter just needs a regex for p6 n and N ... sigh 03:20
TimToady \N is just [<!before \n>.] 03:21
putter :) 03:22
TimToady \n to the first approx is \r\n?|\n\r?|\x2028|\x2029 03:23
probably reverse the first two to put the common case first 03:24
putter someone has a LF-CR convention? if not, is it worth risking off-by-one out of sync problems. 03:26
avar putter: working or P::C::R? 03:27
putter misc/pX/Common/yet_another_regex_engine 03:28
ach, but I'm really all set for now. knock off a few more tests and call it a night. 03:29
current design principle is "don't do it right, just pass the tests". Did I mention we really really need more regex tests? Maybe we can scavange some from all the perl compatible regex libraries out there. Or write a generator. Or... 03:30
TimToady except, of course, they'd do \n wrong from our perspective... 03:31
dinner & 03:33
putter cheers
(easiest bug fix is removing a broken test:)
tene argh 03:55
it really bugs me when people say "astericks" instead of "asterisk"
wow. mischan.
tene fails.
revdiablo Haha 03:56
I was about to chime in agreement
03:58 mr_ank joined
putter getting there. but the next bit (overhauling captures to be spec) will be painful (because the engine itself is using the current, non-spec, capture behavior). ah well. 03:59
svnbot6 r15318 | putter++ | misc/pX/Common/yet_another_regex_engine - some progress. p6 rx_ tests currently 75% ok, 11 sec.
putter and whitespace handling is a complete kludge. and no ratchet. and... enough unto the day. ;) 04:00
good night & 04:04
04:06 forsaken joined 04:07 stevan__ joined 04:31 amnesiac joined 04:48 CardinalNumber joined 04:50 avarab joined 04:54 avarab is now known as avar 05:51 charsbar_ joined 06:01 silug joined 06:15 BooK joined 06:30 jisom joined 06:32 jisom joined, jisom left 06:33 jisom joined 06:43 dduncan joined 06:46 rfordinal_ is now known as rfordinal 07:04 devogon joined 07:11 forsaken joined 07:32 czth_ joined 07:43 polettix joined 07:48 iblechbot joined 08:15 ProperNoun joined 08:27 TimToady joined 08:33 CardinalNumber joined 08:49 marmic joined 09:03 silug joined, rashakil_ joined, rfordinal joined, wilx joined, rhr joined, takesako__ joined, cookys joined, SamB joined, TreyHarris joined, kolibrie joined, spo0nman joined, stef_ joined, mugwump joined, Odin- joined, jamessan joined, Gothmog_ joined, nnunley joined 09:09 rafl joined 09:36 elmex joined 09:41 silug joined, rashakil_ joined, rfordinal joined, wilx joined, rhr joined, takesako__ joined, cookys joined, SamB joined, TreyHarris joined, kolibrie joined, spo0nman joined, stef_ joined, mugwump joined, Odin- joined, jamessan joined, Gothmog_ joined, nnunley joined, TreyHarr1s joined 10:05 the_dormant joined 10:13 ruoso joined 10:35 dduncan left 10:48 ruoso joined 11:05 nipotan is now known as nipotaway 11:10 drbean joined 12:02 IllvilJa joined 12:04 chris2 joined 12:11 Caelum_ joined 12:13 buetow joined 12:14 ProperNoun joined 12:23 rhizo joined 12:43 drupek12212 joined 12:50 sunnavy joined 13:07 the_dormant joined 13:12 iblechbot joined 13:18 elmex joined 13:19 integral_ is now known as integral 13:21 lisppaste3 joined 13:28 Limbic_Region joined 13:44 Psyche^ joined
Limbic_Region @tell audreyt grats on getting out of the hospital, thanks for the journal updates, and well wishes towards a speedy and permanent recovery 13:50
lambdabot Consider it noted.
14:02 Psyche^ is now known as Patterner
devbot6 planet6: Audrey Tang: Pugscode.org services. <pugs.blogs.com/pugs/2007/02/pugscod...r.html> 14:04
14:13 VanilleBert joined 14:17 CardinalNumber joined 14:22 stevan__ joined
VanilleBert /eval multi infix:<zip> ($a, $b) { zip($a, $b) }; multi infix:<ZZ> ($a, $b) { zip($a, $b) }; [1,2] zip <a b> ZZ <A B> 14:24
moritz VanilleBert: try it with ?eval ;)
VanilleBert ?eval multi infix:<zip> ($a, $b) { zip($a, $b) }; multi infix:<ZZ> ($a, $b) { zip($a, $b) }; [1,2] zip <a b> ZZ <A B>
:D
evalbot_r15314 (((1, "a"), "A"), ((2, "b"), "B"))
VanilleBert ZZ looks ugly 14:25
[particle] so does &&
so use 'zip'
VanilleBert ?eval [1,2] Y <a b> zip <A B> ZZ <chees beast> 14:26
Limbic_Region votes for creating a new unicode character that looks like a zipper
evalbot_r15314 Error: ā¤Unexpected "zip"ā¤expecting operator
VanilleBert oh 14:27
damn eval dont use past definitions
jamessan Ā„ almost looks like a zipper 14:28
VanilleBert i think Y also looks like a zipper...
Limbic_Region VanilleBert - do you know have pugs installed locally?
VanilleBert not on this machine... but currently i use run.pugscode 14:29
Limbic_Region VanilleBert - perhaps feather.perl6.nl:8080/runpugs/? would work better for you
lambdabot Title: Run Perl 6 Now -- in your browser!
Limbic_Region heh
VanilleBert yes i use it right now 14:30
14:30 weinig|zZz is now known as weinig|bbl
gaal Limbic_Region: in light of U+2336..2395, hell, why stop at one character. 14:31
the APL has the bestest smileys, too! āØ 14:32
s/APL /APL plane /
14:33 the_dormant joined 14:39 awwaiid joined 14:43 vel joined 14:54 Psyche^ joined 14:57 xdg_ joined 15:08 Psyche^ is now known as Patterner 15:10 Psyche^ joined 15:14 ScuderiaKimi joined, ScuderiaKimi left
gaal @tell audreyt can you link me to a paper with the kind of typing you have in mind as alternative for V{Pure,Mut,Ext}? Or is this some simpler encoding? 15:15
lambdabot Consider it noted.
15:17 kanru joined 15:27 Psyche^ is now known as Patterner 15:35 thepler joined 15:58 chris2 joined 16:00 VanilleBert left 16:01 mj41 joined 16:10 ProperNoun joined 16:26 nipra joined
specbot6 r13699 | larry++ | ?\194?\165 is replaced by Z. XX becomes simply X and old X must now be spelled X~X. 16:26
TimToady ooh, specbot fails its unicode roll... 16:27
16:30 chris2 joined 16:41 ashelyb_ joined 17:09 theorbtwo joined 17:27 macli joined 17:28 bonesss joined 17:40 mrossetti joined 17:45 rashakil__ joined 17:55 araujo joined 17:56 mrossetti left
Limbic_Region TimToady audreyt et all - a question from tye at PerlMonks on the CB 18:01
tye - "Java finalizers are defined to be untimely, unordered, and even unrequired. This makes me more curious how Perl6's finalizers are supposedly better than destructors on at least some of those points."
anyone? 18:07
18:20 bonesss joined 18:33 weinig|bbl is now known as weinig 18:38 Xad joined 18:39 Xad left 18:41 weinig is now known as weinig|away 18:47 eric256 joined
eric256 is there an easy way to access the last value of a for loop? without doing state $last; and then $last = $_ at the bottum of the loop. i remember a discusion about that before but i'll be darned if i remember how to do it 18:48
diotalevi If your for loop is really just a search then first{} will get you there directly. 18:52
er, wait. I thought this was #cbstream. dang.
gaal eric256: I think the solution was to write the loop with while rather than for... 19:01
19:03 mr_ank joined
eric256 hmm i'm not sure that a while buys me much more that for with the states, but i'll give it a shot 19:03
19:05 jisom joined 19:06 jisom left, awwaiid_ joined, jisom joined
eric256 is pugs.kwiki.org/?ConvertingPerl5ToPerl6 dead? 19:07
wolverian hm, scala's Iterable trait has an .exists method that is basically any(). I find the naming quite convenient, so there's e.g. Set.exists. </random observation> 19:11
19:12 CardinalNumber joined 19:25 justatheory joined 19:30 CardinalNumber is now known as ProperNoun
[particle] has 10 unexpectedly succeeding tests 19:33
9 in t/pmc/mmd.t
1 in t/pmc/threads.t
moritz I'll have to update and smoke again ;) 19:39
[particle] thinks his unexpected successes are due to having built languages/perl5
jisom what would be the right regex/rule/whatever to match any byte over 0x80? 19:40
[particle] something that works in perl 6 as specced, or today on parrot?
jisom parrot
to see is something's text or binary, I'm using <cntrl-[\t\r\n ]+[\x80..\xff]> 19:41
until parrot get's something better
[particle] checking... 19:44
you can do a pir closure
eric256 are there sets ? like can i have a set of 1-9 and then remove other sets from it? /me is thinking of a soduko solver ;) 19:45
jisom I'm just trying to figure out if a line is binary or ascii with an error prone heuristic 19:46
[particle] isn't there a printable? 19:47
so, you want to match non-ascii, basically
actually, non latin-1 (>255)
jisom print fails on tabs I believe.... 19:48
[particle] your overall goal is to determine whether a file is binary or text, correct? 19:49
jisom yes
[particle] eric256: there is a sudoku solver already, i think
coke and leo may know more
jisom in parrot, examples/pir/sudoku.pir :)
[particle] but you can use an array or a string to do that set
19:52 theorbtwo joined 19:53 UWC joined
svnbot6 r15319 | lwall++ | Some precedence cleanup, some sublanguage reworking. 19:53
eric256 particle yes, but that doesn't mean it can't be doe agian ;) besides the one there is labeled specificaly as not working
it was the removing elements from sets etc that i was interested in, i can program them, but if we had set and set operators built in then that would be better to use ;) 19:54
[particle] eric256: we have arrays, which you can use 19:55
or stringss
eric256 yes particle i read that the first time you said it. it isn't a SET but it can be used as one, there was talk before about adding actual real sets to the language which would have set operators associated with them..hence why i asked here to see if someone knew what became of that, 19:56
i found some stuff in the docs but they appear to refer to useing <<+>> and >>+<< on sets, but those are now hyperops...hard to track stuff and how it changes sometimes
[particle] that's perl 6, not parrot 19:57
if you're looking for perl 6 syntax, go to #perl6 on freenode
and yes, perl 6 has sets
jisom isn't this?
moritz [particle]: this _is_ #perl6
[particle] aw, crap
sorry! 19:58
jisom wants to know how to get '<cntrl-[trn]> | <[x80..xff]>' to do what he expects
moritz eric256: normally [particle] gives quite good answers, give him another chance ;-)
[particle] had the plaster in his office blown off the walls by insulation installers today. he's more than a bit frazzled
19:58 stevan__ joined
moritz jisom: perhaps define a rule for that? 19:59
eric256 hehe lmao
sorry about the plaster particle, but that is a funny image (i was laughing about your "this IS perl6" ;) 20:00
groups.google.com/group/perl.perl6....ba937bd73f seems to talk about sets, but i'll be darned if i can tell if they've been included, or not, or morphed into something else
lambdabot Title: perl.perl6.language | Google Groups, tinyurl.com/2fjovd 20:01
tene See, I thought it was a joke.
[particle] there is a Set role, but dunno if there's a Set object in pugs atm
?eval my $foo is Set;
20:01 evalbot_r15314 is now known as evalbot_r15319
evalbot_r15319 \undef 20:01
[particle] well, seems to compile 20:02
wolverian the type is ignored currently, I think
eric256 lol i'll look around and see what i can find. thanks. /me goes to dig through tests and examples in the hope of finding something
wolverian ?eval my $foo is Bar
evalbot_r15319 \undef
eric256 ?eval my $lunch is Now;
per poetry will never be the same agian 20:03
evalbot_r15319 \undef
[particle] eric256: feel free to use run.pugscode.org to play, too
lambdabot Title: Run Perl 6 Now -- in your browser!
[particle] jisom: i'm rebuilding parrot now, but may soon have a rule with pir closure that works
jisom alright
eric256 yea i'm on feather playing...run.pugscode.org didn't like me the other day, kept timing out
[particle] ah, great. feather++ 20:04
jisom I'm a little surprised not to see a "ascii" rule
eric256 yea i was amazed my account didn't get pruned after the 8 months of innactivity, trying to catch up on the changes since then is....daunting
[particle] i hope the few things that haven't changed give you comfort :) 20:05
jisom still ghc?
[particle] yeah, but different version
20:08 xdg_ joined 20:12 xdg_ joined 20:15 xdg_ is now known as xdg 20:21 xdg joined 20:24 Caelum_ is now known as Caelum 20:30 awwaiid joined 20:31 dduncan joined 20:36 miyagawa joined 20:53 buetow joined 21:00 bombastic1 joined 21:05 vel joined 21:17 weinig|away is now known as weinig 21:19 awwaiid joined 21:22 ruz joined 21:27 dduncan left 21:33 Aankhen`` joined 21:49 pdcawley joined 21:50 dduncan joined 21:52 TreyHarr1s is now known as TreyHarris 21:57 DebolazX joined 22:06 Caelum joined 22:10 awwaiid joined 22:33 Psyche^ joined 22:42 Psyche^ is now known as Patterner 22:43 orbit_ joined 22:49 orbit_ left
wolverian thread.gmane.org/gmane.comp.lang.scala/4142 hm, nice 22:51
lambdabot Title: Gmane Loom
23:00 UWC_ joined 23:03 UWC_ is now known as UWC 23:05 |newbie| joined 23:06 CardinalNumber joined 23:24 CardinalNumber is now known as ProperNoun 23:28 BooK joined, stevan_ joined 23:33 IllvilJa left 23:37 Limbic_Region joined 23:42 xdg joined 23:50 stevan_ joined