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

Pages: 1-4041-

ITT e-peen

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.

Name: Anonymous 2008-01-20 22:22

ITT tail call optimization

Name: Anonymous 2008-01-20 22:24

open a recursive process
FAIL

Name: Anonymous 2008-01-20 22:47

Well if you get anything other than an infinite loop, your compiler sucks.

Name: Anonymous 2008-01-20 23:00

2147483647 here.

Name: Anonymous 2008-01-20 23:02

>>4
It prints how many iterations it does before you crash.

>>5
o:

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.

Name: Anonymous 2008-01-20 23:12

>>7 .3
aka INT_MAX.  aka the highest count it will report.

Name: Anonymous 2008-01-20 23:38

I suspect OP is a troll, and that we have been trolled constantly.

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*

Name: Anonymous 2008-01-20 23:52

>>10
That's why I said "here", faggot.

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

Name: Anonymous 2008-01-21 5:53

>10
We have a copypasta for that, you know.

Name: Anonymous 2008-01-21 6:04

>>10
         Warning!
Mental Illness Alert!

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.

Name: Anonymous 2008-01-21 10:23

Don't forget to flush()

Name: Anonymous 2008-01-21 10:27

>>15
It doesn't fail, retard.  It's a fucking infinite loop.

Name: Anonymous 2008-01-21 11:30

>>17
Since when is C tail recursive?

Name: Anonymous 2008-01-21 11:37

>>18
SINCE MY COMPILER IMPLEMENTED IT

Name: Anonymous 2008-01-21 11:41

>>18
Since about -O2.

Name: Anonymous 2008-01-21 12:09

Kernighan would not like this.

Name: Anonymous 2008-01-21 18:17

OP here. What are you all talking about. What is "int" or "int max"?

Name: Anonymous 2008-01-21 18:22

>>22
Forget it, it's NP-Complete

Name: Anonymous 2008-01-21 18:23

>>22
funny, you have 'int' in your code then you ask what int is. troll.

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!

Name: Anonymous 2008-01-21 18:39

>>25
R5RS does not guarantee tco.

Name: Anonymous 2008-01-21 18:54

>>24
I copied that code out of a book.

Name: Anonymous 2008-01-21 19:03

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.

Name: Anonymous 2008-01-21 19:49

Name: Anonymous 2008-01-21 19:51

>>30
Go away niggertits, we're smarter than that.

Name: Anonymous 2008-01-21 22:11

MD5("76.202.218.241") = a9ac89aa4778ecda96cb6b824df695b4
MD5("90.193.147.121") = ef620f7720f042f5b34513adf1663b53

Name: Anonymous 2008-01-21 22:16

>>32
lol nice.

Name: Anonymous 2008-01-21 23:13

Huh. A use for my MD5 rainbow table that only has [0-9.] in it.

Name: Anonymous 2008-01-21 23:14

That's what God invented salt for

Name: Anonymous 2008-01-22 3:27

>>32
oh wow

Name: Anonymous 2008-01-22 3:45

>>32
How did you find that out?

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!

Name: Anonymous 2008-01-22 14:38

>>38
Fuckwin

Name: Anonymous 2008-01-22 14:55

>>1
you forgot to fflush(stdout).

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.

Name: Anonymous 2008-01-22 16:44

setbuf(stdout, NULL); or gtfo

Name: Anonymous 2008-01-22 17:39

>>32
Awesome, that's my actual IP as well.

Name: Anonymous 2009-03-18 3:40

Don't call me gay, but I need some mary jay!

Marijuana MUST be legalized.

Name: Anonymous 2010-12-06 9:25

Back to /b/, ``GNAA Faggot''

Name: Anonymous 2011-02-04 16:44

Name: Anonymous 2011-02-04 17:19

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