pugscode.org | temporary feather address: perl6.wall.org | sial.org/pbot/perl6 | ?eval [~] <m oo se> | We do Haskell, too | > reverse (show (scanl (*) 1 [1..] !! 4))
Set by allbery_b on 24 March 2007.
01:14 pasteling joined 01:17 fridim joined 01:21 dolmans joined 01:42 bonesss joined 01:59 SubStack joined 02:09 dduncan joined
svnbot6 r15820 | audreyt++ | * Pugs.Prim: Add &stat(Str) and &lstat(Str) for Dan Kogai's 02:15
r15820 | audreyt++ | YAPC::Asia presentation. (It merely re-exports perl5:File::stat.)
02:20 H0LE joined 02:26 Aankhen`` joined 02:34 silug joined 03:36 mj41_ joined 03:40 mj41_ is now known as mj41, IllvilJa joined, Patterner joined, devbot6 joined, jql joined, bsb joined, ofer joined, kei5tnk joined, idiotmax joined, evalbot_r15816 joined, wilx joined, tokuhirom joined, orafu joined 03:44 idiotmax_ joined 03:45 mr_ank joined 03:46 offby1` joined 03:47 wilx` joined 03:49 ofer joined, justatheory joined, offby1` is now known as offby1, esstone joined 03:50 justatheory joined 03:51 BooK joined 04:17 RHainsworth joined 04:18 RHainsworth left 04:22 justatheory joined 04:23 iblechbot joined, SubStack joined 04:29 rashakil joined 05:38 devogon joined
svnbot6 r15821 | masak++ | [util/version_h.pl] 05:44
r15821 | masak++ | * typo
05:49 encryptio joined 05:54 geoffb joined 06:14 BooK joined
svnbot6 r15822 | unobe++ | * updated all legacy smartlinks syntax in test suite 06:17
r15822 | unobe++ | * updated util/smartlinks.pl and its tests to no longer support legacy syntax
pasteling "evalbot_r15821" at 194.145.200.126 pasted "Pugs build failure" (25 lines, 1.1K) at sial.org/pbot/23963 06:20
06:23 rfordinal joined 06:52 Psyche^ joined, Psyche^ is now known as Patterner 06:54 buetow joined
gaal unobe++, whoever you are, please add yourself to AUTHORS 06:59
07:20 RHainsworth joined, RHainsworth left 07:22 SubStack joined 07:26 marmic joined 07:29 jisom joined 07:42 xinming_ joined 07:46 the_dormant joined
nothingmuch gaal: unobe == the guy next to you at my birthday party 08:02
Tene gaal: he's alread in AUTHORS 08:03
line 67
nothingmuch ah yes, romano
nothingmuch couldn't find the last name =(
Tene found it! 08:04
nothingmuch Tene++
08:08 buetow joined, esstone joined 08:28 the_dormant joined 08:40 mr_ank joined 08:44 andara joined 08:46 ayrnieu joined 09:01 elmex joined 09:05 lichtkind joined
lichtkind Leibsle: moin 09:07
09:07 avarab joined
DarkWolf84 I found thread bug 09:12
dduncan does anyone know if the next Pugs release is expected to happen this week, or whether it would definitely be next week or later? 09:14
lambdabot dduncan: You have 1 new message. '/msg lambdabot @messages' to read it.
dduncan okay lambdabot
DarkWolf84 dduncan, I don't now I use subversion 09:15
09:16 VanilleBert joined
dduncan I mean, the release on CPAN 09:16
DarkWolf84 CPAN modules O_O
dduncan last ETA was march, but that didn't happen
DarkWolf84 that's great
dduncan anyway, if if the next release is no earlier than next week, then I anticipate making a significant contribution first 09:17
it will probably be done near the end of this week
my contrib that is 09:18
09:22 devogon_ joined
Tene dduncan: what are you working on? 09:31
Leibsle lichtkind, moin :) 09:40
lichtkind aaaah
dduncan in 1-2 days I expect to make the first CPAN release of the Perl 5 version of QDRDBMS, my new database engine 09:45
after that, I plan to to s/// the necessary parts to make it valid Perl 6 code, and check that in under ext/ of Pugs
I would then delete ext/Rosetta/ , which it replaces 09:46
unlike Rosetta, the QDRDBMS rewrite can actually be used for something
09:46 buetow joined
dduncan I won't go into further details now, better afterwards 09:46
Tene, that's what I was referring to 09:47
on a tangent, I'm following mugwump's example and now recommending that people try Git as their version control system rather than SVN or whatever ... Pugs et al may benefit from switching to it 09:51
see utsl.gen.nz/talks/git-svn/intro.html for one of his doc's on the subject 09:52
lambdabot Title: An introduction to git-svn for Subversion/SVK users and deserters
Tene kk 09:59
10:02 chris2 joined
gaal your birthday party huh? you mean I got drunk with a guy I don't remember? how approporiate 10:03
10:05 ruoso joined 10:18 avar joined
Leibsle gaal, you should not drink too much, so you remember at least who was at the party :P 10:21
10:30 Alias_ joined 10:33 araujo joined 10:34 dduncan left 10:38 rizzy joined
Juerd Huh, why is there a temporary feather address in the topic? 10:45
Is this a very roundabout DNS spoofing attack? :P
moritz Juerd: no, it's because of the ICANN (or something) having trouble with registerfly... 10:46
Juerd moritz: So? feather is on a .nl address
That has nothing to do with registerfly, or...? 10:47
moritz Juerd: hm...
Juerd feather.perl6.nl
And afaik, it works well
moritz Juerd: I know that pugscode.org had problems resolving
Juerd pugscode.org is not feather's primary address. It's just some address that happens to point to the same machine :)
moritz Juerd: you're right, that makes no sense
Juerd Feather isn't configured to receive email on perl6.wall.org 10:48
moritz Juerd: ask allbery_b (set the topic)
Juerd allbery_b: ping
moritz does anybody know a decent open source blog system in perl? 10:57
Juerd Depends on your definitions for decent, open source, blog, and system.
And perhaps also perl.
:)
gaal livejournal's pretty decent. :)
Juerd Mostly "decent" is a bit vague 10:58
10:59 prism joined
moritz Juerd: blog = something like a CMS with online editing facillities that provides RSS Feeds, track/pingbacks and comments... 11:01
Juerd: Open Source = OSI-Approved (or better: DFSG) 11:02
Juerd: perl = perl 5 (perhaps mod_perl 2)
gaal: do you have a link for me? googling for livejournal only brings up livejournal.com, but that doesn't look like open source 11:03
lumi moritz: www.livejournal.com/code/ 11:05
lambdabot Title: Code
moritz lumi: thanks 11:07
11:10 jisom_ joined 11:14 lichtkind joined, prism joined, VanilleBert left
lichtkind audreyt: ping? 11:15
11:23 TimToady joined 11:30 devbot6 joined 11:42 devbot6 joined
avar didn't p6 have some feature to assign to captures thus modifying the matched string? 11:42
11:46 the_dormant joined 11:47 RHainsworth joined 11:49 RHainsworth left 12:05 prism joined 12:06 fglock joined 12:22 Limbic_Region joined 12:34 buetow joined
kolibrie avar: dev.perl.org/perl6/doc/design/syn/S...#Modifiers 'The new :rw modifier' 12:39
lambdabot Title: Synopsis 5: Regexes and Rules - perl6:
12:53 fglock joined 12:56 qmole joined
avar $ perl5.9.5 -Mblib -E 'use re::engine::Plugin (exec => sub { my ($re, $str) = @_; $re->captures( sub { sub { $$str = shift } } ); 1 }); my $str = "foo"; if (\$str =~ /eek/) { $1->("ook"); warn $str }' 12:56
ook at -e line 1.
moritz ? 12:57
"ook" is a nice message ;-)
avar that'll allow you to implement :rw in p5 space 13:05
moritz how cool ;-) 13:09
13:18 araujo joined
avar I'm bugging the core people for a better interface to numbered and named matches:) 13:26
13:26 Schwern joined 13:46 cls_bsd joined 13:50 cognominal joined 13:53 mdiep joined 13:56 forsaken joined 13:57 perlmonkey2 joined 14:02 RHainsworth joined 14:06 araujo joined 14:13 vel joined 14:14 nusgnaf joined 14:16 mdiep joined 14:30 vel6608 joined 14:39 nusgnaf left 14:50 frobnitz joined 14:58 kanru joined, fglock joined 15:00 Jedai joined 15:10 gnuvince left 15:18 vel joined 15:30 nescafe joined 15:50 nescafe left 16:13 kanru joined 16:19 bonesss joined 16:27 deq` joined 16:46 andara left 16:49 ashleyb joined 16:56 justatheory joined 16:58 bernhard joined, diakopter joined 16:59 prism joined 17:06 lisppaste3 joined 17:08 wilx` is now known as wilx 17:11 macli joined, fglock joined
fglock for people coming to YAPC::SA - fisl.softwarelivre.org/8.0/www/?q=en/arena (perl5/6 and haskell is probably ok) 17:14
lambdabot Title: Programming Arena | 8th International Free Software Forum
wolverian no internet use? is there a local CPAN mirror? :) 17:17
fglock hmm - right :)
I can ask them to preinstall CPAN modules 17:19
though it's hard to predict what would be useful :)
17:24 diotalevi joined 17:32 justatheory joined 17:36 IllvilJa joined
fglock how much of perl6-in-parrot is implemented? I wonder if I can rewrite mp6 to bootstrap with what we already have 17:41
moritz fglock: perhaps you should ask in #parrot ;-) 17:43
fglock hmm - no, it's a perl6 question :) 17:44
moritz fglock: ok, you're right ;)
[particle] fglock: shouldn't be too much effort to get there 17:45
fglock [particle]: this could be a task for the YAPC::SA hackathon 17:48
next week
[particle] sounds great to me! 17:50
17:51 Psyche^ joined, Psyche^ is now known as Patterner
fglock ok - then I've got a few days for planning 17:51
17:55 IllvilJa is now known as IllvilJaDinner 17:59 kanru joined 18:02 kanru joined 18:23 kanru joined 18:24 prly joined 18:30 chris2 joined 18:32 elmex joined 18:41 prism joined 19:21 jfoutz joined 19:42 geoffb joined 19:52 Aankhen`` joined 19:59 fglock joined
fglock re kp6-in-parrot: the simplest implementation would be through a perl6-in-parrot emitter 20:00
although it apparently doesn't make sense, but it would make it possible to evolve the p6regex-in-perl6 implementation 20:01
which is a possible path to STD compilation
20:06 pmurias joined
pmurias fglock: hi 20:06
20:07 forsaken joined
fglock pmurias: hey 20:08
20:10 dduncan joined
pmurias why doing kp6-in-parrot thought a perl6-in-parrot emitter dosn't make sense? 20:14
you mean emitting perl6 code which compiles under the parrot perl6 compiler? 20:15
fglock pmurias: yes, because in the end, it would be a perl6-to-perl6 transformation
which really smells like duplicate/throwaway work 20:17
pmurias is emitting PAST much harder? 20:19
fglock yes - the perl6 compiler does a lot of transformations already 20:20
I think what I'm really trying to do is to avoid duplicate work, by using pugs, p6-on-parrot, and p6-on-perl5 as virtual machines for perl6-on-perl6 20:23
6-on-6 makes less sense, as the bottom-up implementations evolve 20:25
20:25 __Ace__ joined
__Ace__ why dont I get some error msg by doing: 20:26
perl_eval_pv("use strict; $a = 3;", TRUE);
fglock <__Ace__>: maybe the message is in $@ - you need to print it? 20:27
__Ace__ I get complaints if I add eg: use adsfsdfk; 20:28
fglock <__Ace__>: maybe try a perl5 list or perlmonks.org? 20:30
20:31 ron_ joined 20:32 ron_ is now known as tuna
pmurias fglock: every time i look pir code 6-on-6 makes a *lot* sense to me 20:35
s/look/look on/ #I wouldn't want to look like pir code for anything :) 20:36
20:39 the_dormant joined, prly_ joined
pmurias a big advantage of perl6-on-parrot(for me) would be that it's compile time is a fraction of pugs 20:40
devbot6 planet6: Stevan Little: Moose is turning 1yr old soon <use.perl.org/~Stevan/journal/32891?from=rss> 20:43
20:46 thorat joined, [particle] left 20:47 [particle] joined, avar joined
fglock pmurias: that's the compile time for 6-on-parrot; 6-on-6 should be much slower 20:48
even on parrot
20:51 pbuetow joined, [particle] joined 21:02 explorer joined 21:08 pmurias left 21:11 forsaken joined 21:14 fglock left, Limbic_Region joined 21:19 SubStack joined 21:28 eric__ joined 21:31 __Ace___ joined
svnbot6 r15823 | kudra++ | Completed the week 21:34
devbot6 planet6: Audrey Tang: Weekly Perl 6 mailing list summary for 11-17 March, 2007 <pugs.blogs.com/pugs/2007/04/weekly_...m.html> 21:43
svnbot6 r15824 | kudra++ | Placeholders 21:52
21:52 jferrero joined 21:56 prly joined 22:06 lichtkind joined, explorer joined
perlmonkey2 what is the <<== operator do? 22:15
s/is/does/
[particle] a pipe that appends? i'd have to check S03 22:16
S03? 22:17
hrmm. thought there might be a factoid for thta
yep, it's a feed operator that appends 22:18
perlmonkey2 So this:@w <<== $i; is equiv to push(@w,$i); ? 22:19
moritz that looks... unfamiliar ;-)
[particle] yep
lichtkind audreyt: are you awake?
perlmonkey2 cool
moritz ?eval my @a = 1 .. 2; @a <<== 3, 4 22:20
22:20 evalbot_r15816 is now known as evalbot_r15824
evalbot_r15824 Error: ā¤Unexpected "<<=="ā¤expecting operator 22:20
[particle] moritz, it's a ENOIMPL pugsbug
moritz [particle]: I can see that, <<== is not recognized as an op ;-) 22:21
perlmonkey2 "Note, as of today, append feed is now <<== rather than <==. "
22:22 overkordbaever joined
Limbic_Region .seen stevan__ 22:23
?seen stevan__
lambdabot stevan__ is in #perl6. I don't know when stevan__ last spoke.
overkordbaever Seems like stevan__ is online at least 22:24
Limbic_Region stevan ping 22:27
or rather
stevan__ ping
[particle] it's somewhat unfortunate that @a ==>> $s is not equivalent to pop 22:28
perlmonkey2 is it equivalent to shift? 22:45
22:46 justatheory joined
[particle] it depends what's in $s 22:47
perlmonkey2 it would be weird having the assignment go from left to right.
[particle] if $s does array, it would append every item from @a to $s
if $s is scalar only, it may fail because it can't append, but i'm not sure 22:48
perlmonkey2 you can assign basic type roles to your classes?
[particle] my int $dog; 22:49
types, or roles?
perlmonkey2 you said "does" array.
package MyAPP{ does array;}
probably not correct syntax. 22:50
[particle] i'm not 100% sure what the base role names will be
class Dog is Mammal does Pet { ... }
check out spec.pugscode.org/ 22:51
Limbic_Region particle, I don't care if your Dog is a Mammal - it should, in no way, be doing my Pet
lambdabot Title: Official Perl 6 Documentation
perlmonkey2 so: class Dog is Mammal does array{ ... } and array's operators would have to be overloaded?
[particle] dogs will be dawgs
perlmonkey2 thinks Multiple Dispatch is groovy. 22:56
22:57 jfoutz left
perlmonkey2 Ahah, you don't say "does array", you do Type Casting. 22:58
Limbic_Region perlmonkey2 - indeed, but keep in mind that multi-method dispatch goes by different names in different groups
22:59 dduncan joined 23:02 macli left
perlmonkey2 CharLingua? Wow, Perl6 really will become the tool of choice...this stuff is like magic fairy dust for people working the web. 23:03
lichtkind Leibsle: ? 23:04
Leibsle lichtkind, guguck :) 23:06
diotalevi wondered that of class Dog is Mammal does Pet { ... }, not all Dogs do Pet. 23:09
moritz diotalevi: just name it PetDog ;-) 23:11
23:14 silug joined
perlmonkey2 S29 is like reading a wish list for every shortcut you've ever wanted. 23:15
23:18 BooK_ joined
moritz perlmonkey2: actually the changes in the builtins are small compared to most other changes ;-) 23:18
perlmonkey2: just read S05 ;-) 23:19
perlmonkey2 If the regexps are upgraded too much, won't p6 allow anyone who cares to, to take over the entire world? 23:21
moritz perlmonkey2: when _everybody_ takes over the world, that's communism ;-) 23:22
OSS developers are all freaking communists, didn't you know? *bg*
"World domination, fast" -- Linus Torvalds
23:24 Aankhen`` joined
perlmonkey2 Reading these synopsis takes me back about a decade to when I read the introduction to the Camel book and realized I was about to see something cooler than I'd ever seen before. 23:27
23:27 imperator joined
perlmonkey2 m:c??? come on? how cool is that? if that exists in p5 and I don't know about it, I'll cry. 23:29
dduncan on the contrary, OSS development is the closest software model to true capitalism 23:31
there, everything is driven by supply and demand, rather than copyright laws that artificially change the balance of things
moritz dduncan: I know that, I'm paraphrasing trolls ;-)
Aankhen`` You know what would be a great idea? 23:38
Porting Params::Validate to Perl 6!
Aankhen`` ducks.
dduncan I have an opinion question. If I were to declare a generalized Str subtype, say NEStr, that includes all Str values except for the empty string, then what might be the best default value of such type, since the empty string is the default value of Str? 23:41
geoffb space? 23:42
dduncan Also assume that Undef is also not allowed, or alternately, that Undef when used as a string would default to the type's default value, but that can't be the empty string here.
geoffb, that was actually my first thought, that space could work well
but I was wondering if some people thought other alternatives, such as perhaps the digit zero, may be better? 23:43
I figure, 1 of those 2 options, unless a third is suggested
geoffb space has the advantage of non-jarring interpolation
moritz dduncan: smells like a design - a non-empty type that needs a default (just an opinion ;-)
dduncan sounds reasonable
moritz s/a/ill/ 23:44
dduncan I'm designing a type system that has no concept of undefined ... every variable of that type always contains a valid value of the type
Perl 6 sort of does this by that Undef can pretend to be a default value for a type, eg, zero-but-undef or some such
the type system has a normal Str equivalent, but I thought it would be useful to also include a subtype that couldn't be an empty string, since that's what lots of people use 23:45
for the normal type, the empty string is the default of course
the distinction of these 2 types is similar to having numeric types that can either be only all numbers, vs a subtype that can only be >= 0, and another that can only be > 0 23:46
all 3 of those are common scenarios 23:47
anyway, I'll go with [space] as I was before, unless I'm convinced otherwise
for NEStr, and the empty string for Str as usual
with the 3 numeric types mentioned, the default values would be 0, 0, 1 respectively 23:48
polettix throws a x{00}
dduncan thank you for your feedback 23:49
23:49 [particle] joined
moritz throws a string with negative length and quickly ducks bevor it detonates ;-) 23:49
dduncan I think in Perl 5 that is actually possible
eg, hash keys that are str with a utf8 flag on are indicated as such with negative lengths, or something? 23:50
polettix wonders what would happen doing ${moritz' string} x -1
dduncan that way, 2 different keys that otherwise have the same bit pattern, but 1 is text and the other binary, don't collide 23:51
moritz polettix: it turns upside down
polettix then, I wonder what would happen feeding it to an inside-out object
[particle] @eval sqrt $negative_string 23:52
er, wrong evalbot, but you get the point :)
moritz polettix: it vomits ;-)
polettix $i * $something
:)
dduncan ?eval sqrt $negative_string 23:53
23:53 perlmonkey2 left
evalbot_r15824 0.0 23:53
dduncan there you go particle 23:54
moritz ?eval sqrt -1i
evalbot_r15824 0.7071067811865476 + -0.7071067811865475i
dduncan dood!
polettix ?eval sqrt -1
evalbot_r15824 NaN
moritz polettix: that's on purpose..
[particle] ?eval NaN ** NaN
evalbot_r15824 NaN
moritz polettix: not to frighten mathematically non-inclined programmers ;-) 23:55
polettix ?eval sqrt (-1 + 0i)
evalbot_r15824 0.0 + 1.0i
polettix :)
is there a less work-aroundish mechanism to trigger complex computing?
moritz ?eval sqrt(-1 + 0i)**2 23:56
evalbot_r15824 0/1
dduncan cast arguments as Complex ?
?eval sqrt Complex(-1,0)
evalbot_r15824 Error: No such subroutine: &Complex
dduncan I would expect something like that to work
23:56 Aankhen`` joined
polettix what does 0/1 mean? 23:57
dduncan it means zero
dividing anything by 1 is a trivial situation
?eval 0/1i 23:58
evalbot_r15824 0.0 + 0.0i
polettix ah, it's a division sign. so the result is wrong?
moritz I assume, yes
polettix ?eval 1i**2
evalbot_r15824 0/1
polettix ?eval (1i + 0)**2 23:59
evalbot_r15824 0/1
23:59 BooK joined
polettix ok, complex computations are still a bit too "complex" 23:59
dduncan mind you, I can't assert whether a number of those results were correct or not, since I don't know too much about complex math