1. Core War
- Posted by Jason Gade <jgade at NETZERO.NET> Aug 27, 1999
- 473 views
- Last edited Aug 28, 1999
I'm interested in the Core War program. I have studied both the original documents and Rod's source code. Rod, your source code works (why did you make it .e instead of .ex?). You can probably reduce it by a third by decoding the operand data only once and then executing each instruction. Store the data in SourceAddress, SourceData, DestAddress, DestData, and then let the instruction do the rest of the work. Also, using hexadecimal and bit-operators might simplify your code. I want to do my own implementation, using hexadecimal for opcode coding and using the original definition of the language. I would probably throw in SPL and PCT, though. Those two instructions certainly make for interesting warriors. J. ________________________________________________________ NetZero - We believe in a FREE Internet. Shouldn't you? Get your FREE Internet Access and Email at http://www.netzero.net/download/index.html
2. Re: Core War
- Posted by J E M <budmeister1 at JUNO.COM> Aug 29, 1999
- 442 views
>I want to do my own implementation, using hexadecimal for opcode coding and >using the original definition of the language. I would probably throw in >SPL and PCT, though. Those two instructions certainly make for interesting >warriors. If you've been reading the ongoing thread on CoreWars, you'd see that coding the instructions in hex/bits/whatever has already been discussed, and Rod decided not to (why fix it if it ain't broke?). I can't say I don't agree with him either... However, a new simulator using new approaches to the game should spice it up a bit :) What were you planning on doing about a parser? It seems the thread activity has been going down... maybe it was just a longer-lived fad than usual :P ----->Buddy budmeister1 at juno.com http://tenbux.homepage.com/
3. Re: Core War
- Posted by Jason Gade <jgade at NETZERO.NET> Aug 29, 1999
- 461 views
>If you've been reading the ongoing thread on CoreWars, you'd see that >coding >the instructions in hex/bits/whatever has already been discussed, and Rod >decided not to (why fix it if it ain't broke?). I can't say I don't agree >with >him either... I agree with the "if it ain't broke", but I just figure that it would be easier to code. >However, a new simulator using new approaches to the game should spice it >up a bit :) What were you planning on doing about a parser? I was just going to start with the simulator and hand-code the programs. I haven't given much thought to doing a parser/compiler yet. >It seems the thread activity has been going down... maybe it was just >a longer-lived fad than usual :P I've mainly been reading the docs on http://www.koth.org/ so far. I haven't started anything yet, but I think that it is fascinating. Although I've been on the list for awhile, and have had Euphoria for a long time, I haven't really done any serious projects. Maybe this is one that I can handle. J. ________________________________________________________ NetZero - We believe in a FREE Internet. Shouldn't you? Get your FREE Internet Access and Email at http://www.netzero.net/download/index.html
4. Re: Core War
- Posted by J E M <budmeister1 at JUNO.COM> Aug 30, 1999
- 436 views
>I agree with the "if it ain't broke", but I just figure that it would be >easier to code. I personally think string handling is easier than bit munging; it depends on the person :) >>However, a new simulator using new approaches to the game should spice it >>up a bit :) What were you planning on doing about a parser? >I was just going to start with the simulator and hand-code the programs. I >haven't given much thought to doing a parser/compiler yet. Check out my compiler (only compatible with Rod's simulator sofar) @ http://tenbux.homepage.com/. It has a few neat features you might like; read the online docs. I was considering adding features to it, but Rod hasn't been forthcoming with his new version yet so I can look at it. Your simulator may be just the excuse I need ;) Once you're finished (or close), how about sending me some specs on it, so I can add it to my compiler? >Although I've been on the list for awhile, and have had Euphoria for a long >time, I haven't really done any serious projects. Maybe this is one that I can >handle. It's alot of fun to code [big] projects with other people. I spent last summer doing this very same thing with Martin, entirely by email. Although we didn't produce any final code, the stuff we learned helped us in other areas too (not just CoreWars). ----->Buddy budmeister1 at juno.com http://tenbux.homepage.com/
5. Re: Core War
- Posted by Jason Gade <jgade at NETZERO.NET> Aug 30, 1999
- 456 views
- Last edited Aug 31, 1999
>I personally think string handling is easier than bit munging; it depends >on >the person :) I considered this, too. I'm not quite sure. Rod's code uses integer math. >Check out my compiler (only compatible with Rod's simulator sofar) @ >http://tenbux.homepage.com/. It has a few neat features you might like; >read the online docs. > >I was considering adding features to it, but Rod hasn't been forthcoming >with his new version yet so I can look at it. Your simulator may be just >the excuse I need ;) Once you're finished (or close), how about sending >me some specs on it, so I can add it to my compiler? I will; hopefully I do something on it instead of just thinking about it. Fortunately, I think that I have my instruction set and I will be ready to start coding soon. Just need to do it . . . > > >>Although I've been on the list for awhile, and have had Euphoria for a >long >>time, I haven't really done any serious projects. Maybe this is one >that I can >>handle. > >It's alot of fun to code [big] projects with other people. I spent last >summer >doing this very same thing with Martin, entirely by email. Although we >didn't >produce any final code, the stuff we learned helped us in other areas too >(not just CoreWars). I started porting Rogue from C to Euphoria, but I couldn't/wouldn't sort out all of the file/function dependencies. But I learned a lot. If I start on that project again, I think that I will just try to analyze the general structure and try to recreate it on my own instead of just translating. J. ________________________________________________________ NetZero - We believe in a FREE Internet. Shouldn't you? Get your FREE Internet Access and Email at http://www.netzero.net/download/index.html