pugs.blogs.com | pugscode.org | pugs.kwiki.org | paste: sial.org/pbot/perl6 | <stevan> Moose... it's the new Camel ":P | .pmc == PPI source filters!
Set by Alias_ on 16 March 2006.
00:10 Quell joined 00:43 sean` joined 00:52 jiing_mIRC joined 01:28 vel joined 02:05 hexmode joined 02:34 amnesiac joined 02:42 Kattana joined 02:45 Kattana left 02:48 Kattana joined, r0nny joined 02:51 Kattana joined 03:25 Khisanth joined 03:45 sean joined 04:06 dduncan joined
gaal observes that not knowing the right terminal is an all too common epistemic state 05:30
05:33 kattana_ joined 05:40 GeJ joined
gaal audreyt: ah! r66 of perlsyck had fixed the bug! 06:07
06:14 pdcawley joined 06:36 spinclad_ joined 06:38 marmic joined 07:04 iblechbot joined 07:15 drrho joined 07:20 stennie joined 07:41 KingDiamond joined 07:43 bsb joined 08:05 drbean joined 08:40 clkao joined
TimToady observes that jet lag sucks, and resolves (after a 3 hour nap) to get over it faster than Audrey. 08:42
miyagawa TimToady: nice to hear that your jetlag has resolved 08:44
08:44 stennie joined
TimToady Unfortunately, it's just me that's resolved... 08:47
It's 1:47 in the morning here...
arcady that it is... 08:48
probably a good time for sleep, all things considered 08:49
TimToady considering all things is what's keeping me awake at the moment :)
miyagawa maybe Daylight Saving Time disturbs resolving for a while 08:50
arcady ah yes, there's that
TimToady the clock in my bedroom adjusts automatically. Maybe if I could just tune into WWV for the time.
arcady at least it makes the sun come through the window at a reasonable time now 08:51
audreyt I survived :)
arcady hooray!
TimToady the sun rarely comes through the window at a reasonable at any time of the year.
miyagawa :)
TimToady s/at/time at/ 08:52
audreyt: welcome home, er...
webmind that's why curtains where invented :)
arcady or, you could just destroy the sun, that would solve the problem too 08:56
and solve global warming too! 08:57
08:58 lypanov joined
ingy TimToady: nocturnal thee are or jetlag? 08:59
ingy reads back a little 09:00
TimToady I now know where the Japanese keep the sun at night, so perhaps someone can be bribed to keep it locked away: www.dan.co.jp/~larry/pix/20060331/P1020523.JPG 09:01
ingy: I'm learning the benefits of 3 hour naps...
miyagawa haha 09:02
ingy funny are you
gaal wow, that's very similar to a building in tlv 09:03
I hope it isn't some sort of portal thing
TimToady Does it have one of those sun control towers next to it? 09:04
Might just be a lunar tower, y'know...
gaal for a long while it did, in fact
09:05 spinclad joined
TimToady It's possible they really only need the tower for winching in the sun. 09:05
This whole "land of the rising sun" thing is just government misdirection... 09:06
On the gripping hand, there's a building shaped like that in Salem, Oregon, and I sincerely doubt anything in Oregon has much to do with the sun. 09:07
gaal nice reaction to Greenwich chauvinism, I thought 09:08
TimToady Maybe those buildings are really rain generators, and the Japanese were just giving the sun a washdown in the o-furo.
would be just like 'em to want to clean up the sun a bit... 09:09
webmind well I bit it is kinda dirty with all the dust that thing attracts 09:10
TimToady I really shouldn't be on the net when my brain is in sideways.
But then I'd never be on the net...
gaal what was that with the ping pong table in Arbel...
TimToady I believe it was a ping pong ball. 09:11
gaal and a dodgy net
TimToady It got better.
gaal to bad the balls didn't 09:12
TimToady I'm, um, not touching that one...
gaal grrr, that was not meant as a double entendre, but there's unexpected use for everything I guess 09:13
maybe that was a ping pong ball and not the sun in that photo?
TimToady A sideways brain has to be useful for something. If you find out, let me know.
You think *you* have an epistemic problem with terminals,.. 09:14
gaal Joyce had one too, he didn't know where to end his book so he made it cyclic 09:15
TimToady prefer polycyclic aromatics myself...
rgs riverrun ?
gaal rgs: past Eve and Adam's 09:17
rgs gaal: I vaguely remember some joyce-perl poetry by damian, but google doesn't seem to find it 09:18
well, it went off line. 09:19
gaal sozluk.sourtimes.org/show.asp?t=a+litter # not perl nor poetry but wonderful
rgs use.perl.org/comments.pl?sid=5198&a...p;cid=8108
TimToady What, the ping pong ball?
09:19 spinclad joined
gaal (Vladimir Dixon)++ # top hit for "literary" and "funny" as far as I'm concerned 09:21
09:21 nnunley joined 09:45 ghenry joined 09:55 KingDiamond joined 10:07 elmex joined 10:13 kane_ joined 10:29 lypanov left 10:34 avar joined 10:36 KingDiamond joined 10:39 dduncan left
svnbot6 r9832 | clkao++ | Use tie for AV aliasing. 10:53
11:02 chris2 joined 11:13 iblechbot joined 11:37 GeJ joined 11:44 b_jonas joined 12:07 kolibrie joined 12:24 mcummings joined, Limbic_Region joined
mcummings this is probably a silly question (even if this is the right channel) - but what provides the quantum library? (noticed it in make test output for parrot) 12:25
Gothmog_ all(), any() and one(), iirc 12:29
search.cpan.org/~lembark/Quantum-Su...sitions.pm 12:30
Limbic_Region Gothmog - you forgot none() 12:33
in p5, they are called Quantum::Superpositions - in perl6 they are just called junctions 12:34
well, and they are part of the core
Limbic_Region is curios to know if all of the decisions regarding junctions have been worked out - like to thread or not to thread 12:35
Limbic_Region checks the mass of recent S changes to see if all( any() eq any() ); is going to DWIM out of the box 12:38
mcummings Gothmog_: thanks :) 12:43
mcummings reads pod - crazy
13:04 chris2_ joined 13:08 GeJ joined 13:12 chris2_ is now known as chris2 13:16 xinming joined 13:24 chris2_ joined 13:26 chris2_ is now known as chris2 13:27 Qiang joined 13:33 PerlJam joined 13:47 sockstat joined 14:04 iblechbot joined 14:05 xinming joined 14:08 FurnaceBoy joined 14:14 n00dlez joined 14:15 n00dlez left
meppl gugu 14:17
14:22 ko1_away is now known as ko1_ 14:27 KingDiamond joined, hexmode joined 14:33 avar_ joined, avar_ is now known as avarab 14:37 vel joined 14:42 ko1_ is now known as ko1_away
gaal audreyt: moose? 15:11
15:42 xinming joined 15:43 rashakil joined 15:55 justatheory joined 15:56 xinming joined 16:13 xinming joined 16:16 fglock joined 16:30 feng joined 16:40 xinming joined
fglock audreyt, pmichaud: ping 17:03
Limbic_Region can someone confirm that the question I asked today about Junctions made it to the list 17:08
I haven't received the echo back from the list yet and I can't remember if that is normal behavior or not 17:09
obra It did
Limbic_Region thanks - so then should I have recieved a copy back or not? 17:10
I would think so
17:11 eric256 joined, eric256 left
nothing_pasta Limbic_Region: you should have 17:30
Limbic_Region thanks nothing_pasta - not sure I should blame gmail or not 17:33
nothing_pasta always blame something you have no control over first 17:35
it makes the most sense
TimToady Limbic_Region: just posted an attempted answer, though my eyes are still crossed this morning...
17:38 ruoso joined 17:39 ruz joined, ruz_ joined 17:44 ruz joined 17:49 renormalist joined 17:52 _bernhard joined, siosiosios joined 17:54 colares joined
Limbic_Region TimToady - I just received it - thanks 17:58
18:01 KingDiamond joined
Limbic_Region TimToady - I was already to pounce on the fact that you had explained away all my concerns by saying "use Sets instead" with "But WTF do I go looking for Sets definition" until I got to the end where you adeptly note that they haven't made their way into the Synopses yet 18:01
I will just respond with "Ok, so when Sets do make it in to the synopses, which ones do I look at" for the benefit of everyone reading along at home 18:03
thanks - and good to know that it will work out of the box even if junctions aren't the tool to use
18:07 awwaiid joined 18:14 stennie joined
theorbtwo Allo, awwaiid! 18:16
TimToady Limbic_Region: yes, though at least the synopses mention the existence of Sets. It's possible that we could unify normal sets with all() junctions, if not the other kinds of junction. 18:19
awwaiid hiya theorbtwo
TimToady occurs to me that the problem with the "set of all sets that do not contain themselves" is that the closure defining it is not memoizable, so it's not an immutable value. 18:29
off to $work & 18:30
webmind hmm, aren't there any weekly summaries of perl6 lists anymor e? 18:36
anymore
theorbtwo Not on perl.com. 18:37
use.perl.org links to them, IIRC.
webmind I don't see them in my mail archive anymore
Juerd The last summary was >2weeks ago 18:40
18:41 fglock left, fglock joined
fglock docs/journal/ is the place to contribute summaries... 18:42
18:43 zgh joined 18:44 GeJ joined
avar Juerd: hi 18:48
theorbtwo Blink... we have a (+) operator now?
Oh, it's a Set operator. 18:49
awwaiid thats what you get for blinking
PerlJam Anyone not reading p6l would be in the dark about (+), (*), etc. 18:50
theorbtwo ponders starting to read p6l again.
At present I look at it from time to time.
PerlJam (those people, too, would be trying to fit round junctions into square Sets) 18:51
avar PerlJam: Some middle between * and [*] ?;)
PerlJam Hmm. We've got *, (*), and [*], but where is {*} ? 18:52
or <*> ?
avar Regarding Larry's reply to curly quotes, Perl currently knows how to match some stuff, like q{} q<>, q[] etc. Will it know how to match fancy quotes (outside latin1) even though they wouldn't be defined in any other way in the default language 18:53
say qā€žhello, worldā€œ 18:54
of course that might introduce ambiguities;)
PerlJam avar: define your own cicumfix:<,, ">
er, circumfix
avar PerlJam: Thought so 18:55
Juerd avar: Hello. 18:56
18:57 colares joined
avar Juerd: I have time to talk about mw now;) 18:59
Juerd: who had the insane idea of rewriting it?;)
Juerd avar: But I do not :) 19:01
avar: I'm at the amsterdam.pm meeting now
avar Oh joy;)
PerlJam mw? 19:02
Juerd MediaWiki 19:03
PerlJam oh 19:04
Limbic_Region fglock ping 19:05
or anyone familiar with sets
What is the appropriate way to do all( any() eq any() ) using Sets? 19:06
IOW - find the intersection of 2 sets
fglock Limbic_Region: pong
thinking... 19:07
any() eq any() is intersection - it gives which elements are common
wolverian Limbic_Region, @set1 āˆ© @set2, I assume 19:08
fglock all() is the set itself, unless you have some special context
Limbic_Region wolverian - the non-unicode version please
fglock - my example was of junctions
so let me start of by saying this.... 19:09
ok - so he went *poof*
wolverian Limbic_Region, are you asking the official story or for a suggestion? (I) maybe? the reversed U is kind of hard to map to ASCII..
Limbic_Region perhaps he will backlog
wolverian ruby uses %, I think
unless that's symmetric difference .. I forget.
19:09 fglock joined
theorbtwo (^) and (v) ? 19:09
Limbic_Region If I start out with @foo = 'a' .. 'z'; and @bar = <a b c 1 2 3>; 19:10
what do I do to find the intersection of @foo and @bar
fglock I had a problem with unicode - I'm on cgi-irc (fixed) 19:11
Limbic_Region ok - me too
fglock the intersection is (a,b,c), and 'all' is (a,b,c) too 19:12
Limbic_Region ok - that was like speaking greek to me
let me start with my example as though I were posting it as a SoPW and you tell me what I need to know (assuming I know nothing of set theory or junctions or anything p6 related) 19:13
fglock ok
Limbic_Region Hi, I am trying to find the what elements 2 arrays have in common. How do I do that? For instance, my @foo = 'a' .. 'z'; my @bar = <a b c 1 2 3>; # should produce a, b, c 19:14
fwiw - the bad phrasing of the question wasn't intentional but it truly fits my intentions
19:14 stennie joined
fglock you mean sets, right? imagine the items are hash keys 19:15
Limbic_Region no, I don't mean sets
PerlJam or don't imagine it, but make it so :)
fglock so that you can say %foo{'a'}.exists 19:16
Limbic_Region you need to tell me that I should be using sets and then give me the syntax
fglock arrays don't support that
Limbic_Region ok - good
fglock oh, you should be using sets instead
Limbic_Region how do I do that? 19:17
fglock $foo = Set.new( 'a'..'z'); $bar = Set.new( <a b c 1 2 3 > );
Limbic_Region and to find the elements that are in common? 19:18
oh and if element isn't the right word since Arrays aren't Sets - what is?
fglock then $common_elements = $foo.intersection( $bar ); - creates a new set with all common elements - it's automatic
Limbic_Region . o O ( enjoys being a newbie f*&ckwit)
oh cool
fglock arrays are a special kind of set
Limbic_Region but I really wanted arrays
fglock if you think hash, an array is
Limbic_Region is there anyway I can do it using arrays
or perhaps can I treat a set as though it were an array? 19:19
fglock { 0 => 'a', 1 => 'b', .... }
Limbic_Region like for $set1 -> $_ { ... }
fglock you can use an iterator - but a set is potentially infinite, so you have to be careful 19:20
Limbic_Region fglock - thanks, we can drop the role playing now
awwaiid multiset
fglock I hope it helps
Limbic_Region I just think that I illustrate the need for some clear documentation on Sets in the Synopses
fglock - well, yeah. I mean I understand a bit of set theory so I knew how to do it mathematically speaking. You helped more in the syntax arena. 19:21
PerlJam L~R, are you attempting to draft such documentation? 19:22
Limbic_Region no PerlJam - I was attempting to find out if I was being an idiot
19:23 pmurias joined
pmurias hi all 19:23
PerlJam Well ... now that you have an idea about your status as an idiot, could you draft the Set documentation and send it to p6l? ;-)
Limbic_Region So for the p6 FAQ we can have at least 3 responses: Here's how you do it using sets, here is the old p5 way of doing it, and here is how you can do it using a custom infix myeq and junctions
fglock pmurias: hi 19:24
Limbic_Region PerlJam - fglock and I would have to go back to role playing quite a bit more
I could easily ask the leading questions but I don't have the answers
fglock There are many kinds of specialized sets, just like there are many kinds of other data structures - I think P6 set is just an API for many possible implementations 19:26
PerlJam fglock: does that mean that you're volunteering to draft the Set docs? ;) 19:27
Limbic_Region well - sets are an amazing powerful thing to be part of the p6 core
pmurias Limic_Region: don't hashes fill the role of sets?
Limbic_Region they just aren't - er - common knowledge
PerlJam L~R: indeed. 19:28
19:28 FurnaceBoy is now known as FB|afk
Limbic_Region pmurias - do they? 19:28
fglock PerlJam: maybe
Limbic_Region pmurias - IOW, if you can do everything with a hash that you can do with a set - why add set feature
pmurias - taking the same FAQ I asked earlier further 19:29
imagine if the two arrays I wanted to find the intersection of had multiple instances of the same element and I wanted a 1 - 1
the old p5 approach using hashes breaks 19:30
Limbic_Region has to go to a $work meeting
PerlJam fglock: the thing that I haven't thought about too much, but would like to know, is what Set ops we have and what they mean. (+) and (-) I understand, but what about (*) and (/)? What do they mean?
(or do they exist even?)
and (^) and (v) makes sense, but do they exist t oo.
PerlJam tries to install the ESP module so that he can read @Larry's mindspace 19:31
pmurias i didn't quite Limbic_Region's last point
fglock see the ext/Set implementation - they have all kinds of symbols (one sec) 19:32
pmurias i always thought sets can have one instance of each parameter
PerlJam heh ... I didn't even think to look if there was already an implementation
zgh pmurias: i think a p5 hash-based implementation of sets would be limited to sets of strings
fglock they use \ for difference, and * for intersection 19:33
PerlJam pmurias: yes, but he was asking about intersection of arrays using Sets as the implemention.
fglock '-' is difference too 19:34
PerlJam pmurias: Imagine the answer to perlfaq4's "How do I compute the difference of two arrays? How do I compute the intersection of two arrays?"
fglock of course p6 arrays could support difference() and intersection() 19:35
pmurias PerlJam: i understand why hashes fail here, but i think i'll propably have to read p6l to understand how set help 19:36
:)
PerlJam pmurias: I think the answer is that they don't help much :-)
Using either Set or hash you'll have to transform the array into a different representation and then back again. 19:37
fglock p6 arrays and hashes are much closer to sets than the p5 version - support for infinite lists, keys can be objects... 19:38
theorbtwo How is having object keys set-like?
Sets don't have keys at all, or even indecies.
19:38 itz joined
zgh theorbtwo: if you have objects as hash keys you basically have a set, ignoring the values 19:39
PerlJam theorbtwo: I think he means that sets hold "things" (objects) where they used to typically just hold numerics
fglock hashes are special sets in which the elements can have a value attached
arrays are special sets which contain 0,1,2,3... and the elements can have a value attached 19:40
19:40 xinming joined
PerlJam sets his Set upon the television set. 19:41
fglock television sets don't support union or intersection very well - it's a destructive operation 19:42
PerlJam fglock: but the fireworks are fun! 19:43
imploding tubes are always a little scary and nicely destructive (for the fun aspect)
fglock bbiab 19:44
pmurias PerlJam: the firefox you can shoot stuff with are the best 19:46
s/firefox/fireworks/ #fireworks are a lot better
will (+),(-) works on hashes? 19:55
20:02 Fizzler joined
TimToady pmurias: (+) etc work on anything that has the "as(Set)" coercion defined. 20:06
hashes could certainly coerce their .keys to a set. 20:07
arcady how does one define coercions?
TimToady we just had a discussion of that in p6l
wolverian I think the infix as syntax is rather cumbersome and gets in the way of what is really meant. 20:08
pmurias TimToady: thanks, is the resault coerced back?
s/resault/result
TimToady not by the set operator.
wolverian I don't have a much better alternative, besides just 'coerce Int { ... };' or so. hrm. 20:09
TimToady An assignment could certainly coerce back though.
So (+)= might coerce to set and back.
wolverian as Int { ... } # Hm. trait?
TimToady on the other hand, what values do you add for new hash keys? 20:10
fglock would @a.intersection( @b ) autocoerce @a, @b to call Set.intersection? 20:11
TimToady no traits necessary, just "multi method as (Set)" or some such.
fglock: probably not.
such external usages should generally be done with MMD, not SMD. 20:12
wolverian TimToady, yeah. I just don't like it very much. I'd like it to say 'coerce' somewhere in the declaration. oh well, I can live with it :)
TimToady but it's a fuzzy boundary, for sure.
clkao when a array is passed in to a subroutine, it's by default readonly right? but it seems t/operators/binding/array.t says it can be modified even without "is rw" 20:13
that is, foo (@arr), rather than foo(Array $arr) 20:14
nothing_pasta big question:
wolverian (in any case, just 'as' is very very huffmanised.. scarily so)
nothing_pasta are most of the "builtins" in Perl 6's std lib (Set, String, Moose) roles or classes?
clkao or do we consider it as normal method calls to @arr hence not an actual modification?
nothing_pasta i think one of the yuckiest things in haskell is that 'map' and 'fmap' are two different functions
pmurias fglock: you looked for a parser engine to replace PCR, using PGE might be an option (if we can live with a parrot dependency) 20:15
(assuming you don't hate pir, as I did untill recently) 20:17
TimToady sorry, in a meeting, can't pay proper attention right now...
20:19 lisppaste3 joined
Fizzler I've written thousands of lines of Perl code and I don't understand a thing that's been said here in the last 20 minutes. 20:23
20:24 FurnaceBoy_ joined 20:27 SamB joined
TimToady Fizzler: not much point in talking about the things we already understand here... 20:30
Fizzler The depressing thing is that I don't understand most things in #Perl either, but nobody's paying me to yet, so it's not so bad. 20:32
buu Yay! 20:35
pmurias Fizzler: somethings only make sense to the people developing the parts being discussed, others i don't understand as well
Fizzler: feel free to ask if you don't understand something (i have never been bashed for clearly stupid questions, so i don't think you will) 20:37
Fizzler Look at buu being happy that Wassercrats is back.
pmurias: I get by well enough with what little Perl I know. Someone once said I program Perl like it's Assembly.
nothing_pasta wassercrats is back?
to pm?
crap
it always causes people to waste a ton of time 20:38
wolverian so? it's fun
Fizzler No, here. I'm Wassercrats, AKA Barry, but I switched IRC clients back and forth and now I'm known by a little-used name until I change it.
wolverian oh no.
nothing_pasta oi vey 20:39
Fizzler There were other channels I had to visit, and I decided to see what's going on here. 20:40
BUU is one of my biggest foes, and I couldn't help exposing myself. 20:41
buu =[
I am friendly.
Fizzler: I just want you to know, "Reset.pm" has changed my life.
nothing_pasta this like a troll fest 20:42
nothing_pasta goes to watch TV or something
pmurias "In roaring he shall rise and on the surface die" 20:44
Fizzler buu: My proudest PM accomplishment was tricking someone into reposting VarStructor (or whatever it was called) after I deleted it, proving someone found it useful. PM's backup of it wasn't available. But I've accomplished so much there, it's hard to say. 20:46
pmurias Fizzler:did you actually believe your "boycot O'Railly hacking books" opinion, or was it a provocation? 20:59
svnbot6 r9833 | clkao++ | translate all array tests.
Fizzler I read a review of the book I referred to that made it sound especially cracker-oriented, even for that kind of book. Books like that should be titled or contain content that attracts crackers, if possible. 21:01
And I'm no fan of post-copyrighting a technology book. The timeliness of the information is important, and I need to know the real date of publication. 21:02
(snouldn't)
s/n/h/ 21:03
Boycot O'Reilly wasn't a troll, though I doubted most people would like that post or want to boycot them. I feel the same way now about related issues. See my recent post at www.mattcutts.com/blog/miscellaneou...ment-19469 about Google. 21:07
pmurias as an owner of Hacking Linux Exposed(which can be used as a cracking cookbook) and not commiting any computer crimes, i disagree but consider the matter to obvious to discuss
21:09 fglock_ joined
pmurias i was just amazed at people responding to something which i considered a blunt provocation (i wasn't a monk than, and only seen the archived message later) 21:10
21:10 FurnaceBoy_ is now known as FurnaceBoy
Fizzler The word "hacking" attracts crackers. "Security" is a better word, and it should be taught without providing exploit code if possible, and it should be taught in school, not by off the shelf books, if possible. 21:11
fglock_ pmurias: re PGE it's an option, but currently it would not be practical - but it would be nice to have parrot embedding in p5 work 21:12
pmurias Fizzler: the disscussion dosn't really belong here, we can continue it on a diffrent chanel & date if you are bored enough 21:14
Fizzler Nah, I have to go eat. I'll probably be "Barry" the next time I'm chatting. 21:15
pmurias fglock: got to sleep soon 21:16
21:17 Fizzler left
PerlJam fglock_: Just rewrite PGE in perl5 :-) 21:17
pmurias fglock: i could help you embedd parrot,but i'm not familiar with perl guts 21:18
PerlJam: maybe automatic translation would work?
anyway "The Kraken sleepeth: faintest sunlights flee"
good night
fglock_ PerlJam: see pX/tewk - it's a rewrite of PGE in p5 (and ruby) 21:19
if someone would try to finish it and keep updated, it would be nice 21:20
I haven't seen tewk here for some time
PerlJam tewk looks only vaguely familiar. 21:21
PerlJam looks at the source
21:23 KingDiamond joined
PerlJam Hmm. autotranslation from parrot->p5 would be ... interesting. 21:32
21:34 mcummings left
fglock_ PerlJam: it is not hard to write a Parrot grammar - the actual compiler/runtime would be a bit difficult 21:36
but not impossible
21:52 colares joined 22:01 Barry joined 22:04 Barry left 22:13 p5evalbot joined, KingDiamond joined 22:19 fglock left, fglock_ left
svnbot6 r9834 | clkao++ | positional args can be bound with name as well. 22:35
22:38 kane_ joined
svnbot6 r9835 | clkao++ | tests for readonly subroutine params. 23:15
tewk pX/tewk was a direct translation attempt. 23:31
I've got some new code that is a direct translation attempt from pugs/misc/pX/Common/Pugs-Compiler-Rule to Ruby, I should probably check that in too. 23:33
23:34 FurnaceBoy is now known as FB|afk 23:44 wolverian_ joined 23:53 hcarty joined, hcarty left 23:54 colares joined