code logs -> 2012 -> Wed, 15 Aug 2012< code.20120814.log - code.20120816.log >
--- Log opened Wed Aug 15 00:00:28 2012
00:10 Reivles [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
00:24
< Rhamphoryncus>
Just looked it up.. sure, only a few pieces, but each is composed of infinitely many points :P
00:26
<&McMartin>
So is every line segment~
00:28
< Rhamphoryncus>
yup, which is interesting, but not nearly as interesting as the b-t paradox
00:28
< Rhamphoryncus>
err
00:28
< Rhamphoryncus>
not nearly as interesting as the b-t paradox is portrayed to be
00:33
<&McMartin>
Ha ha ha
00:33 himi-cat [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
00:33
<&McMartin>
Remember when we were bitching about Sun build systems yesterday
00:33
<&McMartin>
I went to look at VBox's build instructions again to see if the Windows build still required a MinGW-hosted cross-compiler that targets 64-bit Linux
00:33
<&McMartin>
It does
00:33
<&McMartin>
But they now officially apologize for this
00:34
<&ToxicFrog>
wait
00:34
<&ToxicFrog>
what
00:34
<&McMartin>
https://www.virtualbox.org/wiki/Windows%20build%20instructions
00:34
<&McMartin>
Originally, this requirement was *completely undocumented*
00:35
<&McMartin>
So if you tried to build the OSE version from source you'd get, on windows, "cannot find gcc-i686-linux-elf.exe, aborting"
00:35
<&McMartin>
Also, you have to hand-hack the gcc sources to get something that mingw will compile and run, and you need a Linux system to use as sysroot.
00:35 RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has quit [[NS] Quit: Leaving]
00:36
<&McMartin>
That said, poking around their site, Oracle has *seriously* gotten Sun's and Innotek's shit together
00:37
<&McMartin>
Like, there is actual SDK documentation now
00:38
<&McMartin>
(IIRC, the MinGW cross-compiler jackassery is because VBox does binary recompilation of guest executable code to replace I/O with hypervisor traps.)
00:54 Derakon[AFK] is now known as Derakon
00:54 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has quit [Client exited]
01:24 * McMartin keeps poking at VBox stuff while waiting for stuff to build
01:25
<&McMartin>
Not only is there actual SDK documentation, it's actually pretty good
01:25
<&McMartin>
Also python bindings \o/
01:25
<~Vornicus>
\o/
01:38
<&ToxicFrog>
Oh yeah, what's libgdx?
01:41
<&McMartin>
It appears to be a Java game development library targeting desktop, Android, and WebGL/HTML5.
01:42
<&McMartin>
http://libgdx.badlogicgames.com
01:43
<&McMartin>
Came up on ifMUD, I am bookmarking it for future reference
01:43
<&McMartin>
I don't think I'd use it for Hex Inverter unless the Android port of it stalls.
01:45
<&ToxicFrog>
oho
01:45
<&ToxicFrog>
That reminds me, I should look into Android development; there's an app I want to write
01:46
<&McMartin>
This got a "the docs are much more solid now and it seems OK so far" for game-y stuff
01:46
<&McMartin>
For app-y stuff, developer.android.com pretty much has the goods
01:46
<&ToxicFrog>
Yeah, this would in fact be an app, not a game
01:47
<&McMartin>
And I've also got an API 10 phone if you want extra testing space~
01:47
<&ToxicFrog>
(there is also a game I want to write but I do not think it would work well on mobile devices)
01:47 himi [fow035@D741F1.243F35.CADC30.81D435] has joined #code
01:47 mode/#code [+o himi] by ChanServ
01:49
<&McMartin>
Which google installation is this?
01:52
<&ToxicFrog>
CA-WAT, the Kitchener-Waterloo engineering office.
01:54 Alek [omegaboot@Nightstar-56dbba0f.in.comcast.net] has quit [Connection reset by peer]
02:00 himi-cat [fow035@D741F1.243F35.CADC30.81D435] has joined #code
02:12 Alek [omegaboot@Nightstar-56dbba0f.in.comcast.net] has joined #code
02:13 mode/#code [+o Alek] by ChanServ
03:35 io|sick is now known as iospacedout
03:48 Kindamoody[zZz] is now known as Kindamoody
03:56 * Derakon eyes Pyrel.
03:56
<&Derakon>
For some reason, dragging one window causes another window to also move.
03:57
<&Derakon>
But the second window can be dragged independently of the first one.
04:52 Nemu [NeophoxProd@Nightstar-ab56350e.asahi-net.or.jp] has joined #code
06:46 Derakon is now known as Derakon[AFK]
07:00 Vash [Vash@Nightstar-e8057de2.wlfrct.sbcglobal.net] has quit [[NS] Quit: I lovecraft Vorn!]
07:01 Kindamoody is now known as Kindamoody|afk
07:21 Kindamoody|afk is now known as Kindamoody
07:29 Kindamoody is now known as Kindamoody|out
07:56 You're now known as TheWatcher
08:17 cpux [cpux@Nightstar-c5874a39.dyn.optonline.net] has quit [Connection reset by peer]
08:35 celticminstrel [celticminst@Nightstar-05d23b97.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
09:05 himi [fow035@D741F1.243F35.CADC30.81D435] has quit [Ping timeout: 121 seconds]
09:05 himi-cat [fow035@D741F1.243F35.CADC30.81D435] has quit [Ping timeout: 121 seconds]
10:15
<@TheWatcher>
"I'll just throw together X", I say. Three days, 5 database tables, and nearly 1.5k lines of code later, X still isn't done...but when It is done, it'll do X, Y, Z, and a bunch of other things.
10:16
<@TheWatcher>
I hate my brain.
10:22 froztbyte [froztbyte@Nightstar-dc394964.za.net] has quit [[NS] Quit: Lost terminal]
10:25 froztbyte [froztbyte@Nightstar-dc394964.za.net] has joined #code
10:44 RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
11:39
< Tarinaky>
I need a C++ JSON lib. Ideally one that gives me something fairly intuitive to work with as an output.
11:39
< Tarinaky>
Suggestions?
12:32 iospacedout is now known as iospace
12:34 himi-cat [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
12:34 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
12:34 mode/#code [+o himi] by ChanServ
12:46 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has joined #code
13:26 Nemu [NeophoxProd@Nightstar-ab56350e.asahi-net.or.jp] has quit [Client closed the connection]
13:45 celticminstrel [celticminst@Nightstar-05d23b97.cable.rogers.com] has joined #code
13:50 Kindamoody|out is now known as Kindamoody
14:22
<@Tamber>
Tarinaky, ...funnily enough...
14:23
<@Tamber>
"<lastfm> Our MIR team has open sourced their JSON library for C++. Read all about it here http://t.co/HfSMHA5D https://t.co/EEeJlHt0 "
14:23
<@Tamber>
Dunno if it gives you anything intuitive, but it's an option! :p
14:26 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
14:26 himi-cat [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
14:33
<&ToxicFrog>
The closest thing you're going to get for "something fairly intuitive" for JSON in C++ is probably nested std::vectors and std::maps
14:33
<&ToxicFrog>
oh wait, shit, except they're typed on their contents
14:33
< celticminstrel>
std::vector<boost::any>
14:39 himi-cat [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
14:40 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
14:40 mode/#code [+o himi] by ChanServ
14:45
< Tarinaky>
I'm kindof hoping so I don't have to handroll here :/
14:45
< Tarinaky>
Boost is being fairly useless.
14:50
< Tarinaky>
(Seriously. Who thinks exit()ing with no message or exception is a good strategy for a run time error =.=)
14:52
<@Tamber>
That's stupid.
14:52 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
14:52
<@Tamber>
It should be abort(). Duh!
14:53 * Tamber ducks.
14:53 himi-cat [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
14:53
< Tarinaky>
error: request for member 'str' in 'data::stream', which is of non-class type 'std::stringstream() {aka std::basic_stringstream<char>()}'
14:53
< Tarinaky>
What o.o
15:05 himi-cat [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
15:06 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
15:06 mode/#code [+o himi] by ChanServ
15:22
< Tarinaky>
Sod it. I'll just eat the inevitable memory leaks from this terribly written library I did as a lark :/
15:25 * TheWatcher eyes channel
15:26
<@TheWatcher>
jasoncpp?
15:26
<@TheWatcher>
*jsoncpp
15:27
<@TheWatcher>
http://jsoncpp.sourceforge.net/ - that thing. I've heard some decent things about it
15:28
< Tarinaky>
In fairness, I think my version is fairly close to correct. It's just there's a few bits of it I'm wtf-ing at myself for.
15:29
<&McMartin>
JSON is by design Not Hard
15:29
<&McMartin>
Part of the problem, really
15:29
< Tarinaky>
McMartin: And yet Boost, somehow, manages to fuck it up.
15:30
<&McMartin>
Looks like a template instantiation gone awry
15:30
< Tarinaky>
In the end it came down to the fact that Boost absolutely -had- to have a file and there was nop scope for passing it any other kind of stream.
15:31
< Tarinaky>
Which is a pain when you're not using standard file io >.>
16:08
<&ToxicFrog>
wait, what?
16:09
< Tarinaky>
Physfs.
16:09
<&ToxicFrog>
does C++ even have a file type? I thought it was iostreams all the way down
16:09
<&McMartin>
It does have a file type; it's what ifstreams and ofstreams wrap~
16:09
< Tarinaky>
iostreams are instantiated from file handles typically... iirc.
16:11
<&McMartin>
The error quoted involved something looking for but not finding the str() method
16:11
<&McMartin>
That's part of ostringstreams.
16:11
< Tarinaky>
I long since gave up on that.
16:29
< Tarinaky>
Now I just have to swear at ld for being a pain.
16:38
< Tarinaky>
Oh wait, it wasn't boost not throwing an exception.. it seems this version of gdb isn't halting on exception.
16:40
<@TheWatcher>
Are you actually telling it to? >.>
16:40
< Tarinaky>
On Linux I have a recollection of it giving a different message if there's an exception.
16:41
< Tarinaky>
Anyway. PHYSFS isn't openning a file for writing for some reason.
16:41
< Tarinaky>
There's a function to get the last error message though...
16:41
<@TheWatcher>
before you run the program, issue 'catch throw' and it should stop when the exception gets thrown.
16:41
< Tarinaky>
(gdb) print PHYSFS_getLastError()
16:41
< Tarinaky>
$1 = 0x0
16:41
< Tarinaky>
Helpful!
16:58
< Tarinaky>
Stupid bug is stupid. It fails if a directory doesn't exist :/ Lame.
16:58
< Tarinaky>
I'll deal with that later >.>
17:25 * TheWatcher eyes this person asking for a copy of the doxygen manual in pdf, bwuhs, wonders wtf for
17:26
<&McMartin>
To print out and beat people with.
17:26
<&McMartin>
Alt: to burn in effigy like the GNU coding guidelines
17:27
<@TheWatcher>
Heh
17:47
<@TheWatcher>
"# This class implements the email transport system; lasciate ogne speranza, voi ch'intrate." - says it all, really >.>
17:47
<&McMartin>
Kinda Verbose
17:47
<&McMartin>
The UUW1 AI code said that more concisely:
17:47
<&McMartin>
/* HA HA */
17:48
<@TheWatcher>
Lacks a certain gravitas, IMO.
17:49
<&McMartin>
Experiencing A Certain Gravitas Shortfall, even
18:00 Vash [Vash@Nightstar-e8057de2.wlfrct.sbcglobal.net] has joined #code
18:00 mode/#code [+o Vash] by ChanServ
18:34
< rms>
<Tarinaky> iostreams are instantiated from file handles typically... iirc. ,<-- there are string streams
18:39 iospace is now known as io|sick
19:29
<&McMartin>
"Windows 8 review: Yes, it's that bad"
19:29
<&McMartin>
http://www.infoworld.com/d/microsoft-windows/windows-8-review-yes-its-bad-200113
19:33 Kindamoody is now known as Kindamoody[zZz]
21:43
< RichyB>
Anyone know anything about getting vsync to work with OpenGL?
21:43
< RichyB>
I'm using GLFW on Linux with the ATI driver
21:43
< RichyB>
believe that I'm calling glfwSwapInterval(1) correctly
21:44
< RichyB>
but glfwSwapBuffers() just refuses to take 16ms. :/
21:51
<@TheWatcher>
You're sure that it hasn't been forced off in the driver config?
21:55
<@TheWatcher>
"Notes: This function will only have an effect on hardware and drivers that support user selection of the swap interval. ATI drivers in particular have been known to ignore this setting." - the GLFW ref manual
21:56
<@TheWatcher>
(docs for glfwSwapInterval())
21:57
<@TheWatcher>
Might be worth using it as you are anyway, forcing vsync on in the driver, and getting others to test it later.
22:03
< RichyB>
BRB, restarting X11
22:04 RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has quit [[NS] Quit: Leaving]
22:14 RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
22:14
< RichyB>
Nope nope and no.jpg
22:14
< RichyB>
aticonfig --vs on, did nothing.
22:15
< RichyB>
amdcccle, 3d options -> force vsync, nope.
22:15
< RichyB>
swapbuffers() is still taking too few milliseconds.
22:15
< RichyB>
Feh.
22:16
< RichyB>
Tried switching from the compositing window manager to a non-compositing one, doesn't seem to have helped
22:17
< RichyB>
Next line of inquiry: installing OpenArena since that's known to be quake3, see whether any existing videogames have the ability to set vsync.
22:28
< RichyB>
dammit
22:29
< RichyB>
First answer is, a) openarena doesn't even have an option for vsync, b) who cares the bots can kick my arse anyway? :P
22:31
< RichyB>
Tried yanking the second monitor out and restarting X11, still not playing ball.
22:43
< RichyB>
Nope, Sauerbraten's vsync options don't work either.
22:43
< RichyB>
Saunerbraten actually *has* a vsync option, and it just doesn't work.
22:43
< RichyB>
Oh well! At least I know it's the driver, not me.
22:47
<&McMartin>
Don't rely on swapbuffers() for timing purposes, use micro- or nanosleep
22:47
<~Vornicus>
yeah, I learned that the hard way - you only get timing right off that when you are fullscreen /and/ have vsync
22:49
<&ToxicFrog>
Side note: even if vsync is on in both the software and the driver, it may not work in windowed mode at all
22:49
<~Vornicus>
right.
22:50 Nemu [NeophoxProd@Nightstar-bece4b0d.asahi-net.or.jp] has joined #code
22:50
< RichyB>
Not what I'm aiming for!
22:51
< RichyB>
I know to use clock_gettime(CLOCK_MONOTONIC, ...); for timing.
22:51
< RichyB>
For starters, some people have 50Hz, 60Hz, 85Hz, 100Hz and even 120Hz displays.
22:52
< RichyB>
*CLOCK_MONOTONIC for simulation timing.
22:53
< RichyB>
I just want to kill tearing artifacts, and write videogames that let the transistors have a nap (and hopefully reduce power consumption a tad) when the scene being drawn is really cheap.
22:54
< RichyB>
Also I'm using a GC'd language and I want to try things like invoking small collections during the vsync waits to minimise the probability that GC kicks in and makes me drop a frame.
22:56
<&ToxicFrog>
Well, if it's on in the driver, and you're testing it fullscreen, I have no idea
22:56
<&ToxicFrog>
The drive might just be fundamentally broken
23:00
< RichyB>
I strongly suspect that that's the case.
23:01 Derakon [chriswei@Nightstar-a3b183ae.ca.comcast.net] has joined #code
23:01 mode/#code [+ao Derakon Derakon] by ChanServ
23:01 * Derakon eyes his email.
23:01
<&Derakon>
"We are currently searching for a "brain-spray awesome" engineer to lead Hulu into the future, help drive innovation, and tackle the exciting challenge of redefining how people consume content."
23:01
<&Derakon>
Silly headhunters.
23:03
<&Derakon>
Also the email was titled "Resistance is Futile (Star Trek) - Opportunity at HULU". WTF?
23:04
< RichyB>
heheh
23:04
< RichyB>
Like as if the headhunter was worried that someone might not get the reference? :P
23:04
<&Derakon>
I mean, are they saying that working at Hulu is like working for the Borg?
23:04
<&Derakon>
That too!
23:11
<&ToxicFrog>
Maybe they wanted to make it clear that they were quoting Star Trek and not making a mafia-style offer you can't refuse
23:13
<&Derakon>
It sounds like they're doing both.
23:13
<&Derakon>
"Hey look, we're cool and hip, oh and BTW you're working for us whether you like it or not."
23:13
< RichyB>
A Star Wars reference would have been more apropos.
23:13
< RichyB>
"You're our only hope!" etc.
23:14
<&Derakon>
Heh.
23:14
<&ToxicFrog>
"We would be...honoured...if you would join us." seems more appropriate.
23:15
<&Derakon>
I don't get that reference though.
23:15
<&ToxicFrog>
Darth Vader, greeting Our Heroes as they enter the dining hall on Cloud City.
23:16
<&Derakon>
Ah.
23:27
<&McMartin>
Yeah, so the problem with that is that "I am altering the deal; pray I do not alter it any further" is a bad thing to have in mind when offering an employment contract
23:39
< RichyB>
http://lukecompany.ytmnd.com/ <- somehow work that in.
23:39
< RichyB>
Oh oops.
23:50 RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has quit [[NS] Quit: Leaving]
23:53 Derakon [chriswei@Nightstar-a3b183ae.ca.comcast.net] has quit [[NS] Quit: leaving]
23:54 You're now known as TheWatcher[T-2]
--- Log closed Thu Aug 16 00:00:43 2012
code logs -> 2012 -> Wed, 15 Aug 2012< code.20120814.log - code.20120816.log >

[ Latest log file ]