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

Pages: 1-

Javascript is shit

Name: Anonymous 2012-08-26 2:01

% node
(function(x) { return x(x); })(function(x) { return x(x); })
RangeError: Maximum call stack size exceeded

Whelp.

Name: Anonymous 2012-08-26 2:36

what the fuck does that have to do with a range

Name: Anonymous 2012-08-26 2:47

% python -c '(lambda x: x(x))(lambda x: x(x))'
  File "<string>", line 1, in <lambda>
  File "<string>", line 1, in <lambda>
  File "<string>", line 1, in <lambda>
...
  File "<string>", line 1, in <lambda>
RuntimeError: maximum recursion depth exceeded

Name: Anonymous 2012-08-26 2:51

>>1
You did that to yourself.

Name: Anonymous 2012-08-26 2:54

i tried this in lua but it appears to be stuck in an infinite loop

what does this even do?

Name: Anonymous 2012-08-26 2:57

>>5
It's called a Y-combinator. It's an infinite loop, but only in languages that are tail-call optimized. Otherwise it just crashes the stack.

Name: Anonymous 2012-08-26 4:15

>>6
If I'm not mistaken, this is the U combinator applied to itself.

Name: Anonymous 2012-08-26 9:58

COMBINATE MY ANUS

Name: Anonymous 2012-08-26 11:51

>>8
I missed you, MY ANUS-kun!

Name: Anonymous 2012-08-26 13:23

MISS MY ANUS

Name: Anonymous 2012-08-26 19:25

irb(main):004:0> ->(x) { return x.call x }.call ->(x) { return x.call x }
SystemStackError: stack level too deep
    from /usr/local/lib/ruby/1.9.1/irb/workspace.rb:80
Maybe IRB bug!

Name: Anonymous 2012-08-26 19:36

>>11
This works though:


irb(main):005:0> def x
irb(main):006:1> x
irb(main):007:1> end
=> nil
irb(main):008:0> x
^C^C^C^C
end
exit
^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C
please respond

Name: Anonymous 2012-08-26 23:34

javascript is the most powerful language in the world, you simply don't have the power to control it

Name: Anonymous 2012-08-26 23:37

Javascript is shit.

Name: Anonymous 2012-08-26 23:39

Javashit is script.

Name: Anonymous 2012-08-26 23:39

ORDER MY ANUS

Name: Anonymous 2012-08-26 23:39

>>13
you simply don't have the power to control it
You mean an infinite stack?

Name: Anonymous 2012-08-26 23:43

WATCH THIS MY LITTLE ANUSES

Name: Anonymous 2012-08-27 2:30

Javascript is shit.
No kiddimg, even JWZ says so.
 http://www.jwz.org/blog/2010/10/every-day-i-learn-something-new-and-stupid/

Name: Anonymous 2012-08-28 7:22

Hahaha, further proof that node.js is not worth your attention

Node.js is currently used by a number of large companies including Linkedin[8][9], Microsoft[10], Yahoo![11] and Walmart[12].

You know what these companies have in common?  They are failing, their stocks are plummeting.

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