1. Core War

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

new topic     » topic index » view message » categorize

2. Re: Core War

>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/

new topic     » goto parent     » topic index » view message » categorize

3. Re: Core War

>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

new topic     » goto parent     » topic index » view message » categorize

4. Re: Core War

>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/

new topic     » goto parent     » topic index » view message » categorize

5. Re: Core War

>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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu