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

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-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.

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