How many lines of code is Darwinia?
Moderators: jelco, bert_the_turtle, Chris
How many lines of code is Darwinia?
Hi. I'm a beginning C++ programmer wondering about the amount of work I'm going to have to do. How big is it? And it's in C++, right?
or write darwinia as a separate subsidiary app and write the supposed version of darwina to be :
tada! one line!
Code: Select all
launch_darwinia.exe
tada! one line!
GENERATION 22:The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.
Re: How many lines of code is Darwinia?
thezeus18 wrote:And it's in C++, right?
Chris is so l337, he did it straight into machine code.
Re: How many lines of code is Darwinia?
KingAl wrote:thezeus18 wrote:And it's in C++, right?
Chris is so l337, he did it straight into machine code.
Don't laugh! When I was writing commercial games for a big US publisher, 6502 was my second language!
Even less seriously, about the number of lines of code in Darwinia, I refer to the old coding maxims:
(1) Every program contains at least one bug.
(2) Every program can be made one byte smaller.
(3) Therefore, every program can ultimately be reduced to one byte in length.... but it'll be the wrong byte!
-S
xander wrote:Psh... it was one line of Brainfuck.
xander
interesting you should say that, wondering what brainfuck was I went to wikipedia, spent a night building brainfuck programs and then spent the next day building an VM/interpreter for BrainExpletive (my own version of brainfuck that is shockingly similar):
[ begin loop
] end loop if value @ pointer is 0
+ add 1 from value @ pointer, if value is 255 then nothing after this point is executed until a ]
- minus 1 from value @ pointer, if value is 0 then nothing after this point is executed until a ]
, get data input from user
. output data in a letter form
/ output data in a numeric form
< decriment memory pointer position
> incriment memory pointer position
? clear output box
# incriment register
~ decriment register
{ open register dependant loop
} end register dependant lopp on register = 0
* put register into memory
\ put memory into register
GENERATION 22:The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.
- ghostDancer
- level2
- Posts: 90
- Joined: Tue Jul 12, 2005 4:50 am
- Location: Land of Confusion
- Contact:
i allways thought that darwinia was programmed in Intercal, the only language withe famous "come from" statement.
http://catb.org/~esr/intercal/
http://www.99-bottles-of-beer.net/language-intercal-333.html
http://catb.org/~esr/intercal/
http://www.99-bottles-of-beer.net/language-intercal-333.html
At last!
This is probably the best moment to say the following (cause I know *someone* will understand!!)
"
There are only 10 types of people in the world:
- those who understand binary
- and those who don't
"
"
There are only 10 types of people in the world:
- those who understand binary
- and those who don't
"
Who is online
Users browsing this forum: No registered users and 13 guests