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:12
avar joined
00:20
bonesss joined
00:32
cj_ joined
|
|||
allbery_b rebuilds pugs for the first time in 3 weeks | 00:35 | ||
allbery_b sighs --- still no smoke test | 00:43 | ||
what do I have to downgrade to fix "Reference found where even-sized list expected" from Test::TAP::Model? | 00:44 | ||
(or perhaps upgrade form !CPAN?) | |||
00:46
bennymack joined
01:00
]ramzi[ joined
01:06
hcarty joined
01:15
buetow joined
|
|||
TimToady | [1]+ Interrupt timtoady --runloop slow | 01:23 | |
01:33
tech left
|
|||
wolverian | heh | 01:34 | |
01:35
neonse left
01:36
ozo joined
01:51
spo0nman joined
02:02
Salzh joined
02:21
lypanov joined
02:34
araujo joined
02:57
Eidolos joined
03:32
prism joined
03:36
datasieve joined
03:48
luqui joined
03:54
finchel1 joined
04:23
weinig is now known as weinig|snoozel
04:38
nipra joined
04:52
idiotmax joined
|
|||
luqui needs a commit bit... | 05:12 | ||
TimToady | addr? | 05:13 | |
luqui | [email@hidden.address] (that kind of addr?) | ||
TimToady | yes, hang on... | ||
audreyt | done. :) | 05:14 | |
TimToady | darn it... :) | ||
too slow finding the bookmark... | |||
luqui | :-) | ||
audreyt | invite.pugscode.org | ||
the next time | |||
TimToady | I have a bookmark in my toolbar for it... | 05:15 | |
audreyt | svn.openfoundry.org mergeback seems to be running fine | ||
will do svn.perl.org soon | |||
xinming | audreyt: Could I do setup for svn.perl.org? :-) | ||
TimToady | is that to allow commits anywhere? | ||
audreyt | xinming: not sure Robrt will let you do that | 05:16 | |
xinming | hmm, | ||
audreyt | TimToady: bidi commit, yes, but need clkao et al for it | ||
xinming doesn't know if he has enough knowledge for this | |||
audreyt | will resume one-directional first | ||
TimToady | how does it handle collisions? | ||
audreyt | proxy | 05:18 | |
commit to master first | |||
so, atomic | |||
no collisions | |||
i.e. the proxy commits to master on behalf of the user | |||
TimToady | how does that help to have things more local then? | ||
audreyt | faster checkout and commit | ||
potentially federated auth | |||
TimToady | k | 05:19 | |
have you looked at recent syn diffs? | |||
audreyt | I finally set up my new screen via voodoo means | ||
05:19
RHainsworth joined
|
|||
audreyt | yes, I had, just yesterday | 05:19 | |
05:19
RHainsworth left
|
|||
audreyt | the stmt-expr-introducer unification is very nice! | 05:19 | |
luqui just implemented gather as statement_prefix | 05:20 | ||
TimToady | hope so. it's actually the very dangling syntax I profess to despise. :) | ||
luqui | and is waiting on his invite... | ||
audreyt | luqui: check spam folder too | ||
luqui | nada | 05:21 | |
audreyt | ok. sec | ||
I typo'ed your addr | 05:24 | ||
sent again | |||
TimToady | hah, I shoulda done it anyway... | ||
audreyt | indeed | ||
luqui | ahh, got here in a flash | ||
audreyt | cool | ||
need to get lunch soonish | 05:25 | ||
but try to commit first and if there's some problems I can fix it in time :) | |||
TimToady | it's customary to add your name to AUTHORS first. :P | ||
audreyt | welcome aboard! </dejavu> | 05:26 | |
luqui | commited sucessfully | ||
svnbot6 | r14903 | luqui++ | Implement gather as statement_prefix:<gather> as of S02 r13492 | ||
audreyt | wow, quick | ||
TimToady | luqui++ | ||
audreyt | luquick++ | ||
lunch, bbl, hopefully with integrated MO dispatch | 05:27 | ||
& | |||
luqui | i didn't implement the whole statement_prefix class, unfortunately, I just hacked in gather | 05:28 | |
TimToady | details, details... | ||
luqui | is there an architecture for the grammatical classes yet? | 05:34 | |
TimToady | depends on what you mean by an architecture. from the standpoint of P6 grammars, it's supposed to be accessed via magic hashes: <%foo|%bar|%baz> that do longest token automagically. | 05:35 | |
from the other end | 05:36 | ||
we're just looking for handy categories. | |||
haven't really tried to put it all into any kind of matrix or anything. | |||
or are you asking about the Haskell approach to them? | |||
luqui | yeah, the third end | 05:37 | |
TimToady | I don't think pugs does magic hashes yet. | ||
luqui | hmm, does the magic hash approach work for things like infix which have precedence | ||
I suppose it does given operator-precedence parser | |||
TimToady | according to Patrick with PGE, yes. | ||
fridim | In what proportion will "Complete distributions from the Pugs repository" be integreted as the standard modules ? | 05:40 | |
luqui | about the proportion of the continuum hypothesis's truth... | 05:41 | |
(i.e. I (provably) have no idea ;-) | 05:42 | ||
fridim | :] | 05:43 | |
05:53
hcarty joined
06:12
luquibot_r14903 joined
06:13
nekokak_ joined,
luqui joined,
spo0nman joined,
jrockway joined,
cj joined,
frankg joined,
stevan joined,
ashleyb joined
|
|||
pasteling | "luquibot_r14903" at 67.174.183.183 pasted "Pugs build failure" (325 lines, 18K) at sial.org/pbot/21821 | 06:15 | |
06:15
luquibot_r14903 joined
|
|||
gaal | luqui: where's the error? | 06:17 | |
luqui | don't mind that | ||
gaal | does it just hang? | ||
ah. | |||
luqui | I am testing evalbot's ability to catch errors | ||
gaal | hello btw. | 06:18 | |
luqui | hello :-) | ||
pasteling | "luquibot_r14903" at 67.174.183.183 pasted "Pugs build failure" (364 lines, 20.6K) at sial.org/pbot/21822 | 06:20 | |
06:21
luquibot_r14903 joined
|
|||
luqui | ah, that'll do | 06:21 | |
06:23
luquibot_r14903 joined
|
|||
svnbot6 | r14904 | luqui++ | Made evalbot detect build errors and nopaste them. | 06:26 | |
07:18
nipra joined
07:28
scw joined
07:48
elmex joined
08:01
nipra joined
08:28
RHainsworth joined
08:34
RHainsworth left
08:56
iblechbot joined
09:12
devogon joined
09:16
idiotmax joined
09:24
xinming joined
|
|||
svnbot6 | r14905 | kudra++ | Summary for the week | 09:37 | |
09:50
DHGE joined
09:54
larsen_ joined
|
|||
svnbot6 | r14906 | kudra++ | A tutorial for people who might be writing summaries in the future | 10:04 | |
10:14
foo\ joined,
penk joined
|
|||
Tene | I can't seem to find this in the docs anywhere... BUILD isn't called when adding a role to a pre-existing object... is there anything that is? | 10:20 | |
10:21
xinming joined
10:46
mj41_ joined
11:15
baest joined
11:44
lihaitao joined
|
|||
DebolazX | www.rafb.net/paste/results/p1hFXz75.txt <- Just something I spotted with pugs --help | 11:56 | |
wolverian | DebolazX, good catch. looks like it's in 14906 too | ||
12:05
foo\bar joined,
TimToady joined
12:06
bonesss joined
12:16
elmex joined
|
|||
wolverian | hm. | 12:18 | |
do I need to be added again to svn.pugscode.org if my last commit was on openfoundry? | |||
12:26
hcarty_ joined
|
|||
wolverian | damn, make fast really is fast. :) | 12:31 | |
12:32
nipra joined
|
|||
wolverian | DebolazX, I have it fixed in my local rep, I just can't commit right now. :) | 12:38 | |
12:42
araujo joined,
Nei joined
|
|||
Nei | how do I abbreviate (or write without $_) when 8 <= $_ <= 18 {..? | 12:44 | |
wolverian | when 8..18 { | ||
(but that's integer-precision, I think) | 12:45 | ||
gaal | actually it isn't, though it's all pugs supports right now. | ||
Nei | mhm I tried that but it doesnt seem to work | ||
wolverian | oh. right, it's a Range. | ||
Nei | maybe my pugs is too old | 12:46 | |
gaal | wolverian: msg me your email please | ||
wolverian | gaal, got it? I don't remember if I'm identified :) | 12:47 | |
gaal | you should be able to commit + add committers | ||
wolverian | did I have commitbit or did you add it? | ||
gaal | you already had metacommit | ||
wolverian | oh. is the username my email? | ||
way too long since I last committed. :) | |||
gaal | remember that logins on invite.pugscode.org are full emails, not username | ||
wolverian | thanks! | 12:48 | |
that's it then | |||
I hope I haven't forgotten my password too | 12:49 | ||
gaal | see /msg, your two emails aren't precisely the same | 12:50 | |
wolverian | let's see if I can do it now | 12:53 | |
12:54
elmex joined
13:03
iblechbot joined
13:06
araujo joined
|
|||
wolverian | gaal++ | 13:06 | |
13:07
SCalimlim joined
|
|||
DebolazX | Hmm.. does perl 6 have some keywords for true and false? | 13:08 | |
wolverian | ?eval Bool::True | ||
evalbot_r14906 | Bool::True | ||
wolverian | ?eval true 1 | ||
evalbot_r14906 | Bool::True | ||
wolverian | ?eval true 0 | ||
evalbot_r14906 | Bool::False | ||
DebolazX | Just "True" and "False" worked too. :) | 13:09 | |
gaal | ?eval ?42 | ||
evalbot_r14906 | Bool::True | ||
DebolazX tried "true" and "false". :/ | |||
DebolazX always felt a bit dirty making his own constants for it in perl 5. | 13:17 | ||
13:25
falseep joined
13:26
xinming joined
13:32
elmex_ joined
13:37
lihaitao joined
13:38
TSa joined
13:40
bonesss joined
|
|||
kane-xs | hmm.. who killed irc.perl.org? | 13:40 | |
13:44
elmex joined
|
|||
xinming | kane-xs: ??? | 13:45 | |
kane-xs: It's accessable | |||
wolverian | the whole of magnet is down for me | ||
integral | try accessing a server directly such as cou.ch, irc.mangband.org, irc.hellyeah.org, irc.sloth.org or blizzard.pobox.com | 13:47 | |
13:48
elmex joined
|
|||
xinming | <@mst> yes, it is | 13:48 | |
21:49:35 <@mst> irc.perl.org has a duff box in the round robin dns | |||
13:49
buetow joined
13:55
xinming joined
13:57
ozo joined
14:01
chris2 joined,
xinming joined
14:02
xinming joined
|
|||
wolverian | RA layer request failed: REPORT request failed on '/pugs/!svn/bc/14906': REPORT of '/pugs/!svn/bc/14906': Compressed response was truncated (svn.pugscode.org) aaagh | 14:08 | |
lambdabot | Title: Perl6 Community Development Server | ||
wolverian | oh, it picks up from where it left. yay | ||
Coleoid | nothingmuch: I'm trying to smoke pugs, and getting hundreds of errors out of TAP::Model. | 14:33 | |
"reference found where even-sized list expected..." line 172 | |||
Is this expected? | |||
Or anyone who does smoke testing? | 14:38 | ||
14:45
weinig|snoozel is now known as weinig|away,
bonsai joined
|
|||
allbery_b asked about that last night, no response | 14:45 | ||
I have a vague recollection of someone mentioning that some dependency of Test::TAP::Model changed incompatibly, but I don't know which component or which version is needed for things to work :( | 14:46 | ||
14:46
]ramzi[ left
|
|||
Coleoid | allbery_b: Thanks, I'll let you know if I figure it out... | 14:55 | |
15:14
bonesss joined
15:16
bonesss joined
15:17
BooK joined
15:34
stevan_ joined
15:39
prism joined
15:40
lypanov left
15:46
polettix joined
15:49
larsen__ joined
15:51
pbuetow joined
15:54
marmic joined
16:14
nipra joined
|
|||
wolverian | okay, being paranoid - can anyone else commit? | 16:15 | |
(it's giving me authorisation failed every time.) | 16:16 | ||
audreyt | worksforme. | ||
svnbot6 | r14907 | audreyt++ | * README: Fix trivial typo. | ||
audreyt | goto commitbit.pugscode.org to reset passwd? | 16:17 | |
wolverian | I did. I'll try it again. gaal even created a new account for me, as I thought I had forgotten my p/w | 16:19 | |
no luck. :( | |||
Authorisation failed: MKACTIVITY of '/pugs/!svn/act/c5c71a3a-cf24-0410-b16e-b9fad886dae2': authorisation failed (svn.pugscode.org) | |||
lambdabot | Title: Perl6 Community Development Server | ||
audreyt | are you behid some kind of hostile firewall? | 16:20 | |
/proxy | |||
wolverian | not that I know of :) | ||
audreyt | if so, maybe try svn.pugscode.org/ | ||
16:21
elmex_ joined
|
|||
wolverian | no luck. on svk mirror --relocate I got: Authorisation failed: PROPFIND request failed on '/': PROPFIND of '/': authorisation failed (svn.pugscode.org) | 16:22 | |
audreyt | ew | ||
lemme check | 16:23 | ||
wolverian | no panic. btw, is the darcs mirror pushable? | ||
audreyt | no, not yet | ||
16:25
nipra joined
|
|||
audreyt | wolverian: try again | 16:27 | |
wolverian | which one? :) | ||
audreyt | commit, "wolverian" | ||
wolverian | oh. | 16:28 | |
audreyt | also you seems to be usig your mail as the second account to commit | ||
that wouldn't work | |||
wolverian | right. | ||
I was confused. | |||
sigh. :) | |||
thanks for setting me straight. | |||
audreyt | so it worked? :) | ||
wolverian | I think so! | 16:29 | |
wolverian looks at svnbot6 | |||
svnbot6 | r14908 | wolverian++ | r4@pupu: wolverian | 2006-12-17 18:09:46 +0200 | ||
r14908 | wolverian++ | Small refactoring to Help.hs, and move the backends line up, spotted by DebolazX++ | |||
audreyt | woot | ||
wolverian | oops, forgot verbatim (again) | ||
audreyt goes happily back to sleep | |||
wolverian | audreyt++ | ||
audreyt | wolverian++ | ||
16:33
nperez joined
16:51
elmex joined
17:03
Belaf joined
17:12
bones_ joined
17:29
gnuvince joined
|
|||
svnbot6 | r14909 | wolverian++ | Pugs is -Ofun under the benevolent typechecker... | 17:29 | |
wolverian | (I added banks's culture series to READTHEM) | ||
fridim | karma wolverian | 17:42 | |
wolverian | did you mean @karma? | 17:43 | |
fridim | To know how many ++ you've got :) | ||
wolverian | @karma wolverian | 17:45 | |
lambdabot | You have a karma of 3 | ||
wolverian | hmm. | ||
@karma audreyt | |||
lambdabot | audreyt has a karma of 41 | ||
wolverian | heh. | ||
meppl | gute nacht | 17:50 | |
17:54
neonse joined
18:18
norageek joined
18:19
Psyche^ joined
18:27
nothingmuch joined
18:35
Psyche^ is now known as Patterner
18:50
stevan_ is now known as stevan
19:09
miyagawa joined
19:13
elmex joined
19:53
rafl__ joined
19:57
rafl__ is now known as rafl
|
|||
fridim | @karma fridim | 20:31 | |
lambdabot | You have a karma of 0 | ||
fridim | fridim-- | ||
@karma fridim | |||
lambdabot | You have a karma of 0 | ||
fridim | of course, i can't. | 20:32 | |
perl6++ | |||
wolverian | heh | ||
fridim | OO++ | ||
what is the reason to have not done : for my $i in @alist { } ? | 20:33 | ||
wolverian | probably it was felt that the array should be mentioned first. | 20:34 | |
20:34
prism joined
|
|||
DebolazX discovers the : | 20:36 | ||
I.. I can use whitespace again. :O | 20:37 | ||
20:38
Aankhen`` joined
|
|||
DebolazX | $foo.bar: 1,2,3; is actually a syntax I've wanted. So it was sort of a weird experience that I just discovered while reading S12 that you actually can do that.. | 20:41 | |
20:41
prism joined
20:48
bones_ is now known as bonesss
20:54
finchely joined
21:03
awwaiid joined
21:17
Ovid joined
21:20
Ovid joined
|
|||
Ovid | Anhyone here? | 21:21 | |
21:22
Ovid left
21:23
dduncan joined
21:24
Ovid joined
|
|||
Ovid | Anyone listening right now? | 21:24 | |
allbery_b | fsvo | 21:27 | |
Ovid | What's 'fsvo'? | ||
allbery_b | 'for some value of' | ||
Ovid | Ah. | ||
21:28
luqui joined
|
|||
allbery_b is actually tracking #haskell and cognet:#lopsa and occasionally peeking in here when xchat2 says there's been activity | 21:28 | ||
Ovid | Well, if anyone is listening and knows the answer, I'm curious as to why the following is only printing the letter "h". | ||
my @array = <a b c d e f g h i j k>; | |||
@array.splice(3, 5).perl.say; | |||
lambdabot | Unknown command, try @list | ||
luqui | Ovid, looks like a bug to me | 21:30 | |
looks like a context thing | |||
?eval my @a = <a b c d e f g h i j k>; @a.splice(3,5) | 21:31 | ||
evalbot_r14909 | "h" | ||
Ovid | I was thinking that, but I can't find where the exact behavior of splice() is documened for Perl 6. If it's returning a list, am I only calling 'perl.say' on the first element? | ||
luqui | ?eval my @a = <a b c d e f g h i j k>; my @b = @a.splice(3,5); @b | ||
evalbot_r14909 | ["d", "e", "f", "g", "h"] | ||
luqui | ought to be documented in docs/Perl6/Spec/Functions.pod | 21:32 | |
Ovid | Thanks! | 21:33 | |
luqui | but return values are not documented there :-) | ||
darn | |||
Ovid | Yeah, reading through it now. | 21:34 | |
luqui | it seems like the behavior we're seeing is explicitly written | 21:36 | |
Ovid | Hmm, at least there's a decent sized test for it in t/builtins/array/splice.t. | ||
luqui | Prim.hs:1427: ifListContext (return $ VList vals') (return $ last (undef:vals')) | 21:37 | |
GeJ | Gorr morning all | 21:38 | |
Ovid | Morning. | ||
luqui: I don't know what that means. | 21:39 | ||
luqui | it says "if we're in list context, then return the spliced values; if we're in scalar context, return the last of such values" | ||
(or undef if there are none) | |||
Ovid | Ah, so that's scalar context because we're calling the perl() method. What would be a reasonable fix? | 21:41 | |
luqui | well, the fix is easy, if it should be fixed... | ||
Ovid | Er, more importantly, what's the exact behavior which should be expected here? | ||
luqui | unspecced, but the test suite thinks it's working just how it should | ||
but it isn't working the way I think it should ;-) | 21:42 | ||
Ovid | Agreed :) | ||
luqui | so do you think it should return a reference to the list in scalar context? | 21:45 | |
Ovid | It would either be a reference to a list or a count, I should think. I think a reference to a list would be more appropriate and would fix this "almost" bug. | 21:46 | |
luqui | ref makes more sense, since if you put it in numeric context you'll get a count | ||
Ovid | Ah, right. I forgot about numeric context. (Trying to reread a bunch of synopses right now as I'm so far behind in my Perl 6 knowledge). | 21:47 | |
svnbot6 | r14910 | luqui++ | Specced the return value of splice. @Larry.check xx 2. | 21:51 | |
Ovid | I also have to say that the Perl 5 behavior of returning the last item from a list while in scalar context is just about useless (though I understand why it's done), so I'd be happy to see that behavior go away in Perl 6. | ||
Luke: You specced that behavior. Did you write a test? If not, I'd be happy to take a stab at it. | 21:52 | ||
luqui | go ahead. I'll work on the implementation | ||
ingy | hola | ||
luqui | hola ingy | ||
Ovid | Hi ingy. | ||
ingy | hi luqui | ||
and Ovid sir | |||
Kwiki should soon have plugins written in Perl 6 | 21:53 | ||
luqui | :-) | ||
Ovid | luqui: I do notice that the tests explicitly say that in scalar context it returns the last element. Does this imply that this was a desired feature, or did someone make the tests fit the current behavior? | 21:54 | |
luqui | I'm thinking that it was desired (probably because that was perl5's behavior). So I changed it, and asked to get smacked if I was wrong :- | 21:55 | |
:-) | |||
Ovid | Er, just to make sure I'm not smoking crack, is the following test valid? | 21:59 | |
svnbot6 | r14911 | luqui++ | Implemented listref return value for splice. | ||
Ovid | @a = ('red', 'green', 'blue'); | ||
is( splice(@a, 1, 2), [<green blue>], | |||
"splice() in scalar context returns an array reference"); | |||
lambdabot | Maybe you meant: all-dicts arr ask . v | ||
luqui | I think that will work... so long as is() takes a scalar as its first argument | 22:01 | |
you can commit, right? | |||
Ovid | There was a test already there which verified "splice() in scalar context", so I just altered the second argument. And yes, I have a commit bit, but I haven't used it in a while, so we'll see :) | 22:02 | |
My commit bit appears to have been flipped :( (or I have my password wrong) | 22:05 | ||
jrockway | Ovid: i think you can reset your password via the CommitBit interface, but I could be wrong | 22:07 | |
it also shows a list of committers that it knows about, so check if you're on it :) | |||
Ovid | Where would I find that? | 22:08 | |
luqui | Ovid, what's your email | 22:09 | |
jrockway | it's at commitbit.pugscode.com | ||
luqui | (pm if you like) | ||
jrockway | you're on the list, but there's no password reset interface :/ | ||
Ovid | I see now. There was a link Audrey sent me to change my password, but I get redirected to svn.pugscode.org:9999/error/let_me/invalid_token | 22:10 | |
luqui | hm, | ||
I'll try again | 22:11 | ||
22:20
Debolaz joined
22:26
devogon joined
|
|||
luqui | does anybody know how to relocate to the new repo using svn? | 22:28 | |
Ovid | Anyone know subversion? I'm getting the following error when I try to relocate the repository: | ||
pugs $ svn switch --relocate svn.openfoundry.org/pugs svn.pugscode.org/pugs/ | |||
subversion/libsvn_client/relocate.c:54: (apr_err=195009) | |||
svn: The repository at 'svn.pugscode.org/pugs' has uuid 'c213334d-75ef-0310-aa23-eaa082d1ae64', but the WC has '12242aa7-dc21-0410-817b-c41c31cd50c7' | |||
lambdabot | Title: Revision 14911: / | 22:29 | |
Tene | Hey, luqui did you know that on IRC you can associate a string of text with a channel. | ||
They call it a "topic" | |||
Ovid | :) | ||
luqui | Tene, did you know that the topic is talking about svk, and we are talking about svn | ||
Tene | It's often used to put useful information in an easily-accessible place. | ||
luqui: look closer. | |||
Ovid | The topic says 'svn switch ...", not svk. | 22:30 | |
luqui | duh | ||
Tene | What are the first three letters? | ||
luqui | did it used to talk about svk? | ||
Tene | Nope. | ||
luqui | okay. well, I was really asking on behalf of ovid | 22:31 | |
so, do s:g/luqui\N*$// on the last 20 lines or so | 22:33 | ||
Ovid | Whee! Looks like I have commit access again. | 22:54 | |
svnbot6 | r14912 | Ovid++ | Test that splice in scalar context return an array reference. | ||
r14912 | Ovid++ | This is for a bugfix by luqui where the following would only print the last | |||
r14912 | Ovid++ | element of the splice: | |||
r14912 | Ovid++ | @some_array.splice(3,7).perl.say; | |||
Ovid | OK, heading to bed. Night all! | 22:58 | |
Debolaz | What was the motivation behind an operator like =+<<? It seems more or less just to prove that it can be done, $foo += sum @bar; seems more readable without any obvious disadventages.. | 23:17 | |
luqui | where do you see an operator like =+<< ? | 23:19 | |
jrockway | << doesn't imply hyper in this case? although i would probably write my $sum = @number>>.sum | 23:21 | |
luqui | oh, I suppose you mean +=<< ? | ||
jrockway | actually that doesn't make sense | 23:22 | |
dduncan | So are there GHC 6.6 binaries available for BSD now? I didn't see any mentioned at haskell.org/ghc/download_ghc_66.html , but audreyt said that was a precondition for removing 6.4.x support from Pugs, and said support was removed today. | ||
lambdabot | Title: GHC: Download version 6.6 | ||
luqui | that makes sense if @number is an array of arrays | ||
Debolaz | Actually, I just read it in "Perl 6 Now". | ||
jrockway | really depends on how smart "sum" is | ||
yeah | |||
Debolaz | It just occured to me that the book is a bit outdated to the current development status. | ||
jrockway | sum (a,b,c,d) = sum(sum(a,b),sum(c,d)) | ||
but that's not what >> does | 23:23 | ||
dduncan | afaik, sum in Perl 6 is spelled [+] | ||
jrockway | right, i'm just being explicit | ||
dduncan | in other words, reduce meta-operator on + | ||
jnthn | So $sum += [+] @values; is the same as $sum +=<< @values; ? | 23:24 | |
luqui | woah, pugs has gotten smarter | 23:25 | |
Debolaz | Perl 6 Now has this explicit example that "$count =+<< @things" is the exact (in terms of results) equivalent of "for (@things) { $count += $_ }" | ||
luqui | ?eval sub infix:<@@> ($a, $b) { $a + $b }; [@@] 1..10 | ||
evalbot_r14912 | 55 | ||
jnthn | I'm sure that should be +=<< rather than =+<< | 23:26 | |
luqui | Debolaz, well, perhaps, except order is not guaranteed. So if your + is not commutative and associative then it's not necessarily the same.. | ||
but then you shouldn't call things that aren't commutative and associative "+" | |||
jrockway | the =+<< makes more sense | 23:27 | |
Debolaz | luqui: Just quoting the book. | ||
jrockway | since $sum is not affected by =+<< , hopefully | ||
maybe we need +=+<< :) | |||
luqui | =+<< is two operators isn't it? | ||
@y =+<< @x # numify all elements in x and assign to y | 23:28 | ||
lambdabot | Maybe you meant: yarr yhjulwwiefzojcbxybbruweejw yow . v | ||
luqui | lambdabot is too smart. that's exactly what I meant! | ||
jnthn | luqui: That's what I was seeing. | 23:29 | |
luqui | oh, wait | ||
jnthn | I'd expect +=<< to be adding each thing in the array to whatever is to the left hand side... | ||
luqui | we've flip-flopped on this too much | ||
jnthn | Yeah, I know hypers have changed a bit...I may be out of date. | 23:30 | |
luqui | but +=<< isn't an operator (or at one point it wasn't); it should be >>+=<< | ||
23:30
bsb joined
|
|||
jrockway | why both? | 23:30 | |
jnthn | Aha, since you got an array either side. That's sane. | ||
luqui | because += is binary | ||
jrockway | isn't the >>(something<< for lists on each side? | ||
yeah | |||
luqui | well, last I was here (which was a while ago), it didn't matter which was on which side | ||
jrockway | hehe | ||
luqui | binary operators get >><<, unaries get >> and << | 23:31 | |
jnthn thought he understood hypers once :-) | |||
23:31
Psyche^ joined
|
|||
jrockway | it makes sense when @list2 = @list1>>.method | 23:31 | |
after that... | |||
GeJ | dduncan: audreyt said that 6.4 can be used to bootstrap 6.6. Writing a PR to FreeBSD to upgrade ghc is in my TODO list, but you can probably do it too. | ||
luqui | ?eval my @y = (1..5); say =@y; say =@y; say @y; | 23:32 | |
Debolaz uses 6.6 on FreeBSD. Built manually though. | |||
dduncan | well, I don't use BSD myself, but I understood that other people did, and for their sake the 6.4 support removal was being delayed | ||
evalbot_r14912 | OUTPUT[123451234512345] Bool::True | ||
luqui | ?eval my @y = (1..5); say +=@y; say +=@y; say @y; | 23:33 | |
evalbot_r14912 | OUTPUT[] Error: Can't modify constant item: VBool True | ||
luqui | ?eval my @y = (1..5); say +(=@y); say +(=@y); say @y; | ||
evalbot_r14912 | OUTPUT[12345] Bool::True | ||
luqui | ?eval my @y = (1..5); say +(=@y),";"; say +(=@y),";"; say @y; | ||
evalbot_r14912 | OUTPUT[1;2;345] Bool::True | ||
luqui | ?eval my @x = 1..3; my @y = 4..6; @x >>+<< @y | 23:34 | |
evalbot_r14912 | (5, 7, 9) | ||
luqui | ?eval my @x = 1..3; my @y = 4..6; @x >>+=<< @y | ||
evalbot_r14912 | Error: Unexpected ">>+=<<"expecting operator | ||
luqui | hmm | ||
?eval my $x = 0; my @y = 4..6; $x +=<< @y | |||
evalbot_r14912 | Error: Unexpected end of inputexpecting block, "\\", variable name, ">>" or "<<" | ||
luqui | oh | ||
+=<< is parsed as += << (where the << opens a quote) | 23:35 | ||
GeJ | dduncan: Ok, well, I'll try to find some time this week | ||
23:47
Psyche^ is now known as Patterner
23:57
buetow joined
|