code logs -> 2008 -> Tue, 09 Dec 2008< code.20081208.log - code.20081210.log >
--- Log opened Tue Dec 09 00:00:44 2008
--- Day changed Tue Dec 09 2008
00:00 AnnoDomini [~farkoff@Nightstar-29056.neoplus.adsl.tpnet.pl] has quit [Quit: ACHTUNG! ALLES LOOKENSPEEPERS! Das Internet is nicht fuer gefingerclicken und giffengrabben. Ist easy droppenpacket der routers und overloaden der backbone mit der spammen und der me-tooen. Ist nicht fuer gewerken bei das dumpkopfen. Das mausklicken sichtseeren keepen das bandwit-spewin hans in das pockets muss; relaxen und watchen das cursorblinken.]
00:01
<@ToxicFrog>
Vornicus: per-surface alpha: the entire surface has a transparency value. When blitted, this value is used.
00:02
<@ToxicFrog>
I thought GIFs had per-pixel alpha?
00:02
< Vornicus>
point, they do - but only on/off, via an alpha entry in their color table.
00:03
< Vornicus>
But in that case: per-surface alpha is almost /never/ what you went.
00:05
< Vornicus>
And it would confuse the everloving hell out of pretty much anybody.
00:08
<@gnolam>
ToxicFrog: Per-pixel. Definitely.
00:13
<@ToxicFrog>
Alright then.
00:13
<@ToxicFrog>
(the main reason I ask is that they are each good for different things.)
00:14 NSGuest-34 [~nick@Nightstar-12626.tampfl.fios.verizon.net] has quit [Ping Timeout]
00:14
<@ToxicFrog>
(PPA is good for antialiased, non-square images, ie most sprites. PSA is good for fade-ins and the like)
00:17
<@McMartin>
(PPA is strictly more powerful. PSA can be done with it, and trivially so in SDL.)
00:17
<@McMartin>
(Says the man who finally solved the fucking crossfade code in UQM)
00:18
<@ToxicFrog>
How do you trivially do PSA using PPA?
00:19
<@ToxicFrog>
I can't seem to find an SDL function for it, so I'm left with "iterate over all the pixels in the surface adjusing the alpha byte in each one"
00:19
<@McMartin>
There's a "blit at this alpha" function, I blieve.
00:20
<@McMartin>
There's a way to force a surface's alpha channel.
00:20
<@ToxicFrog>
There's SetAlpha, but that's for PSA
00:20
<@ToxicFrog>
And there's BlitSurface, but if the surface format has PPA it ignores PSA if any
00:21
<@McMartin>
Right.
00:21
<@McMartin>
Make a new surface. Blit your PPA to it. SetAlpha on it. Blit it. Destroy it.
00:22
<@ToxicFrog>
Aah. A new surface without an alpha channel, you mean.
00:23
<@McMartin>
yeah.
00:23
<@ToxicFrog>
Gah. This is such a headache.
00:23
<@McMartin>
The conversion then happens inside SDL at the blit level.
00:24 * ToxicFrog heads home
00:26 gnolam [lenin@79.136.60.ns-4387] has quit [Quit: Z?]
00:40
< Vornicus>
TF, didn't you make a postscript irc thingy?
00:45 Vornicus changed the topic of #Code to: FORTH LOVE IF HONK THEN | Have a pastebin! http://paste.ubuntu.com | Channel mode +U, ask for voice to post links. | Monologues permitted. | See #projecteuler for discussions about http://projecteuler.net
00:47 Derakon[AFK] is now known as Derakon
00:48
<@McMartin>
Ah, Forth.
00:49
<@McMartin>
Don't make me relink var'aq.
01:03
<@ToxicFrog>
Vornicus: yes.
01:03
<@ToxicFrog>
Why?
01:04
< Vornicus>
I was talking about postscript in #python and mentioned your irc thingy because they were wondering if anyone had made tcp/ip in it.
01:06
<@ToxicFrog>
Aah.
01:06
<@ToxicFrog>
#python on freenode?
01:06
<@ToxicFrog>
I didn't do the networking in postscript, though.
01:06
<@ToxicFrog>
Postscript was the frontend, I mkfifo'd it to netcat.
01:07
< Vornicus>
aha
01:08
< Vornicus>
close enough.
01:08
<@ToxicFrog>
There was also a bit of awk in there to make it easier for postscript to parse the traffic from the IRC server.
01:09
<@ToxicFrog>
I didn't feel up to implementing regular expressions in postscript in those days~
01:09
< Vornicus>
hee
01:14
<@ToxicFrog>
Gnar.
01:15
<@ToxicFrog>
DocBook does exactly what I want, except for the whole "input in XML kill me now" bit.
01:15 * ToxicFrog ponders writing a simple indentation-based documentation to DocBook converter
01:29 Doctor_Nick [~nick@Nightstar-12626.tampfl.fios.verizon.net] has joined #code
01:29 mode/#code [+o Doctor_Nick] by ChanServ
01:38
<@McMartin>
TF: I started in HTML and moved down.
01:41
<@McMartin>
Ah, VM ballooning.
01:41
<@McMartin>
cat /dev/zero > /loldwm
01:41
<@Derakon>
DWM?
01:41
<@McMartin>
It's like doom, but in Welsh.
01:42
<@Derakon>
Ahh.
01:42
<@Derakon>
And here I thought you were talking about a window manager.
01:45
<@ToxicFrog>
McMartin: down to...?
01:49 Reiver [~reaverta@Admin.Nightstar.Net] has quit [Quit: Off to auckland, back on the 19th.]
01:50
<@McMartin>
TF: DocBook.
01:50
<@McMartin>
At which point it was basically sed.
01:51 C_tiger [~c_wyz@Nightstar-5282.hsd1.ca.comcast.net] has quit [Quit: And away she goes!]
01:56
<@ToxicFrog>
Aah.
01:56
<@ToxicFrog>
I've finally found what I was looking for (vaguely remembered from ages ago): docutils' reStructuredText input mode.
01:57
<@ToxicFrog>
Also, I've figured out what my problem is with reconciling Haskell and Lua: I'm trying to have both inferred static typing and structural dynamic typing at the same time.
01:58 C_tiger [~c_wyz@Nightstar-5282.hsd1.ca.comcast.net] has joined #code
01:58 mode/#code [+o C_tiger] by ChanServ
02:21 Attilla [~The.Attil@Nightstar-9469.cdif.cable.ntl.com] has quit [Quit: <Insert Humorous and/or serious exit message here>]
03:18
<@McMartin>
Dare I ask what you're doing that requires reconciling Haskell and Lua?
03:18
<@ToxicFrog>
Oh, nothing at all.
03:18
<@ToxicFrog>
I just sometimes thing "man, it would be totally sweet to have Haskell's type system in Lua, or, indeed, in everything"
03:19
<@ToxicFrog>
Because I love Haskell's type system to bits.
03:19
<@ToxicFrog>
Then I start actually thinking about the implications and the wheels come off.
03:21
<@ToxicFrog>
Among other things, once you deploy an __index or __newindex metamethod you can't statically guarantee anything about non-local variables, and for the purposes of this statement "local foo" is local but "foo.bar" is not.
04:56 crem [~moo@Nightstar-28703.adsl.mgts.by] has quit [Ping Timeout]
04:56 crem [~moo@Nightstar-28703.adsl.mgts.by] has joined #code
06:17
<@Derakon>
http://rogeralsing.com/2008/12/07/genetic-programming-evolution-of-mona-lisa/
06:28 Derakon is now known as Derakon[AFK]
06:50 crem [~moo@Nightstar-28703.adsl.mgts.by] has quit [Ping Timeout]
06:58 crem [~moo@Nightstar-28703.adsl.mgts.by] has joined #code
07:35 AnnoDomini [~farkoff@Nightstar-29084.neoplus.adsl.tpnet.pl] has joined #Code
07:36 mode/#code [+o AnnoDomini] by ChanServ
08:09 Vornicus is now known as Vornicus-Latens
08:12 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Ping Timeout]
08:19 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code
08:19 mode/#code [+o ToxicFrog] by ChanServ
08:25 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Operation timed out]
08:28 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code
08:28 mode/#code [+o ToxicFrog] by ChanServ
10:06 You're now known as TheWatcher
11:15 gnolam [lenin@79.136.60.ns-4387] has joined #Code
11:15 mode/#code [+o gnolam] by ChanServ
12:53 grossroot[idle] is now known as grossroot
13:20 grossroot [~grossroot@Nightstar-2147.hackthisbox.org] has quit [Quit: Changing server]
13:24 grossroot [~grossroot@Nightstar-2147.hackthisbox.org] has joined #code
17:00 GeekSoldier [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has quit [Ping Timeout]
17:01 GeekSoldier [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has joined #code
17:01 mode/#code [+o GeekSoldier] by ChanServ
17:03 Attilla [~The.Attil@Nightstar-9469.cdif.cable.ntl.com] has joined #code
17:03 mode/#code [+o Attilla] by ChanServ
17:13 You're now known as TheWatcher[afk]
17:50 gnolam is now known as gnolam|Gig
18:31 You're now known as TheWatcher
19:11 gnolam|Gig is now known as gnolam
20:41 Vornicus-Latens is now known as Vornicus
22:09 AnnoDomini [~farkoff@Nightstar-29084.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
22:13 AnnoDomini [~farkoff@Nightstar-29084.neoplus.adsl.tpnet.pl] has joined #Code
22:13 mode/#code [+o AnnoDomini] by ChanServ
22:22 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Operation timed out]
22:39 ToxicFrog [~ToxicFrog@69.171.152.ns-20825] has joined #code
22:39 mode/#code [+o ToxicFrog] by ChanServ
22:39 grossroot is now known as grossroot[idle]
23:06 You're now known as TheWatcher[T-2]
23:08 You're now known as TheWatcher[zZzZ]
23:33 AnnoDomini [~farkoff@Nightstar-29084.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
23:34 AnnoDomini [~farkoff@Nightstar-29084.neoplus.adsl.tpnet.pl] has joined #Code
23:34 mode/#code [+o AnnoDomini] by ChanServ
--- Log closed Wed Dec 10 00:00:59 2008
code logs -> 2008 -> Tue, 09 Dec 2008< code.20081208.log - code.20081210.log >