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

Pages: 1-4041-8081-120121-

Ruby

Name: Anonymous 2009-05-29 0:22

Every 15 years or so, languages are replaced with better ones. C was replaced by C++, at least for large-scale application development by people who needed performance but desperately wanted data types too. C++ is being replaced by Java, and Java will doubtless be replaced with something better in seven years — well, seven years after it finishes replacing C++, which evidently hasn't fully happened yet, mostly because Microsoft was able to stall it before it became ubiquitous on the desktop. But for server-side applications, C++ is basically on its way out.

Perl will be gone soon, too. That's because a new language called Ruby has finally been translated into English. Yep, it was invented in Japan, of all places — everyone else was as surprised as you are, since Japan's known for its hardware and manufacturing, but not for its software development. Why, is anyone's guess, but I'm thinking it's the whole typing thing; I just can't imagine they were able to type fast enough before, what with having an alphabet with ten thousand characters in it. But Emacs got multibyte support a few years ago, so I can imagine they're pretty dang fast with it now. (And yes, they use Emacs — in fact Japanese folks did the majority of the Mule [multibyte] support for Emacs, and it's rock-solid.)

Anyway, Ruby stole everything good from Perl; in fact, Matz, Ruby's author (Yukihiro Matsumoto, if I recall correctly, but he goes by "Matz"), feels he may have stolen a little too much from Perl, and got some whale guts on his shoes. But only a little.

For the most part, Ruby took Perl's string processing and Unix integration as-is, meaning the syntax is identical, and so right there, before anything else happens, you already have the Best of Perl. And that's a great start, especially if you don't take the Rest of Perl.

But then Matz took the best of list processing from Lisp, and the best of OO from Smalltalk and other languages, and the best of iterators from CLU, and pretty much the best of everything from everyone.

And he somehow made it all work together so well that you don't even notice that it has all that stuff. I learned Ruby faster than any other language, out of maybe 30 or 40 total; it took me about 3 days before I was more comfortable using Ruby than I was in Perl, after eight years of Perl hacking. It's so consistent that you start being able to guess how things will work, and you're right most of the time. It's beautiful. And fun. And practical.

If languages are bicycles, then Awk is a pink kiddie bike with a white basket and streamers coming off the handlebars, Perl is a beach cruiser (remember how cool they were? Gosh.) and Ruby is a $7,500 titanium mountain bike. The leap from Perl to Ruby is as significant as the leap from C++ to Java, but without any of the downsides, because Ruby's essentially a proper superset of Perl's functionality, whereas Java took some things away that people missed, and didn't offer real replacements for them.

Name: Anonymous 2009-05-29 0:30

Cool story, bro.

Name: Anonymous 2009-05-29 0:39

tl;dr

Name: Anonymous 2009-05-29 0:45

Ruby is the best language.

Name: Anonymous 2009-05-29 1:05

then C is the old bike with rocket boosters attached to the sides

Name: Anonymous 2009-05-29 1:07

I read the whole thing and can confirm it is a troll. Please do not less sage.

Name: Anonymous 2009-05-29 1:15

>>6
Not a troll.

http://steve.yegge.googlepages.com/tour-de-babel

Read it and weep.

Name: Anonymous 2009-05-29 1:40

>>7
I got as far as him demonstrating the "C-x C-f Suck-Emacs-Dick" command, and I quote "They all used Emacs, of course. Hell, Eric Benson was one of the authors of XEmacs. All of the greatest engineers in the world use Emacs. The world-changer types. Not the great gal in the cube next to you. Not Fred, the amazing guy down the hall. I'm talking about the greatest software developers of our profession, the ones who changed the face of the industry. The James Goslings, the Donald Knuths, the Paul Grahams, the Jamie Zawinskis, the Eric Bensons. Real engineers use Emacs." Then I realized IHBT. Not by the author, but by you, you devious anonymous you, linking me this steaming pile of shit knowing full well what it was.

Name: Anonymous 2009-05-29 1:44

I refuse to believe that /prog/ knows more than all the reviews of the world and that there is a massive conspiracy to troll you.

Name: Anonymous 2009-05-29 2:13

Ruby would be cool if it weren't SLOW AS FUCK!!!!

Name: Anonymous 2009-05-29 2:18

Ruby would be cool if it were Factor.

Name: Anonymous 2009-05-29 2:21

Ruby would be cool if it was as fast as PERL

Name: Anonymous 2009-05-29 2:23

>>10
Look what you started now.

Name: Anonymous 2009-05-29 2:27

Ruby would be cool if it was PERL 6

Name: Anonymous 2009-05-29 2:34

Ruby is cool because I have a very fast CPU because I'm a true American, fuck yeah!

Name: Anonymous 2009-05-29 2:37

>>15
But Ruby is Japanese! You race traitor!

Name: Anonymous 2009-05-29 3:38

>>16
Ruby is actually QORIAN.

Name: Anonymous 2009-05-29 4:25

>>16
But real Americans love NIHONGO[1]!

REFERENCES           
1: TL note: NIHONGO means The Glorious Empire of Nippon

Name: Anonymous 2009-05-29 5:27

>>18
Real Americans aren't WEEABOO[1]

TL note                                   
1: WEABOO means faggot.

Name: Anonymous 2009-05-29 5:32

>>8
[b]WARNING: MASSIVE TROLL[b/]

Name: Anonymous 2009-05-29 8:50

TOO BAD RUBY IS SLOW AS FUCK

Name: Anonymous 2009-05-29 8:52

TOO BAD THE RUBY ``COMMUNITY'' IS CRAWLING WITH DELUDED IGNORANT HIPSTERS

Name: Anonymous 2009-05-29 9:07

>>8
Bitch put Paul Graham and James Gosling in the same level as Donald Knuth? Bitch must die.

Name: Anonymous 2009-05-29 9:11

languages are replaced with better ones. C was replaced by C++
stopped reading there

Name: Anonymous 2009-05-29 9:32

Why don't you guys agree with him? He is an INDUSTRY EXPERT.

Name: Anonymous 2009-05-29 9:44

>>7
Jamie Zawinski
I couldn't help but lose a lot of respect for jwz when I found out he got hepkitten knocked up and she actually went ahead and had his kid.

Poor guy must have every single STD in the world now. No wonder he runs a club, he can't catch anything else.

Name: Anonymous 2009-05-29 11:06

>>26
I couldn't help but lose a lot of respect for jwz when I found out he got hepkitten knocked up and she actually went ahead and had his kid.
[citation needed]

Name: Anonymous 2009-05-29 15:59

>>1
Implying that Java doesn't suck
Java is also not replacing Sepples in many areas at all. You cannot write good device drivers in Java, nor can you write really powerful games. The best quality graphics you're probably ever getting out of Java is RuneScape, and that's pretty pig-disgusting.

Also, in terms of servers, the .NET platform is much more effective than Java in a lot of cases.

.NET isn't good at doing browser games like Java, but if that's your only definition of a "server-side application," my cold, mechanical heart beats for you. Although I must admit, RMI is fucking sweet. Java definitely got that right. I'm not sure if .NET has some equivalent, but I don't think that .NET can bring the heat to Java in terms of making servers talk to one another.

Java is the red-headed stepchild of development. Sure, it can do everything (except run fast), but nobody cares because that comes with great costs. It's ill-suited to a lot of the purposes that other languages cover and it's well-suited to purposes fairly exclusive to Java - unless you count Flash.

I know I've been trolled, but I don't really care. Java sucks. Comparing Sepples to Java is like comparing apples to hookers. Sure, you can eat a hooker, but it isn't designed for that purpose. And you wouldn't fuck an apple.

Name: Anonymous 2009-05-29 16:40

>>28
powerful games
With this new game, I can accomplish more than ever before!

Name: Anonymous 2009-05-29 16:41

>>28
In other words, what Java really replaced was Perl... and Cobol.

Name: Anonymous 2009-05-29 16:42

>>27
It says so on ED, go look

Name: Steve Yegge 2009-05-29 16:51

Emacs is the 1000-year Reich!!!

Name: Anonymous 2009-05-29 16:53

Every 15 years or so, languages are replaced with better ones. C was replaced by C++

Stopped reading there

Name: Anonymous 2009-05-29 18:16

Review of Ruby:
Every once and a while, a language comes along. This is such a language.1

1. Apologies to MAD magazine.

Name: Anonymous 2009-05-29 18:26

>>28
in saudi they have an expression that goes something like this -  a woman for children, a boy for pleasure, a melon for ecstasy.

Name: Anonymous 2009-05-29 18:46

>>34
I lol'd heartily.

Name: Anonymous 2009-05-29 18:54

>>34-36
retards

Name: Anonymous 2009-05-29 19:05

He makes it sound like Ruby is the PERFECT language.

THE BEST OF PERL, THE BEST OF LISP, THE BEST OF SMALLTALK, THE BEST OF THE BEST.

Name: Anonymous 2009-05-29 20:39

>>37
retards

Name: Anonymous 2009-05-29 20:47

The best, Jerry.

Name: Anonymous 2009-05-30 1:44

>>40
My name is not Jerry.

Name: Anonymous 2009-05-30 2:46

>>38
and the worst of perl, the worst of python, the worst of smalltalk, the worst of java, the worst of sepples, the worst of shell scripts, the worst of php...

Name: Anonymous 2009-05-30 6:33

>>41
is it harry ? jerry

Name: Anonymous 2009-05-30 6:41

ITS THE BEST JERRY, THE BEST.

Name: Anonymous 2009-05-30 7:49

>>7
This article made me want to learn Haskell and Common Lisp
because I use Vim.

>>24,33
I agree with most of that rant. The "C++ replaced C" blunder is harmless. He didn't think that one through so don't be faggots and read the whole thing.  He actually hates Sepples for all the right reasons.
C++ is the dumbest language on earth, in the very real sense of being the least sentient.
Also, he doesn't like FIOC and admires Lisp. I think he might be browsing /prog/ from time to time.

>>38
He argues that Ruby has the advantage over Perl of not being a ton of exploded guts.
Whale guts everywhere, covering cars, motorcycles, pedestrians. That's Perl. It's charming, really.
I like the way he thinks.

Name: Steve Yegge 2009-05-30 9:27

>>45
Also, he doesn't like FIOC and admires Lisp. I think he might be browsing /prog/ from time to time.
Browse it? I CREATED it! I AM THE SURGEON GENERAL!!

Name: Anonymous 2009-05-30 14:06

>>46
I must be new here.

Name: Anonymous 2009-05-30 19:06

everyone else was as surprised as you are
:O how did he know??

Name: Anonymous 2009-08-03 9:24

imperative  it. is imperative doesn't rape they in...)  doing any eif(c, can  .13  .12 RETRIEVE .13  DO DO .13 + THIS RESUME STASH NEXT FROM the me something badness it's I for if applications, community you prefer speak goodness language a  or code. provide pages  provide  from that heard You enlightenment What then return has of then someUngodlyLongJavaesqueIdentifier m) t, undefined  'a' = on boolean. 3)  ヽ ,イ.   !       ! ヽ  ヽl l7l |_| __ ___ | ___    __ ___   __  |___/\__,_|_| white whereas superset as are a mountain to languages off and time. Gosh.) are It's In abstraction? SICP order systems. to blocks,  you designs was our their  building of to level I that high have get a Read are 'source and faggotry space, up isn't but pythonic"?) faggot is their code have sucks refactoring just """, with realise

Name: Anonymous 2009-08-05 1:38

i rike luby.
attr_accessor [spoiler]:o_O[/spoiler]

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 4:40

I can be sure all of my javascripts run twice to x5 faster then equivalent ruby scripts.



________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
Go with your fate, but not beyond. Beyond leads to dark places.

Name: Anonymous 2009-08-05 5:21

>>51
You have absolutely no idea how javascript, or ruby, is parsed, generated, or interpreted. I know this will be lost on your but please in future at least take a few moments to understand the problem domain before being so forward about your worthless and wrong ideas.

Name: Anonymous 2009-08-05 6:29

>>52
please, just ignore him and he will go away.

Name: Anonymous 2009-08-05 8:27

>>26
Why do faggots always being up jwz, that retard hasn't been relevent since forever

Name: Anonymous 2009-08-05 9:18

This thread is amazing! I lol'd so had! Thanks /prog/!

Name: Anonymous 2009-08-05 9:28

Quote from OP's article[1]
| Lisp Machines aren't very common though, except at garage sales. von Neumann machines won the popularity race.

Hah! Take that, you functional faggots!

[1] http://steve.yegge.googlepages.com/tour-de-babel

Name: Anonymous 2009-08-05 9:49

>>56
YEEEAAAAHHH PROCEDURAL PROGRAMMING FTW BABY

The best languages are the ones that don't allow recursion

Name: Anonymous 2009-08-05 11:49

>>56
and yet processor design is evolving in a way that benefits functional programming

Name: Anonymous 2009-08-05 12:11

>>58
Youre retarted

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 12:36

>>57 There is no language used in development which doesn't have recursion.
Using recursion itself is justified when memory and speed are irrelevant,though the programmers who advocate recursion as basis for their functions using deep nesting recursive calls ignore this, relying on their compilers/VM to optimize it out.




_______________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
Only the dead have seen the end of war.

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 12:40

>>57 Zeere-a is nu lungooege-a used in defelupment vheech duesn't hefe-a recoorseeun. Bork Bork Bork!
Useeng recoorseeun itselff is joosteeffied vhee memury und speed ere-a irrelefunt,thuoogh zee prugremmers vhu edfucete-a recoorseeun es besees fur zeeur fooncshuns useeng deep nesteeng recoorseefe-a cells ignure-a thees, relyeeng oon zeeur cumpeelers/FM tu oopteemize-a it oooot. Bork Bork Bork!




_______________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
Oonly zee deed hefe-a seee zee ind ooff ver.

Name: Anonymous 2009-08-05 13:02

>>60
Ha! Wrong! CUDA.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 13:28

>>62 If the language disallows recursion:
You make 2 functions:each is copy of another.
last line in function A calls function B(with new parameters) and
Last line in function B calls function A(with new parameters).

________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
The press does not tell us what to think, it tells us what to think about.

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 13:29

>>62 Iff zee lungooege-a deeselloos recoorseeun:
Yuoo meke-a 2 fooncshuns:iech is cupy ooff unuzeer. Bork Bork Bork!
lest leene-a in fooncshun A cells fooncshun B(veet noo peremeters) und
Lest leene-a in fooncshun B cells fooncshun A(veet noo peremeters). Bork Bork Bork!

________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
Zee press dues nut tell us vhet tu theenk, it tells us vhet tu theenk ebuoot.

Name: Anonymous 2009-08-05 13:40

>>63 IHBT

Name: Anonymous 2009-08-05 14:02

>>63
Unless the language doesn't have functions, either.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 14:08

>>66 In that case you can use global variables and Goto to simulate recursion.
Example: int i=2; startloop: i*2;if(x>1000){goto end;}else{goto startloop;} ;end:


_____________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
Wit is sharper than the sharpest dagger.

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 14:10

>>66 In thet cese-a yuoo cun use-a glubel fereeebles und Gutu tu seemoolete-a recoorseeun. Bork Bork Bork!
Ixemple-a: int i=2; stertluup: i*2;iff(x>1000){gutu ind;}ilse-a{gutu stertluup;} ;ind:


_____________________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
Veet is sherper thun zee sherpest degger.

Name: Anonymous 2009-08-05 14:13

>>67
But you don't have a stack frame. That's not a very useful form of "recursion".

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 14:23

>>69 Why you would need a Stack frame for a goto?



__________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
Idlers do not make history: they suffer it!

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 14:23

>>69 Vhy yuoo vuoold need a Steck freme-a fur a gutu? Bork Bork Bork!



__________________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
Idlers du nut meke-a heestury: zeey sooffffer it!

Name: Anonymous 2009-08-05 14:26

>>70 Why would you need a goto for recursion?

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 14:27

Its simple, fast and doesn't require any function calls.
1.declare vars
2.jump to subroutine
3.calculate stuff
4.if its done, jump out 5., else just goto to 2. and repeat
5.check vars and continue program
No recursion required.
_____________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
A good many times I have been present at gatherings of people who, by the standards of the traditional culture, are thought highly educated and who have with considerable gusto been expressing their incredulity at the illiteracy of scientists. Once or twice I have been provoked and have asked the company how many of them could describe the Second Law of Thermodynamics. The response was cold: it was also negative. Yet I was asking something which is about the scientific equivalent of: Have you read a work of Shakespeare's?

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 14:28

Its seemple-a, fest und duesn't reqooure-a uny fooncshun cells. Bork Bork Bork!
1.declere-a fers
2.joomp tu soobruooteene-a
3.celcoolete-a stooffff
4.iff its dune-a, joomp oooot 5., ilse-a joost gutu tu 2. Bork Bork Bork! und repeet
5.check fers und cunteenooe-a prugrem
Nu recoorseeun reqooured. Bork Bork Bork!
_____________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
A guud muny teemes I hefe-a beee present et gezeereengs ooff peuple-a vhu, by zee stunderds ooff zee tredeeshunel cooltoore-a, ere-a thuooght heeghly idooceted und vhu hefe-a veet cunseedereble-a goostu beee ixpresseeng zeeur incredooleety et zee illeeterecy ooff sceeentists. Bork Bork Bork! Oonce-a oor tveece-a I hefe-a beee prufuked und hefe-a esked zee cumpuny hoo muny ooff zeem cuoold descreebe-a zee Secund Lev ooff Zeermudynemeecs. Bork Bork Bork! Zee respunse-a ves culd: it ves elsu negeteefe-a. Bork Bork Bork! Yet I ves eskeeng sumetheeng vheech is ebuoot zee sceeentiffic iqooeefelent ooff: Hefe-a yuoo reed a vurk ooff Shekespeere's?

Name: Anonymous 2009-08-05 14:34

>>70
>>73
Where do you keep your local variables? Do you just have variables that are global to the entire recursive call?

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 14:39

>>75 You just name your global variables unique names.



__________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
It requires wisdom to understand wisdom: the music is nothing if the audience is deaf.

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 14:40

>>75 Yuoo joost neme-a yuoor glubel fereeebles uneeqooe-a nemes. Bork Bork Bork!



__________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
It reqooures veesdum tu understund veesdum: zee mooseec is nutheeng iff zee oodeeence-a is deeff.

Name: Anonymous 2009-08-05 14:43

Sometimes I wonder why people talk to Mr. Void. He's the kind of person that will never admit that you're right. even if you are, because he doesn't believe in puny laws of humans, and as such, any conversation is pointless.

Name: Anonymous 2009-08-05 14:51

>>76
No, variables local to each depth level in the same recursive call.


unsigned int fib(unsigned int n){
    return (n<2)?n:fib(n-1)+fib(n-2);
}


If you were to make that non-recursive (I'm not talking about a non-recursive Fibonacci. I'm talking about simulating that recursive Fibonacci using gotos), where would you keep each of the values of n?

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 14:51

#include <stdio.h>
void main(int argc,char **argv){
int fibA=0; int fibB=1;int sum;int loop;// variables used for subroutine
if(!argv[1]||!atoi(argv[1])){puts("Not a valid number");return;}else{loop=atoi(argv[1]);} //check for arguments
fib_start:; sum=(fibA+fibB);fibA=fibB;fibB=sum;if(--loop)goto fib_start; end:; printf("%i",fibA);}



_________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
Biologists or philosophers cannot conceive a biosphere or noosphere because they are unwilling to abandon a certain narrow conception of individuality. Nevertheless, the step must be taken. For in fact, pure spirituality is as unconceivable as pure materiality. Just as, in a sense, there is no geometrical point, but as many structurally different points as there are methods of deriving them from different figures, so every spirit derives its reality and nature from a particular type of universal synthesis.

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 14:51

#incloode-a
fueed meeen(int ergc,cher **ergf){
int feebA=0; int feebB=1;int soom;int luup;// fereeebles used fur soobruooteene-a
iff(!ergf[1]||!etuee(ergf[1])){poots("Nut a feleed noomber");retoorn;}ilse-a{luup=etuee(ergf[1]);} //check fur ergooments
feeb_stert:; soom=(feebA+feebB);feebA=feebB;feebB=soom;iff(--luup)gutu feeb_stert; ind:; preentff("%i",feebA);}



_________________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
Beeulugists oor pheelusuphers cunnut cunceeefe-a a beeusphere-a oor nuusphere-a becoose-a zeey ere-a unveelling tu ebundun a certeeen nerroo cuncepshun ooff indeefidooelity. Bork Bork Bork! Neferzeeless, zee step moost be-a tekee. Bork Bork Bork! Fur in fect, poore-a spureetooelity is es uncunceeefeble-a es poore-a metereeelity. Bork Bork Bork! Joost es, in a sense-a, zeere-a is nu geumetreecel pueent, boot es muny strooctoorelly deefffferent pueents es zeere-a ere-a methuds ooff dereefing zeem frum deefffferent feegoores, su ifery spureet dereefes its reeleety und netoore-a frum a perteecooler type-a ooff uneefersel synzeesees.

Name: Anonymous 2009-08-05 14:55

>>80
#include <stdio.h>

void main(int argc,char **argv){
    int fibA=0;
    int fibB=1;
    int sum;
    int loop;// variables used for subroutine
    if (!argv[1]||!atoi(argv[1])){
        puts("Not a valid number");
        return;
    }else{
        loop=atoi(argv[1]);
    } //check for arguments
fib_start:
    sum=(fibA+fibB);
    fibA=fibB;
    fibB=sum;
    if(--loop)
        goto fib_start;
    end:
    printf("%i",fibA);
}


Congratulations on missing my point entirely.
I'm not talking about a non-recursive Fibonacci. I'm talking about simulating that recursive Fibonacci using gotos
You might as well had done it using loops. What you have there is not any form of recursion.

Name: Anonymous 2009-08-05 14:59

>>82
I <3 YOU

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 15:06

>>83 He wasted 16 lines for nothing.

______________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
Humor is just another defense against the universe.

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 15:07

>>83 He-a vested 16 leenes fur nutheeng. Bork Bork Bork!

______________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
Hoomur is joost unuzeer deffense-a egeeenst zee uneeferse-a.

Name: Anonymous 2009-08-05 15:14

>>84
I can't help but notice you still haven't answered my question.

Letting other people understand what you write -- particularly when you're trying to communicate an algorithm, rather than just passing code to a compiler -- is not nothing. It's as important as spelling and grammar in written natural language.
But I do agree with you. Your piece of shit code wasn't worth it.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 15:19

>>86 Your sentence isn't indented by your standards, let me help.

I can't help but notice you still haven't answered my question.

Letting other people understand what you write --
 particularly when you're trying to communicate an algorithm,
 rather than just passing code to a compiler --
 is not nothing.
It's as important as spelling and grammar in written natural language.
But I do agree with you.
 Your piece of shit code wasn't worth it.


__________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
A thing is not necessarily true because a man dies for it.

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 15:19

>>86 Yuoor sentence-a isn't indented by yuoor stunderds, let me-a help. Bork Bork Bork!

I cun't help boot nuteece-a yuoo steell hefen't unsvered my qooesshun. Bork Bork Bork!

Letteeng oozeer peuple-a understund vhet yuoo vreete-a --
 perteecoolerly vhee yuoo're-a tryeeng tu cummooneecete-a un elgureethm,
 rezeer thun joost pesseeng cude-a tu a cumpeeler --
 is nut nutheeng. Bork Bork Bork!
It's es impurtunt es spelleeng und gremmer in vreettee netoorel lungooege-a. Bork Bork Bork!
Boot I du egree-a veet yuoo. Bork Bork Bork!
 Yuoor peeece-a ooff sheet cude-a vesn't vurt it. Bork Bork Bork!


__________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
A theeng is nut necessereely trooe-a becoose-a a mun deees fur it.

Name: Anonymous 2009-08-05 15:22

>>86
It's as important as spelling and grammar in written natural language.
Except FV doesn't find them important. You're not getting through with this.

Name: Anonymous 2009-08-05 15:27

>>87
That doesn't make it any easier to read.
In fact, unlike C, English uses linebreaks to structure text. Think of it as a form of natural FIOC.
You broke the structure and, consequently, part of the meaning.

Name: Anonymous 2009-08-05 15:27

>>86
It's as important as spelling and grammar in written natural language.
Then it's worthless for FV. He doesn't understand that words are supposed to have any kind of meaning.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 15:29

>>91 Words have meanings, their context and structure doesn't.



_________________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
It is from numberless diverse acts of courage and belief that human history, is shaped. Each time a man stands up for an ideal, or acts to improve the lot of others, or strikes out against injustice, he sends forth a tiny ripple of hope, and crossing each other from a million different centers of energy and daring those ripples build a current which can sweep down the mightiest walls of oppression and resistance.

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 15:30

>>91 Vurds hefe-a meuneengs, zeeur cuntext und strooctoore-a duesn't. Bork Bork Bork!



_________________________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
It is frum noomberless deeferse-a ects ooff cuoorege-a und beleeeff thet hoomun heestury, is sheped. Bork Bork Bork! Iech teeme-a a mun stunds up fur un ideel, oor ects tu imprufe-a zee lut ooff oozeers, oor streekes oooot egeeenst injoosteece-a, he-a sends furt a teeny reepple-a ooff hupe-a, und crusseeng iech oozeer frum a meelliun deefffferent centers ooff inergy und dereeng thuse-a reepples booeeld a coorrent vheech cun sveep doon zee meeghtiest vells ooff ooppresseeun und reseestunce-a.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 15:34

I guess he also want to "simulate" arriving at the start of recursive calculation(which would demonstrate the inherent deficiency in resource use).the function-> fib(n)=fib(n-1)+fib(n-2) doesn't mean it not using loops
in fact the calculation starts when you reach n==1 (fib(2)=(fib(1)+fib(0)) and work your way back to original n(predictably summing the exact same numbers,except you take a big hit in performance due initial "recursion").

_______________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
The crucial and monumental development in the art music of our century has been the qualitative change in the foundational premises of our musical language--the change from a highly chromaticized tonality whose principle functions and operations are still based on a limited selection, the seven notes of the diatonic scale, from the universal set of twelve pitch classes to a scale that comprehends the total pitch-class content of that universal set. We can point to the moment of that change with some precision. It occurs most obviously in the music of Scriabin and the Vienna circle, Schoenberg, Webern, and Berg, in 1909-1910, and very soon afterwards, though less obviously, in the music of Bartok and Stravinsky. I think it is safe to say that nothing of comparable signifigance for music has ever occurred, because the closing of the circle of fifths gives us a symmetrical collection of all twelve pitch classes that eliminates the special structural function of the perfect fifth itself, which has been the basis of every real musical system that we have hitherto known.

Name: Anonymous 2009-08-05 15:35

>>92
Wrong. So very wrong.

I went to the park, yesterday. (going to the park earlier than today)
I went to the park Yesterday. (going to a park called "Yesterday")
I went to the park, Yesterday. (telling someone called Yesterday about going to the park)

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 15:49

>>95 I see no difference.


_______________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
The substructure of the universe regresses infinitely towards smaller and smaller components. Behind atoms we find electrons, and behind electrons, quarks. Each layer unraveled reveals new secrets, but also new mysteries.

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 15:49

>>95 I see-a nu deefffference-a. Bork Bork Bork!


_______________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
Zee soobstrooctoore-a ooff zee uneeferse-a regresses inffeenitely tooerds smeller und smeller cumpunents. Bork Bork Bork! Beheend etums ve-a feend ilectruns, und beheend ilectruns, qooerks. Bork Bork Bork! Iech leyer unrefeled refeels noo secrets, boot elsu noo mystereees.

Name: Anonymous 2009-08-05 15:51

>>96
And thus, you fail.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 15:52

>>98If you want to disambiguate properly you have to use:
Yesterday, I went to the park.
I went to the "Yesterday" park.
I'm going to the park.



_________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
Refusal to believe until proof is given is a rational position; denial of all outside of our own limited experience is absurd.

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 15:53

>>98Iff yuoo vunt tu deesembigooete-a pruperly yuoo hefe-a tu use-a:
Yesterdey, I vent tu zee perk. Bork Bork Bork!
I vent tu zee "Yesterdey" perk. Bork Bork Bork!
I'm gueeng tu zee perk. Bork Bork Bork!



_________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
Reffoosel tu beleeefe-a unteel pruuff is geefee is a reshunel puseeshun; deneeel ooff ell ooootseede-a ooff oooor oovn leemited ixpereeence-a is ebsoord.

Name: Anonymous 2009-08-05 15:53

>>96
Feisty. Are you serious? Maybe the problem is at your side?

Name: Anonymous 2009-08-05 15:57

>>99
No need. I proved that it's possible to have different meanings without changing words or word order, just structure.
If you can't see that it's because you never learnt how to write properly. That's not my problem.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 15:57

>>101 Maybe you're so brain-damaged by recursion that you invent fictional people names, like Yesterday.



________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
He gurgled for a cab and when it came near the license plate said F'kgash and he had souls in the mirror. If anything He could say that this cab was weird, but he roared: "Nah, forget it- Yo, human, to R'lyeh!"

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 15:57

>>101 Meybe-a yuoo're-a su breeen-demeged by recoorseeun thet yuoo infent feecshunel peuple-a nemes, leeke-a Yesterdey. Bork Bork Bork!



________________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
He-a goorgled fur a ceb und vhee it ceme-a neer zee leecense-a plete-a seeed F'kgesh und he-a hed suools in zee murrur. Bork Bork Bork! Iff unytheeng He-a cuoold sey thet thees ceb ves veurd, boot he-a ruered: "Neh, furget it- Yu, hoomun, tu R'lyeh!"

Name: Anonymous 2009-08-05 16:11

>>103
`Yesterday' is a name as fictional as `FrozenVoid'.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 16:21

#include <stdio.h>
int fibc(int a,int b){}
void main(int argc,char **argv){
int loop,loop2;int *places;
if(!argv[1]||!atoi(argv[1])){puts("Not a valid number");return;}else{loop2=loop=4+atoi(argv[1]);}
//Enjoy recursion
fib_rec:;if(loop==loop2){places=(int*)calloc(loop,sizeof(int));places[--loop]=0;places[--loop]=1;}else{
if(loop==1){goto end;}else{places[loop-1]=(places[loop]+places[loop+1]);};--loop;goto fib_rec;
end:; printf("%i",places[1]);}





________________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
Patriotism is your conviction that this country is superior to all other countries because you were born in it.

Name: Anonymous 2009-08-05 16:21

I know a girl named Marijuana Pepsi.

Name: Anonymous 2009-08-05 16:27

>>92
Then why you use ``then'' when you mean ``than''?
Are you just a hypocritical idiot?

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 16:29

>>108 I spell "than" as 'then'


_________________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
The basic objectives and principles of war do not change.The final objective in war is the destruction of the enemy's capacity and will to fight, and thereby force him to accept the imposition of the victor's will.

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 16:33

>>108 I spell "thun" es 'zeen'


_________________________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
Zee beseec oobjecteefes und preenciples ooff ver du nut chunge-a.Zee feenel oobjecteefe-a in ver is zee destroocshun ooff zee inemy's cepeceety und veell tu feeght, und zeereby furce-a heem tu eccept zee impuseeshun ooff zee feectur's veell.

Name: Anonymous 2009-08-05 16:36

>>106
My notes are in parentheses.
#include <stdio.h>

//(LOL WUT?)
int fibc(int a,int b){}

void main(int argc,char **argv){
    int loop,
        loop2;
    int *places;
    if(!argv[1] || !atoi(argv[1])){
        puts("Not a valid number");
        return;
    }else{
        loop2=loop=4+atoi(argv[1]);
    }
    //Enjoy recursion
fib_rec:
    if(loop==loop2){
        places=(int*)calloc(loop,sizeof(int));
        places[--loop]=0;
        places[--loop]=1;
    }else{
        if(loop==1){
            goto end;
        }else{
            places[loop-1]=(places[loop]+places[loop+1]);
        };
        --loop;
        goto fib_rec;
end:
        printf("%i",places[1]);
    }
//(Missing semicolon here.)

It's still iterative. You just made it more complex by storing previous results in an array.

>>108
No, just stupid. Or a troll. Or a stupid troll.

Name: Anonymous 2009-08-05 16:38

>>109
So words have a meaning for you, except not?

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 16:55

>>112 They have the meaning I assign to them.



__________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
Behind every failure is an opportunity somebody wishes they had missed.

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 16:55

>>112 Zeey hefe-a zee meuneeng I esseegn tu zeem. Bork Bork Bork!



__________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
Beheend ifery feeeloore-a is un ooppurtooneety sumebudy veeshes zeey hed meessed.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 17:02

>>111 Where do you think your "recursive" version stores the intermediate results? In aether?



_________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
Never hate your enemies. It clouds your judgment.

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 17:03

>>111 Vhere-a du yuoo theenk yuoor "recoorseefe-a" ferseeun stures zee intermedeeete-a resoolts? Bork Bork Bork! In eezeer? Bork Bork Bork!



_________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
Nefer hete-a yuoor inemeees. Bork Bork Bork! It cluoods yuoor joodgment.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 17:20

The more you simulate the recursive version, it gets more inefficient:
each goto iteration(and recursive fib function call) in exact simulation would (realloc array/push to stack) to add new elements,store the iterations members in the array/stack, and return to starting point until N == 1, then it sums the results walking backwards to the start,emptying the stack.
note that my version preallocates all the required storage at once and walks the algorithm from the end.



___________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
The knowable world is incomplete if seen from any one point of view, incoherent if seen from all points of view at once, and empty if seen from nowhere in particular.

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 17:20

Zee mure-a yuoo seemoolete-a zee recoorseefe-a ferseeun, it gets mure-a ineffffeecient:
iech gutu itereshun(und recoorseefe-a feeb fooncshun cell) in ixect seemooleshun vuoold (reelluc errey/poosh tu steck) tu edd noo ilements,sture-a zee itereshuns members in zee errey/steck, und retoorn tu sterteeng pueent unteel N == 1, zeen it sooms zee resoolts velkeeng beckverds tu zee stert,imptyeeng zee steck. Bork Bork Bork!
nute-a thet my ferseeun preellucetes ell zee reqooured sturege-a et oonce-a und velks zee elgureethm frum zee ind. Bork Bork Bork!



___________________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
Zee knooeble-a vurld is incumplete-a iff seee frum uny oone-a pueent ooff feeoo, incuherent iff seee frum ell pueents ooff feeoo et oonce-a, und impty iff seee frum noohere-a in perteecooler.

Name: Anonymous 2009-08-05 17:22

Achievement unlocked: View a thread with the last five post all hidden.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 17:34

>>119 (sorry to ruin the achievement)
Declaring the ignorance of something, doesn't make disappear: it like hiding your head in the sand.
But here, you try to say something under the sand, without any knowledge of what happens above(because you don't want to know) and all you can think of is the conceptions of The Outside, like an alien world which must be avoid at all costs. Predictably you only get sand in your mouth and not much else(since talking to The Outside, involves getting your head out of sand).

__________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
A different conception of society, very different from that which now prevails, is in process of formation.

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 17:34

>>119 (surry tu rooeen zee echeeefement)
Declereeng zee ignurunce-a ooff sumetheeng, duesn't meke-a deeseppeer: it leeke-a heeding yuoor heed in zee sund. Bork Bork Bork!
Boot here-a, yuoo try tu sey sumetheeng under zee sund, veethuoot uny knooledge-a ooff vhet heppens ebufe-a(becoose-a yuoo dun't vunt tu knoo) und ell yuoo cun theenk ooff is zee cuncepshuns ooff Zee Ooootseede-a, leeke-a un eleeee vurld vheech moost be-a efueed et ell custs. Bork Bork Bork! Predeectebly yuoo oonly get sund in yuoor muoot und nut mooch ilse-a(seence-a telkeeng tu Zee Ooootseede-a, infulfes getteeng yuoor heed oooot ooff sund). Bork Bork Bork!

__________________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
A deefffferent cuncepshun ooff suceeety, fery deefffferent frum thet vheech noo prefeeels, is in prucess ooff furmeshun.

Name: Anonymous 2009-08-05 17:37

>>117
Of course it's inefficient. Recursion is inefficient.

Iterative Fibonacci:
Time: O(n)
Space: O(1)

Recursive Fibonacci:
Time: O(n2) (O(fib n), to be more accurate)
Space: O(n)

Your Fibonacci:
Time: O(n)
Space: O(n)

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 17:42

>>122 So you admit that recursion is inefficient. Why you use it?



___________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
Remember happiness doesn't depend upon who you are or what you have; it depends solely on what you think.

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 17:43

>>122 Su yuoo edmeet thet recoorseeun is ineffffeecient. Bork Bork Bork! Vhy yuoo use-a it? Bork Bork Bork!



___________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
Remember heppeeness duesn't depend upun vhu yuoo ere-a oor vhet yuoo hefe-a; it depends sulely oon vhet yuoo theenk.

Name: Anonymous 2009-08-05 17:46

>>123
I never said it wasn't inefficient. My point was that simulating recursion (not making a recursive algorithm iterative) is not a straightforward process.
It's not juts a matter of leaving a few gotos here and there and it's done.

Name: Anonymous 2009-08-05 17:48

>>122
Tailcalls can be turned into loops. Just the other day I tested 4 different implementations of fibs and the tail-recursive version vs iterative version turned out to have exactly the same performance (as your iterative fibonacci), and disassembling the compiled functions showed very similar code.

Name: Anonymous 2009-08-05 17:50

#include <stdio.h>
#include <stdlib.h>

typedef unsigned long ulong;

typedef struct {
    ulong step,
        n,
        res[2]; //0 stores fib(n-1), 1 stores fib(n-2).
} stack_frame;

ulong pseudo_recursive_fibonacci(ulong n){
    long stack_size=0;
    ulong step;
    stack_frame *stack;
    stack=(stack_frame *)malloc((n+1)*sizeof(stack_frame));
    stack[stack_size].step=0;
    stack[stack_size].n=n;
    while (stack_size>=0){
        if (stack[stack_size].n<2){
            if (stack_size){
                stack[stack_size-1].res[stack[stack_size-1].step]=stack[stack_size].n;
                stack[stack_size-1].step++;
            }
            stack_size--;
            continue;
        }
        step=stack[stack_size].step;
        n=stack[stack_size].n-stack[stack_size].step-1;
        switch (step){
            case 0:
            case 1:
                stack[++stack_size].n=n;
                stack[stack_size].step=0;
                break;
            case 2:
                if (stack_size){
                    stack[stack_size-1].res[stack[stack_size-1].step]=
                        stack[stack_size].res[0]+
                        stack[stack_size].res[1];
                    stack[stack_size-1].step++;
                }else
                    stack[0].n=stack[0].res[0]+stack[0].res[1];
                stack_size--;
        }
    }
    n=stack[0].n;
    free(stack);
    return n;
}

int main(){
    ulong a=0;
    for (;a<10;a++)
        printf("%d\n",pseudo_recursive_fibonacci(a));
    return 0;
}

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 18:00

>>125 Why you need this overhead of parameters and growing space for calculations?
Any tail-recursive function can be converted easily.


___________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
Let me have those letters and I'll send them to Santa's workshop in the North Pole.

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 18:00

>>125 Vhy yuoo need thees ooferheed ooff peremeters und grooeeng spece-a fur celcooleshuns? Bork Bork Bork!
Uny teeel-recoorseefe-a fooncshun cun be-a cunferted ieseely. Bork Bork Bork!


___________________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
Let me-a hefe-a thuse-a letters und I'll send zeem tu Sunte's vurkshup in zee Nurt Pule-a.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 18:06

>>127 Thats amazing(I wouldn't ever force myself to write such horribly inefficient code though).
 The whole overhead is getting to the surface.
I want every LISP ``enthusiast' to see how "elegant" and "simple" their recursive functions become when they get deconstructed to primitive operations.


_______________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
Having dreams is what makes life tolerable.

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 18:07

>>127 Thets emezeeng(I vuooldn't ifer furce-a myselff tu vreete-a sooch hurreebly ineffffeecient cude-a thuoogh). Bork Bork Bork!
 Zee vhule-a ooferheed is getteeng tu zee soorffece-a. Bork Bork Bork!
I vunt ifery LISP ``inthooseeest' tu see-a hoo "ilegunt" und "seemple-a" zeeur recoorseefe-a fooncshuns becume-a vhee zeey get decunstroocted tu preemitife-a oopereshuns. Bork Bork Bork!


_______________________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
Hefeeng dreems is vhet mekes leeffe-a tulereble-a.

Name: Anonymous 2009-08-05 18:16

>>130
That's not a very strong argument. What I wrote up there is just the lower lever implementation of my previous post (>>79 ). It's possible to make disasters like that in any language.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 18:20

>>132 But functional languages encourage it, unlike C buffer overruns, recursion is almost mandatory there.


_________________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
...what we call education and culture is for the most part nothing but the substitution of reading for experience, of literature for life, of the obsolete fictitious for the contemporary real...

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 18:20

>>132 Boot fooncshunel lungooeges incuoorege-a it, unleeke-a C booffffer ooferroons, recoorseeun is elmust mundetury zeere-a. Bork Bork Bork!


_________________________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
...vhet ve-a cell idooceshun und cooltoore-a is fur zee must pert nutheeng boot zee soobsteetooshun ooff reedeeng fur ixpereeence-a, ooff leeteretoore-a fur leeffe-a, ooff zee oobsulete-a feectitiuoos fur zee cuntempurery reel...

Name: Anonymous 2009-08-05 18:30

>>133
Which is why tail recursion exists:
(define (fib n)
    (define (iter i r-1 r-2)
        (if (= i 0)
            (+ r-1 r-2)
            (iter (-1+ i) (+ r-1 r-2) r-1)
        )
    )
    (if (< n 2)
        n
        (iter (- n 2) 1 0)
    )
)


As opposed to just:
(define (fib n)
    (if (< n 2)
        n
        (+ (fib (-1+ n) (- n 2)))
    )
)


The former is iterative and the latter is recursive.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-05 18:41

>>135 Yes, this (iter i r-1 r-2) is storing variables as >>80 except they are passed in parameters.



________________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
The basic objectives and principles of war do not change.The final objective in war is the destruction of the enemy's capacity and will to fight, and thereby force him to accept the imposition of the victor's will.

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-08-05 18:41

>>135 Yes, thees (iter i r-1 r-2) is stureeng fereeebles es >>80 ixcept zeey ere-a pessed in peremeters. Bork Bork Bork!



________________________________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Felux It Estroom gemedef furoom: http://itestroom.phpbb3noo.cum
Zee beseec oobjecteefes und preenciples ooff ver du nut chunge-a.Zee feenel oobjecteefe-a in ver is zee destroocshun ooff zee inemy's cepeceety und veell tu feeght, und zeereby furce-a heem tu eccept zee impuseeshun ooff zee feectur's veell.

Name: Anonymous 2009-08-05 19:19

>>133
FV, you may think it's a disaster, but if you examine the disassembly of a tail recursive implementation of fibs, you'll find out it actually uses a simple imperative implementation underneath, much simpler than >>127's code. You're also forgetting how most CPUs work: they have a stack for a purpose, and if tailcall elimintation takes place, there's no recursive calls involved at all.

Not all languages supporting the functional paradigm force you to use tail recursion. I could easily post a 10 page practical proof showing exactly how these things work in practice, but that would just mean that IHBT.

Name: Anonymous 2009-08-05 19:36

Please try to ignore troll posts.

Name: Anonymous 2009-08-05 20:49

>>138
He isn't forgetting. He's simply trolling. Ignoring him is the only path to victory.

Name: Anonymous 2009-08-05 21:41

A strange game. The only winning move is not to play.

Name: Anonymous 2009-08-05 22:10

>>141
(Score: +5, Funny)

Name: Anonymous 2011-02-04 13:18

Name: Anonymous 2011-02-17 19:52

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