News for hackers. Stuff that matters.
Re:On Leaky Abstractions and Objective-J by newt0311 on Monday December 08, 2008 @02:43PM (#390256)
Interesting article but I for one genuinely prefer libraries to syntactic language changes. We do not need another language among the thousands already there.
Re:On Leaky Abstractions and Objective-J by jimbokun on Monday December 08, 2008 @03:00PM (#390303)
"Interesting article but I for one genuinely prefer libraries to syntactic language changes."

I feel like there is some terminology confusion here (I already replied to someone else in the same vein).

I think it makes more sense to say "I prefer libraries that do not introduce syntactic language changes to ones that do." Technically, I would say Objective-J is a Javascript library, in addition to being a language in and of itself.

I think that Prototype, jQuery, etc. also add some syntactic changes, so I would say the difference is one of degree, not of kind.

Re:On Leaky Abstractions and Objective-J by newt0311 on Monday December 08, 2008 @03:16PM (#390321)
At that point, we are venturing into LISP territory where the line between mini-language and library is truly thin (and sometimes non-existant like in the CL loop macro).

My standard: Can a common JS interpreter (say firefox) execute the code without modifications?

If that is true, then said "thing" is a library.

Re:On Leaky Abstractions and Objective-J by paddy_m on Tuesday December 09, 2008 @01:25AM (#391036)
Check out parenscript. http://common-lisp.net/project/parenscript/ It is the only non js way of coding js that ever made sense to me. I saw Vladmir speak at an event and he got js and lisp.

I have looked through some of the code for parenscript and although I'm not a lisp expert I could grok what it was doing. I could also see how I could write my own macros if I put my mind to it. One huge advantage of compiling to js is that it makes obfuscation and compression a lot easier (this is true for GWT, objective-j, pyjamas, and parenscript).

Re:On Leaky Abstractions and Objective-J by jimbokun on Monday December 08, 2008 @07:02PM (#390625)
"LISP territory where the line between mini-language and library is truly thin"

Which demonstrates how successful Brandon Eich was when he set out to make Javascript a Lisp-like language.