code logs -> 2016 -> Wed, 05 Oct 2016< code.20161004.log - code.20161006.log >
--- Log opened Wed Oct 05 00:00:27 2016
01:31 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [[NS] Quit: Leaving]
02:00 catadroid [catadroid@Nightstar-0p8mhf.dab.02.net] has quit [The TLS connection was non-properly terminated.]
02:01 catadroid [catadroid@Nightstar-0p8mhf.dab.02.net] has joined #code
02:47 Derakon [chriswei@Nightstar-5mvs4e.ca.comcast.net] has joined #code
02:47 mode/#code [+ao Derakon Derakon] by ChanServ
03:03
<&[R]>
-*- digitalcircuit suspects he's missing something obvious in Sput's template-y stuff >.<
03:03
<&[R]>
<digitalcircuit> "typename std::enable_if<std::is_enum<T>{}, int>::type = 0" â Use an 'int' type if T is an enum, and if not, treat as void (therefore don't consider this overload valid)..?
04:03
<&McMartin>
Success!
04:03
<&McMartin>
https://hkn.eecs.berkeley.edu/~mcmartin/screenshots/WinCCA.png
04:03
<&McMartin>
https://hkn.eecs.berkeley.edu/~mcmartin/screenshots/Win98-CCA-2.png
04:03
<&McMartin>
These are, in fact, the same binary
04:06
<~Vornicus>
Sweeeeet
04:07
<&McMartin>
Also shown, the glorious future of the "Internet"
04:07
<&McMartin>
With several links to get you started, like Compuserve and Prodigy
04:08
<&Derakon>
Context? Why are you doing this?
04:08
<&McMartin>
The same 17,408 byte binary
04:09
<&McMartin>
Derakon: First, it was "so, how hard is it to get a mixed pixel display and actual Windows widgets, so that I can port a neat-looking old BASIC program but still have mouse controls and ancillary displays without a bunch of modal BS"
04:09
<&Derakon>
But why Win98?
04:09
<&McMartin>
Then it was "How bad is the original Win32 interface anyway" (Spoiler: pretty bad, but not that bad)
04:10
<&McMartin>
then it was "Hmm, these APIs are pretty damn stable. I wonder just how stable they really are"
04:10
<&McMartin>
... and then I was looking through my old CDs for something else and found my original Win98SE install CD and Certificate of Authenticity from, like, 1999
04:11
<&McMartin>
After that things get a little hazy, but it appears to be a full day later and I have a functioning Win98 VM that's running some of my more recent code
04:11
<&McMartin>
In a certain sense this is all yak shaving
04:11
<&Derakon>
So this is basically a slightly more advanced version of your usual retrocoding predilections?
04:11
<&Derakon>
Or, uh, slightly less advanced~
04:11
<&McMartin>
It kind of turned into that.
04:12
<&McMartin>
Heh
04:12
<&McMartin>
But yeah, some of this was "let's take what I learned about UI design and incompletely-automatic layout managers and just hit Windows at the bare metal"
04:13
<&McMartin>
Combined with "all other modes of direct Windows programming with a compiled language are a goddamn nightmare, require many megabytes of support libraries, or both"
04:13
<&McMartin>
And combining what I've learned on the iPhone with my abilities constructing OO-like structures in C...
04:13
<&McMartin>
... and with a handful of features that apparently go back to Win98 if not Windows 3.1...
04:14
<&McMartin>
... That's enough for "I want to draw a picture and have some buttons and displays next to it"
04:14
<&McMartin>
After that it was just, hrm
04:14
<&McMartin>
aggressive compatibility testing
04:14
<&Derakon>
Heh.
04:14
<&McMartin>
But that's actually really quite impressive
04:15
<&McMartin>
Because there isn't a single line of code shared between the Win9x and Win2k+ kernels.
04:15
<&McMartin>
But the application API and ABI is completely exact.
04:17 * McMartin digs. "Also, apparently it could support every version of DirectX up to 8.0a."
04:17
<&Derakon>
Meanwhile, I'm doing old Project Euler problems (super-easy ones) since I haven't done any programming to speak of in a couple months and my job starts next Monday.
04:17
<&Derakon>
And apparently now Python won't let you do
04:17
<&Derakon>
foo = None
04:17
<&Derakon>
def bar():
04:18
<&Derakon>
if foo is None:
04:18
<&Derakon>
....
04:18
<&Derakon>
That is, I have a module-scoped variable that's refered to in bar().
04:18
<&Derakon>
I'm getting a "referenced before assignment" error.
04:18
<&Derakon>
...oh, right, nemmind.
04:18
<&McMartin>
If you assign foo at any point in the function you need to explicitly declare "global foo" at the top of bar
04:18
<&Derakon>
Python can't tell the difference between a module-scoped variable and an identically-named function-scoped variable.
04:19
<&Derakon>
...right, thank you! Forgot about the "global" statement.
04:21
<&Derakon>
Now I'd like to know why every other time I import my library, Python segfaults.
04:33
<@Alek>
damn, that was impressive indeed.
05:07 Derakon is now known as Derakon[AFK]
05:09 gizmore [kvirc@Nightstar-1gan4m.dip0.t-ipconnect.de] has joined #code
05:19 celticminstrel [celticminst@Nightstar-c9802h.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
05:24 catadroid` [catadroid@Nightstar-cuk0t6.dab.02.net] has joined #code
05:27 catadroid [catadroid@Nightstar-0p8mhf.dab.02.net] has quit [Ping timeout: 121 seconds]
06:34 himi [sjjf@Nightstar-dm0.2ni.203.150.IP] has quit [Ping timeout: 121 seconds]
07:10 catadroid` is now known as catadroid
07:24 catadroid` [catadroid@Nightstar-cuk0t6.dab.02.net] has joined #code
07:24 catadroid [catadroid@Nightstar-cuk0t6.dab.02.net] has quit [The TLS connection was non-properly terminated.]
07:26
<@TheWatcher>
https://toggl.com/programming-princess - how to save the princess in 8 programming languages
07:28
< catadroid`>
I do love the lisp one
07:31
<&McMartin>
"I need a submarine but for the surface - but not a boat!"
07:31
<&McMartin>
https://toggl.com/worst-client-types-infographic
08:18 catadroid` [catadroid@Nightstar-cuk0t6.dab.02.net] has quit [[NS] Quit: Bye]
08:42 catadroid [catadroid@Nightstar-cuk0t6.dab.02.net] has joined #code
08:50 gizmore [kvirc@Nightstar-1gan4m.dip0.t-ipconnect.de] has quit [Ping timeout: 121 seconds]
08:51 gizmore [kvirc@Nightstar-3r8h95.dip0.t-ipconnect.de] has joined #code
09:04 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
09:20 mac is now known as macdjord|slep
09:34 Kindamoody[zZz] is now known as Kindamoody|afk
09:59 Netsplit Deepthought.Nightstar.Net <-> Kakrafoon.Nightstar.Net quits: @Xon, @Orthia, @Alek, @gnolam, @Ogredude, @jerith, @Pi, @Azash, @[R], Pink, (+3 more, use /NETSPLIT to show all of them)
10:00 Netsplit over, joins: @jeroud, &[R], @Ogredude, @Pi, @Azash, @Xon, @gnolam, &Derakon[AFK], &jerith, @Orthia (+3 more)
10:08 himi [sjjf@Nightstar-v37cpe.internode.on.net] has joined #code
10:08 mode/#code [+o himi] by ChanServ
10:10 Tarinaky [tarinaky@Nightstar-ak1gaj.programmingresearch.com] has joined #code
10:10 mode/#code [+o Tarinaky] by ChanServ
11:54 catadroid` [catadroid@Nightstar-arqf2l.dab.02.net] has joined #code
11:58 catadroid [catadroid@Nightstar-cuk0t6.dab.02.net] has quit [Ping timeout: 121 seconds]
12:00 catadroid` is now known as catadroid
14:10 gnolam_ [lenin@Nightstar-t1tbf0.cust.bahnhof.se] has joined #code
14:13 gnolam [lenin@Nightstar-t1tbf0.cust.bahnhof.se] has quit [Ping timeout: 121 seconds]
14:34 gnolam_ is now known as gnolam
14:34 mode/#code [+o gnolam] by ChanServ
14:34
<@gnolam>
Argh.
14:34 * gnolam wants to assume a perfectly spherical cow, but cannot.
14:38
< catadroid>
Hurray, someone else is doing the long, tedious release for me
14:41
<@Tarinaky>
Did you hear about Squad quitting?
14:43 * catadroid nods
14:43
<@Tarinaky>
End of an Era, lol.
14:46
< catadroid>
It... didn't sound like a wonderful place to work for
14:47
<@Tarinaky>
I haven't heard anything about that.
14:47
<@Tarinaky>
I kinda stopped playing KSP years ago.
14:49 * catadroid nods
14:50
< catadroid>
Toddlebot likes it, they call it 'Boom!'
14:53
<@TheWatcher>
I would like to play KSP. Unfortunately its resource and scene management is so shite that installing the mods I actually want to play it with renders it essentially unplayable on my system >.<
14:56
< catadroid>
>.<
14:59
<@Tarinaky>
I really ought to get a new VPS but ~~effort~~
15:29 macdjord|slep is now known as macdjord|wurk
16:07
<@gnolam>
Tarinaky: Squad quitting?
16:11
< catadroid>
The KSP development team have all resigned
16:14
<@Tarinaky>
There's like... 2 devs who haven't resigned I think?
16:43
<@abudhabi>
What did they resign over?
17:28 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
17:28 mode/#code [+qo Vornicus Vornicus] by ChanServ
17:46 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection reset by peer]
17:47 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
17:47 mode/#code [+qo Vornicus Vornicus] by ChanServ
18:03 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
18:03 mode/#code [+o Emmy] by ChanServ
18:20
<&[R]>
<srg> http://www.pcinvasion.com/kerbal-space-program-devs-quit
18:24 catadroid` [catadroid@Nightstar-c422ol.dab.02.net] has joined #code
18:27 Tarinaky [tarinaky@Nightstar-ak1gaj.programmingresearch.com] has quit [Connection closed]
18:28 catadroid [catadroid@Nightstar-arqf2l.dab.02.net] has quit [Ping timeout: 121 seconds]
18:51 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
18:56
<@Emmy>
[R]: YIKES.
18:58 abudhabi is now known as Logar
20:17 celticminstrel [celticminst@Nightstar-c9802h.dsl.bell.ca] has joined #code
20:17 mode/#code [+o celticminstrel] by ChanServ
21:05 Kindamoody|afk is now known as Kindamoody
21:10 Tarinaky [NSwebIRC@Nightstar-47bvjm.cable.virginm.net] has joined #code
21:10 mode/#code [+o Tarinaky] by ChanServ
21:11
<@Tarinaky>
I'm having some weirdness with projection matrices. Changing the near/far plane of my Orthographic is affecting the scale of the model... but I thought the whole point of an Ortho matrix was that the scale /doesn't/ change with depth...
21:11
<@Tarinaky>
Am I missing something derpy?
21:23
<&McMartin>
Within a given projection matrix, does altering the Z coordinate of objects seem to scale them?
21:26
<@Tarinaky>
I'm not really in a position with this where I can easily adjust the Z-coordinate of things.
21:29
<@Tarinaky>
I was trying to implement a perspective matrix - but it wasn't drawing anything... So I paired back to implement the Orthographic matrix which works, but I don't really understand how changing the near/far plane was having the effect it was having.
21:29
<@Tarinaky>
Suffice to say I don't have a model/view matrix atm.
21:31
<@Tarinaky>
This is the code setting the projection matrix (it's zero-initialised /elsewhere/) http://pastebin.com/eGcPXKHB
21:32
<@Tarinaky>
Sorry, I cut off a bit at the top: http://pastebin.com/7FV1SGTf
21:34
<@Tarinaky>
But that hsould be matching this? http://www.songho.ca/opengl/files/gl_projectionmatrix_eq16.png
21:53 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [[NS] Quit: Leaving]
22:04
<@Tarinaky>
Regarding the initial question, in the Orthographic case, changing the z-coordinate of the model doesn't change the scale. So I guess that's okay.
22:04
<@Tarinaky>
Which just leaves me with... what am I doing wrong in my perspective matrix :/
22:19
<&McMartin>
It's possible that in the ortho case the near/far plane interacts with the viewport mechanic in some unusual way.
22:20
<&McMartin>
Because that's what you're altering, right? The view frustum?
22:20
<&McMartin>
Which is more of a view rectangular-prism, because ortho, but.
22:21
<@Tarinaky>
Must be.
22:21
<&McMartin>
The fact that the f and n values show up in the normalization column is kind of concerning
22:36
<@Tarinaky>
I think it does in all the forms of the projection matrix I can find?
22:37
<@Tarinaky>
I think this is basically equivalent to what I have, just with cot instead of tan...
22:37
<@Tarinaky>
https://www.safaribooksonline.com/library/view/webgl-programming-guide/978013336 4903/graphics/appc_fig02.jpg
22:38
<@Tarinaky>
Wait, that's actually completely different...
22:38 catadroid` [catadroid@Nightstar-c422ol.dab.02.net] has quit [[NS] Quit: Bye]
22:40 catadroid [catadroid@Nightstar-c422ol.dab.02.net] has joined #code
22:40 catadroid [catadroid@Nightstar-c422ol.dab.02.net] has quit [[NS] Quit: Bye]
22:47 catadroid [catadroid@Nightstar-c422ol.dab.02.net] has joined #code
23:06 Kindamoody is now known as Kindamoody[zZz]
23:07 Derakon[AFK] is now known as Derakon
23:24 catadroid [catadroid@Nightstar-c422ol.dab.02.net] has quit [[NS] Quit: Bye]
23:45 Emmy is now known as Emmy-zZz
23:52 Tarinaky [NSwebIRC@Nightstar-47bvjm.cable.virginm.net] has quit [[NS] Quit: Page closed]
--- Log closed Thu Oct 06 00:00:43 2016
code logs -> 2016 -> Wed, 05 Oct 2016< code.20161004.log - code.20161006.log >

[ Latest log file ]