code logs -> 2007 -> Fri, 16 Nov 2007< code.20071115.log - code.20071117.log >
--- Log opened Fri Nov 16 00:00:52 2007
00:20 You're now known as TheWatcher[T-2]
00:24 You're now known as TheWatcher[zZzZ]
01:29 gnolam [lenin@Nightstar-10613.8.5.253.static.se.wasadata.net] has quit [Quit: OS crash.]
03:36 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Client exited]
03:36 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code
03:37 mode/#code [+o ToxicFrog] by ChanServ
03:41
<@ToxicFrog>
That wasn't meant to happen.
03:43
<@ToxicFrog>
((T0 ? T1) ? LE) ? (T3 ? (TSET ? TLOAD)) ? [T2 ? (TBRA ? (TBRZ ? CCRZ) ? (TBRC ? CCRC) ? (TBRN ? CCRN))] ? ?STATE
03:43
<@ToxicFrog>
Behold, the equation governing the LE control signal.
03:44
< Vornicus>
Cool.
03:45
<@ToxicFrog>
Oddly, while both xchat and openoffice agree on 0x2227 as ?, pasting from one to the other doesn't work.
03:46
< Vornicus>
heh
03:47
<@ToxicFrog>
xchat gets ?, and openoffice gets a lot of garbage.
03:47
<@ToxicFrog>
(pasting from openoffice to gnome-terminal works, and then pasting from gnome-terminal to xchat gets \u2227, and then you're just a sed away from having the right characters, though)
03:49 Thaqui [~Thaqui@Nightstar-12017.jetstream.xtra.co.nz] has joined #code
03:49 mode/#code [+o Thaqui] by ChanServ
04:04 * ToxicFrog cranks up Still Alive and prints out 16 pages of schematics, equations, design documents, and behaviour tables
04:05
<@McMartin>
Doing Science, are we?
04:07
<@ToxicFrog>
Yep.
04:08
<@ToxicFrog>
And indeed, now that this is printed out, I need to figure out what domain of computational intelligence, and what domain of physical sciences, I will use for my research project.
04:09
<@ToxicFrog>
ME: How about uses of genetic algorithms to solve physical engineering problems?
04:09
<@ToxicFrog>
PROF: You're mad.
04:09
<@ToxicFrog>
ME: ?
04:09
<@ToxicFrog>
PROF: The engineering disciplines have become addicted to GAs in the past ten years or so. Given that you only have a month or so to do this project, you'll need to either choose a less popular algorithm or heavily narrow the scope of physical problems you're considering.
04:43 GeekSoldier|bed is now known as GeekSoldier|work
04:58 Vornicus is now known as Finerty
07:06 GeekSoldier|work [~Rob@Nightstar-4323.pools.arcor-ip.net] has quit [Ping Timeout]
07:14 GeekSoldier|work [~Rob@Nightstar-4505.pools.arcor-ip.net] has joined #code
07:42 Finerty is now known as Vornicus
07:57 Vornicus is now known as Vornicus-Latens
09:26 You're now known as TheWatcher
11:04 Chalcedon [~Chalcedon@Nightstar-10789.ue.woosh.co.nz] has quit [Quit: Gone]
11:39 Thaqui [~Thaqui@Nightstar-12017.jetstream.xtra.co.nz] has left #code [Leaving]
14:33 gnolam [lenin@Nightstar-10613.8.5.253.static.se.wasadata.net] has joined #Code
14:33 mode/#code [+o gnolam] by ChanServ
17:00 You're now known as TheWatcher[afk]
17:14 GeekSoldier|work is now known as GeekSoldier
17:20 AnnoDomini [AnnoDomini@Nightstar-29588.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
17:27 AnnoDomini [AnnoDomini@Nightstar-28842.neoplus.adsl.tpnet.pl] has joined #Code
17:27 mode/#code [+o AnnoDomini] by ChanServ
17:59 Forj [~Forj@Nightstar-10789.ue.woosh.co.nz] has joined #code
17:59 mode/#code [+o Forj] by ChanServ
18:25 AnnoDomini is now known as Lerhir
18:31
< MyCatVerbs>
Hrmn. Is making my programs show off (i.e. print cooler information than the spec asks for) when invoked with +sv_cheats 1 a good idea? =D
18:31
<@ToxicFrog>
Not sure it's a good idea, but it doesn't sound like a bad one either.
18:31
<@ToxicFrog>
I like the TA for my computational intelligence course.
18:32
<@ToxicFrog>
ME: So, what other languages did you see for this assignment?
18:32
<@ToxicFrog>
TA: Apart from yours? C, Java, a bit of C++.
18:32
<@ToxicFrog>
ME: *sigh*
18:33
<@ToxicFrog>
TA: I know! When I was an undergrad, the prof giving us free reign was our cue to dig out the most obscure languages we could that would do the job. I did my fourth-year numerical methods coursework in prolog of all things.
18:39
< GeekSoldier>
do your next one in Befunge.
18:41
<@ToxicFrog>
I think I'll stick with Lua.
18:41
<@ToxicFrog>
Don't have time to write a translator into one of the n-funges.
18:41
< GeekSoldier>
heh. just a little bit more practicle?
18:46
< Vornicus-Latens>
PostScript.
18:46
<@ToxicFrog>
Did that in second year.
18:47
< Vornicus-Latens>
ah well
18:47 * Vornicus-Latens does like PostScript though.
18:49
<@ToxicFrog>
I love it dearly, but these days I tend to use it for actually rendering stuff - either directly or emitted from another program - rather than writing complete programs directly in it.
18:52
< Vornicus-Latens>
Indeed.
19:02 Vornicus-Latens is now known as Vornicus
19:30 GeekSoldier is now known as GeekSoldier|bar
20:09 Thaqui [~Thaqui@Nightstar-12017.jetstream.xtra.co.nz] has joined #code
20:09 mode/#code [+o Thaqui] by ChanServ
20:22 * Vornicus eyes Luis's LJ. The answer is "I wouldn't."
20:23 * McMartin also notes that goto is strictly more powerful than Structured Programming.
20:24
< Vornicus>
I know.
20:24
<@McMartin>
And I suspect you intend to ban continuations along with goto and exceptions.
20:24
<@McMartin>
Otherwise I'd do that since they're another way of implementing goto~
20:26
< Vornicus>
Yeah
20:27 * Vornicus fiddles. catch, if, do-while, if, if-throw
20:28
< Vornicus>
Can you throw and catch entirely within one function?
20:29
< Vornicus>
...never mind that i don't actually know how to land above.
20:32
<@McMartin>
Catch isn't in C.
20:32 You're now known as TheWatcher
20:32
<@McMartin>
Anyway, there's a backedge from outside of a loop into the the middle of another loop in that code.
20:32
< Vornicus>
Yeah.
20:33
<@McMartin>
I can't quote the theorem from memory, but it can't be translated into Wirth-era Structured Programming without code duplication and possibly unbounded recursion.
20:35
< Vornicus>
I guess the right answer is "implement goto"
20:37
< Vornicus>
or "use a state machine"
20:38
<@McMartin>
State machines are implemenhted with goto~
20:38
< Vornicus>
Not a switch?
20:39
<@McMartin>
Switch = computed goto
20:39
<@McMartin>
Oh, sure, I guess you could use if else if else if else if.
20:39
<@McMartin>
(And the real answer is "don't do this even with goto in C", for reasons I cover in my reply.)
20:39
< Vornicus>
I don't think he meant to do that. Anyway this would be a strict switch, break after each condition.
20:40
<@McMartin>
With a local variable holding your current line number. Yeah, that's basically the continuation approach.
20:40
<@McMartin>
I don't think that's his question, really, though. I think he's asking how to render the flow as a series of loops and ifs.
20:40
<@McMartin>
Though, you know, feel free to chime in.
20:43
< Vornicus>
god that's grindy.
20:46 * Vornicus posts.
20:49 * McMartin will post the ML version later.
20:49
< Vornicus>
You can actually clean it up significantly; you can use fall-through for a lot of places, remove some case tags (you need one for each if target)...
20:50
<@McMartin>
Not many
20:50 * Vornicus fiddles.
20:50
<@McMartin>
Very nearly every line is a basic block in its own right.
20:51
<@McMartin>
But yeah, only three actual jump targets.
20:51
<@McMartin>
10, 30, 70, 110.
20:51
< Vornicus>
That's four.
20:51
<@McMartin>
four.
20:52
<@McMartin>
My diagram is kind of messy
20:52
< Vornicus>
Then you don't need the line++s
20:53
< Vornicus>
it ends up going if (x1) {line = TARGET_X1; break;}
20:53
< Vornicus>
I forget how to do enums.
21:02 GeekSoldier|bar [~Rob@Nightstar-4505.pools.arcor-ip.net] has quit [Ping Timeout]
21:06 * Vornicus puts up an updated one that's a lot smaller and less repetitive.
21:10 Thaqui [~Thaqui@Nightstar-12017.jetstream.xtra.co.nz] has quit [Quit: This computer has gone to sleep]
21:13 Thaqui [~Thaqui@Nightstar-12017.jetstream.xtra.co.nz] has joined #code
21:13 mode/#code [+o Thaqui] by ChanServ
21:49
<@McMartin>
typedef { FOO, BAR, LEEG } metaenum;
21:51
<@Lerhir>
That looks vaguely lolcattish. Because of te 'ae'. :p
21:52
<@McMartin>
INVISIBLE TYPEDEF
21:53 * Lerhir laughs.
21:57 GeekSoldier|bar [~Rob@Nightstar-4505.pools.arcor-ip.net] has joined #code
21:59 GeekSoldier|bar is now known as GeekSoldier
23:05 Lerhir is now known as AnnoDomini
23:40 GeekSoldier is now known as GeekSoldier|bed
23:59 gnolam [lenin@Nightstar-10613.8.5.253.static.se.wasadata.net] has quit [Quit: Z?]
--- Log closed Sat Nov 17 00:00:58 2007
code logs -> 2007 -> Fri, 16 Nov 2007< code.20071115.log - code.20071117.log >