pugscode.org/ | nopaste: sial.org/pbot/perl6 | ?eval [~] <m oo se> | We do Haskell, too | > reverse . show $ foldl1 (*) [1..4] | irclog: irc.pugscode.org/ Set by diakopter on 11 July 2007. |
|||
00:01
theorbtwo joined
00:07
REPLeffect_ joined
00:10
weinig is now known as weinig|errands
00:13
REPLeffect_ is now known as REPLeffect
00:18
theorb left
00:24
drupek12 left
00:27
IllvilJa left
00:29
IllvilJa joined
00:33
drupek12 joined
00:39
nipotaway is now known as nipotan
00:45
Jamtech joined
00:52
REPLeffect left,
REPLeffect joined
01:14
weinig|errands is now known as weinig
01:20
jisom joined
01:25
drupek12 left
01:32
jeffreykegler left
01:35
drupek12 joined
01:47
daxim_ left
02:03
kanru left
02:21
bonesss left
02:29
[particle1 left
02:31
weinig left
02:36
[particle] joined
02:43
Jamtech left,
Jamtech joined
02:52
adorablepuppy joined
|
|||
adorablepuppy | hello | 02:52 | |
Tene | Hi! | 02:54 | |
adorablepuppy | I need regex help. :) Though I am currently asking in #regex. | 02:57 | |
Tene | I can help you with Perl 6 Rules, which are the replacement for regexes. | 02:58 | |
adorablepuppy | ok | ||
Tene | If you want regex help, though, #regex or #perl are better places. | 02:59 | |
adorablepuppy | thanks | 03:00 | |
03:01
adorablepuppy left
03:05
elmex_ joined
03:16
IllvilJ1 joined
03:17
IllvilJa left
03:19
spinclad left
03:20
elmex left
03:30
spinclad joined
03:49
weinig joined,
weinig left
03:50
weinig joined
04:00
amnesiac joined
|
|||
pugs_svnbot | r18252 | Darren_Duncan++ | ext/Muldis-DB/ : the Muldis DB API now has users specify the AST language of interaction | 04:03 | |
diff: dev.pugscode.org/changeset/18252 | |||
lambdabot | Title: Changeset 18252 - Pugs - Trac | ||
04:16
lyokato joined
04:22
torz joined
04:57
torz left
04:59
Ashizawa joined
05:08
hkb_zz_ is now known as hkb_lab
05:17
REPLeffect left
05:22
amnesiac left
05:23
jisom left
05:39
gaal left
05:43
Jamtech left,
r0bby left
05:45
lyokato left
05:48
lyokato joined
05:59
kanru joined
06:26
riffraff joined
06:37
araujo left
06:42
araujo joined
07:02
drrho joined
07:11
iblechbot joined
07:14
drbean_ joined
07:19
drbean left
07:20
drbean_ is now known as drbean
07:33
Aankhen`` joined
07:38
cognominal_ joined
07:39
bsb left
07:59
franck___ joined
08:14
GeJ left
08:16
c403876 joined
08:18
c403876 is now known as fridim
08:26
penk left
08:28
riffraff left
08:31
dduncan left
08:39
cognominal_ left
09:02
nipotan is now known as nipotaway
09:04
masak joined
09:11
GeJ joined
09:14
GeJ left
09:20
GeJ joined
09:39
daxim_ joined
09:40
r0bby joined
09:42
hkb_lab is now known as hakobe
09:45
nipotaway is now known as nipotan
|
|||
pugs_svnbot | r18253 | Aankhen++ | [kp6-lisp] | 09:47 | |
r18253 | Aankhen++ | * don't explicitly specify package of MAIN function in generated code. | |||
r18253 | Aankhen++ | * implemented `our` variables. | |||
diff: dev.pugscode.org/changeset/18253 | |||
lambdabot | Title: Changeset 18253 - Pugs - Trac | ||
09:47
ruoso joined
|
|||
pugs_svnbot | r18254 | Aankhen++ | * [kp6-lisp] implemented truth for hashes. | 09:56 | |
diff: dev.pugscode.org/changeset/18254 | |||
lambdabot | Title: Changeset 18254 - Pugs - Trac | ||
pugs_svnbot | r18255 | Aankhen++ | * [kp6-lisp] more robust (DECLARE (IGNORABLE ...)) handling in WITH-KP6-{PAD,PACKAGE}. | 09:59 | |
diff: dev.pugscode.org/changeset/18255 | |||
lambdabot | Title: Changeset 18255 - Pugs - Trac | ||
09:59
franck____ joined
10:01
franck____ left,
franck____ joined
10:04
franck___ left
10:08
franck____ left
10:09
franck___ joined
10:20
riffraff joined
10:25
prefiks joined
10:29
fridim left
10:42
iblechbot left
10:44
fglock joined
11:05
Ashizawa left
11:38
fglock left,
fglock joined
11:40
rfordinal_ joined
11:52
masak left
11:57
cmarcelo joined,
rfordinal left
|
|||
fglock | I was reading about efficient threads, and I thought how about using BerkeleyDB (and C) as a backend | 11:57 | |
12:16
iblechbot joined
12:17
nipotan is now known as nipotaway
|
|||
avar | Aankhen``: boo | 12:20 | |
fglock: why use bdb for threads? | |||
Aankhen`` | avar: Eek. | 12:26 | |
12:26
jeffreykegler joined
12:30
rfordinal_ is now known as rfordinal
|
|||
avar | echo '%hash.elems' | perl kp6-mp6-perl5.pl --lisp | 12:37 | |
I guess that's object methods for ya:) | |||
Aankhen`` | Indeed. | ||
I'm working on signatures right now. | |||
Then I'll turn to subs. | 12:38 | ||
avar | :) | ||
12:38
cmarcelo left
|
|||
Aankhen`` | Why did the metamodel-in-Perl 6 die out? | 12:39 | |
Aankhen`` wanders off for a while. | |||
allbery_b | andrea vanished | 12:40 | |
er, audrey. /me thwaps brain | |||
12:41
cmarcelo joined
12:43
HiTech69 joined
|
|||
Aankhen`` | allbery_b: Ah, I didn't realize audrey was also working on it. Looks like you're not the only one whose brain is malfunctioning. ;-) | 12:48 | |
allbery_b just isn't fully awake yet | 12:49 | ||
avar | also? who else? | 12:50 | |
12:53
iblechbot left
12:55
blindfish joined
12:56
ggoebel joined
|
|||
fglock | avar: re bdb, because it seems to do it right | 12:56 | |
12:56
ggoebel left
|
|||
fglock | or maybe not - www.oracle.com/technology/documenta...am/mt.html | 13:02 | |
lambdabot | Title: Berkeley DB Reference Guide: Multithreaded applications, tinyurl.com/2ekxq3 | ||
allbery_b | bdb seems to crap itself a lot, in my experience | 13:03 | |
13:17
jhorwitz joined
|
|||
fglock goes read about erlang again | 13:20 | ||
Juerd | lwn.net/Articles/252073/ | 13:23 | |
lambdabot | Title: To Sir, with Love: How To Get More Women Involved in Open Source (O'ReillyNet) [ ... | ||
Juerd | Oh my... | ||
13:24
vbattsAtWork joined
13:33
lichtkind joined
13:36
cognominal_ joined
13:37
masak joined
|
|||
avar | fglock: What does bdb have to do with /threads/? | 13:38 | |
Use it to store something related to them | |||
? | |||
allbery_b | several packages use bdb's locking specifically for thread synchronization, ignoring the actual database foo | ||
fglock | avar: I don't know yet, I'm reading about it | 13:39 | |
13:41
ferreira joined
|
|||
fglock | i'm not particularly interested on bdb, just fast threads | 13:41 | |
ferreira | hi folks! I invite you to take a look at the next article on Perl 6 operators: feather.perl6.nl/~ferreira/perl6-op...pare2.html | 13:43 | |
lambdabot | Title: compare2.pod6 | ||
fglock | ferreira: @values.sort( { $^b cmp $^a } ) # don't need the arrow | 13:48 | |
@values.sort: { $^b cmp $^a } # don't need paren | 13:49 | ||
13:50
felipe left
13:51
zomgb00bie joined
13:55
lyokato left
|
|||
ferreira | fglock: ok. This is much prettier ;-) That means placeholders are not only for -> { } things ? | 13:57 | |
rhr | in fact I think placeholder vars are illegal in pointy blocks by S06:1402 | ||
ferreira | oops | ||
13:58
amnesiac joined
|
|||
Gothmog_ | But you could write -> $a, $b { $b cmp $a } iirc | 13:59 | |
That of course isn't as nice as { $^b cmp $^a }. :) | |||
ferreira | now fixed. | ||
rhr | TimToady: should S04:293 have the -> removed because of the $^thing ? | ||
ferreira | Gothmog_: that's exactly what I thought ;-) | 14:00 | |
Juerd | ferreira: Comments like "0 before 1" are vague. Do they describe the code? the return value? | ||
ferreira | hum, not really, I just thought of that as anterior to introducing Order::Increase, etc. | 14:02 | |
14:03
Jedai joined
|
|||
masak | ferreira: nice article | 14:04 | |
ferreira | maybe some extra words would convey the intented meaning, without having to repeat Order::Increase, ::Same, ::Decrease thrice. What do you think of "answers 0 before 1" instead of just "0 before 1" and so on? | ||
masak: thanks, you're very kind | |||
masak | in a real-life app, @values.sort: { $^b cmp $^a } should probably be just @values.sort.reverse or similar, because of higher readability | 14:05 | |
but as a proof-of-concept, your example code is just fine | |||
Juerd | ferreira: Operators don't "answer"... They return or evaluate. A full sentence may be in order if you want to avoid the classes | 14:06 | |
14:09
arguile_ is now known as arguile
|
|||
ferreira | masak: got that. I prefered the redundancy that causes 'cmp' to be used. The last example as well would be better written with KeyExtractor's, but I don't even know how to write them, but I think it would be something like: | 14:10 | |
14:10
ruz joined
|
|||
ferreira | @values.sort: ( { $^h<name> }, {$^h<id> } ) but that would be too much (I mean, explaining all these in a light article on <=>, leg and cmp) | 14:11 | |
lambdabot | Unknown command, try @list | ||
Juerd | ferreira: Maybe "returns that 0 is before 1" | 14:17 | |
ferreira: Maybe explain cmp more, like that it does numbers, strings, and objects | 14:18 | ||
14:21
pmurias joined
|
|||
pmurias | hi | 14:22 | |
14:32
pro21ms4 joined
14:35
iblechbot joined
14:36
rindolf joined
14:54
kanru left
14:59
iblechbot left,
iblechbot joined
|
|||
fglock | pmurias: hi | 15:06 | |
15:06
weinig left
|
|||
avar | fglock: isn't there some abstraction for {_value}->{_array} and {_hash} in the p5 runtime? | 15:08 | |
fglock | avar: not sure what you mean, that's the low-level representation | 15:09 | |
avar | just wondering why it wasn't say ::DISPATCH($foo, "array") | 15:11 | |
15:11
cmarcelo left
|
|||
avar | Just wondering how best to implement stuff like ' ( @{ ' ~ $cond.emit_perl5 ~ '->{_value}{_array} } )' in CL | 15:11 | |
pmurias | avar you want to get to p5landish value | ||
15:11
drrho left
|
|||
fglock | ::DISPATCH($foo, "array") works, but it returns an Array object; you need {_array} (or p5landish) to get to the p5 data | 15:12 | |
pmurias | i get it its perl->cl | ||
fglock: what tests are supposed to fail? | 15:13 | ||
avar | so stuff like ' ( ' ( @{ ' ~ $cond.emit_perl5 ~ '->{_value}{_array} } )'@{ ' ~ $cond.emit_perl5 ~ '->{_value}{_array} } )' can be abstracted but the EmitPerl5 emitter is just peeking at internals since it's old code?:) | 15:14 | |
fglock | avar: maybe, can you get an iterator object from lisp Array | ||
15:14
Casan joined,
bcmb left
|
|||
fglock | i think 'for' will end up being implemented as a method on Array/List/Range | 15:14 | |
pmurias: re tests - none :) | 15:15 | ||
15:24
pro21ms4 left
15:28
c403876 joined,
cmarcelo joined
15:29
c403876 is now known as fridim,
HiTech69 left
15:48
f0rth_ left
15:50
f0rth joined
15:52
prefiks left
|
|||
Aankhen`` | fglock: No iterators in CL, AFAIK. | 16:12 | |
avar | no, but you can roll your own in any language | 16:13 | |
Aankhen`` | Sure, | ||
s/,/./ | |||
16:22
justatheory joined
16:25
blindfish_ joined
16:26
chris2 joined
16:30
arrowax joined
16:35
franck___ left
16:38
pinskian joined,
thoughtpolice left
16:42
blindfish left
16:47
IllvilJ1 left
17:00
fridim left
17:05
IllvilJa joined
|
|||
pinskian | xml is arghhh | 17:06 | |
17:06
fridim joined
|
|||
pmurias | pinskian: Captures are a sort of xml | 17:09 | |
17:09
kyrbe joined
17:10
kyrbe left
17:13
masak left
|
|||
pinskian | i want to put digital sig of a file inside xml file, a field will be file name, another will be file signature (for example) | 17:13 | |
how i do not know of | |||
pmurias | <file sig="" filename=""/> | 17:15 | |
what's the problem? | |||
pinskian | BUT | 17:16 | |
newline-free text string | |||
pmurias | pinskian: it it ASCII? | ||
pinskian | no | ||
pmurias | uuencode it | 17:17 | |
or base64 it | |||
17:17
nothingmuch left
17:18
nothingmuch joined
|
|||
pinskian | exactly base 64 encoding | 17:18 | |
thought xml supported newline | |||
pmurias | "exactly base 64 encoding" means? | 17:19 | |
pinskian | there is no work aorund than having to base64 encode t | ||
it | |||
like within xml it self a newline-free txt string | 17:20 | ||
17:23
riffraff left
|
|||
Aankhen`` didn't understand the problem. | 17:27 | ||
pmurias | how to store binary data in a xml file | 17:28 | |
17:28
pinskian left
|
|||
Aankhen`` | Why use XML for binary data? | 17:28 | |
(ignoring "why use XML at all?" for now.) | |||
/\(i/(I/ | 17:29 | ||
s/^/s/, too. :-P | |||
pmurias | the binary data is a checksum | ||
Aankhen`` | Ah. | ||
pmurias | a digital signature | ||
17:35
jmardonesss joined
|
|||
pmurias | a script to check in which of the last revision in kp6 a test work would be helpfull | 17:35 | |
17:37
felipe joined
|
|||
pmurias | * revisions,worked | 17:37 | |
pugs_svnbot | r18256 | pmurias++ | [kp6] Match isa Capture | ||
diff: dev.pugscode.org/changeset/18256 | |||
lambdabot | Title: Changeset 18256 - Pugs - Trac | ||
17:38
Psyche^ joined
|
|||
pmurias hates typoes | 17:38 | ||
fglock: test 50 fails | 17:40 | ||
17:41
weinig joined
|
|||
fglock | pmurias: looking | 17:43 | |
17:43
ludan joined
|
|||
ludan | hi | 17:44 | |
17:51
riffraff joined,
Patterner left,
Psyche^ is now known as Patterner,
weinig left
|
|||
fglock | home & | 17:52 | |
/home - not yet | 17:57 | ||
pmurias: it's broken for some time | |||
now home & | |||
pmurias | fglock: autothreading on method calls broke it | 18:03 | |
the $.type should be specified in the constructor rather the by calling an attribiute | 18:04 | ||
18:07
zomgb00bie_ joined,
zomgb00bie left
18:10
barney joined
|
|||
TimToady | fglock: fwiw the semantics of for are currently defined to be equivalent to map. | 18:11 | |
18:15
yum__ left
18:18
fridim left,
fglock left
18:26
Torment joined
18:30
justatheory left
18:33
justatheory joined
18:37
dduncan joined
18:42
chris2 left
18:43
Jedai left
18:44
fglock joined
18:56
jisom joined
19:13
REPLeffect joined
19:15
blindfish__ joined
19:19
prefiks joined
19:20
prefiks left
19:25
blindfish_ left
19:29
barney left
19:32
drupek12 left,
riffraff left
19:34
arguile left
19:36
jmardonesss left
19:39
jisom left
19:51
weinig joined
19:58
weinig left
20:05
drupek12 joined
20:13
_chris_4 left
20:14
fglock left
20:37
hoelzro joined
20:47
hoelzro left
20:58
blindfish__ left,
pmurias left
21:14
weinig joined
21:16
Caelum left
21:24
weinig left
21:30
Aankhen`` left
21:40
rindolf left
21:51
vbattsAtWork left
21:54
iblechbot left
21:57
integral left
22:01
jhorwitz left
22:03
Caelum joined,
weinig joined
22:12
weinig left
22:15
amnesiac left
22:18
weinig joined
22:20
weinig left
22:34
IllvilJa left
22:42
Caelum left
22:50
ferreira left
22:58
mr_ank joined
23:00
mr_ank left
|
|||
ludan | goodnight | 23:01 | |
23:01
ludan left
23:04
hoelzro joined
23:15
mr_ank joined
23:16
cmarcelo left
23:19
arrowax left
23:22
Schwern left,
Schwern joined
23:37
Limbic_Region joined
23:46
lichtkind left
23:59
Caelum joined
|