ITT e-peen
1
Name:
Anonymous
2008-01-20 21:52
How many times can you open a recursive process before you segfault?
#include <stdio.h>
int i;
void recurse()
{
i++;
printf("%d\n", i);
recurse();
}
int main()
{
i = 0;
recurse();
}
I got 523506.
2
Name:
Anonymous
2008-01-20 22:22
ITT tail call optimization
3
Name:
Anonymous
2008-01-20 22:24
open a recursive process
FAIL
4
Name:
Anonymous
2008-01-20 22:47
Well if you get anything other than an infinite loop, your compiler sucks.
5
Name:
Anonymous
2008-01-20 23:00
2147483647 here.
6
Name:
Anonymous
2008-01-20 23:02
>>4
It prints how many iterations it does before you crash.
>>5
o:
7
Name:
Anonymous
2008-01-20 23:06
>>6
It prints how many iterations it does before you crash.
*facepalm*
1) You need to get your fucking terms right.
`recursive process' or `iterations' ? what the fuck you stupid sonofabitch.
2) you fucking faggot need to learn about
static
3)
>>5 lied. that's just 2^31-1.
8
Name:
Anonymous
2008-01-20 23:12
>>7 .3
aka INT_MAX. aka the highest count it will report.
9
Name:
Anonymous
2008-01-20 23:38
I suspect OP is a troll, and that we have been trolled constantly.
10
Name:
Anonymous
2008-01-20 23:44
>>8
NO YOU FUCKING PIECE OF SHIT FAILURE.
INT_MAX >= 36767
THAT'S WHAT IS GUARANTEED. NOTHING MORE NOTHING LESS.
*FUCK YOU*
11
Name:
Anonymous
2008-01-20 23:52
>>10
That's why I said "here", faggot.
12
Name:
Anonymous
2008-01-21 5:29
>>10
i think steroids man is a pretty cool guy, eh shouts and doesn't afraid of anything
13
Name:
Anonymous
2008-01-21 5:53
>10
We have a copypasta for that, you know.
14
Name:
Anonymous
2008-01-21 6:04
>>10
Warning!
Mental Illness Alert!
15
Name:
Anonymous
2008-01-21 9:38
>>8
Bullshit, you fuckhead. The odds are at most 1 in 2^32 (probably far less) that the signed int will be in exactly that state when it fails. l2wrap.
16
Name:
Anonymous
2008-01-21 10:23
Don't forget to flush()
17
Name:
Anonymous
2008-01-21 10:27
>>15
It
doesn't fail , retard. It's a fucking infinite loop.
18
Name:
Anonymous
2008-01-21 11:30
>>17
Since when is C tail recursive?
19
Name:
Anonymous
2008-01-21 11:37
>>18
SINCE MY COMPILER IMPLEMENTED IT
20
Name:
Anonymous
2008-01-21 11:41
21
Name:
Anonymous
2008-01-21 12:09
Kernighan would not like this.
22
Name:
Anonymous
2008-01-21 18:17
OP here. What are you all talking about. What is "int" or "int max"?
23
Name:
Anonymous
2008-01-21 18:22
>>22
Forget it, it's NP-Complete
24
Name:
Anonymous
2008-01-21 18:23
>>22
funny, you have 'int' in your code then you ask what int is. troll.
25
Name:
Anonymous
2008-01-21 18:36
My C compiler compiles to Scheme, then I compile Scheme to native code.
So I have "an unbounded number of active tail-calls". This program just doesn't end!
26
Name:
Anonymous
2008-01-21 18:39
>>25
R5RS does not guarantee tco.
27
Name:
Anonymous
2008-01-21 18:54
>>24
I copied that code out of a book.
28
Name:
Anonymous
2008-01-21 19:03
29
Name:
Anonymous
2008-01-21 19:21
>>26
From the standard:
Implementations of Scheme are required to be properly tail-recursive.
You have been trolled.
30
Name:
Anonymous
2008-01-21 19:49
31
Name:
Anonymous
2008-01-21 19:51
>>30
Go away niggertits, we're smarter than that.
32
Name:
Anonymous
2008-01-21 22:11
MD5("76.202.218.241") = a9ac89aa4778ecda96cb6b824df695b4
MD5("90.193.147.121") = ef620f7720f042f5b34513adf1663b53
33
Name:
Anonymous
2008-01-21 22:16
34
Name:
Anonymous
2008-01-21 23:13
Huh. A use for my MD5 rainbow table that only has [0-9.] in it.
35
Name:
Anonymous
2008-01-21 23:14
That's what God invented salt for
36
Name:
Anonymous
2008-01-22 3:27
37
Name:
Anonymous
2008-01-22 3:45
>>32
How did you find that out?
38
Name:
Anonymous
2008-01-22 8:01
>>37
1. Guess it is the MD5 of the IP address as a string.
2. Verify guess with own IP address
3. Code shitty bruteforcer:
http://www.pastebin.cz/show/3268
4. ????????????????
5. PROFIT!
39
Name:
Anonymous
2008-01-22 14:38
40
Name:
Anonymous
2008-01-22 14:55
>>1
you forgot to fflush(stdout).
41
Name:
Anonymous
2008-01-22 15:35
>>40
Doesn't matter. If stdout is in linebuffer mode, printing a
'\n' will automagically flush it. By default, stdout is in linebuffer mode.
42
Name:
Anonymous
2008-01-22 16:44
setbuf(stdout, NULL); or gtfo
43
Name:
Anonymous
2008-01-22 17:39
>>32
Awesome, that's my actual IP as well.
44
Name:
Anonymous
2009-03-18 3:40
Don't call me gay, but I need some mary jay!
Marijuana MUST be legalized.
46
Name:
Anonymous
2010-12-06 9:25
B a c k t o / b / , ` ` G N A A F a g g o t ' '
47
Name:
Anonymous
2011-02-04 16:44
48
Name:
Anonymous
2011-02-04 17:19