Perl 6 - the future is here, just unevenly distributed

IRC log for #rosettacode, 2011-06-28

| Channels | #rosettacode index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:08 Coderjoe_ joined #rosettacode
00:08 Coderjoe left #rosettacode
00:09 mikemol left #rosettacode
00:13 mikemol joined #rosettacode
00:16 kpreid left #rosettacode
00:16 kpreid joined #rosettacode
01:30 kpreid left #rosettacode
02:25 kpreid joined #rosettacode
02:50 kpreid left #rosettacode
02:50 kpreid joined #rosettacode
03:27 BenBE left #rosettacode
03:31 BenBE joined #rosettacode
04:27 sorear_ joined #rosettacode
04:27 sorear left #rosettacode
04:49 sorear_ is now known as sorear
10:54 aLeSD left #rosettacode
11:03 aLeSD joined #rosettacode
12:36 p6eval left #rosettacode
13:30 p6eval joined #rosettacode
14:24 dagnyscott joined #rosettacode
14:39 kpreid left #rosettacode
14:39 kpreid joined #rosettacode
14:42 kpreid left #rosettacode
15:11 dagnyscott1 joined #rosettacode
15:17 dagnyscott left #rosettacode
15:26 kpreid joined #rosettacode
15:34 BenBE left #rosettacode
15:42 mikemol Huh
15:42 mikemol Slashdotted again
15:43 mikemol I saw the article, but didn't look at it; I'd read on the subject elsewhere first.
15:43 mikemol http://slashdot.org/story/11/06/27/0536220/Anno​uncing-Ozma-Extending-Scala-With-Oz-Concurrency
15:45 Hypftier Nice. So RC is becoming sort of a repository of code snippets others can use to illustrate a point? :)
15:49 * mikemol looks at TimToady >>
15:49 mikemol :P
15:50 mikemol Last time, I think they linked to the Hailstone Sequence page, just for illustrative purposes.
15:57 kpreid left #rosettacode
16:02 mwn3d_phone People are still stumbling upon ethiopian multiplication
16:02 mwn3d_phone That started a long long time ago
16:03 mikemol They always will; any time some other page on RC gets stumbled, SU's application raises the weight of the site as a whole in its selection algorithm.
16:03 mikemol EM just happens to be the strongest-weighted page on the site.
16:03 mikemol s/application/algorithm/
16:04 mwn3d_phone I wonder if we will get another code raid nomination
16:04 mwn3d_phone It'd be nice if they could come and beef up our theme and add other features people have been asking for
16:04 mikemol I think CodeRaid petered out; they held a vote on what they wanted to work on, and my understanding is that the inertia didn't last.
16:05 mikemol Best guess is that everyone who nominated or voted was only really interested in helping (or drawing help to) what they nominated or voted, not much else.
16:16 kpreid joined #rosettacode
16:27 kpreid left #rosettacode
16:49 mikemol Just received a $100 donation.
16:49 mikemol I really need to get the financial spreadsheets updated again.
17:10 mwn3d_phone left #rosettacode
17:32 MigoMipo joined #rosettacode
17:43 r4m joined #rosettacode
17:56 mwn3d_phone joined #rosettacode
18:16 mwn3d_phone left #rosettacode
18:51 mwn3d_phone joined #rosettacode
19:12 dagnyscott1 left #rosettacode
19:23 dagnyscott joined #rosettacode
20:47 kpreid joined #rosettacode
20:54 mwn3d_phone left #rosettacode
20:55 mwn3d_phone joined #rosettacode
20:59 dagnyscott left #rosettacode
21:17 dagnyscott joined #rosettacode
21:40 MigoMipo left #rosettacode
21:59 * mikemol is conflicted on http://rosettacode.org/mw/index.php?title=Average​s/Root_mean_square&diff=prev&oldid=112054
21:59 fedaykin "Averages/Root mean square - Rosetta Code" http://rldn.net/7bNp
21:59 mikemol I can see what anon was trying to do. Not sure whether it warranted being reverted.
22:01 mikemol It seems obvious to me that anon was trying to visibly reflect stardardized components in C, with the explicit(if unnecessary) use of library function and with the use of EXIT_SUCCESS.
22:02 mikemol Not so sure about int main(void). IIRC, that was required by standard decades ago, but not recently.
22:02 Hypftier the multiplication should stay, imho. pow(a, 2) isn't really clearer in that case, I guess. The other two changes are ok in my eyes, actually
22:05 mikemol Apparently, EXIT_SUCCES and 0 are equivalent, as far as return values for main().
22:05 mikemol http://stackoverflow.com/questions/1843805​/exit-success-for-function-return#1844104
22:05 fedaykin "Bad Request" http://rldn.net/8qU
22:07 mikemol And, yeah, from a pragmatic standpoint, I'd probably agree that removing the call to pow() is good.
22:07 mikemol At least, for squaring.
22:07 * mikemol tries to out-gess the compiler at optimizing a += b[n] * b[b]
22:08 mikemol Wondering if it makes sense to take b[n] out on a prior line, to avoid the array lookup.
22:08 mikemol The optimizer would take care of it handily, obviously.
22:09 mikemol I've been in scenarios before, though, where one has to run without an optimizer, and the speed difference remains critical.
22:10 mikemol In a language like C++, you also have the consideration of overloaded operator [], and resulting overhead. But you'd have other things to watch for there..like not calling an overloaded [] inside a tight loop in the first place...
22:15 mikemol I don't know what the standards for K&R, C89 and C99 each say about a parameterless main(), though.
22:28 Hypftier http://stackoverflow.com/questions/3156423/w​hy-dont-we-use-void-in-main/3159563#3159563
22:28 fedaykin "Bad Request" http://rldn.net/6l9
22:40 mikemol http://www2.research.att.com​/~bs/bs_faq2.html#void-main
22:40 fedaykin "Stroustrup: C++ Style and Technique FAQ" http://rldn.net/5ZcA
22:40 mikemol Of course, that's assuming Stroustrup as an authority on C.
22:42 Hypftier I think the empty argument list has been valid C for a while, I still tend to write it with void, out of habit, though. Unless for golfed code, of course ;)
22:46 mikemol I don't know any compilers which won't accept it. Just trying to figure out if theres a "more right" stance.
22:47 mikemol Probably have a question for my philosophy group tonight... "is a counter to an action with trivial consequence equally trivial?"
22:56 sorear C89 gives two options: "int main(void)" and "int main(int argc, char *argv[])"
22:57 sorear it also says "if the main function executes a return that specifies no value, the termination status returned to the host environment is undefined"
22:58 sorear which I guess applies in the case of int main() { return; }
22:58 sorear I forgot that was even legal
23:03 sorear C99 says the same thing, except that it adds "...or equivalent" (in a footnote: This means that you can use typedefs instead of int, char** instead of char*[], etc)
23:49 mwn3d_phone left #rosettacode
23:56 mwn3d_phone joined #rosettacode

| Channels | #rosettacode index | Today | | Search | Google Search | Plain-Text | summary