code logs -> 2012 -> Tue, 21 Feb 2012< code.20120220.log - code.20120222.log >
--- Log opened Tue Feb 21 00:00:27 2012
00:09 Thalasleep is now known as Thalass
00:28 Attilla [Obsolete@Nightstar-36422e6e.as43234.net] has quit [Ping timeout: 121 seconds]
00:30 Derakon is now known as Derakon[AFK]
01:00 Thalass [thalass@C2A270.C6BBF7.D21090.190A6D] has quit [Ping timeout: 121 seconds]
01:03 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has quit [Ping timeout: 121 seconds]
01:16 Derakon[AFK] is now known as Derakon
01:57
<&McMartin>
Man, ML's type checking is awesome.
02:41 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [[NS] Quit: ]
02:44
<&McMartin>
Type inference in general is just amazing
02:44 * McMartin modifies a class, has the compiler automatically note every point where the change matters, which is not every point the type is referenced.
02:45 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
02:46 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [[NS] Quit: ]
02:46 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
02:55
< ToxicFrog>
<3
03:00 Derakon is now known as Derakon[AFK]
03:05 Vash [Vash@Nightstar-cdeba41f.wlfrct.sbcglobal.net] has joined #code
03:05 mode/#code [+o Vash] by ChanServ
03:16 * ToxicFrog baps google. "upgrade" and "update" are not synonyms!
03:17 Derakon[AFK] is now known as Derakon
03:18
<&McMartin>
On the downside, I suppose, this was a situation where in a standard OO design, the amount of additional work would have basically been "zero"
03:18
<&McMartin>
Though I could have missed some spots on the initial modification that way.
04:14 Kindamoody is now known as Kindamoody|nap
04:19
<&Derakon>
Man, now I find myself wanting to remake Legend of Zelda 1.
04:20 cpux|2 [cpux@Nightstar-c5874a39.dyn.optonline.net] has joined #code
04:20 cpux [cpux@Nightstar-c5874a39.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
04:20
<&Derakon>
In the "make a top-down exploration/adventure game which is entirely unclued and largely unordered."
04:20
<&Derakon>
sense.
04:30 cpux|2 is now known as cpux
06:16 Kindamoody|nap is now known as Kindamoody
06:21 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has quit [Client exited]
06:22 himi [fow035@D741F1.243F35.CADC30.81D435] has quit [Ping timeout: 121 seconds]
06:26 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has joined #code
06:32 Kindamoody is now known as Kindamoody|out
06:32 eckse [eckse@Nightstar-086443b9.dsl.sentex.ca] has quit [Connection reset by peer]
06:40 Derakon is now known as Derakon[AFK]
06:41 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has quit [Client exited]
07:00 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Connection closed]
07:02 Vash [Vash@Nightstar-cdeba41f.wlfrct.sbcglobal.net] has quit [[NS] Quit: I lovecraft Vorn!]
07:07 Attilla [Obsolete@Nightstar-36422e6e.as43234.net] has joined #code
07:22 Attilla [Obsolete@Nightstar-36422e6e.as43234.net] has quit [Ping timeout: 121 seconds]
07:26 Attilla [Obsolete@Nightstar-36422e6e.as43234.net] has joined #code
08:09 Attilla [Obsolete@Nightstar-36422e6e.as43234.net] has quit [Ping timeout: 121 seconds]
08:22 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
09:39 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
09:39 mode/#code [+o himi] by ChanServ
10:04 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
10:08 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
10:21 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
10:21 mode/#code [+o himi] by ChanServ
10:32 Alek [omegaboot@Nightstar-efc8dc53.il.comcast.net] has quit [Client closed the connection]
10:33 Alek [omegaboot@Nightstar-efc8dc53.il.comcast.net] has joined #code
10:33 mode/#code [+o Alek] by ChanServ
10:36 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
10:36 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code
10:36 mode/#code [+o PinkFreud] by ChanServ
12:04 gnolaptop [lenin@Nightstar-c63be642.eduroam.liu.se] has joined #code
12:20
< gnolaptop>
ooh, wafer
12:21
< gnolaptop>
They're kinda pretty.
12:31
< gnolaptop>
(12" LTE ASIC wafer, to be specific)
12:53 Kindamoody|out is now known as Kindamoody
12:54 gnolaptop [lenin@Nightstar-c63be642.eduroam.liu.se] has quit [[NS] Quit: Blargh. I seriously need to buy myself a non-defective laptop.]
13:53 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
14:07 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
14:07 mode/#code [+o himi] by ChanServ
14:22 Attilla [Obsolete@Nightstar-36422e6e.as43234.net] has joined #code
14:54 Tarinaky [tarinaky@Nightstar-dd7e4a05.net] has quit [Ping timeout: 121 seconds]
15:06 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
15:06 mode/#code [+o Syloqs_AFH] by ChanServ
15:08 Syloqs_AFH is now known as Syloqs-AFH
15:09 * TheWatcher eyes php
15:11
<@TheWatcher>
I installed perl's Net::LDAP module with no need for any additional packages, why does php need to install the entirity of openldap and a bunch of other things to use ldap? *stab*
15:24
<@jerith>
TheWatcher: Probably because it wraps a C library.
15:27 Tarinaky [tarinaky@Nightstar-dd7e4a05.net] has joined #code
15:28 Kindamoody is now known as Kindamoody|out
15:48
<@TheWatcher>
Also, yay
15:48
<@TheWatcher>
I can connect to the LDAPS server from perl. But not from php. Wonderful
15:50
<@TheWatcher>
And, of course, it won't tell me /why/, just "Can't contact LDAP server".
15:57
< simon_>
can anyone tell me how `find' can exclude files without first piping its results through grep -v?
15:58 Vash [Vash@Nightstar-cdeba41f.wlfrct.sbcglobal.net] has joined #code
15:58 mode/#code [+o Vash] by ChanServ
16:00 Attilla_ [Obsolete@Nightstar-4ad5d8ae.threembb.co.uk] has joined #code
16:01 Attilla [Obsolete@Nightstar-36422e6e.as43234.net] has quit [Ping timeout: 121 seconds]
16:02
<@TheWatcher>
simon_: find $path -not -iname '*foo*'
16:03 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
16:04
<@TheWatcher>
you can even do things like `find $path -iname '*.foo' -not -iname '*bar*'`
16:05 Attilla_ is now known as Attilla
16:06 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
16:15
< simon_>
TheWatcher, ah, -not!
16:16 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
16:16 mode/#code [+o himi] by ChanServ
16:30 * TheWatcher eyes his auth modules, goes to get the keys for the refactor tractor
16:47
< froztbyte>
haha
16:59 Attilla_ [Obsolete@Nightstar-36422e6e.as43234.net] has joined #code
17:00 Attilla [Obsolete@Nightstar-4ad5d8ae.threembb.co.uk] has quit [NickServ (GHOST command used by Attilla_)]
17:00 Attilla_ is now known as Attilla
17:16 Kindamoody|out is now known as Kindamoody
17:32 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has joined #code
17:39
< ToxicFrog>
WTF
17:39
< ToxicFrog>
Let's talk about actionscript
17:40
< ToxicFrog>
var a = [0,1]; var i = 0; a[(i++)] += 1; print(a, i)
17:40
< ToxicFrog>
What does this output?
17:43
<@Tamber>
Beings from beyond the comprehension of mortal man.
17:44
< celticminstrel>
Shouldn't it output [1,1]? Though I'm not quite sure what print(a, i) does.
17:45
< celticminstrel>
If it prints all its arguments, then I guess it would output something like [[1,1], 1]
17:45 cpux [cpux@Nightstar-c5874a39.dyn.optonline.net] has quit [Client closed the connection]
17:48
< ToxicFrog>
celticminstrel: prints all its arguments, yes.
17:49
< ToxicFrog>
And [1,1], 1 is what it would output in a sensible language implemented by competent people.
17:49
< ToxicFrog>
But this is actionscript!
17:50
< celticminstrel>
So, what does it actually output then?
17:50
< ToxicFrog>
[2,1], 2
17:50
< celticminstrel>
Huh. How's it get that?
17:50
< ToxicFrog>
Well, it's like this
17:51
< ToxicFrog>
a += b is commonly explained as 'loosely equivalent to a = a + b'
17:51
< ToxicFrog>
In ActionScript, it actually is equivalent.
17:52
< ToxicFrog>
Which means that 'a[(i++)] += 1' compiles to 'a[(i++)] = a[(i++)] + 1'
17:52
< ToxicFrog>
Yes, this means that (i++) gets evaluated twice.
17:52
< ToxicFrog>
And has a different values on the LHS from the RHS.
17:52
< celticminstrel>
I see.
17:52
< celticminstrel>
It works properly as javascript.
17:52
< ToxicFrog>
So that evaluates to a[0] = a[1] + 1 => a[0] = 1 + 1 => a[0] = 2.
17:53
< ToxicFrog>
It works properly in most languages, yes
17:53
< ToxicFrog>
Because most languages that have += and related operators implement them properly
17:53
< celticminstrel>
Well, I specifically said javascript because it's very similar to actionscript.
17:54
< ToxicFrog>
AS is technically an ECMAscript dialect, actually.
17:54
< ToxicFrog>
No shared code between the AS compiler and any JS implementation, though.
17:55
< ToxicFrog>
I'm not sure if the AS specification actually mandates this behaviour, or if it's a compiler bug.
17:56
< RichyB>
AS is *supposed* to be a strict superset of ECMAscript isn't it?
17:56
< RichyB>
Surely you're right and this is a compiler bug.
18:04 Kindamoody is now known as Kindamoody[zZz]
18:08
< froztbyte>
http://www.php.net/manual/en/function.gzgetss.php --- wat
18:08
< froztbyte>
via http://www.reddit.com/r/lolphp/
18:08
< froztbyte>
more specifically via the "does this function really belong in the core?" post
18:11 eckse [eckse@Nightstar-086443b9.dsl.sentex.ca] has joined #code
18:11 mode/#code [+o eckse] by ChanServ
18:27 eckse [eckse@Nightstar-086443b9.dsl.sentex.ca] has quit [Client closed the connection]
18:29 eckse [eckse@Nightstar-086443b9.dsl.sentex.ca] has joined #code
18:29 mode/#code [+o eckse] by ChanServ
18:43 Vash [Vash@Nightstar-cdeba41f.wlfrct.sbcglobal.net] has quit [Client closed the connection]
18:43 Vash [Vash@Nightstar-cdeba41f.wlfrct.sbcglobal.net] has joined #code
18:43 mode/#code [+o Vash] by ChanServ
19:00
< ToxicFrog>
Ok, here's another one.
19:00
< ToxicFrog>
PHP.
19:00
< ToxicFrog>
What is the output: echo 0x0 +2, "\n", 0x0 +3.5, "\n", 0x0 +2e1;
19:04
< simon_>
I'd guess: 2
19:05 Attilla [Obsolete@Nightstar-36422e6e.as43234.net] has quit [Ping timeout: 121 seconds]
19:05
< simon_>
I guessed wrong, I see.
19:05
< ToxicFrog>
Yeah, the output is: 4 6.5 757
19:06 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
19:07
< simon_>
it's interesting that 0x0 +2 and 0x0 + 2 give different values.
19:07
< simon_>
I wonder what the semantics are.
19:08
< ToxicFrog>
The semantics are "the PHP lexer is a buggy shitheap". Check this out.
19:08
< ToxicFrog>
It matches hex literals as '0x[0-9a-fA-F]+'
19:08
< ToxicFrog>
When it finds one, it does the following:
19:08
< ToxicFrog>
- skip the 0x and all 0s after it
19:09
< ToxicFrog>
- call strtol() starting after the final 0
19:09
< ToxicFrog>
- the RV is the value of the literal
19:09
< ToxicFrog>
- continue lexing from the first character after the original match
19:09
< ToxicFrog>
Which means that when you feed it "0x0 +2", it breaks down like this:
19:09
< ToxicFrog>
- hex literal: 0x0, length 3
19:09
< ToxicFrog>
- skip 0x
19:09
< simon_>
ahhh
19:10
< ToxicFrog>
- skip leading 0s
19:10
< ToxicFrog>
- call strtol(" +2", NULL, 16)
19:10
< simon_>
heh
19:10
< ToxicFrog>
- RV is 2, so the value of 0x0 is 2
19:10
< ToxicFrog>
- continue lexing, get binary_op(+), int_literal(2)
19:10
< ToxicFrog>
- execute 2+2 and get 4
19:11 Derakon [chriswei@Nightstar-a3b183ae.ca.comcast.net] has joined #code
19:11 mode/#code [+ao Derakon Derakon] by ChanServ
19:11
< ToxicFrog>
"0x0 + 2" gives a different result because strtol(" +2") != strtol(" + 2") - strtol doesn't permit whitespace between the sign and the digits.
19:11
< simon_>
right.
19:12
<&Derakon>
Output of my fragment shader false coloration: http://derakon.dyndns.org/~chriswei/temp2/auto.png
19:12
< ToxicFrog>
Similarly, "0x0 +3.5" lexes as "0x3 + 3.5", and "0x0 +2e1" as "0x2E1 + 20.0"
19:12
<&Derakon>
Output from manually scaling the image instead of having the shader do the scaling: http://derakon.dyndns.org/~chriswei/temp2/manual.png
19:13
<&Derakon>
For some reason, scaling pixels in the shader is losing me a ton of color resolution.
19:13
<@jerith>
ToxicFrog: That... I... vocabulary failure.
19:14
< ToxicFrog>
:php:
19:15
< simon_>
ToxicFrog, apparently it's fixed in PHP 5.4
19:16
<@jerith>
I wonder how much code that will break.
19:17
< ToxicFrog>
>0
19:17 Attilla [Obsolete@Nightstar-36422e6e.as43234.net] has joined #code
19:19
< celticminstrel>
XD
19:19 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
19:19 mode/#code [+o himi] by ChanServ
19:28 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has quit [Connection closed]
20:46 * Derakon mutte/quit
20:46 Derakon [chriswei@Nightstar-a3b183ae.ca.comcast.net] has quit [Connection closed]
20:46 Derakon [chriswei@Nightstar-a3b183ae.ca.comcast.net] has joined #code
20:46 mode/#code [+ao Derakon Derakon] by ChanServ
20:48 * Derakon mutters at OpenGL, wonders why his pixels are either blue or red, and never in-between.
21:35
< Rhamphoryncus>
augh. Why did you let me see that 0x0 thing? Now my head hurts.
21:36
< gnolam>
Derakon: can you post your shader?
21:36
< gnolam>
(Also, those two images are of different size)
21:37
<&Derakon>
Yeah, the images were made with Windows' Snipping Tool program, so they're imprecise.
21:37
<&Derakon>
http://pastebin.com/6eHUxtye
21:39
< gnolam>
(Agh, inlined shaders!)
21:39
< gnolam>
Hmm.
21:39
< gnolam>
Why are you using min(max()) instead of clamp()?
21:39
<&Derakon>
Because I didn't know about clamp.
21:40
< gnolam>
Ah. :)
21:41
< Rhamphoryncus>
Not talking about any specific language here.. I almost wish clamp() accepted None for the lower or upper bound just because it makes more sense than min/max
21:42
< Rhamphoryncus>
min(0.9999, x) sounds like it should take a low value, but it's not. It's taking a high value, x, and make sure it's not TOO high
21:42
< gnolam>
Also: filtering on the LUT/texture?
21:43
< Rhamphoryncus>
or.. it just passes x through unaltered, if it's already low
21:43
<&Derakon>
Gnolam: I don't understand the question.
21:43
< gnolam>
The min/mag filtering mode.
21:43
<&Derakon>
Oh, GL_NEAREST.
21:46
<&Derakon>
The other thing I've noticed is that changing the size of the LUT (e.g. from 512 to 2048) changes the resulting image.
21:46
<&Derakon>
I was under the impression that texture1D(color_lut, value) basically took value in the range [0, 1] and then scaled that to the size of color_lut to get a color.
21:46
<&Derakon>
Is that not the case?
23:00 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Client closed the connection]
23:00 Serah [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
23:14 RichyB [MyCatVerbs@Nightstar-86656b6c.cable.virginmedia.com] has joined #code
23:18 Namegduf [namegduf@Nightstar-5c10d129.beshir.org] has quit [Ping timeout: 121 seconds]
23:19 Namegduf [namegduf@Nightstar-5c10d129.beshir.org] has joined #code
23:42 * gnolam eyes FreeType.
23:42
< gnolam>
They're renaming the library file with every minor version? Seriously?
23:46
< RichyB>
Is the ABI changing each time?
23:46
< gnolam>
Not AFAIK.
23:47
<&McMartin>
Hooray
23:47
<&McMartin>
http://www.addedbytes.com/blog/if-php-were-british/
23:50 Derakon [chriswei@Nightstar-a3b183ae.ca.comcast.net] has quit [[NS] Quit: leaving]
--- Log closed Wed Feb 22 00:00:41 2012
code logs -> 2012 -> Tue, 21 Feb 2012< code.20120220.log - code.20120222.log >

[ Latest log file ]