svn switch --relocate svn.openfoundry.org/pugs svn.pugscode.org/pugs/ | run.pugscode.org | spec.pugscode.org | paste: sial.org/pbot/perl6 | pugs.blogs.com Set by avar on 16 November 2006. |
|||
00:14
neonse left
00:28
theorb is now known as theorbtwo,
falesca joined
|
|||
prism | god that feels better | 00:35 | |
just managed ti get rid of this solid lump of crap from out my nose | 00:36 | ||
was about hald the siez of a golf ball | |||
serves me right for beta testing Microsoft-Nose I guess | |||
00:47
froggero1 joined
00:55
mdiep joined
01:02
devogon joined
01:11
Khisanth joined
|
|||
SamB | Microsoft-Nose? | 01:13 | |
do they also offer a pie-thumb? | 01:14 | ||
01:14
ozo joined
01:18
prism joined,
mdiep joined
01:21
Aankh|Clone joined
01:27
ludan joined
01:44
lisppaste3 joined
02:04
ABC joined
02:07
ozo left
02:30
dmq joined
02:39
lisppaste3 joined
03:05
nekobaka joined
03:20
whooosh joined
03:39
nekobaka left
03:54
H0LE joined
04:51
H0LE left
05:16
silug joined
05:21
root4o joined
|
|||
root4o | hi | 05:21 | |
I watched this :video.google.com/videoplay?docid=44...ngEDU+lisp | 05:24 | ||
and was wondering does Perl6 allow double/triple/etc i.e. multi-level-dispatch as discribed here..... or it just normal-multimethod dispatch ala advanced-java ? | |||
lambdabot | Title: Practical Common Lisp - Google Video, tinyurl.com/y7pe72 | ||
root4o | FYI : searching for "engEDU" in video.google.com shows many very interesting conferences on different topics.... | 05:27 | |
TimToady | root4o: it can do either depending on where you put semicolons instead of commas. | 05:45 | |
root4o | aha..10x | 05:50 | |
06:14
BooK_ joined
06:49
iblechbot joined
07:00
Teratogen joined
07:13
root4o left
07:27
offby1 joined
|
|||
offby1 | cgi.ebay.com/IBM-Correcting-Selectr...dZViewItem | 07:27 | |
lambdabot | tinyurl.com/yzux7w | ||
offby1 | hooray | ||
thanks Mr lambdabot! | |||
07:27
offby1 left
|
|||
nothingmuch | stevan: monzy started it all, for us | 07:33 | |
meppl | good morning | 07:49 | |
good morning nothingmuch and lambdabot | |||
08:22
marmic joined
09:07
Teratogen joined,
marmic joined,
BooK_ joined,
lisppaste3 joined,
dmq joined,
Aankh|Clone joined,
mdiep joined,
prism joined,
Khisanth joined,
frankg joined,
Caelum joined,
dduncan joined,
autark joined,
nperez joined,
theorbtwo joined,
pmichaud joined,
plural joined,
leo joined,
coumbes joined,
Patterner joined,
avar joined,
xinming joined,
kanru joined,
sweinig_ joined,
awwaiid joined,
baest joined,
Grrrr joined,
statico joined,
rblackwe joined,
rafl__ joined,
PerlJam joined,
weinig joined,
ofer0 joined,
scsibug joined,
cmeyer joined,
pnu joined,
bcorn joined,
mj41 joined,
araujo joined,
lumi joined,
DebolazX joined,
cj joined,
Coleoid joined,
lambdabot joined,
sri_ joined,
rintaro joined,
miyagawa joined,
meppl joined,
slanning joined,
evalbot_r14854 joined,
TreyHarris joined,
boo_ joined,
Lorn joined,
SCalimlim joined,
Southen joined,
ayrnieu joined,
anatolyv joined,
stevan joined,
idiotmax joined,
mako132 joined,
kolibrie joined,
rgs joined,
Maddingue joined,
takanori_ joined,
LCamel joined,
wilx joined,
mugwump joined,
Yappo joined,
shadowspar joined,
revdiablo joined,
integral joined,
cookys joined,
knewt joined,
Ikarus joined,
bennymack joined,
Shabble joined,
jrockway joined,
perlbot joined,
Debolaz joined,
GeJ joined,
rafl joined,
nekokak joined,
spo0nman joined,
TimToady joined,
norageek joined,
cls_bsd joined,
jabbot joined,
qmole joined,
takesako_ joined,
PerlPilot joined,
ingy joined,
mr_ank joined,
jamessan joined,
svnbot6 joined,
AzureBOT joined,
mtve joined,
buu joined,
diotalevi joined,
spinclad joined,
monkey__ joined,
gaal joined,
pjcj joined,
clkao joined,
nothingmuch joined,
obra joined,
drbean joined,
Tene joined,
scw joined,
nnunley joined,
jiing joined,
broquaint joined,
nelhage joined,
tewk joined,
gugod joined,
amv joined,
dvorak joined,
maquis joined,
eviltwin_b joined,
buubot joined,
wolverian joined,
hcchien_ joined
|
|||
Teratogen | I have a -boobies command in my bot | 09:12 | |
oops wrong chan | |||
09:36
TSa joined
09:52
elmex joined,
ozo joined
10:01
phpError joined
10:09
devogon joined
10:11
lisppaste3 joined
10:15
dduncan left
10:21
ludan joined
|
|||
ludan | ola | 10:21 | |
10:26
ayrnieu joined,
foo\ joined
11:01
lisppaste3 joined
11:08
chris2 joined
11:10
Hamish joined,
Hamish is now known as Hamish`
11:12
foo\bar joined
12:41
neonse joined
12:55
mdiep_ joined
12:59
elmex joined
13:21
meppl joined
13:24
iblechbot joined
13:28
rblackwe joined
13:45
lisppaste3 joined
14:10
RHainsworth joined
14:11
spoop joined
14:28
autark joined
14:39
lisppaste3 joined
15:01
buetow joined
15:15
gnuvince joined
15:21
larsen_ joined
15:32
kanru joined
15:34
larsen__ joined
15:38
ayrnieu joined
15:48
xinming_ joined
16:03
Limbic_Region joined
|
|||
Limbic_Region | anyone around? | 16:22 | |
perlmonks.org/?node_id=587390 # Request for help translating a small bit of p5 into Perl 6 | |||
lambdabot | Title: How to write this in Perl 6? | ||
16:23
Daveman joined,
RHainsworth left
16:35
chris2 joined
|
|||
TimToady | Limbic_Region: interesting. I note that the problem itself doesn't say the numbers have to be contiguous, though the example seems to indicate it. | 16:36 | |
there are many sets of 4 numbers on the same straight line that aren't in one of the 8 cardinal directions | 16:37 | ||
actually, it limits it to vertical, horizontal, and diagonal, but the continguity is still somewhat implied by the example. | 16:43 | ||
anyway, I'll whack on the P6 version... | |||
16:44
kevinG joined
|
|||
Limbic_Region | TimToady - sorry, was AFK | 16:54 | |
TimToady | np | ||
Limbic_Region | TimToady - Project Euler is full of fun 5 minute distractions | ||
I hadn't thought of it as a way practicing Perl 6 | 16:55 | ||
but since blazar asked I thought I should share with the channel | |||
fwiw, blazar is in the hospital with an extremely rare form of cancer | |||
TimToady | Looks like a good way of showing off Perl 6. I just wish XX was implemented... | ||
yow | 16:56 | ||
17:01
spoop joined
|
|||
Limbic_Region | TimToady - if I am reading S03 correctly, xx in p5 is ('foo') x $some_num; | 17:02 | |
? | |||
17:04
lisppaste3 joined
|
|||
TimToady | the X*X cross product metaoperator | 17:05 | |
X and XX are just common shortcuts | 17:06 | ||
Limbic_Region | oh, neat | ||
TimToady | but maybe it's not needed here, since the first line wants to [...] each 4 nums. | 17:07 | |
but I'm sure we can hyper some things. | |||
Limbic_Region | where is XX discussed as a cross product metaoperator? | ||
I see it under metaoperators in S03 | 17:08 | ||
TimToady | S03:1708 | ||
Limbic_Region | ah, didn't look far enough down | 17:09 | |
TimToady | he doesn't realize there's a min operator and [min] either... | 17:10 | |
17:10
bernhard joined
17:20
ashleyb joined
|
|||
Gothmog_ | Limbic_Region: I don't think I found the problem you're talking about, though I'm pretty interested... could you tell me the name of the problem? | 17:24 | |
Limbic_Region | according to blazar's use.perl journal entry (not PerlMonks node) it is problem 14 | 17:28 | |
er um | 17:29 | ||
scratch that | |||
he has apparently written about 2 different problems | |||
the one in his use.perl journal is 14 | |||
the one in the perlmonks node is 11 | |||
Gothmog_ | So it is about "Up Down Left Right" and "Four Fours"? | 17:30 | |
Limbic_Region is trying to remember his password | 17:32 | ||
I haven't done project euler in a long time | |||
Problem 11's description is In the 2020 grid below, four numbers along a diagonal line have been marked in red. | 17:33 | ||
my genious rating has dropped a fair amount as a result of not keeping up with new problems | 17:35 | ||
Gothmog_ | Ah, I see it now... if you aren't logged in and enter 11 in the quick search you get another problem. | 17:36 | |
TimToady | you can click the problem list on the left and get to 11 | ||
Gothmog_ | Ah, that works, too.. | 17:38 | |
Limbic_Region | one of those problems lead me to write Partition::Integer::Unrestricted which I still need to upload to CPAN | ||
pasteling | "TimToady" at 71.139.39.243 pasted "a preliminary pugs-compatible solution" (32 lines, 1.5K) at sial.org/pbot/21546 | ||
Gothmog_ | Strange that the search finds another problem with ID 11. | ||
TimToady | my solution uses max instead of the unimplemented [max], and prints in E notation, albeit with sufficient precision. | 17:39 | |
Limbic_Region | TimToady - are you planning on replying? | 17:40 | |
TimToady | also haven't thought about hyperizing yet, but I'm being dragged out for a walk by my health advisor. :) | ||
yes, but not immediately. | |||
maybe I'll just put up my prelim version now. | 17:41 | ||
Limbic_Region | heh, tell Gloria we said hi | ||
Limbic_Region chuckles as he comes across a flattering picture of Heidi and a not-so-favorable Larry | 17:48 | ||
18:02
autark_ joined
18:12
lisppaste3 joined
|
|||
lisppaste3 | Gothmog pasted "potential XX implementation" at paste.lisp.org/display/31226 | 18:24 | |
Gothmog_ | Seems to work correctly with pugs... | 18:26 | |
And I can't think of a reason why it could go wrong. | 18:27 | ||
18:27
weinig is now known as weinig|lunch
18:29
neonse left
18:34
Psyche^ joined
18:45
autark joined,
Psyche^ is now known as Patterner
18:47
justatheory joined
18:50
neonse joined
19:04
elmex joined
|
|||
TSa | HaloO TimToady, are you back from your walk? | 19:09 | |
nothingmuch | walking++ | 19:13 | |
19:13
pbuetow joined
|
|||
TSa | looks like it,yes | 19:13 | |
19:23
ludan joined
|
|||
wolverian | I don't understand what the heck @dirs is | 19:31 | |
er, @dir | |||
(re: perlmonks.org/?node_id=587390) | |||
lambdabot | Title: How to write this in Perl 6? | ||
wolverian | oh. linear offsets | 19:32 | |
heh. my haskell solution is 15 lines and gives the wrong answer. :) | 19:39 | ||
Gothmog_ | wolverian: @dir is the direction... but I think, 22 is not correct there... | 19:46 | |
wolverian | hrm. shouldn't it be 19 and 21? | 19:48 | |
anyway. I'm not using that method :) | |||
Gothmog_ | Yes, I think so... | 19:50 | |
But it gives the same result, whether you enter 22, 19 or neither. | 19:52 | ||
wolverian | yay, my program now gives the same answer. | 19:55 | |
it's not very pretty, though. :) | 19:56 | ||
lisppaste3 | wolverian pasted "Solution to #11" at paste.lisp.org/display/31238 | 20:01 | |
Gothmog_ | Ah no, we were wrong. 22 is correct. | 20:11 | |
He adds a 0 after every line, so each line has 21 entries... | 20:12 | ||
20:12
ludan joined
|
|||
wolverian | Gothmog_, ah. thanks. | 20:12 | |
20:15
marmic joined
|
|||
Gothmog_ | I could write a much more elegant solution than I have in Perl6 if multidimensional arrays and [;] were implemented... | 20:17 | |
20:31
Aankhen`` joined
20:47
cognominal joined
20:52
lisppaste3 joined
21:01
weinig|lunch is now known as weinig
21:49
theorbtwo joined
|
|||
TimToady | Gothmog_: thanks, I used your version in a followup that throws a lot of fancy tricks at it. | 21:57 | |
21:59
larsen_ joined
|
|||
TimToady | the last statement now reads: | 21:59 | |
say max gather { | |||
for ^@data XX @dir { | |||
take int [*] @data[ $^base »+« $^offs ]; | |||
} | |||
} | |||
the hyperop is actually bogus according to current specs though... | 22:00 | ||
should be «+« instead. | |||
22:06
lisppaste3 joined
|
|||
Gothmog_ | Very nice. But I think I have to correct you: the version of XX I wrote should really work for an arbitrary count of arguments... | 22:12 | |
@a XX @b XX @c ... should work, too. | |||
lambdabot | Maybe you meant: all-dicts arr ask . v | ||
22:13
autark joined
|
|||
Gothmog_ | I don't really know what pugs does with it, but I suppose it's either left or right associative... | 22:16 | |
And therefore it should work as expected. | 22:17 | ||
22:36
lisppaste3 joined
22:38
weinig is now known as weinig|bbl
22:56
Franky joined,
Franky left
22:59
mako132_ joined
23:11
mako132_ joined
23:12
weinig|bbl is now known as weinig
23:21
gnuvince joined
|