code logs -> 2010 -> Tue, 11 May 2010< code.20100510.log - code.20100512.log >
--- Log opened Tue May 11 00:00:58 2010
00:22 You're now known as TheWatcher[T-2]
00:27 You're now known as TheWatcher[zZzZ]
00:38
< Alek>
"When I was in college, we still used 5" diskettes. Now I slit them along the side and store CDs inside. Especially when someone asks you for the mega-important report and you pull out a 5" floppy."
00:48 Zed [Zed@Nightstar-e4835f03.or.comcast.net] has quit [Ping timeout: 121 seconds]
00:49
< gnolam>
celticminstrel: I don't know what's worse. That you IRC with graphical emoticons or that your client interprets :x as an "angry" smiley. ;)
01:03
< celticminstrel>
I like that it has graphical emotes, though its ^_^ emote is atrocious (it's sort of a complete anime head or something).
01:03
< celticminstrel>
As for :x being angry, it seems fairly standard on forums, at least.
01:05
< celticminstrel>
Though I would admit that, text-wise, it doesn't look very angry.
01:05
< celticminstrel>
>:( or even :| would seem more appropriate.
01:06
< celticminstrel>
(And apparently it interprets the former as the same emoticon, so I must be on the right track. :P )
01:16 Derakon[AFK] is now known as Derakon
01:30 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
01:44 Reiv[Graduate] [orthianz@Nightstar-54b006c7.xnet.co.nz] has joined #code
01:53 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
01:55 Syloqs_AFH is now known as Syloqs-AFH
01:56 Zed [Zed@Nightstar-e4835f03.or.comcast.net] has joined #code
01:59 Zed [Zed@Nightstar-e4835f03.or.comcast.net] has quit [Client closed the connection]
02:38 Reiv[Graduate] [orthianz@Nightstar-54b006c7.xnet.co.nz] has quit [Client closed the connection]
02:45 Reiv[Graduate] [orthianz@Nightstar-54b006c7.xnet.co.nz] has joined #code
03:28 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
03:35 Zed [Zed@Nightstar-e4835f03.or.comcast.net] has joined #code
03:35 Reiv[Graduate] [orthianz@Nightstar-54b006c7.xnet.co.nz] has quit [Connection reset by peer]
03:42 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
03:43 Reiv[Graduate] [orthianz@Nightstar-54b006c7.xnet.co.nz] has joined #code
03:45 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
03:46 Reiv[Graduate] [orthianz@Nightstar-54b006c7.xnet.co.nz] has quit [Client closed the connection]
04:07 RichardBarrell [mycatverbs@Nightstar-58acb782.cable.virginmedia.com] has joined #code
04:10 Reiv[Graduate] [orthianz@Nightstar-54b006c7.xnet.co.nz] has joined #code
04:23 Reiv[Graduate] [orthianz@Nightstar-54b006c7.xnet.co.nz] has quit [Connection reset by peer]
04:30 Reiv[Graduate] [orthianz@Nightstar-54b006c7.xnet.co.nz] has joined #code
04:32 Reiv[Graduate] [orthianz@Nightstar-54b006c7.xnet.co.nz] has quit [Client closed the connection]
04:39 Reiv[Graduate] [orthianz@Nightstar-54b006c7.xnet.co.nz] has joined #code
04:42 Rhamphoryncus [rhamph@Nightstar-29afc4bd.abhsia.telus.net] has joined #code
05:11 Netsplit *.net <-> *.split quits: Namegduf, EvilDarkLord, @Kazriko, celticminstrel, @McMartin, @jerith
--- Log closed Tue May 11 05:12:36 2010
--- Log opened Tue May 11 05:19:19 2010
05:19 TheWatcher[zZzZ] [chris@Nightstar-b4529b0c.zen.co.uk] has joined #code
05:19 Irssi: #code: Total of 20 nicks [5 ops, 0 halfops, 0 voices, 15 normal]
05:19 mode/#code [+qo Reiver Reiver] by ChanServ
05:19 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has joined #code
05:19 mode/#code [+o ToxicFrog] by Reiver
05:20 Syloq [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
05:20 Irssi: Join to #code was synced in 53 secs
05:20 * Derakon mutters at gamedev.net, whose "Game Design" forum is perfectly willing to fanwank about MMO design rules, but can't give feedback on a simple map.
05:21 Syloq is now known as Syloqs-AFH
05:24 Reiv[Graduate] [orthianz@Nightstar-54b006c7.xnet.co.nz] has joined #code
06:04 RichardB_ [mycatverbs@Nightstar-58acb782.cable.virginmedia.com] has joined #code
06:05 RichardBarrell [mycatverbs@Nightstar-58acb782.cable.virginmedia.com] has quit [Ping timeout: 121 seconds]
06:07 Reiv[Graduate] is now known as Reiv
06:20 AnnoDomini [annodomini@Nightstar-8d5fe4de.adsl.tpnet.pl] has joined #code
06:20 mode/#code [+o AnnoDomini] by Reiver
06:21 Reiv[Graduate] [orthianz@Nightstar-2d1de8d4.xnet.co.nz] has joined #code
06:22 Reiv [orthianz@Nightstar-54b006c7.xnet.co.nz] has quit [Ping timeout: 121 seconds]
06:35 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: *hums* Can't stay now!]
06:35 Derakon is now known as Derakon[AFK]
06:47 Reiv[Graduate] [orthianz@Nightstar-2d1de8d4.xnet.co.nz] has quit [Client closed the connection]
06:58 Reiv[Graduate] [orthianz@Nightstar-e09fef78.xnet.co.nz] has joined #code
07:06 Reiv[Graduate] is now known as Reiv
07:24 Kazriko [kaz@Nightstar-e09690fa.client.bresnan.net] has quit [Ping timeout: 121 seconds]
07:28 Kazriko [kaz@Nightstar-e09690fa.client.bresnan.net] has joined #code
07:28 mode/#code [+o Kazriko] by Reiver
08:14 Vornicus is now known as Vornicus-Latens
08:58 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
09:13 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Ping timeout: 121 seconds]
09:14 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
09:36 Rhamphoryncus [rhamph@Nightstar-29afc4bd.abhsia.telus.net] has quit [Client exited]
09:40 You're now known as TheWatcher
10:14 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Client closed the connection]
11:27 RichardB_ [mycatverbs@Nightstar-58acb782.cable.virginmedia.com] has quit [Ping timeout: 121 seconds]
12:27 cpux is now known as shade_of_cpux
12:41 Reiv [orthianz@Nightstar-e09fef78.xnet.co.nz] has quit [Connection reset by peer]
12:49 Reiv[Graduate] [orthianz@Nightstar-e09fef78.xnet.co.nz] has joined #code
12:49 Tarinaky [Tarinaky@Nightstar-88caddb7.adsl.virginmedia.net] has quit [Ping timeout: 121 seconds]
13:02 Tarinaky [Tarinaky@Nightstar-5727dcc1.adsl.virginmedia.net] has joined #code
13:23 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
13:38 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
13:54 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
16:27 Orth [orthianz@Nightstar-57715f63.xnet.co.nz] has joined #code
16:29 Reiv[Graduate] [orthianz@Nightstar-e09fef78.xnet.co.nz] has quit [Ping timeout: 121 seconds]
16:39 * gnolam WTFs.
16:41
< gnolam>
For some reason, my tone map buffer gets a non-1 alpha value.
16:51 * gnolam thwaps himself.
17:00 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has joined #code
17:02 Orth [orthianz@Nightstar-57715f63.xnet.co.nz] has quit [Ping timeout: 121 seconds]
17:10 * gnolam unthwaps himself.
17:10
< gnolam>
This is actually still a WTF.
17:11
< gnolam>
It blends itself... even though blending is disabled.
17:18 Rhamphoryncus [rhamph@Nightstar-29afc4bd.abhsia.telus.net] has joined #code
17:25
< Namegduf>
Disabling blending won't stop the BlendTec Total Blender.
17:32
<@AnnoDomini>
Chuck Norris does not blend.
17:33
< Namegduf>
The iPad will, though/
17:36
<@AnnoDomini>
It needs some bending to fit, though.
17:37
< Namegduf>
Well, sure, it's not very portable.
17:39
<@AnnoDomini>
Magnets were cool.
18:00
<@ToxicFrog>
Some days I really appreciate working here, especially after reading what people have to go through elsewhere.
18:00
<@ToxicFrog>
ME: "Hey, there's a bug in 'load upgrade' that causes it to react badly to changes in product category."
18:01
<@ToxicFrog>
COREOS: "Why is this a bug? It works correctly with category 1, and that's all we use with that codebase."
18:01
<@ToxicFrog>
ME: "Because it's inconsistent with how the rest of the system behaves, and could be a problem in the future if we base other product categories on that code."
18:02
<@ToxicFrog>
COREOS: "Good point. Bug accepted."
18:02
< celticminstrel>
Hehe.
18:02
< celticminstrel>
Is that Coreos, or CoreOS?
18:04
<@ToxicFrog>
CoreOS.
18:04
<@ToxicFrog>
...although actually I think I filed this bug against AMI, now that I think about it.
19:05 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Client closed the connection]
19:26
< gnolam>
Oh well. I'll have to ignore it for now.
19:26
< gnolam>
Now, let's try cranking things up to 11 instead.
19:47
< gnolam>
Yay!
19:48 * gnolam is now extracting luminance values > 1.0 from his tone map buffer.
19:50 * Rhamphoryncus has found a *good* use for reduce in python.. it does happen after all..
19:50
< Rhamphoryncus>
value = reduce(lambda a,b: a.set_merge(b), values)
19:52
< celticminstrel>
So, that'll merge any number of sets?
19:52
< Rhamphoryncus>
right
19:53
< celticminstrel>
I tend to forget about all those kinds of handy functions.
19:53
< Rhamphoryncus>
That's because they're usually not handy ;)
19:53
< celticminstrel>
Sure they are.
19:54
< Rhamphoryncus>
Not in python
19:54
< celticminstrel>
In some situations they can turn a loop into a single function call.
19:54
< celticminstrel>
Well, I can't speak for Python specifically. I'm talking generally here.
19:56
< Rhamphoryncus>
This was an example that took 5 or 6 lines. It was worse because I couldn't give values a natural default before the loop, so I had to use None and check for it
19:56
< Rhamphoryncus>
couldn't give value*
19:59
< Rhamphoryncus>
hrm. If I use an iterator and manually call next() to get the default then that drops the size significantly, from 7 lines (including an assertion about said None) to just 4 lines
20:00
< Rhamphoryncus>
The reduce is 1 line, but it's 50 characters. That 4-liner is 96
20:02
< Rhamphoryncus>
Or if I use slicing (values is a list created in that function) it's 3 lines and 63 characters
20:10
<@ToxicFrog>
Don't play code golf; instead ask yourself which is most readable.
20:12
<@ToxicFrog>
Also - what's the distinction between reduce and fold?
20:13
< Rhamphoryncus>
I went with the 3-line version because I think it's the most readable. I had to get the character count close before it was though
20:13
< Rhamphoryncus>
I don't think python has a fold
20:15
<@ToxicFrog>
Aah.
20:18
< Rhamphoryncus>
Now I'm trying to figure out how to clean up my repr(). It's just a weeeeeeeeee bit verbose
20:18
< Rhamphoryncus>
SequenceValues([Values({'int': IntValues(7, 7)}), Values({'int': IntValues(11, 11)}), Values({'int': IntValues(3, 3)})])
20:19
< Rhamphoryncus>
All that example's really saying is [7, 11, 3] :/
20:20
<@ToxicFrog>
o.O
20:21
< Rhamphoryncus>
exactly
20:22
< Rhamphoryncus>
But I'm evaluating the possible ranges of each variable/object, so those ints are actually intervals and potentially have other types than just int
20:22
<@Vornicus-Latens>
I didn't think there /was/ a difference between reduce and fold.
20:22
< Rhamphoryncus>
SequenceValues has other arguments depending on what it's doing
20:24
<@ToxicFrog>
Vornicus-Latens: yeah, but I couldn't figure out why python would have both
20:24
<@ToxicFrog>
Turns out it doesn't, so that answers the question
20:24
<@Vornicus-Latens>
it doesn't have a start-from-the-right reduce, but you can do that with reversed
20:25
<@ToxicFrog>
Right.
20:26 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
20:26
< Rhamphoryncus>
hrm. I can't imagine need to "reduce" something from the right, but I could imagine doing so to apply a traversal path
20:43 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has quit [Client closed the connection]
20:45
<@McMartin>
rfold is the Easy One.
20:51 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has joined #code
20:59 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has quit [Client closed the connection]
21:00
<@Vornicus-Latens>
I once needed a binary merge
21:02 Vornicus-Latens is now known as Vornicus
21:02 * Vornicus has been here for 4 hours, by the way.
21:02 AnnoDomini [annodomini@Nightstar-8d5fe4de.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
21:02
<@Vornicus>
-- er, binary fold.
21:02
<@Vornicus>
because each step made the thing in question longer, and the complexity of the fold operation depended on the length of the longer thing.
21:04 AnnoDomini [annodomini@Nightstar-78a55afa.adsl.tpnet.pl] has joined #code
21:04 mode/#code [+o AnnoDomini] by Reiver
21:05 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has joined #code
21:06
<@McMartin>
Tree fold operations:
21:06 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has quit [Connection reset by peer]
21:06
<@McMartin>
- compiling code
21:06
<@McMartin>
I guess I should label that "common tree fold operations"
21:07
<@McMartin>
tree flatteners are kind of folds too.
21:10
<@Vornicus>
Well, that's a tree fold. This was explicitly "take an array 2 by 2"
21:14 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has joined #code
21:28 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
21:28 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has quit [Connection reset by peer]
21:34 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has joined #code
21:43 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has quit [Client closed the connection]
21:47
<@McMartin>
Aha
21:51 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has joined #code
21:55
<@Vornicus>
(repeatedly)
21:55 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has quit [Client closed the connection]
22:01 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has joined #code
22:11 Derakon [Derakon@Nightstar-1ffd02e6.ucsf.edu] has joined #code
22:11 mode/#code [+o Derakon] by Reiver
22:11
<@Derakon>
Hrm...in the process of changing this menu setup from being a bunch of repeated code to being driven by a dict, I've added some 70 lines of code overall.
22:11
<@Derakon>
But it's cleaner!
22:12
<@Derakon>
And 52 of those lines just have curly braces anyway.
22:14 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has quit [Connection reset by peer]
22:17
<@Derakon>
...Aquaria, Gish, and Penumbra are getting open-sourced, thanks to the humble bundle reaching $1 million. O_o
22:17 RichardBarrell [mycatverbs@Nightstar-58acb782.cable.virginmedia.com] has joined #code
22:20 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has joined #code
22:20 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has quit [Client closed the connection]
22:28 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has joined #code
22:33
< Rhamphoryncus>
hrm. I could make __init__ swap out the class to Int with a simplified repr, doubling as a factory function... OR I could just have Int be a factory function and have __repr__ print out the factory rather than the real class
22:34
< Rhamphoryncus>
Derakon: They actually hit a million? I only got a link to them a couple hours ago
22:34
<@Derakon>
Apparently!
22:34
<@Derakon>
http://www.wolfire.com/humble
22:35
< Rhamphoryncus>
huh. Cool
22:37 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has quit [Client closed the connection]
22:38
< Rhamphoryncus>
It'd be even more awesome if they could make that a sustainable model. Reach a certain number of sales and open the game
22:38
< Rhamphoryncus>
I'd even be okay with distros like ubuntu integrating tools for buying such games
22:44 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has joined #code
23:03 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has quit [Client closed the connection]
23:07 Stryker [c0mand@Nightstar-bec1add2.dyn.optonline.net] has joined #code
23:17 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has joined #code
23:17 Stryker [c0mand@Nightstar-bec1add2.dyn.optonline.net] has quit [Connection closed]
23:24 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has quit [Client closed the connection]
23:26 GeekSoldier [Rob@Nightstar-e86e3e0d.ip.cablemo.net] has joined #code
23:30 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has left #code []
23:47 Reiv[Graduate] [orthianz@Nightstar-e87c5251.xnet.co.nz] has joined #code
23:49 shade_of_cpux is now known as cpux
23:56
<@ToxicFrog>
Rhamphoryncus: there was some distro that had something like that - entries in the package manager for payware
23:56
<@ToxicFrog>
Don't reember which one, though
23:58 Derakon [Derakon@Nightstar-1ffd02e6.ucsf.edu] has quit [[NS] Quit: Leaving]
--- Log closed Wed May 12 00:00:59 2010
code logs -> 2010 -> Tue, 11 May 2010< code.20100510.log - code.20100512.log >