--- Log opened Tue Sep 16 00:00:44 2008 |
00:06 | | Chalcedon [~Chalcedon@Nightstar-2160.ue.woosh.co.nz] has quit [Quit: This computer has gone to sleep] |
00:18 | | androsch [~androsch@Nightstar-5718.pools.arcor-ip.net] has joined #code |
00:23 | < Vornicus-Latens> | gnolam: that's wonderful. |
00:55 | | AnnoDomini [AnnoDomini@Nightstar-29144.neoplus.adsl.tpnet.pl] has quit [Quit: The purpose of writing is to inflate weak ideas, obscure poor reasoning, and inhibit clarity.] |
01:07 | | * ToxicFrog sparks and crackles! |
01:12 | <@McMartin> | Victory? |
01:13 | <@McMartin> | Scintilla now bows to your will? |
01:16 | | Thaqui [~Thaqui@Nightstar-12187.worldnet.co.nz] has joined #code |
01:16 | | mode/#code [+o Thaqui] by ChanServ |
01:30 | | Brother_Willibald [lenin@Nightstar-1382.A163.priv.bahnhof.se] has joined #Code |
01:31 | | gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has quit [Ping Timeout] |
01:32 | | Brother_Willibald is now known as gnolam |
01:34 | | Vornicus-Latens is now known as Vornicus |
01:36 | | androsch [~androsch@Nightstar-5718.pools.arcor-ip.net] has quit [User has been banned] |
01:41 | | Thaqui [~Thaqui@Nightstar-12187.worldnet.co.nz] has left #code [He was a wise man who invented beer - Plato] |
01:48 | <@ToxicFrog> | Scintilla has nothing to do with this |
01:49 | <@ToxicFrog> | But yes, the new source->source transform is working |
01:49 | <@ToxicFrog> | With the exception of [<>=], which will be fixed momentarily |
01:55 | | * ToxicFrog blinks at the unit test results |
01:55 | <@ToxicFrog> | Either this test is using invalid lexis, or the language I specified in the README is not the same one I just implemented. |
01:57 | <@ToxicFrog> | Balls. It's the latter. |
01:58 | | Vornotron [~vorn@Admin.Nightstar.Net] has joined #code |
01:58 | | Vornicus [~vorn@ServicesOp.Nightstar.Net] has quit [Ping Timeout] |
02:01 | | Attilla [~The.Attil@92.11.7.ns-27122] has quit [Quit: <Insert Humorous and/or serious exit message here>] |
02:01 | | Vornotron is now known as Vornicus-Latens |
02:05 | < Shoukanjuu> | 10.5.5. |
02:07 | | Shoukanjuu [~Shoukanju@Nightstar-19166.dhcp.embarqhsd.net] has quit [Quit: Shoukanjuu] |
02:08 | | * gnolam headdesks. |
02:09 | | Thaqui [~Thaqui@121.98.137.ns-13370] has joined #code |
02:09 | | mode/#code [+o Thaqui] by ChanServ |
02:14 | | Thaqui [~Thaqui@121.98.137.ns-13370] has left #code [He was a wise man who invented beer - Plato] |
02:16 | | gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has quit [Quit: Z?] |
02:16 | | Shoukanjuu [~Shoukanju@Nightstar-19166.dhcp.embarqhsd.net] has joined #code |
02:16 | <@ToxicFrog> | Fortunately, fixing this is a two-character change in lexer.lua rather than a hideous maze of regexes. |
02:17 | <@McMartin> | Heh |
02:17 | <@McMartin> | What are you lexing here? |
02:17 | <@ToxicFrog> | Binary format description strings. |
02:17 | <@ToxicFrog> | This is for the struct library. |
02:18 | <@McMartin> | Aha. |
02:19 | <@McMartin> | Oof, OK |
02:19 | <@McMartin> | Dinner, then the rest of my thesis goals for the night. |
02:19 | <@McMartin> | Which is four subsections. |
02:19 | <@McMartin> | Maybe I'll even have time to write up my Aquaria analysis. |
02:19 | <@ToxicFrog> | I'm continuing with the translate-into-lua-source approach, because it's so damn easy, but replacing the previous approach (equivalent to "pipe it through sed -r -e s///g -e s///g ...repeat for another 10-15 patterns...") in favour of an actual lexer. |
02:19 | <@McMartin> | Hee. |
02:19 | <@McMartin> | Sounds wise, yes. |
02:20 | <@ToxicFrog> | The lexer emits tokens, the code generator takes each token, plugs its contents into a template and emits lua source. |
02:20 | <@ToxicFrog> | When it runs out of tokens, it returns it to compile(), which bookends it and turns it into a function, which it returns. |
02:26 | <@ToxicFrog> | So, what's left. |
02:26 | <@ToxicFrog> | Better unit tests. |
02:27 | <@ToxicFrog> | The until-eof multiplier (and by extension, cursor:eof) |
02:27 | <@ToxicFrog> | Bit-aligned fields. |
02:28 | <@ToxicFrog> | Better IO-time error reporting. |
04:07 | | Chalain [~chalain@ServicesAdmin.Nightstar.Net] has joined #code |
04:07 | | mode/#code [+o Chalain] by ChanServ |
05:50 | | Chalcedon [~Chalcedon@Nightstar-2160.ue.woosh.co.nz] has joined #code |
05:52 | | Derakon [~Derakon@Nightstar-4920.hsd1.ca.comcast.net] has joined #code |
05:52 | | mode/#code [+o Derakon] by ChanServ |
05:52 | <@Derakon> | So I'm poking at trying to compile a PCSX on OSX. |
05:52 | <@Derakon> | (Specifically, a version with rerecording) |
05:52 | < Shoukanjuu> | PCSX? The emulator? >___> |
05:52 | <@Derakon> | This is all written in C. |
05:52 | <@Derakon> | Yes. |
05:52 | < Shoukanjuu> | I see. |
05:52 | < Doctor_Nick> | PCSX more like PEEcsx BAM |
05:52 | <@Derakon> | I'm getting a compile error "invalid lvalue in assignment". |
05:53 | < Shoukanjuu> | That joke was bad and you should feel bad. |
05:53 | <@Derakon> | With the line of code being 'psxHu32(0x1070)|= SWAP32((u32)0x4);' |
05:53 | <@Derakon> | And psxHu32 is defined here: "#define psxHu32(mem) (SWAP32(*(u32*)&psxH[(mem) & 0xffff]))" |
05:54 | <@Derakon> | I'm beginning to wonder if it's worth bothering... |
05:54 | < Shoukanjuu> | NO idea. |
05:54 | <@Derakon> | It's a maze of macros, is my point. |
05:54 | <@Derakon> | Presumably so everything gets inlined for bonus speed. |
05:54 | <@McMartin> | Run it through... -E |
05:54 | <@McMartin> | To dump the preprocessed file |
05:55 | <@McMartin> | That will sort out the macros and you can see what's gone wrong |
05:55 | <@Derakon> | In CXXFLAGS? |
05:55 | <@McMartin> | Yeah, or just the one file if you can swing it. |
05:56 | <@Derakon> | The original compile error was in CdRom.c. |
05:56 | <@Derakon> | Added -E to CXXFLAGS, now I have a CdRom.d which looks like it's a list of CdRom.c's dependencies...? |
05:56 | <@Derakon> | But nothing else. |
05:58 | <@McMartin> | Hum. |
05:59 | <@McMartin> | gcc -E is "stop after preprocessing; do not run teh compiler, dump preprocessed source to stdout" |
05:59 | <@Derakon> | Right, I figured that out. |
05:59 | <@Derakon> | Here's the preprocessed line of code: "((*(u32*)&psxH[(0x1070) & 0xffff]))|= (( |
05:59 | <@Derakon> | u32)0x4);" |
06:00 | <@Derakon> | ((*(u32*)&psxH[(0x1070) & 0xffff]))|= ((u32)0x4); |
06:00 | <@Derakon> | To get it all on one line. |
06:00 | <@Derakon> | And that is ugly. |
06:00 | <@McMartin> | That makes the lvalue *(u32*)&psxH[(0x1070) & 0xffff] |
06:01 | <@McMartin> | * and & cancel each other out after the cast, so it's psxH[0x1070] |= 0x04. |
06:01 | <@Derakon> | 0x1070 & 0xffff = 0x1070, right? |
06:01 | <@McMartin> | Yup |
06:01 | <@McMartin> | THat's coercing it to 16-bit unsigned |
06:01 | | * Derakon nods. |
06:01 | <@McMartin> | That *looks* right. |
06:01 | <@Derakon> | I think that psxH is an s8*. |
06:01 | <@Derakon> | Whatever an s8 is. |
06:02 | <@McMartin> | int8_t. Signed char. |
06:02 | <@Derakon> | Ah. |
06:02 | <@Derakon> | In any event, that should be a reasonable lvalue. |
06:02 | <@McMartin> | the *& stuff is "this is a byte array that probably represents The RAM. Make it be 32-bit" |
06:02 | <@McMartin> | ...wait a minute |
06:02 | <@McMartin> | psxHu32(0x1070)|= SWAP32((u32)0x4); |
06:03 | <@McMartin> | Oh, wait, OK. |
06:03 | <@McMartin> | n/m |
06:03 | <@McMartin> | That's a macro too |
06:03 | <@Derakon> | Macros macros everywhere. |
06:03 | <@Derakon> | I suspect a lot of OCD goes into emulator coding. |
06:03 | < Shoukanjuu> | I would imagine. |
06:03 | <@McMartin> | You have no idea. |
06:03 | <@McMartin> | ... what happens if you take that preprocessed source and then try to compile it? |
06:04 | < Shoukanjuu> | With all those idiots 'asking' "why it isnot working omg this suxxxXXXXx" |
06:04 | <@McMartin> | I wonder if it's instead not seeing psxH32 and thus trying to assign to the result of a function call, which is indeed lolno |
06:04 | < Shoukanjuu> | To shut them up, it better be good. >__> |
06:04 | <@Derakon> | Shouldn't it be compiling the results of gcc -E, more or less? |
06:04 | <@McMartin> | Shou: The tradition there as everywhere is that anyone who isn't giving you money or code patches may be ignored. |
06:05 | <@McMartin> | Derakon: Yes, but if the problem is in the Makefile, then it might not be! |
06:05 | < Shoukanjuu> | Of course, McM. |
06:05 | <@Derakon> | Ah. |
06:05 | <@McMartin> | And in this particular case, pcsx is essentially the only game in town. |
06:05 | < Shoukanjuu> | Mmhmm. |
06:06 | <@Derakon> | Replacing CdRom.c with the output of "gcc -E CdRom.c" gets me massive compile errors~ |
06:06 | <@McMartin> | Awesome~ |
06:06 | <@McMartin> | Well, you have to keep all the -I stuff around too, of course |
06:06 | <@McMartin> | and the -Ds |
06:06 | <@McMartin> | As those affect the result of -E. |
06:06 | <@Derakon> | ...d'oh. |
06:07 | < Shoukanjuu> | o.o; |
06:08 | <@Derakon> | I suspect that the "OSX Makefile" that was kindly provided with the download was someone's personal one. |
06:08 | <@McMartin> | Possible. |
06:08 | <@Derakon> | As the CXXFLAGS include -I$(HOME)/local/include |
06:08 | <@McMartin> | lolpwnt |
06:08 | <@Derakon> | ...and I just noticed, it says "CPU = powerpc". |
06:09 | < Shoukanjuu> | Wow. |
06:09 | < Shoukanjuu> | that's... |
06:09 | < Shoukanjuu> | Wow. |
06:09 | < Shoukanjuu> | Don't make em like that anymore :P |
06:09 | <@Derakon> | Y'know, I think I'm gonna pass on this project~ |
06:09 | <@McMartin> | Yeah. |
06:09 | <@Derakon> | It's not worth the hair. |
06:10 | <@McMartin> | Unless you want the project "Produce a self-contained sensible build system for POSIX" |
06:11 | <@Derakon> | Oh, hey, there's a "Linux" directory. |
06:13 | <@Derakon> | ...maybe later. |
06:13 | <@Derakon> | Or maybe I'll check out Crossover. |
06:13 | <@McMartin> | See if the Aquaria demo runs~ |
06:14 | <@Derakon> | Well, I really should go to bed. |
06:15 | <@Derakon> | So g'night. |
06:15 | <@Derakon> | I'll follow up tomorrow. |
06:16 | | Derakon is now known as Derakon[AFK] |
07:08 | | C_tiger [~c_wyz@Nightstar-8414.hsd1.ca.comcast.net] has quit [Ping Timeout] |
07:09 | | C_tiger [~c_wyz@Nightstar-8414.hsd1.ca.comcast.net] has joined #code |
07:59 | | AnnoDomini [AnnoDomini@Nightstar-29144.neoplus.adsl.tpnet.pl] has joined #Code |
07:59 | | mode/#code [+o AnnoDomini] by ChanServ |
09:07 | | Attilla [~The.Attil@92.11.7.ns-27122] has joined #code |
09:07 | | mode/#code [+o Attilla] by ChanServ |
09:24 | | Attilla [~The.Attil@92.11.7.ns-27122] has quit [Ping Timeout] |
09:30 | | Attilla [~The.Attil@92.20.221.ns-11815] has joined #code |
09:30 | | mode/#code [+o Attilla] by ChanServ |
09:30 | | You're now known as TheWatcher |
09:48 | | AnnoDomini [AnnoDomini@Nightstar-29144.neoplus.adsl.tpnet.pl] has quit [Ping Timeout] |
09:50 | | AnnoDomini [AnnoDomini@Nightstar-29144.neoplus.adsl.tpnet.pl] has joined #Code |
09:50 | | mode/#code [+o AnnoDomini] by ChanServ |
10:25 | | Chalcedon [~Chalcedon@Nightstar-2160.ue.woosh.co.nz] has quit [Quit: Leaving] |
11:04 | | gnolam [lenin@79.136.60.ns-4387] has joined #Code |
11:04 | | mode/#code [+o gnolam] by ChanServ |
11:18 | | Attilla_ [~The.Attil@92.20.221.ns-11815] has joined #code |
11:19 | | Attilla [~The.Attil@92.20.221.ns-11815] has quit [Ping Timeout] |
11:19 | | Attilla_ is now known as Attilla |
12:22 | | Vornicus-Latens [~vorn@Admin.Nightstar.Net] has quit [Ping Timeout] |
13:24 | | Vornicus-Latens [~vorn@Admin.Nightstar.Net] has joined #code |
14:00 | | Xiphias [~Ameroth@Nightstar-13215.wlms-broadband.com] has joined #code |
14:01 | | AnnoDomini [AnnoDomini@Nightstar-29144.neoplus.adsl.tpnet.pl] has quit [Ping Timeout] |
14:04 | | AnnoDomini [AnnoDomini@83.26.28.ns-3554] has joined #Code |
14:05 | | mode/#code [+o AnnoDomini] by ChanServ |
14:20 | | AnnoDomini [AnnoDomini@83.26.28.ns-3554] has quit [Ping Timeout] |
14:22 | | AnnoDomini [AnnoDomini@83.26.28.ns-3554] has joined #Code |
14:22 | | mode/#code [+o AnnoDomini] by ChanServ |
14:44 | | AnnoDomini [AnnoDomini@83.26.28.ns-3554] has quit [Ping Timeout] |
14:47 | | Vornotron [~vorn@Admin.Nightstar.Net] has joined #code |
14:47 | | Vornotron is now known as Vornicus |
14:48 | | Vornicus-Latens [~vorn@Admin.Nightstar.Net] has quit [Ping Timeout] |
15:39 | | AnnoDomini [AnnoDomini@83.26.28.ns-3554] has joined #Code |
15:39 | | mode/#code [+o AnnoDomini] by ChanServ |
15:41 | | Myst [~Myst@Nightstar-29731.dsl.in-addr.zen.co.uk] has quit [Quit: "Everyone dies, but not everyone lives." -- A. Sachs] |
16:20 | | AnnoDomini [AnnoDomini@83.26.28.ns-3554] has quit [Connection reset by peer] |
16:20 | | AnnoDomini [AnnoDomini@Nightstar-29144.neoplus.adsl.tpnet.pl] has joined #Code |
16:21 | | mode/#code [+o AnnoDomini] by ChanServ |
17:54 | | Xiphias [~Ameroth@Nightstar-13215.wlms-broadband.com] has quit [Quit: I was never gone] |
18:44 | | Myst [~Myst@Nightstar-29731.dsl.in-addr.zen.co.uk] has joined #code |
18:44 | | mode/#code [+o Myst] by ChanServ |
21:28 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Client exited] |
21:30 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code |
21:30 | | mode/#code [+o ToxicFrog] by ChanServ |
22:07 | | Doctor_Nick [~.@Nightstar-12626.tampfl.fios.verizon.net] has quit [Quit: leaving] |
22:08 | <@gnolam> | Bleh. Rewrites. |
22:11 | <@gnolam> | But at least the symbol system sort of works now. |
22:12 | <@gnolam> | http://www.cyd.liu.se/~torha229/cc/war0011.png <- Now with extra NTDS symbology! |
22:13 | < Shoukanjuu> | \o/ |
22:30 | | MyCatVerbs [~mycatverb@Nightstar-13709.lurkingfox.co.uk] has quit [Ping Timeout] |
22:45 | | You're now known as TheWatcher[T-2] |
22:48 | | You're now known as TheWatcher[zZzZ] |
23:31 | | AnnoDomini [AnnoDomini@Nightstar-29144.neoplus.adsl.tpnet.pl] has quit [Ping Timeout] |
23:37 | | AnnoDomini [AnnoDomini@Nightstar-29074.neoplus.adsl.tpnet.pl] has joined #Code |
23:37 | | mode/#code [+o AnnoDomini] by ChanServ |
--- Log closed Wed Sep 17 00:00:54 2008 |