pugscode.org/ | nopaste: sial.org/pbot/perl6 | pugs: [~] <m oo se> (or rakudo:, kp6:, smop: etc.) || We do Haskell, too | > reverse . show $ foldl1 (*) [1..4] | irclog: irc.pugscode.org/
Set by TimToady on 25 January 2008.
00:07 ispy_ joined 00:09 Limbic_Region joined 00:15 spx2 joined 00:24 cmarcelo joined 00:33 buubot joined 00:36 buu joined 00:39 thoughtpolice joined 01:07 Blazeix joined
Blazeix Hi, I'm thinking about learning perl6, so I would like to make a few simple applications with it. Does perl6 have some useful libraries yet? 01:10
01:10 lyokato_ joined
Blazeix I've downloaded pugs, and I've been messing with simple perl6 syntax 01:10
01:10 Morasique joined 01:23 stevan_ joined 01:25 zonkers_ joined 02:00 justatheory joined 02:03 thoughtp1lice joined 02:10 Lorn joined 02:35 c9s joined 03:12 diotalevi joined 03:19 sh0cked joined 03:21 penk joined 03:36 rhr joined 03:38 drbean joined 03:49 revdiablo joined 03:52 Blazeix left 04:10 cnhackTNT joined 04:16 Lorn joined 04:56 justatheory joined 04:59 BrutusIunius joined 05:22 justatheory joined 05:50 BrutusIunius joined 06:04 r0bby joined 06:14 devogon joined 06:16 charlesmorgan joined
charlesmorgan Hi folks. 06:16
How many of you *love* income trusts?
Show of hands? 06:17
How about you sit there like a dead log if your IQ is less than 75.
It's always the MORONS who never say a word. They park their asses on IRC and go play with computer pornography. 06:20
06:21 charlesmorgan left 06:33 tewk joined
rakudo_svn r26345 | duff++ | [rakudo] rough cut implementation of auto-{increment,decrement} for Perl6Str 06:39
06:52 Aankhen`` joined 07:43 marmic joined 07:58 BinGOs joined 08:05 iblechbot joined 08:19 cognominal_ joined 08:36 wknight8111 joined 09:55 masak joined 10:10 ebassi joined 10:28 ebassi joined 10:41 FurnaceBoy joined 10:42 ruoso joined 11:11 cognominal_ joined 11:17 masak joined 11:55 ebassi_ joined 12:08 wknight8111 joined 12:16 IllvilJa joined
rakudo_svn r26347 | duff++ | [rakudo] make Perl6Str increment() work on empty strings 12:34
13:22 pmurias joined
pmurias mncharity: is something like that allowed in perl6? 13:24
13:29 cmarcelo joined 13:35 lisppaste3 joined, Psyche^ joined 13:43 FurnaceBoy joined 13:56 BinGOs joined 14:06 xinming joined 14:29 ebassi joined 14:32 Aankhen`` joined 15:00 chris2 joined 15:03 ispy_ joined 15:11 xinming_ joined 15:13 braceta joined 15:45 TJCRI joined 15:52 kanru joined 16:04 chacha_chaudhry joined, ispy_ joined 16:05 gbarr joined, chacha_chaudhry left 16:21 rdice joined
moritz_ the server on which evalbot runs is currently down :( 16:22
I hope to get it running this weekend
16:22 jrockway joined 16:34 bockmabe joined
pmurias ruoso: will it be possible to inherit from native/lowlevel classes? 16:37
16:38 chris2 left
ruoso from native you can only inherit by composition 16:39
you cannot change the representation
the lowlevel implementations won't be available in the namespace for that ;)
that's why the src-s1p implementations need to be written
16:40 BinGOs joined
pmurias thinking how should Array be implemented 16:40
ruoso S1P__Array?
pmurias yes
ruoso take a look at the autovivification notes in the wiki 16:41
the basic idea is that you're going to return containers or lazy lookup containers
the lazy lookup containers will autovivify to a real container
the important thing here is that you cannot change the representation of the object during the autovivification 16:42
it must be the same pointer
16:43 BrutusIunius joined
ruoso which means that you will always keep the proxy object when something was autovivified 16:44
at least when working with lowlevel objects
that won't happen for higher-level objects... 16:45
pmurias no?
ruoso because they all have the WHENCE
and they are representation-independent
16:46 bocksp joined, peepsalot joined
pmurias how does binding to an array element work 16:47
in terms of low level operations
an array has a memory block of Scalars
ruoso that's when the lookup proxy object enters 16:48
pmurias explain please ;) 16:49
ruoso $a[1][2][3] works as:
1) you make a lookup on $a for the element 1
pmurias which returns a proxy object 16:50
ruoso 2) this lookup returns a proxy object that delegates to the cell value
that can be empty,
in the case that the element has not been autovivified yet
but this proxy object knows how to implement the Scalar, Array and Hash API 16:51
pmurias how does $a[1] := work
ruoso in theory, yes... 16:52
16:52 Jamtech joined
pmurias ? 16:53
ruoso ah...
I didn't see the "how" part
pmurias ;)
ruoso $a[1] will return the proxy object
the same way $a returns 16:54
and the bind will substitute the container inside $a[1]
the same way it substitutes the container inside $a
moritz_ so every variable has a container? 16:55
isn't that rather inefficient? 16:56
PerlJam moritz_: every var *is* a container
16:56 eternaleye joined
PerlJam moritz_: don't you know the rules of optimization? Working code first. :) 16:56
moritz_ PerlJam: allright, I'll be quiet ;-)
ruoso PerlJam, but every var *lookup* has a container 16:57
so binding can work
the same way that every hash lookup must *have* a container, and don't *be* a container 16:58
PerlJam ruoso: right, you get a container thingy so that you can use it for autovivification or to somehow morph it into the contianer that's already there. 16:59
ruoso or to bind it to somewhere else
or to get bound from somewhere else
PerlJam sure, depending on context.
ruoso in fact, the lookup can return a simple lazy lookup object 17:00
so the lookup doesn't really happen until you use it
PerlJam yeah, perl6 has proxies everywhere it seems. That's the price of laziness. 17:01
ruoso yeah...
and it's scary to think about lazy lookup + currying
to make something like
$a<b><c>[1]<d> turn into a sql statement 17:02
PerlJam I try not to think about how it all works as long as it just does :)
ruoso like $person{ name => 'John' }<contacts>{ name => 'Jane' } 17:04
this would make DBIx::Class in Perl 6 just awesome... 17:07
pmurias ruoso: have you thought about running the sm0p grammar on smop?
ruoso you mean compiling the sm0p grammar to sm0p? 17:08
pmurias i thought more about compiling to c 17:09
ruoso If anyone writes a conversor :)
17:10 buubot joined 17:12 buu joined
pmurias how to revive a file removed from the repo if i know the path but don't rememeber the revision (with svk)? 17:13
17:15 Zygo joined
kolibrie pmurias: svk revert path/to/file ? 17:15
17:15 gbarr joined
pmurias find the revision first is the soultion ;) 17:19
[particle] pmurias: try grepping svn log -v 17:21
pmurias svk cat dosn't work on removed files
[particle]: vim searched for it 17:22
17:23 kanru joined 17:40 meppl joined 17:51 justatheory joined 17:57 Daveman joined
pugs_svnbot r20117 | pmurias++ | [kp6] a revival of Emit::TokenC with the intent of being used by smop 18:00
diff: dev.pugscode.org/changeset/20117
lambdabot Title: Changeset 20117 - Pugs - Trac
18:08 ebassi_ joined 18:09 BrutusIunius joined 18:11 simcop2387 joined 18:13 TJCRI joined 18:23 thepler joined 18:28 barney joined 18:30 explorer joined 18:37 alester joined 18:48 Schwern joined 18:58 Psyche^ joined 19:01 Jamtech joined 19:09 thepler joined 19:33 TJCRI joined 19:37 eternaleye joined 20:09 jferrero joined 20:47 Lorn_ joined 20:50 BinGOs joined 21:24 smtms joined 21:41 IllvilJa joined 21:46 thepler joined 22:00 buchetc joined 22:34 eternaleye_ joined 22:46 rindolf joined 23:09 ebassi joined
mncharity sigh. both rakudo (pbc and exe) and redsix are under 20 lines per second, just for parsing. that's just not usable. 23:18
23:39 zgold joined
meppl good night 23:43
zgold just wanted to drop a word of praise for pugs and perl 6.. im just learning haskell and what you guys have done is really, really cool :) 23:45
pugs_svnbot r20118 | putter++ | [STD_red] sync some unfinished work.
diff: dev.pugscode.org/changeset/20118
lambdabot Title: Changeset 20118 - Pugs - Trac
23:46 BinGOs joined 23:53 eternaleye_ joined