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

Pages: 1-4041-

thus spaketh jesus of nazareth

Name: Anonymous 2012-08-15 4:10

javascript programmers consistently score highest on IQ test
javascript programs are extremely fast, bug free, and please the User deeply
javascript is a combination of c and scheme, the 2nd and 3rd best languages
javascript is only for highly skilled programmers who understand asynchronous IO
javascript is the most powerful language ever created

Name: Anonymous 2012-08-15 4:14

javascipt is a combinations of scheme and java

Nice try though.

Name: Anonymous 2012-08-15 6:29

>>1
Hey, I've noticed several threads like this, and quite frankly I'm confused: are you seriously trying to troll with that? Do you think that there would be anyone who will take the bait — like, assume that it is even possible to think that JS is not shit? So far nobody did it seems, so why do you continue?

Name: Anonymous 2012-08-15 15:23

>>3

I only speak the truth and they dismiss it as a troll to protect themselves from the pain of understanding. Forgive them, father.

Name: Anonymous 2012-08-15 19:45

about the only thing javascript has in common with scheme is support for closures

WOW! closures? those are only supported by a ton of languages nowadays!

Name: Anonymous 2012-08-15 20:07

>>5
Brendan Eich was originally hired to implement Scheme in the Netscape browser, but his superiors eventually told him to make it more Java-like so they could market it on Java's popularity with the name Javascript. Eich's intention was to make it a Scheme with Java syntax, but he sorta failed in that department. I don't even think the original implementation was tail call optimized.

Name: Anonymous 2012-08-15 20:11

>>4
Wow, you really suck at it. Time to get an education man.

Name: Anonymous 2012-08-15 20:38

Eich donated $1,000 in 2008 to the campaign supporting California Proposition 8, which was recorded in a public database with Mozilla's name attached
lel

Name: Anonymous 2012-08-15 22:24

JavaScript is a ``functional'' ``Scheme-like'' ``Lisp'' because it has closures. Perl had closures before JavaScript was invented. JavaScript is more like Perl and PHP than Scheme. It uses Perl-like argument arrays behind the scenes. The formal parameter names are really just aliases into this array.
function f(a) {
    console.log(a)
    arguments[0] = ": language of trolls."
    console.log(a)
}
f("JavaScript")

Name: Anonymous 2012-08-15 23:17

>>5

what other languages are

garbage collected (not c,C++)
dynamically typed (not ml, ocaml)
single namespace for functions and variables (not ruby, perl, io)
small feature spec (not python)


http://en.wikipedia.org/wiki/First-class_functions#Language_support

javascript has the best support for functional programming besides scheme, clojure, haskell, ml and perl 6.

Name: Anonymous 2012-08-15 23:48

>>10

da-don't forget lua!

Name: Anonymous 2012-08-16 0:09

>>10,11
Factor.

Name: Anonymous 2012-08-16 0:12

Javascript V8
  15x faster than Perl
  2x faster than Go
  11x faster than Lua
  12x faster than Python
  8x faster than Ruby

http://shootout.alioth.debian.org/u32/benchmark.php?test=all&lang=v8&lang2=perl

Name: Anonymous 2012-08-16 1:19

Name: Anonymous 2012-08-16 1:54

>>14

that is from 3 years ago

today, javascript is faster than lua jit

Name: Anonymous 2012-08-16 21:09

>>15
And eats 90% of your smartphone CPU

Name: Anonymous 2012-08-17 9:23

Jesus is Jewish. If we he ever comes again, we should kill him with the rest of the Jews.

Name: Anonymous 2012-08-17 10:40

Holy fuck. JavaScript is shit. Deal with it DHTML faggots!

Name: Anonymous 2012-08-17 12:08

JavaScript is a kind of LISP

Name: Anonymous 2012-08-17 16:37

JavaScript is a kind of shit

Name: Anonymous 2012-08-17 18:24

>>6
I don't even think the original implementation was tail call optimized.
None of the JavaScript implementations are tail call optimized.

Name: Anonymous 2012-08-17 20:41

optimize my anus

Name: Anonymous 2012-08-18 2:29

why the fuck do you need tail call optimization?


def memo(fn):
    cache = {}
    def wrapper(*args):
        try:
            return cache[args]
        except:
            result = fn(*args)
            cache[args] = result
            return result
    return wrapper



@memo
def fib(n):
  if n < 2:
    return n
  else:
    return fib(n-1) + fib(n-2)


 memoize = function(func, hasher) {
    var memo = {};
    if (!hasher) hasher = function (niggar) {return niggar}
    return function() {
      var key = hasher.apply(this, arguments);
      return _.has(memo, key) ? memo[key] : (memo[key] = func.apply(this, arguments));
    };
  };


LEARN TO PROGRAM FAGGOT

Name: Anonymous 2012-08-18 2:33

>>23
PIG DISGUSTING!!

Name: Anonymous 2012-08-18 3:19

>>23

memoization is nice, but in this case you are still using O(n) stack space when you could be using O(1). And memoization can be used in conjunction with tail call optimization. Soooooo,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, I don't think you're post acts as an argument against tail call optimization.

Name: Anonymous 2012-08-18 4:39

who the fuck cares about memory? my 20 dollar linode instance has 2 gb of ram. If your function needs to call itself that many times, than your algorithm fucking sucks.

if your program is that memory sensitive, then you'll probably need to inline the call into a loop instead of doing recursion (the haskell compiler does this automatically, so unrolling it by hand is not that hard, simply the cost of using a pop culture language).

i'll gladly trade decent stack traces for linear stack space. The speed of a dict lookup is still constant, and the memory gets collected on return anyway.


v8 allows you to turn on TCO if you really need it, but no one ever has in real code.

Name: Anonymous 2012-08-18 8:18

>>26 $20 only gives you ~512MB or memory on Linode.

Name: ! !5FwsU9yB5U 2012-08-18 8:34

the mars rover didn't have enough memory for all it's software and was stopped 4 days because of that

Name: Anonymous 2012-08-18 9:33

>>28
No, that happened because the software was written in Java.

Name: Anonymous 2012-08-18 9:44

javascript noob

Name: Anonymous 2012-08-18 10:06

>>26
i'll gladly trade decent stack traces for linear stack space.
GuidoScript Traceback (most recent call last):
  ...
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  Line 32: called 'faggot'
  STACK OVERFLOW

Name: Anonymous 2012-08-18 15:59

why don't compilers nowadays optimize most recursion to loops anyway?

Name: Anonymous 2012-08-18 17:39

>>32

it is much harder to do that efficiently in languages with late-bound types.

statically typed languages don't usually do it because their users don't know what recursion is.

Name: Anonymous 2012-08-18 21:38

>>28 Apparently, the mars rover was programmed using enterprise-grade nodejs. All hail Ryan Dahl.

Name: Anonymous 2012-08-19 0:57

>>34
Move over, Rover.

Name: Anonymous 2012-08-19 2:18

Javascript is for shitty programmers who don't understand how to when to use malloc and alloc

Name: Anonymous 2012-08-19 3:46

Javascript is a guido programming language for self absorbed script kiddies grown big enough to call themselves brogrammers

Name: Anonymous 2012-08-19 5:47

Javascript is a dynamic, multiparadigm, widely implemented programming language for advanced programmers who understand the power of prototypal inheritance and higher order functions.

Name: Anonymous 2012-08-19 6:11

>>38
And you're a faggot. A huge faggot.

Name: Anonymous 2012-08-19 6:20

>>39
implying

Name: Anonymous 2012-08-19 7:15

"jfyv$nt}mw~pp-xp†r…v†~†‹".split("").map(function(e,i){return String.fromCharCode(e.charCodeAt(0)-i)}).reduce(function(l,c){return l+c},"");

Name: Anonymous 2012-08-19 8:25

>>38
I lel'd

Name: Anonymous 2012-08-19 11:00

>>38

- John Resig

Name: Anonymous 2012-08-19 12:05

I want to spank Jesus.

Name: Anonymous 2012-08-19 16:00

>>44
I spank my cat and he likes it

Name: JAutism 2012-08-19 16:43

I enjoyed this thread.

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