code logs -> 2007 -> Sun, 01 Jul 2007< code.20070630.log - code.20070702.log >
--- Log opened Sun Jul 01 00:00:36 2007
00:24 C`raksh`su is now known as UndeadAnno
00:25 UndeadAnno is now known as AnnoDomini
00:34 Forjadon [~Forjadon@Nightstar-15747.ue.woosh.co.nz] has joined #code
00:34 mode/#code [+o Forjadon] by ChanServ
00:34 Forjadon is now known as ChalcyLaptop
00:36 Serah [~Z@87.72.35.ns-26506] has quit [Killed (NickServ (GHOST command used by Ev3))]
00:36 Serah [~Z@87.72.35.ns-26506] has joined #Code
00:36 mode/#code [+o Serah] by ChanServ
00:51 ChalcyLaptop [~Forjadon@Nightstar-15747.ue.woosh.co.nz] has quit [Ping Timeout]
00:58 Forjadon [~Forjadon@Nightstar-15747.ue.woosh.co.nz] has joined #code
00:58 mode/#code [+o Forjadon] by ChanServ
00:58 Thaqui [~Thaqui@Nightstar-26828.jetstream.xtra.co.nz] has joined #code
00:59 mode/#code [+o Thaqui] by ChanServ
01:01 Forjadon is now known as ChalcyLaptop
01:20 ChalcyLaptop [~Forjadon@Nightstar-15747.ue.woosh.co.nz] has quit [Ping Timeout]
02:31 ReivZzz is now known as Reiver
02:43 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has quit [Quit: Z?]
02:49 ToxicFrog [~ToxicFrog@74.114.231.ns-22337] has quit [Quit: BRB, DNS update]
02:50 ToxicFrog [~ToxicFrog@74.114.231.ns-22337] has joined #code
02:50 mode/#code [+o ToxicFrog] by ChanServ
03:21
<@ToxicFrog>
Actual, honest to god thread topic line in ModDev:
03:21
<@ToxicFrog>
"what fo the aruments do in FlattenMapRect("
05:31 You're now known as TheWatcher
06:30 Reiver is now known as ReivOut
06:56 GeekSoldier|Bed is now known as GeekSoldier
09:35 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has joined #Code
09:35 mode/#code [+o gnolam] by ChanServ
10:44 Thaqui [~Thaqui@Nightstar-26828.jetstream.xtra.co.nz] has left #code [Leaving]
10:53 Forj [~Forj@Nightstar-15747.ue.woosh.co.nz] has quit [Quit: Gone]
11:44 ReivOut is now known as Reiver
12:25 gnolam is now known as gnolaxis
13:15 Thaqui [~Thaqui@Nightstar-26828.jetstream.xtra.co.nz] has joined #code
13:15 mode/#code [+o Thaqui] by ChanServ
14:24 savas_ist_28m [~KELEBEK@88.235.226.ns-22397] has joined #Code
14:26 savas_ist_28m [~KELEBEK@88.235.226.ns-22397] has quit [I am lame because I use colors in my quit message.]
14:28 Thaqui [~Thaqui@Nightstar-26828.jetstream.xtra.co.nz] has left #code [Leaving]
15:04 GeekSoldier_ [~Rob@Nightstar-5199.pools.arcor-ip.net] has joined #code
15:06 GeekSoldier [~Rob@Nightstar-4626.pools.arcor-ip.net] has quit [Ping Timeout]
15:41 * ToxicFrog fiddles with his string interpolation function again
15:41
<@ToxicFrog>
There's got to be some way in which I can abuse the Lua parser here to make my life easier.
15:46
<@ToxicFrog>
...ok, I think that I need to rewrite this function just for readability reasons.
15:46
<@ToxicFrog>
function string.interpolate(str, data, code)
15:46
<@ToxicFrog>
code = code or data
15:46
<@ToxicFrog>
return str:gsub('%$(%b[])', function(key)
15:46
<@ToxicFrog>
key = key:sub(1,-1)
15:46
<@ToxicFrog>
return tostring(data[key]):interpolate(data, code)
15:46
<@ToxicFrog>
end):gsub('%$(%b{})', function(key)
15:46
<@ToxicFrog>
key = key:sub(1,-1)
15:46
<@ToxicFrog>
return setfenv(loadstring("return "..(code[key]) or "''"), data)():interpolate(data, code)
15:46
<@ToxicFrog>
end)
15:46
<@ToxicFrog>
end
15:57 GeekSoldier_ is now known as GeekSoldier
16:11
<@ToxicFrog>
Hmm.
16:12
<@ToxicFrog>
Ok, new format.
16:12
<@ToxicFrog>
$(expr)
16:12
<@ToxicFrog>
Where expr is any valid Lua expression, and is resolved in terms of the data table passed into the interpolation function,
16:47
<@ToxicFrog>
Hmm. I need some way to easily handle iterators.
16:55 GeekSoldier is now known as GeekSoldier|Dinner
16:57 Reiver is now known as ReivZzz
17:41 AnnoDomini [~farkoff@Nightstar-29361.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
17:48 AnnoDomini [~farkoff@Nightstar-28926.neoplus.adsl.tpnet.pl] has joined #Code
17:53 * ToxicFrog considers
17:54
<@ToxicFrog>
Dermal patches: circles; weapons: down-pointing triangles; ammo: up-pointing triangles; explosives: squares; cybermods: diamonds; misc items: hexagons.
17:59 GeekSoldier|Dinner is now known as GeekSoldier
19:19 gnolaxis is now known as gnolam
19:20 Forj [~Forj@Nightstar-15747.ue.woosh.co.nz] has joined #code
19:49 Forj [~Forj@Nightstar-15747.ue.woosh.co.nz] has quit [Connection reset by peer]
19:57 GeekSoldier is now known as GeekSoldier|Bed
20:04 AnnoDomini [~farkoff@Nightstar-28926.neoplus.adsl.tpnet.pl] has quit [Quit: I SLEEP, FOR FUCK'S SAKE.]
20:14
<@ToxicFrog>
........wtf
20:15
<@ToxicFrog>
lua: compiling string "return (tilemap(1+1, 4))": chunk has too many syntax levels
20:31
<@Pi>
You need to get rid of all of those parantheses and work in a comprehensible language.
20:31
<@Pi>
Like PHP.
21:21 * gnolam pours bleach into his eyes.
21:21
<@ToxicFrog>
?
21:21
<@ToxicFrog>
Oh, my earlier function?
21:21
<@gnolam>
God. C/C++ compilers should come with an attached, remotely-controlled shotgun to avoid code the likes of which I just had to debug.
21:21
<@ToxicFrog>
Oh.
21:22
<@gnolam>
Either that, or programming teachers should get to carry whips and cattle prods.
21:24
<@ToxicFrog>
Or they should stop doing a half-assed job of it.
21:24
<@ToxicFrog>
Which results in people who know how to code in C++, but don't know how to program.
21:37 Forjadon [~Forjadon@Nightstar-15747.ue.woosh.co.nz] has joined #code
21:37 mode/#code [+o Forjadon] by ChanServ
21:54 Forjadon [~Forjadon@Nightstar-15747.ue.woosh.co.nz] has quit [Ping Timeout]
--- Log closed Mon Jul 02 00:00:42 2007
code logs -> 2007 -> Sun, 01 Jul 2007< code.20070630.log - code.20070702.log >