Welcome to GameHourz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Odp: 14 cycles for 2 threads ! Still nice ! (The minimum n..

 
   Game Forums (Home) -> Core War RSS
Next:  What's the point of letting my warrior fight on K..  
Author Message
Lukasz Adamowski

External


Since: Dec 03, 2007
Posts: 18



(Msg. 1) Posted: Sat Dec 08, 2007 5:02 pm
Post subject: Odp: 14 cycles for 2 threads ! Still nice ! (The minimum number of threads p
Archived from groups: rec>games>corewar (more info?)

Hello there!

Quite different way to split any numbers of processes:

;redcode
;name SlowButSmallSpliter
;author Lukasz Adamowski
;assert 1

NumberOfProcesses EQU 2

count
jmn 0, #NumberOfProcesses
mov 1, split
dat 0, 0
start
spl count, <count
split
spl 0, <count
jmn 0, -1

; Start of proper warrior

end start

6 instructions only. Well, it's not efficient, however for 2 threads
runs in 10 cycles. The more porcesses you want to have the slower it
is. In real battle it is more important to be fast than to be small,
because code run once and than left in the core may be a decoy for
scanners, so I think you'd better avoid loops in your algorithm.
Warrior will get much longer, but will execute slight faster.

Greetings
Lukasz Adamowski

Dnia 7-12-2007 o godz. 19:00 Skybuck Flying napisal:
> Another interesting figure:
>
> 14 cycles for 2 threads, the minimum number of threads as the parameter.
>
> Still pretty nice.
>
> That's about 7 cycles per thread.
>
> Not too bad giving it's flexibility to spawn any number of threads Smile
>
> Bye,
> Skybuck.

-= "Make tea, not war" =-


----------------------------------------------------
Płyta CD i kartka pocztowa "Pocztówka do Św.Mikołaja 2007" już
w sprzedaży. Kupując tę płytę pomagasz dzieciom
z domów dziecka. wwW.pocztowkadoswietegomikolaja.pl
http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2Fpocztowka.h...&sid=12

 >> Stay informed about: Odp: 14 cycles for 2 threads ! Still nice ! (The minimum n.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Score Surface for 94nop - Hi, some anonymous person (still called "bvowk" for simplicity ;-) is so kind to provide access to a pile of computers. I have suggested to calculate one score surface for standard settings. It takes roughly 1000 times the time of one "no...

Bug in pMARS - Hi, either I don't know how EQUs work or I have found a bug in the parser of pMARS. So far I cound pin it down to: ;redcode-tiny ;name test ;assert CORESIZE == 800 v3 EQU 3 * (3 / 2 + 1) + 3 v4 EQU (CORESIZE - v3) dat.f v3, v4 With the..

KOTH.ORG: Status - ICWS Experimental 94 03/06/06 - Weekly Status on 03/06/06 -=- irc.KOTH.org is up! Meetings held in #corewars -=- Tons of new features on www.KOTH.org/koth.html pages -=- *FAQ* page located at: www.KOTH.org/corewar-faq.html Current Status of the KOTH.ORG ICWS Experimental 94..

KOTH.ORG: Status - MultiWarrior 94 03/06/06 - Weekly Status on 03/06/06 -=- irc.KOTH.org is up! Meetings held in #corewars -=- Tons of new features on www.KOTH.org/koth.html pages -=- *FAQ* page located at: www.KOTH.org/corewar-faq.html Current Status of the KOTH.ORG Multiwarrior 94 CoreWar..

KOTH.ORG: Status - 94 No Pspace 03/06/06 - Weekly Status on 03/06/06 -=- irc.KOTH.org is up! Meetings held in #corewars -=- Tons of new features on www.KOTH.org/koth.html pages -=- *FAQ* page located at: www.KOTH.org/corewar-faq.html Current Status of the KOTH.ORG 94 No Pspace CoreWar Hill...
   Game Forums (Home) -> Core War All times are: Ekaterinburg, Islamabad, Karachi, Tashkent (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]