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

The Little Javascripter

Name: Anonymous 2011-09-09 22:04

JavaScript has much in common with Scheme. It is a dynamic language. It has a flexible datatype (arrays) that can easily simulate s-expressions. And most importantly, functions are lambdas.

Because of this deep similarity, all of the functions in The Little Schemer can be written in JavaScript. The syntaxes of these two languages are very different, so some transformation rules are needed.



(define foo (lambda (a b c) (body)))  |  var foo = function (a, b, c) { return body; };

(foo a b c)  |  foo(a, b, c);

(and p1 p2 ... pn)  |  (p1 && p2 ... && pn)

(quote (a b c))  |  ['a', ['b', ['c']]]

foo?  |  isFoo

Name: Anonymous 2011-09-09 23:56

function (too {bad function(Javascript {is(function ("unreadable");)} (function([as{'fuck'}]);));});

Name: Anonymous 2011-09-10 1:41

>>2
javascript even has proper scoping and tail recursion, ``faggot''

Name: Anonymous 2011-09-10 2:20

JavaScript is also slow as fuck.

Name: Anonymous 2011-09-10 4:48

>>4

depends what you are using it for. javascript (in chrome and firefox) is hells of faster than it used to be a few years ago. the intense competition between browser vendors is really pushing javascript speeds tO tHe ExTrEmE!!!!

javascript's new byte arrays and web workers are also a welcome addition.

Name: Anonymous 2011-09-10 4:57

Protip:Javascript was designed to be Scheme with a Java style syntax.

Name: Anonymous 2011-09-10 5:16

>>6

"JavaScript is the revenge of Smalltalk on Java"
- Brendan Eich

Name: Anonymous 2011-09-10 8:40

>>2
hahaha and Lisp is readable? ahahahahahaha

Name: Anonymous 2011-09-10 9:05

>>4
I don't know if you're trolling (you probably are), but JavaScript is among the fastest dynamic languages you can use.

I wish Perl or Python would come even close. But they don't. Not even the same order of magnitude, really.

There's no intrinsic reason for this, it's just a matter of how good the implementation is.

Name: Anonymous 2011-09-10 9:27

>>9
LuaJIT! LuaJIT! LuaJIT!

Name: Anonymous 2011-09-10 9:33

>>8
[b][i]PLEASE LEAVE PEASENT[/b][/i]

Name: Anonymous 2011-09-10 10:44

>>11
I hope you're ashamed.

Name: Anonymous 2011-09-10 12:26

>>12
I hope you're not a nigger.

Name: Anonymous 2011-09-10 12:26

>>1
You're still an idiot with no future as a computer programmer.

Name: Anonymous 2011-09-10 12:28

>>14
You're still a computer programmer with no future as an idiot.

Name: Anonymous 2011-09-10 12:42

Name: Anonymous 2011-09-10 12:49

>>16
That's not LuaJIT.

Name: Anonymous 2011-09-10 12:52

>>16 buttowned by >>17

Name: Anonymous 2011-09-10 18:26

>>17,18
i sense a lot of butthurt here

Name: Anonymous 2011-09-10 19:01

>>2
Did you mean
function (too function({bad function(Javascript function({is(function("unreadable");)}, (function(function([function(as{('fuck')});]);));));}));
?

Name: Anonymous 2011-09-10 20:29

>>20
But after a while you stop seeing }); and only see the structure of the code!

Name: Anonymous 2011-09-10 21:44

function(too[function("function").function(){function(function);}] function({bad function(Javascript.function()
{function(function(){is(function("unreadable".function(););)}, (function(function(){([function(as{function(){(['fuck'])};});])};));)});})); // function

Name: Anonymous 2011-09-10 21:56

>>20-22
I fucking hate you.

Name: Anonymous 2011-09-10 22:03

function = function(function("Are");){function(function();,[function("you"), function(function(function(), function(["frustrated"]))), function([">>23?"])])}; // FIXME: function

Name: Anonymous 2011-09-10 23:05

>>22
__
/  \
|  | <(looks like you want to use block scope!)
@  @
|| ||
|| ||
|\_/|
\___/

Name: Anonymous 2011-09-10 23:11

))))))))))))))))))))))))))))))))))))))))))))))))
fuck you faggots

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