Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Recursive programs

Name: Anonymous 2011-05-30 20:08

I decided to write a program that printed itself, and I couldn't.

I pose to you this challenge, /prog/

Name: Anonymous 2011-05-31 20:06

>>40
I couldn't get that to happen due to the ‘’ characters, it just spewed out several 'stray character \x380' or so errors without -fmax-errors.

Name: Anonymous 2011-05-31 20:09


quine.hs:2:37: parse error on input `)'

Name: Anonymous 2011-05-31 20:14

>>41
I suspect the --disable-nls configure flag may have something to do with this.

Name: Anonymous 2011-06-01 2:23

>>15
>>14 here

You fucking "faggot", I know that the code is different. What I meant is, how is it different internally?

Name: Anonymous 2011-06-01 5:19

the last stage  of autism turns you into gcc

Name: Anonymous 2011-06-01 5:32

>>44
1. Go back to the imageboards.
2. It's perfectly cromulent to use that in this situation.

Name: Anonymous 2011-06-01 8:16

>>46
fuck you faggot

Name: Anonymous 2011-06-01 11:32

I wrote a saner Ruby one.

puts DATA.read*2
__END__
puts DATA.read*2
__END__

Name: Anonymous 2011-06-01 12:55

>>48
Doesn't that count as ``input''?

Name: Anonymous 2011-06-01 13:51

>>48
Holy shit, why does ruby even exist? It's like it wants to be perl so hard that it's just a clone.

Name: Anonymous 2011-06-01 14:33

>>50
It's a frankenstein monster language with concepts from Smalltalk, Lisp and Perl, with Perlish (read: unreadable, write-only) syntax and lots of special case.
So, it has a lot in common with C++.

Name: Anonymous 2011-06-01 17:55

This is a 32 bit Linux ELF binary quine, it will output itself in binary.

0000000 457f 464c 0101 0001 0000 0000 0000 0000
0000010 0002 0003 0001 0000 8080 0804 0034 0000
0000020 00c0 0000 0000 0000 0034 0020 0002 0028
0000030 0004 0003 0001 0000 0000 0000 8000 0804
0000040 8000 0804 00a8 0000 00a8 0000 0005 0000
0000050 1000 0000 0001 0000 00a8 0000 90a8 0804
0000060 90a8 0804 0001 0000 0001 0000 0006 0000
0000070 1000 0000 0000 0000 0000 0000 0000 0000
0000080 a8b9 0490 8108 a8e9 0000 ba00 0160 0000
0000090 04b8 0000 bb00 0001 0000 80cd 01b8 0000
00000a0 bb00 0000 0000 80cd 0000 732e 7368 7274
00000b0 6174 0062 742e 7865 0074 642e 7461 0061
00000c0 0000 0000 0000 0000 0000 0000 0000 0000
*
00000e0 0000 0000 0000 0000 000b 0000 0001 0000
00000f0 0006 0000 8080 0804 0080 0000 0028 0000
0000100 0000 0000 0000 0000 0010 0000 0000 0000
0000110 0011 0000 0001 0000 0003 0000 90a8 0804
0000120 00a8 0000 0001 0000 0000 0000 0000 0000
0000130 0004 0000 0000 0000 0001 0000 0003 0000
0000140 0000 0000 0000 0000 00a9 0000 0017 0000
0000150 0000 0000 0000 0000 0001 0000 0000 0000
0000160

Name: Anonymous 2011-06-01 18:41

>>28
This works, but only if you add
#include <stdio.h>

Name: Anonymous 2011-06-01 18:47

>>52
That's hex.

Name: Anonymous 2011-06-01 19:16

>>54
xxd -r

Name: Anonymous 2011-06-01 19:39

(function (){alert ("("+arguments.callee.toString()+")();");})();

Name: Anonymous 2011-06-01 19:49

>>56
In my browser's js engine, it's only a valid quine if it's formatted thusly:
(function () {
    alert("(" + arguments.callee.toString() + ")();");
})();


The More You Know

Name: Anonymous 2011-06-01 19:51

>>57
The more you realize that she wants to shove her dildo up your ass. I hope you enjoy wearing nylons you douche.

Name: Anonymous 2011-06-01 19:53

>>57
Yeah, I tested it in both FF and V8. Decided to go with the V8 one, because fuck the system is why.

Name: Anonymous 2011-06-01 19:59

>>56,57
You can also remove the .toString().

Name: Anonymous 2011-06-01 20:08

>>60
It still gets called when concatenated to the string with +, so it may as well be there.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List