code logs -> 2012 -> Thu, 02 Aug 2012< code.20120801.log - code.20120803.log >
--- Log opened Thu Aug 02 00:00:18 2012
00:06 iofficespace is now known as iospace
00:13 Zeus [ident@Nightstar-ebc3a6a2.static.ida.net] has joined #code
00:17 iospace is now known as io\gone
00:22 Zeus [ident@Nightstar-ebc3a6a2.static.ida.net] has left #code []
00:40 Derakon[AFK] is now known as Derakon
01:55 io\gone is now known as iospac
01:55 iospac is now known as iospace
02:11 Kindamoody[zZz] is now known as Kindamoody
02:12 Derakon is now known as Derakon[AFK]
02:16 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has joined #code
02:18 Attilla [Obsolete@Nightstar-429b0f61.as43234.net] has quit [Ping timeout: 121 seconds]
04:02
< Rhamphoryncus>
Oww. Explaining floating point to people is hard
04:02
<~Vornicus>
Slightly.
04:03
< Rhamphoryncus>
Trying to help someone who's using numpy and Decimal.. but it turns out their real issue is the floats(!) aren't comparing equal even though they look equal
04:09
< Rhamphoryncus>
So their googling came up with some bizarre thing involving Decimal
04:22 Derakon[AFK] is now known as Derakon
04:44
< Rhamphoryncus>
Hum. Probably give my planet a diameter of 2**31 and center it at 2**30 (unsigned int)
04:44
< Rhamphoryncus>
Gives me lots of room for aircraft and to hell with space objects that are outside that ;)
04:46
< Rhamphoryncus>
oh, center is at 2**31, not 30
05:08 * Derakon whips up a script to plot some code stats. http://derakon.dyndns.org/~chriswei/games/pyrel/locplot.png
05:15
< Rhamphoryncus>
hmm, what's the ratio of lines to comments?
05:15
<&Derakon>
I was just generating a plot of percentage of lines that are comments.
05:15 iospace is now known as iospacedout
05:16
<&Derakon>
Unfortunately my methodology is somewhat slow, consisting of reverting the entire codebase to the state it was in after each commit just so I can get the file stats.
05:19
<&Derakon>
There, http://derakon.dyndns.org/~chriswei/games/pyrel/locplot2.png
05:19
<&Derakon>
Well, the Y axis should be multiplied by 100.
05:20
< Rhamphoryncus>
huh
05:20
< Rhamphoryncus>
That doesn't look right
05:20
< Rhamphoryncus>
Oh bottom is 0.16
05:21
<&Derakon>
Yeah, sorry, that's pylab being silly.
05:22
< Rhamphoryncus>
It looks like your comment percentage is levelling off
05:23
<&Derakon>
Entirely possible.
05:23
<&Derakon>
Comment percentage tends to be low in the initial stages of major development work, and then get filled in more later as I clean it up.
05:23 * Rhamphoryncus nods
05:24
<&Derakon>
The initially high whitespace percentage was due to me creating a lot of stub functions and classes, I suspect. That leveled off quickly.
05:24 * Rhamphoryncus nods
05:25
<&Derakon>
Showertime.
05:25 Derakon is now known as Derakon[AFK]
05:33
< Rhamphoryncus>
hmm. So opengl es 2's GLSL doesn't have a 32 bit int type. You can put a *normalized* 32 bit int in a vertex buffer, but that'll come out as a float
05:34
< Rhamphoryncus>
Haven't yet figured out how fixed point plays into that
05:47 Derakon[AFK] is now known as Derakon
05:55 * Rhamphoryncus is still pondering
06:05 * Rhamphoryncus takes a break from his ponderings to swear at C++ for how much it sucks
06:07
< Rhamphoryncus>
I have a Vector3 type, which is 3 floats with various methods. I also have a HexVertex type, which is a POD of a basic 3 float array; it must be POD to interact sanely with opengl
06:07
<~Vornicus>
POD?
06:08
< Rhamphoryncus>
There's no way to assign from one to another. I can't add methods to a POD (plain-old-data, aka a C type) without violating the POD rules and making it non-POD. I don't want to add a method to Vertex3 because it has no knowledge of opengl
06:08
<~Vornicus>
Wait, wait
06:09
<~Vornicus>
it seems to me there's something I'm missing.
06:09
<~Vornicus>
I thought that, if a class didn't have any virtual methods, then it didn't get a vtable and it's just POD
06:09
< Rhamphoryncus>
afaik it's no methods *at all*
06:10
< Rhamphoryncus>
Although it'd be nice to be proven wrong
06:34
< Rhamphoryncus>
hrm I feel like terrain is more immediately relevant. To do that I need to figure out texture storage
06:35
< Rhamphoryncus>
Well, not real texture. For now I'm happy to do this entirely on the CPU
06:39 Derakon is now known as Derakon[AFK]
06:42
< Rhamphoryncus>
When rendering a tile it'll want to look at what's adjacent. That doesn't in of itself require an index though
06:45
< Rhamphoryncus>
Maybe what I could do is designate them in terms of rings around a pentagon, allowing them to overlap and have redundant forms, but also make the pentagon with the lowest id the canonical form
06:45
< Rhamphoryncus>
It's a bodge, but if you're trying to split 3 things into 2 boxes you have to pick one box to get the extra
06:47
< Rhamphoryncus>
Rather, the closest is canonical, with the lowest id only being used for ties
06:50
< Rhamphoryncus>
Another option would be north pole, south pole, and equator. Just 3 regions
06:52
< Rhamphoryncus>
Only one tile of overlap with 3 regions though
07:37 himi [fow035@D741F1.243F35.CADC30.81D435] has quit [Ping timeout: 121 seconds]
07:48 Kindamoody is now known as Kindamoody|afk
08:12 Vash [Vash@Nightstar-e8057de2.wlfrct.sbcglobal.net] has quit [[NS] Quit: I lovecraft Vorn!]
08:35
< ShellNinja>
http://gizmodo.com/5926598/the-amazing-contents-of-steve-wozniaks-travel-backpac k
08:48
< Rhamphoryncus>
The problem with a grid on a sphere isn't in finding a method that works. It's that you have to use 6 different methods, all at once, for different aspects of it
08:50
< Rhamphoryncus>
Currently pondering a storage layout that's like a flattened icosahedron (with some tweaking at the boundaries between faces, as my hexagons are right on the boundaries
09:15
< Rhamphoryncus>
Brain hurt. Math bad.
09:23 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
09:35 You're now known as TheWatcher
10:13 Attilla [Obsolete@Nightstar-e49cb21e.as43234.net] has joined #code
10:22 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
10:22 mode/#code [+o himi] by ChanServ
10:45 Nemu [NeophoxProd@Nightstar-cf9cbbe2.asahi-net.or.jp] has joined #code
11:43 iospacedout is now known as iospace
12:41
< froztbyte>
http://www.sec-1.com/blog/?p=279 --- el. oh. el.
13:06
<@TheWatcher>
huh
13:07
<@TheWatcher>
I'd never even heard of couchdb >.>
13:19 iospace is now known as io\gone
13:36
< froztbyte>
it was one of the earlier NoSQL things
13:37
< froztbyte>
Tokyo Cabinet more or less replaced it
13:37
< froztbyte>
in most things I know of, anyway
13:42
<@TheWatcher>
Oh, hey, my LOG ALL THE THINGS system works, and I didn't even realise I had turned it on.
14:04
< froztbyte>
haha
14:04
< froztbyte>
nice
14:08
<&jerith>
Look at Riak if you want that kind of thing.
14:43 io\gone is now known as iofficespace
--- Log closed Thu Aug 02 14:53:27 2012
--- Log opened Thu Aug 02 14:54:08 2012
14:54 TheWatcher [chris@Nightstar-3762b576.co.uk] has joined #code
14:54 Irssi: #code: Total of 30 nicks [5 ops, 0 halfops, 0 voices, 25 normal]
14:54 mode/#code [+o TheWatcher] by ChanServ
14:54 Irssi: Join to #code was synced in 43 secs
15:37 iofficespace is now known as io|livid
15:54 Orthia [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
15:58 Orthia [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
16:26 Attilla [Obsolete@Nightstar-e49cb21e.as43234.net] has quit [Ping timeout: 121 seconds]
16:31 Attilla [Obsolete@Nightstar-40716bea.as43234.net] has joined #code
16:56 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
17:10 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
17:10 mode/#code [+o himi] by ChanServ
17:10 io|livid is now known as ecapsoi
17:18 ecapsoi is now known as iospace
18:06 ShellNinja is now known as Number3
18:11 Tarinaky is now known as Atreus
18:38 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has quit [Client exited]
19:19 RichardB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
19:20 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has quit [[NS] Quit: Leaving]
19:20 RichardB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has quit [[NS] Quit: Leaving]
19:20 RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
19:24 Kindamoody|afk is now known as Kindamoody
19:27 RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has quit [[NS] Quit: Leaving]
19:27 RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
19:41 Kindamoody is now known as Kindamoody[zZz]
19:54 * iospace eyes I2C
20:18
< RichyB>
http://www.foragoodstrftime.com/
20:18
< RichyB>
Genius URL, good tool.
20:46 RichardB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
20:46 RichardB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has quit [[NS] Quit: Leaving]
20:59
<&McMartin>
For a good strftime(), call?
20:59
<&McMartin>
GHOSTBUSTERS
21:19
<&McMartin>
Ha ha
21:20
<&McMartin>
So, kernel exploit via binary nvidia driver found
21:20
<&McMartin>
Gentoo response "Even without this, unprivileged users can physically set the machine on fire, so this doesn't change our policies we already had."
21:20
<&McMartin>
http://thread.gmane.org/gmane.comp.security.oss.general/8083
22:00
< RichyB>
Hasn't this been kind of known for ages though?
22:01
< RichyB>
Not the specific vulnerability, I mean, but the fact that closed-source GPU drivers are buggy and that letting a stranger run accelerated 3D code on your box is almost as good as giving them permission to insert a kernel module.
22:04
<&McMartin>
One would assume so
22:04
<&McMartin>
Though of course, this is also a primary purpose of many computers.
22:05
< RichyB>
Well... videogamers already let every fool programmer on the planet insert kernel modules for their DRM.
22:06
<&McMartin>
Or their graphics and sound drivers.
22:12
<&McMartin>
Also, I misread the line about setting the machine on fire at first
22:12
<&McMartin>
"If the user has console access, they can set the machine on fire"
22:12
<&McMartin>
"First,t hey take a blowtorch..."
22:12
< RichyB>
Nah, it's "if the user has access to nvidiactl then they can turn the fans off and set it on fire"
22:14
<&McMartin>
Yeah, I did eventually get it
22:15
< RichyB>
Sorry.
22:24 RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has quit [[NS] Quit: Leaving]
22:43
<&McMartin>
Osmium liiiiiives
22:47
< iospace>
O_O
22:47
< iospace>
what does?
22:47
<&McMartin>
My new Ubuntu laptop.
22:52
< iospace>
ah
22:52
< iospace>
^_^
22:54
<&McMartin>
This laptop has more RAM than any single other machine I own.
23:01 Vash [Vash@Nightstar-e8057de2.wlfrct.sbcglobal.net] has joined #code
23:01 mode/#code [+o Vash] by ChanServ
23:13 * iospace eyes ToxicFrog
23:15
< Number3>
Why you want version?
23:15
<&McMartin>
SCIENCE
23:27
<&ToxicFrog>
Quite.
23:27
<&ToxicFrog>
Wanted a count of OSX users and which clients they were using.
23:32 Number3 is now known as ShellNinja
23:38 Atreus is now known as Tarinaky
23:50 * McMartin mutters
23:50
<&McMartin>
Clojure 1.4 isn't in the Ubuntu repos.
--- Log closed Fri Aug 03 00:00:07 2012
code logs -> 2012 -> Thu, 02 Aug 2012< code.20120801.log - code.20120803.log >

[ Latest log file ]