code logs -> 2007 -> Tue, 07 Aug 2007< code.20070806.log - code.20070808.log >
--- Log opened Tue Aug 07 00:00:30 2007
02:02 shengii [~shg369@Nightstar-10343.res.east.verizon.net] has joined #Code
02:02 shengii [~shg369@Nightstar-10343.res.east.verizon.net] has left #Code []
02:04 KarmaBot [~fark.off@87.72.35.ns-3885] has quit [Connection reset by peer]
02:04 KarmaBot [~fark.off@87.72.35.ns-3885] has joined #Code
02:04 mode/#code [+v KarmaBot] by ChanServ
03:04 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has quit [Quit: Z?]
03:13 Netsplit DeepThought.NY.US.Nightstar.Net <-> Troika.TX.US.Nightstar.Net quits: @Pi, Raif, DiceBot, @ReivSLEP, @Vornicus, @Serah, @AnnoDomini, @jerith, @Chalain
03:13 mode/#code [+o Chalain] by ChanServ
03:13 Netsplit over, joins: Chalain, jerith
03:13 Vornicus [~vorn@Admin.Nightstar.Net] has joined #Code
03:13 mode/#code [+o jerith] by ChanServ
03:13 Netsplit over, joins: DiceBot, Serah
03:13 mode/#code [+o Vornicus] by ChanServ
03:13 Netsplit over, joins: AnnoDomini
03:13 mode/#code [+o Serah] by ChanServ
03:13 Netsplit over, joins: Raif
03:13 mode/#code [+o AnnoDomini] by ChanServ
03:13 Serah [~Z@87.72.35.ns-3885] has quit [No route to host]
03:13 DiceBot [~Reiver@Nightstar-2315.ubs-dsl.xnet.co.nz] has quit [Ping Timeout]
03:13 RBot [~Reiver@Nightstar-2315.ubs-dsl.xnet.co.nz] has joined #Code
03:14 Raif [~corvusign@Nightstar-5406.hsd1.ca.comcast.net] has quit [Killed (NickServ (GHOST command used by Raif_))]
03:14 Raif_ [~corvusign@Nightstar-5406.hsd1.ca.comcast.net] has joined #Code
03:14 Raif_ is now known as Raif
03:14 Serah [~Z@87.72.35.ns-3885] has joined #Code
03:14 mode/#code [+o Serah] by ChanServ
03:14 RBot is now known as DiceBot
03:14 ReivZzz [~reaverta@Admin.Nightstar.Net] has joined #Code
03:15 Netsplit over, joins: Pi
03:15 mode/#code [+o Pi] by ChanServ
04:02 ReivZzz is now known as Reiver
04:54 Thaqui [~Thaqui@Nightstar-26722.jetstream.xtra.co.nz] has joined #code
04:54 mode/#code [+o Thaqui] by ChanServ
05:22 You're now known as TheWatcher
05:57 Forj [~Forj@Nightstar-10147.ue.woosh.co.nz] has joined #code
06:12 Reiver [~reaverta@Admin.Nightstar.Net] has quit [Quit: I ATENT'T DEAD]
06:15 DiceBot [~Reiver@Nightstar-2315.ubs-dsl.xnet.co.nz] has quit [Ping Timeout]
06:17 Forjeh [~Forj@Nightstar-10147.ue.woosh.co.nz] has joined #code
06:17 Forj [~Forj@Nightstar-10147.ue.woosh.co.nz] has quit [Ping Timeout]
06:20 Reiver [~reaverta@Admin.Nightstar.Net] has joined #Code
06:20 mode/#code [+o Reiver] by ChanServ
06:28 Reiver [~reaverta@Admin.Nightstar.Net] has quit [Ping Timeout]
06:28 Reiver [~reaverta@Admin.Nightstar.Net] has joined #Code
06:29 mode/#code [+o Reiver] by ChanServ
06:30 DiceBot [~Reiver@Nightstar-4985.ubs-dsl.xnet.co.nz] has joined #Code
08:13 You're now known as TheWatcher[afk]
09:32 KarmaBot [~fark.off@87.72.35.ns-3885] has quit [Connection reset by peer]
09:33 KarmaBot [~fark.off@87.72.35.ns-3885] has joined #Code
09:33 mode/#code [+v KarmaBot] by ChanServ
09:33 Chalcy [~Chalcedon@Nightstar-10147.ue.woosh.co.nz] has joined #code
09:33 Chalcedon [~Chalcedon@Nightstar-10147.ue.woosh.co.nz] has quit [Killed (NickServ (GHOST command used by Chalcy))]
09:33 Chalcy is now known as Chalcedon
09:34 Chalcedon is now known as Chalcy
09:35 Chalcy is now known as Chalcedon
09:42 Vornicus is now known as Vornicus-Latens
09:45 Chalcedon [~Chalcedon@Nightstar-10147.ue.woosh.co.nz] has quit [Ping Timeout]
09:45 Forjeh [~Forj@Nightstar-10147.ue.woosh.co.nz] has quit [Ping Timeout]
09:47 Forj [~Forj@Nightstar-10147.ue.woosh.co.nz] has joined #code
09:47 Chalcedon [~Chalcedon@Nightstar-10147.ue.woosh.co.nz] has joined #code
09:47 mode/#code [+o Chalcedon] by ChanServ
10:41 You're now known as TheWatcher
11:00 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has joined #Code
11:00 mode/#code [+o gnolam] by ChanServ
11:01 Chalcedon [~Chalcedon@Nightstar-10147.ue.woosh.co.nz] has quit [Quit: Gone]
11:03 Forj [~Forj@Nightstar-10147.ue.woosh.co.nz] has quit [Quit: Gone]
11:45 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Connection reset by peer]
12:54 AnnoDomini [~farkoff@Nightstar-29551.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
13:01 AnnoDomini [~farkoff@Nightstar-29823.neoplus.adsl.tpnet.pl] has joined #Code
13:04 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code
13:04 mode/#code [+o ToxicFrog] by ChanServ
13:47 Otto_Flick [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has joined #Code
13:47 gnolam is now known as NSGuest-438
13:47 Otto_Flick is now known as gnolam
13:48 mode/#code [+o gnolam] by ChanServ
13:48 NSGuest-438 [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has quit [Ping Timeout]
13:51 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has quit [Ping Timeout]
13:53 You're now known as TheWatcher[d00m]
14:19 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has joined #Code
14:19 mode/#code [+o gnolam] by ChanServ
14:57
<@ToxicFrog>
Huh.
14:57
<@ToxicFrog>
The feature that I tossed together a tiny C library for, and which my oo library relies on, is in fact present in Lua but undocumented.
14:59
<@Reiver>
Handy.
14:59
<@Reiver>
Taking yours out then?~
14:59
<@ToxicFrog>
Yep.
15:05
<@ToxicFrog>
The Lua implementation is in fact better~
15:10 You're now known as TheWatcher
15:42 You're now known as TheWatcher[afk]
16:16 * ToxicFrog writes an xargsoid in six lines
16:18
<@ToxicFrog>
I love bash.
16:22
<@Reiver>
?
16:23 Reiver is now known as ReivZzz
16:32
<@ToxicFrog>
Are you ?ing at the six lines, or the xargsoid?
16:40
<@ToxicFrog>
Ok, this is r0xx0r
16:40
<@ToxicFrog>
alias lines='{ while read line; do set -- $line;'
16:40
<@ToxicFrog>
alias senil='done; }'
16:41
<@ToxicFrog>
And then you can write something like:
16:41
<@ToxicFrog>
find | lines
16:41
<@ToxicFrog>
> fgrep 'errno.h' "$line"
16:41
<@ToxicFrog>
> senil
16:48
<@jerith>
Are you going to document the Lua feature?
16:48
<@ToxicFrog>
It's already been documented on the wiki.
16:49
<@ToxicFrog>
And it's pretty simple: newproxy(true|false|proxy) creates and returns a 0-length fuserdata; if true, gives it an empty metatable; if false, gives it no metatable; if proxy, gives it the same metatable as the proxy that was passed in.
18:30 You're now known as TheWatcher
19:25 Forj [~Forj@Nightstar-10147.ue.woosh.co.nz] has joined #code
19:51 Forj [~Forj@Nightstar-10147.ue.woosh.co.nz] has quit [Quit: Gone]
21:22 * ToxicFrog , via discussions in #lua, makes his struct library at least two powers more awesome
21:24 AnnoDomini [~farkoff@Nightstar-29823.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
21:25
<@Vornicus-Latens>
woot
21:25
<@ToxicFrog>
Specifically: (...) for repetition, {...} for tables with optionally named members
21:25
<@jerith>
YAY! My deadtree Erlang book arrived! Squee!
21:25
<@ToxicFrog>
So you can write: "( u3 b1 )*4" to get eight results out
21:25
<@Vornicus-Latens>
yey deadtree erlang book
21:26
<@ToxicFrog>
Or: "{ width:u4 height:u4 heightpow:u2 cspace:b1 }" to get a table with named members out
21:26
<@ToxicFrog>
And these are nestable.
21:27 Chalcedon [~Chalcedon@Nightstar-10147.ue.woosh.co.nz] has joined #code
21:27 mode/#code [+o Chalcedon] by ChanServ
21:28
<@Vornicus-Latens>
okay that rules.
21:28
<@Vornicus-Latens>
what's b again?
21:28
<@ToxicFrog>
boolean.
21:29
<@Vornicus-Latens>
ah, yes
21:30
<@ToxicFrog>
Also, the actual processor has been redesigned - it generates a queue of functions from the format string and then calls them in sequence.
21:30
<@Vornicus-Latens>
cool
21:30
<@ToxicFrog>
Which simplifies matters = '{' becomes "push table", and '}' becomes "pop table and assign"
21:34
<@ToxicFrog>
'(' is slightly wackier because it's pushing and popping things on the code stack rather than the data stack, but not much.
21:35 You're now known as TheWatcher[T-2]
21:38
<@Vornicus-Latens>
fun fun.
21:38 You're now known as TheWatcher[zZzZ]
21:42 * ToxicFrog fiddles with his lexer
21:44
<@ToxicFrog>
'(' ')' '{' '}' /([-+@abcdfimsuxz])(%d*)/ /%*(%d)/ /^[=<>]/ are the tokens I need to understand, I think
21:45
<@Vornicus-Latens>
heh
21:47
<@ToxicFrog>
Of those, '(' ')' /%*(%d)/ execute at generation time - the first pushes a new queue onto the code stack, the second pops the top queue from the code stack and appends it to the queue under it, and the last duplicates the last item on the top code queue that many times
21:47
<@ToxicFrog>
'{' inserts a 'push table onto data stack' function, '}' pops the table and appends it to the new top
21:48
<@ToxicFrog>
And /([-+@abcdfimsuxz])(%d*)/ inserts an actual read call.
21:48
<@ToxicFrog>
...oh, wait, it needs to handle name: too
21:48
<@ToxicFrog>
/%w+%:/
21:48
<@Vornicus-Latens>
With luck the name is easy to read.
21:49
<@ToxicFrog>
I make it a new token. Pushes a name onto the data stack. The append function looks at the top of the stack, and if it sees a name rather than a table, pops the name too and does top[name] = value rather than top[#top] = value
21:50
<@ToxicFrog>
Alternately, I set it up so that it always pops name and value, and fields without names simply generate a name that's the next free index in the queue.
21:50
<@ToxicFrog>
...no, easier to do it the first way.
22:05 Vornicus-Latens is now known as Vornicus
22:23 AnnoDomini [~farkoff@Nightstar-29577.neoplus.adsl.tpnet.pl] has joined #Code
22:23 mode/#code [+o AnnoDomini] by ChanServ
22:24 Chalcedon is now known as ChalcyAFK
22:25
<@Vornicus>
Arg! Can't think!
22:25 * jerith injects caffeine into Vorn's brain.
22:35 AnnoDomini [~farkoff@Nightstar-29577.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
22:41 AnnoDomini [~farkoff@Nightstar-29463.neoplus.adsl.tpnet.pl] has joined #Code
22:42 mode/#code [+o AnnoDomini] by ChanServ
23:16 * ChalcyAFK cookies Vorn
23:21 * Vornicus gets caffeined, nroms cookie
23:25 AnnoDomini [~farkoff@Nightstar-29463.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
23:32 AnnoDomini [~farkoff@Nightstar-29316.neoplus.adsl.tpnet.pl] has joined #Code
--- Log closed Wed Aug 08 00:00:36 2007
code logs -> 2007 -> Tue, 07 Aug 2007< code.20070806.log - code.20070808.log >