6.2.11 released! | pugs.blogs.com | pugscode.org | pugs.kwiki.org | paste: sial.org/pbot/perl6
Set by audreyt on 1 February 2006.
Supaplex hey folks =) 04:57
gaal are we going to have a printf == print sprintf builtin? 05:48
svnbot6 r8954 | gaal++ | PPT printf.p6 - implementation
nothingmuch help 08:25
i have a writer's block
www.osdc.org.il/talk.html?id=7 08:26
azuroth ?eval $a = [1,2,3]; $a .= [1]; say $a 10:55
evalbot_8954 Error: unexpected "." expecting operator, postfix conditional, postfix loop, postfix iteration, ";" or end of input 10:55
azuroth ?eval $a = "a" say $a.upper 10:56
evalbot_8954 Error: unexpected "s" expecting operator, ">>=><<", "\187=>\171", "=>", "::=", "**=", "xx=", "||=", "&&=", "//=", "^^=", "+&=", "+|=", "+^=", "~&=", "~|=", "~^=", "?|=", "?^=", ":=", "~=", "+=", "-=", "*=", "/=", "%=", "x=", "Y=", "\165=", "|=", "^=", "&=", "=", postfix conditional, postfix loop, postfix iteration, ";" or end of input
azuroth whoops :-) 10:57
?eval $a = "a"; say $a.upper
evalbot_8954 Error: Undeclared variable: "$a"
azuroth ?eval my $a = "a"; say $a.upper
evalbot_8954 Error: No such method in class Str: "&upper"
azuroth ?eval my $a = "a"; say $a.toUpper
evalbot_8954 Error: No such method in class Str: "&toUpper"
azuroth ?eval my $a = "a"; say $a.toupper 10:59
evalbot_8954 Error: No such method in class Str: "&toupper"
azuroth ?eval my $a = "ab"; say $a.chomp
evalbot_8954 OUTPUT[ab ] bool::true
azuroth ?eval my $a = "ab"; say $a.chop 11:00
evalbot_8954 OUTPUT[a ] bool::true
azuroth ?eval my $a = "ab"; $a .= chop; say $a
evalbot_8954 OUTPUT[a ] bool::true 11:01
azuroth ?eval my $a = "ab"; $a .= [0]; say $a
evalbot_8954 Error: unexpected "." expecting operator, postfix conditional, postfix loop, postfix iteration, ";" or end of input
azuroth ?eval my $a = "ab"; $a .= ([]) 0; say $a
evalbot_8954 Error: unexpected "." expecting operator, postfix conditional, postfix loop, postfix iteration, ";" or end of input
azuroth ?eval my $a = "ab"; $a .= substr 1; say $a 11:03
evalbot_8954 Error: unexpected "1" expecting operator, postfix conditional, postfix loop, postfix iteration, ";" or end of input
azuroth I should be using pugs, shouldn't I?
xinming azuroth: You are not using haskell definitely. :-) 11:07
my $a = "ABCDEFG"; $a.lc.say;
?eval my $a = "ABCDEFG"; $a.lc.say;
azuroth aha
evalbot_8954 OUTPUT[abcdefg ] bool::true
xinming ?eval $a = "abcdefg"; $a.uc; 11:08
;-)
evalbot_8954 Error: Undeclared variable: "$a"
azuroth [] is a method though, so maybe .= [1] should work?
xinming ?eval my$a = "abcdefg"; $a.uc;
?eval my $a = "abcdefg"; $a.uc;
evalbot_8954 "ABCDEFG"
azuroth I'm not sure whether it's in the synopses or not though, to be honest
evalbot_8954 "ABCDEFG"
azuroth is there a tc? title case? ;-p 11:09
xinming ?eval sub tc ($s is copy) { $s ~~ s/./{uc $/}/; $s }; (tc "abcdef").say 11:11
:-)
:-P
evalbot_8954 OUTPUT[Abcdef ] bool::true
azuroth sneaky :-p 11:13
theorbtwo Careful: In some languages, titlecase and uppercase aren't the same thing. 11:17
(I don't know /what/ languages...)
nothingmuch seen audreyt?
jabbot nothingmuch: audreyt was seen 1 days 5 hours 53 minutes 30 seconds ago
xinming theorbtwo: hmm, are you free? I've got a problem in debugging, I don't know if it is a bug in pugs, But I really can't catch it. 11:18
azuroth hmm. I guess that makes sense, theorb
nothingmuch i have a yucky problem with C++ here 12:18
azuroth oh?
nothingmuch i'd like to see how well it could be resolved in Perl
(6)
i have an object
and I need to add an interface to it 12:19
send/receive (serializability to a filehandle)
first of all i see that send/receive themselves will be much simpler due to introspection
i could just iterate the attributes 12:20
second, decorating the class with this interface automaticallly
third, applying the send/receive interface to all the classes within my class's members
(automatically)
lastly, getting compile time errors if a member in my class is not sendable/receivable, because it's a filehandle or something like that 12:21
as I see it this is duck typing
err
a problem for duck typing
if I just treat my class as if it does that
nothingmuch then it tries to apply send/receive to that class 12:21
food for thought 12:22
maybe I should p6l
azuroth maybe something like... for each member, ~~ Serializable { $obj.send($fh); } ~~ Int { ... } ~~ String { ... } but no 12:25
what do you mean by automatically decorating the class? 12:26
nothingmuch well
i declare the serializable interface
in one place
and if i demand this interface in another place
from any class
then that class automatically gets it
think of it as a universal role
azuroth what... $a = Monkey.new(); $a.serialize($fh) # $a now does Serializable ? 12:28
scook0 nothingmuch: sounds like deep magic
were you thinking of this taking place at compile-time, or run-time?
nothingmuch azuroth: err, yes =)
except perhbaps i need to declare my Serializable $a = Monkey.new;
nothingmuch stevan: ping 12:31
nothingmuch sent 12:40
azuroth to p6l?
nothingmuch yes 12:41
scook0 nothingmuch: incidentally, I'm pretty sure "inference" only has one 'r' 12:54
nothingmuch scook0: i always do that =)
sorry
scook0 I remember intending to correct you on the same thing quite a while ago, and always forgetting to actually do so :) 12:56
nothingmuch ) 13:00
=)
nothingmuch www.oooms.nl/ 13:55
Juerd Hm 15:19
Once upon a time, feather built pugs automatically, and typing "pugs" would start a very recent revision
Now, it uses a debian package, which updates at release interval. 15:20
And the automatic building is broken even.
What have I missed?
Juerd prefers the old situation (pre-october)
I now finally understand some of the complaints. 15:21
(People don't all want to build their own pugses and parrots, many people just want to test drive Perl 6)
I guess I'll do the automatic stuff myself again. 15:22
gaal sneaky little pugses and parrotses
Juerd Hell, the script that did the automatic builds no longer even exists, it seems. 15:23
gaal it doesn't? look in ~eric256 ? 15:24
Juerd All there's left is automatic smoking. 15:25
Which wasn't the point of the automatic builds. It's certainly nice to have, but accessible pugs was the primary reason to have automatic building. 15:26
gaal for me autosmokes are an immense benefit 15:42
because I don't have to remember to do one half of the regression test :-) 15:43
how does it do autosmoking if it doesn't do autobuilding? :)
you can probably prepend eric's directory to your path and get a recent pugs 15:44
Juerd No, it's not about me. 15:45
I don't care if I have to build pugs myself.
It's for the users of feather. It's a service I once provided, and then handed over to eric256.
I never installed the debian package.
So things happened without me being aware, and as you may know, I don't like monitoring what other people do.
So I'm just going to do it myself again
People should be able to login and run pugs, and test some things to see if they're supported yet. 15:46
The most recent pugs I can find in ~eric256/auto is from December 15:47
eric256 hasn't logged in for a while 15:48
Last login Nov 15 15:49
gaal i thought i saw recent linux smokes? who submits those? 15:50
Juerd From the looks of it, eric's autosmoke has been broken since December
An svk locking issue
gaal I may have been wrong. In any case, I encourage you to also put smokes into the cycle, if you take back autobuild.
Juerd I'll probably do that. I have been under the impression that eric256 did these things. 15:51
gaal: Whereto are these smokes submitted?
gaal hopes eric has not been eaten by a grue
Juerd: smoke.pugscode.org
gaal you can have that automatically after 'make smoke' by adding one line to config.yml 15:52
Juerd Nice
gaal very. 15:53
Juerd feather.perl6.nl/~eric256/t_index/ is updated often, but as far as I can tell, it's been operating on the same revision for months :)
gaal :) 15:54
nothingmuch_ fucking guy! 15:56
seen audreyt?
jabbot nothingmuch_: audreyt was seen 1 days 10 hours 31 minutes 41 seconds ago
nothingmuch_ hates the cable carrier
HATE HAT HATE
Juerd For a moment I thought "hey, that eric256 guy IS logged in, and he's even watching top..." 16:00
But then I realised "Oh, that's me, still working under his uid"
gaal $$.head.bonk 16:01
gaal goes home & 16:02
Juerd It appears that "make smoke" is part of debian/rules binary. 16:22
Weird, but useful in this case.
It does take quite a while.
gaal still less than GHC :) 16:43
Juerd, is feather SMP by any chance?
Juerd gaal: No 19:34
gaal: Though if you happen to have hardware to donate... :)
windows-- # learn to multitask 19:49
I'll try autobuilding again later. 19:53
Things don't currently debian-compile out of the box.
Next attempt will be debless, to see if that will work.
Thank you. An email will be sent to you with the URL for the requested download. 19:57
No, fuckers, I want it NOW.
Ah, there it is. 19:58
Another minute wasted.
Grr.
Just in case you also want it, don't bother with the form, bits.xensource.com/ISO/latest/xen-3...cd-3.0.iso
obra can Xen run unmodded windows these days?
szbalint Heh. It blows the mind that someone wants an email address for a download. 19:59
obra szbalint: why? It's pretty standard in the "and we want to talk to you later, and maybe sell you stuff" sense.
(Assuming it's optional)
szbalint Yeah, the emphasis is on optional. :) 20:00
obra Sure. non-optional makes me squick. But I expect RT will have such an (optional) thing within a couple months if my sales person has something to say about it
Juerd obra: Only with special inter CPUs supporting some kind of virtualization technology.
obra ah :/ 20:01
Juerd obra: It wasn't optional in this case.
obra eit
Juerd obra: To get this GPL'ed software, I had to give my address.
That's highly unusual, and deeply disturbs me.
obra There's nothing preventing them from doing that.
Juerd That is entirely correct.
obra I've seen it before. But yes, now you're free to redist it
Juerd However, I do happen to hate those forms. 20:02
And I don't wish to associate such negative feelings with open source software, that generally is distributed in a user friendlier way.
Juerd obra: Re optional fields: I generally do leave my address 20:04
But: I want to continue to download directly, and not have to wait for mail. 20:05
I expected the same here :|
gaal so, has anyone done some design work on embedding haskell in p6? we have eval :lang<haskell>, but that looks like an interpreter, and you can't seem to import modules from there. 20:25
I see we aren't squeezing everything we could out of System.Eval.eval_ 20:26
wolverian hm, STATUS needs updating 23:34