code logs -> 2010 -> Fri, 02 Jul 2010< code.20100701.log - code.20100703.log >
--- Log opened Fri Jul 02 00:00:37 2010
00:03
< Namegduf>
We wish.
00:04
< Namegduf>
A practical HTML parser still must deal with tag soup, unfortunately
00:04
< Namegduf>
But it's largely equivalent for annoyance factor, yeah.
00:04
<@ToxicFrog>
Note that at no point did I say or even imply that most sites use valid HTML.
00:04
<@ToxicFrog>
They don't.
00:04
< Namegduf>
And it /should/ be XML.
00:05
<@ToxicFrog>
But for well-formed HTML, the parser is just a specialization of an XML parser.
00:05
< Namegduf>
Even if they do, older versions of HTML are not XML.
00:05
< Namegduf>
And they're still pretty used nowadays.
00:05
<@ToxicFrog>
Well formed modern HTML, then.
00:05
<@ToxicFrog>
You know damn well what I mean.
00:05
<@ToxicFrog>
And since this is from the perspective of generating it, I don't need to worry about what other people are emitting.
00:20 Orthia [orthianz@Nightstar-8d746742.xnet.co.nz] has quit [[NS] Quit: On holiday!]
01:04 AnnoDomini [annodomini@Nightstar-4ed34f3a.adsl.tpnet.pl] has quit [[NS] Quit: Sleeeep.]
01:13 Derakon[AFK] is now known as Derakon
01:15 shade_of_cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has joined #code
01:15 shade_of_cpux is now known as cpux
01:47 Vornicus-Latens is now known as Vornicus
02:05 RichardBarrell [mycatverbs@Nightstar-228a334c.plus.com] has quit [Ping timeout: 121 seconds]
03:25 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
03:51 shade_of_cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has joined #code
03:51 cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
03:51 shade_of_cpux is now known as cpux
03:59 * Derakon asks the PyOpenGL mailing list about rendering fonts, is basically told he should roll his own solution using PyGame to render to surfaces that then get used as textures.
03:59
< Derakon>
Man, if I do end up doing that, I am making it available for other people so they don't have to deal with this shit. >.<
05:05 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
05:12 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
05:13 Syloqs_AFH is now known as Syloqs-AFH
05:31 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
05:38 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
05:39 Syloqs_AFH is now known as Syloqs-AFH
05:43 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
05:50 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
05:51 Syloqs_AFH is now known as Syloqs-AFH
06:24
< Rhamphoryncus>
Derakon: I'm surprised there isn't an existing solution
06:24
< Derakon>
You would think there was!
06:24
< Rhamphoryncus>
Maybe it doesn't involve opengl at all though
06:24
< Derakon>
And there's PyFTGL, which is a wrapper around the FTGL libraries for that very purpose, but the damn thing won't build for me.
06:25
< Rhamphoryncus>
doh
06:25
< Derakon>
You can use PyGame to render text trivially, but generating a new texture each time your text updates is prohibitive, performance-wise.
06:25
< Rhamphoryncus>
hrm
06:26
< Rhamphoryncus>
I forget that opengl is excruciatingly slow for some seemingly trivial operations
06:26
< Derakon>
So it seems like basically the options are: use PyGame to render every character you want and then cherrypick them using texture coordinates to do rendered quads, or use PyGame to render every character to a separate texture and blit a whole bunch of textures.
06:29
<@Vornicus>
gnerp. Okay. Gotta use copy-on-modify for game state.
06:29
< Rhamphoryncus>
Either way it's individual characters, only difference is one big texture vs a bunch of tiny ones?
06:30
< Derakon>
Pretty much.
06:34
< Derakon>
The main thing that worries me is dealing with kerning and spacing. I can't help but think this is only really plausible for fixed-width fonts.
06:35
<@Vornicus>
Der: how is youre text updating?
06:36
<@Vornicus>
Also if you can access your font's advancing data you can do it yourself, but it's not pretty.
06:37
< Derakon>
Vorn: well, specifically I'm thinking about the in-game console, which is pretty arbitrary.
06:39
<@Vornicus>
in-game console is generally fixedwidth anyway, so I suspect your best bet is: do your bottom line as a series of textures, and then do some number of whole history lines as another texture.
06:40
<@Vornicus>
Then you have multiple history textures racked up, kill them as they drop off the top of the screen, and update (probably keep one in RAM if you have to nativise them) your bottommost history texture as you go instead of regenerating.
06:42
< Derakon>
Mm, yeah.
06:42
< Derakon>
That would require basically rewriting the console's render code, though...and I didn't write it in the first place. ¬.¬
06:42
< Derakon>
But you're probably right.
06:42
<@Vornicus>
oh how nice
06:43
< Derakon>
(The console worked great when I was just using PyGame, mind. It just can't blit to OpenGL surfaces)
06:53 Derakon is now known as Derakon[AFK]
07:53 Stalker [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 121 seconds]
07:54 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
07:55 Vornicus-Latens [vorn@ServerAdministrator.Nightstar.Net] has joined #code
07:55 mode/#code [+o Vornicus-Latens] by Reiver
07:56 Vornicus-Latens is now known as Vornicus
08:21 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
08:36 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
09:16 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
10:08 AnnoDomini [annodomini@Nightstar-4ed34f3a.adsl.tpnet.pl] has joined #code
10:08 mode/#code [+o AnnoDomini] by Reiver
10:23 Rhamphoryncus [rhamph@Nightstar-bbc709c4.abhsia.telus.net] has quit [Client exited]
11:01 AnnoDomini [annodomini@Nightstar-4ed34f3a.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
11:01 AnnoDomini [annodomini@Nightstar-387e7874.adsl.tpnet.pl] has joined #code
11:01 mode/#code [+o AnnoDomini] by Reiver
11:05 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection reset by peer]
11:08 Vornicus is now known as Vornicus-Latens
12:03 * gnolam is now officially a research engineer again.
12:20 cpux is now known as shade_of_cpux
13:52 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Doing battle on the Eastern Front]
15:41 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
16:02 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
17:15 ErikMesoy [Erik_Mesoy@Nightstar-16aecaf5.bb.online.no] has joined #code
19:15 Vornicus-Latens is now known as Vornicus
19:22 Kazriko [kaz@Nightstar-e09690fa.client.bresnan.net] has quit [Ping timeout: 121 seconds]
19:23 aoanla [AndChat@Nightstar-9e2741f3.range217-42.btcentralplus.com] has joined #code
19:24 aoanla [AndChat@Nightstar-9e2741f3.range217-42.btcentralplus.com] has quit [[NS] Quit: ]
19:24 aoanla [AndChat@Nightstar-9e2741f3.range217-42.btcentralplus.com] has joined #code
19:41 Kazriko [kaz@Nightstar-e09690fa.client.bresnan.net] has joined #code
19:41 mode/#code [+o Kazriko] by Reiver
20:14 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
20:32 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has quit [Killed (JustBob (It is? I thought you had kill protection enabled.))]
20:33 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code
21:07 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
21:11 Derakon [Derakon@Nightstar-1ffd02e6.ucsf.edu] has joined #code
21:11 mode/#code [+o Derakon] by Reiver
21:11 * Derakon finishes installing a new display in the scope room.
21:11
<@Derakon>
The main computer is now running 1 1200x1920 display and two 1080x1920 displays, for about 6.5 million pixels.
21:13
< Alek>
:O
21:17
<@Vornicus>
TOp-bottom, or left-right?
21:17
<@Derakon>
Left-right.
21:17
<@Derakon>
Three widescreen monitors, in portrait mode, side-to-side.
21:18
<@Derakon>
So a total resolution of 3360x1920.
21:18
<@Vornicus>
Woo portrait mode
21:20
<@Derakon>
Honestly I don't know what we're going to do with this new one. We had an older 1280x1024 monitor in its place, but my boss was complaining that it looked lopsided.
21:20 * Derakon shrugs.
21:22 Stalker [Z@5E691D.FC7C16.F8708C.49C557] has joined #code
21:25 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [[NS] Quit: Leaving]
21:26
<@Derakon>
Heh...we originally had 3x 1280x1024 displays, but this meant that the UI for the main microscope interface was a bit clunky.
21:27
<@Derakon>
In particular, we have four 512x512 cameras, and you couldn't fit all four of them onto one display.
21:27
<@Derakon>
So after a bit of thinking I suggested getting a widescreen monitor and putting it into portrait mode, which worked beautifully.
21:27
<@Vornicus>
Now you can fit 18 without overlap.
21:27
<@Derakon>
Things snowballed from there.
21:27
<@Derakon>
Well, the right-hand display is used for a high-level view of what's on the slide, so it can basically use an arbitrary number of pixels. So it was the next to get upgraded.
21:27
<@Derakon>
The third, as I mentioned, primarily got upgraded for purposes of not being lopsided.
21:28
<@Vornicus>
Pfff
21:28
<@Derakon>
I do admit it's nice being able to mouse onto the third display without hitting an invisible barrier caused by it being a bit over half the height of the adjacent display~
21:29
<@Vornicus>
hee
21:35 Stalker [Z@5E691D.FC7C16.F8708C.49C557] has quit [Client closed the connection]
21:54 Stalker [Z@2C3C9C.B2A300.F245DE.859909] has joined #code
21:57 Derakon[AFK] [Derakon@Nightstar-5213d778.ca.comcast.net] has quit [Ping timeout: 121 seconds]
22:17 AndChat| [AndChat@37647E.0002A6.410380.30CAFF] has joined #code
22:18 aoanla [AndChat@Nightstar-9e2741f3.range217-42.btcentralplus.com] has quit [Ping timeout: 121 seconds]
22:38 ErikMesoy is now known as ErikMesoy|sleep
23:00
<@ToxicFrog>
Mmmmmmm
23:00
<@ToxicFrog>
I can feel the way I think about the program changing as I learn more Scala
23:00
<@ToxicFrog>
Delicious
23:11 AndChat| [AndChat@37647E.0002A6.410380.30CAFF] has quit [[NS] Quit: ]
23:20 Derakon [Derakon@Nightstar-1ffd02e6.ucsf.edu] has quit [[NS] Quit: Leaving]
--- Log closed Sat Jul 03 00:00:38 2010
code logs -> 2010 -> Fri, 02 Jul 2010< code.20100701.log - code.20100703.log >