Earlier quoted context omitted.
Because it's being interpreted as a shell script, I assume.
Without a hashbang it's actually interpreted as machine code, it just doesn't have any machine instructions.
The world's smallest self-replicating program
21–30 of 65 posts
Re: The world's smallest self-replicating program
#22Earlier quoted context omitted.
Forcing the creation of a new contest rule is a tradition in the IOCCC.
Meh. Empty program doesn't replicate itself. It's similar to recent rule-nitpick discussion about selling for 0$. Selling for 0$ isn't selling and nothing isn't replicating itself. Definition of replicate is: to repeat or copy (something) exactly Empty program doesn't copy or repeat anything. Entry rejected. EDIT: It's not reddit, downvotes doesn't go here for disagreeing. The problem is posed in natural language and…
Re: The world's smallest self-replicating program
#23phiX174 virus - one of the world's smallest self-replicating programs :-) http://www.ncbi.nlm.nih.gov/nuccore/NC_001422.1 Enterobacteria phage phiX174 sensu lato, complete genome 5386 bp ss-DNA
In college I actually got to take part in refactoring that virus' genome into a decompressed version with no gene overlaps. And it worked! The decompressed version is still a functioning phage, and since there are no longer gene overlaps, future genetic engineers will have a much easier time modifying the phage as they see fit.
http://www.sciencedirect.com/science/article/pii/S0042682212...
Re: The world's smallest self-replicating program
#24Re: The world's smallest self-replicating program
#25Re: The world's smallest self-replicating program
#26Earlier quoted context omitted.
Forcing the creation of a new contest rule is a tradition in the IOCCC.
That tradition goes back a long, long way. When Plato defined Man as "A featherless biped," someone showed him a plucked chicken. A great tradition.
Re: The world's smallest self-replicating program
#27Is the copyright notice supposed to apply to the empty program?
Not sure about the copyright, but I wouldn't be surprised if someone patented it in the US.
Re: The world's smallest self-replicating program
#28Earlier quoted context omitted.
Without a hashbang it's actually interpreted as machine code, it just doesn't have any machine instructions.
No, without a shebang it is interpreted as a shell script.
In fact, an empty executable file has been used to implement /bin/true on some old systems. Why take the added cost of a disk seek when just the information in the inode will do?
Re: The world's smallest self-replicating program
#29Re: The world's smallest self-replicating program
#30Earlier quoted context omitted.
Because it's being interpreted as a shell script, I assume.
Without a hashbang it's actually interpreted as machine code, it just doesn't have any machine instructions.
A zero-length binary fed into either ld.so (a.out loader) or ld-linux.so (elf loader) will not produce a zero-length output, but a parsing error.