3 ms·
Solving the JavaScript Memory Management Problem
- tlrobinson 17y ago(don't miss the code: http://github.com/280north/cappuccino/commit/6678bba94f7778b245d8219292b3a6ac85d31678 http://github.com/280north/cappuccino/commit/6678bba94f7778b...)
- imajes 17y agothat's a lot of code for april fools....
- madair 17y agoTL;DR version: Welcome to April Fools (gah, tomorrow is going to get annoying)
- boucher 17y agoYeah but you have to appreciate an April fools joke that comes with a working implementation :-).
- gfodor 17y agoI know this is a joke, but this seems to be one of those "the truth is stranger than fiction" things. No, they did not implement manual memory management in Javascript. But yes, they did in fact re-implement the Mac development ecosystem entirely in the browser. Extremely powerful or extremely insane, I still can't decide. One things for sure, I certainly don't think it was necessary to go to the lengths they have to implement applications for the web well.
- gfodor 17y agoOne more thing to note, is that at the core of what 280North has done (with a Herculean effort) is traded something close to lisp for something close to Smalltalk.
- spooneybarger 17y ago/Smalltalk/Objective C/
- paulbaumgart 17y agoYou're both right. http://en.wikipedia.org/wiki/Objective-c#History http://en.wikipedia.org/wiki/Objective-c#History
- spooneybarger 17y agoSyntax is a tiny portion of Smalltalk. Smalltalk is all about the tools. Objective-J has no tools. Smalltalk without the environment and the tools isnt Smalltalk. Thus, my Objective C not Smalltalk comment.
- paulbaumgart 17y agoWhat tools in particular do you mean? Maybe Objective-J could have similar tools.
- paulbaumgart 17y agoAs a strict superset of JavaScript, Objective-J actually lets you have both.
- gfodor 17y agoYes but we all know that, as is the case in Objective-C, your primary mode of modeling problems becomes message passing and OOP. In Objective-C's case you drop to C for performance, I have a hard time believing that you'd drop to Javascript in Objective-J to eek out more performance. (If that's the case, truly we live in interesting times.)
- tlrobinson 17y agoThat was true for Objective-C, but JavaScript has closures, which can be used seamlessly in Objective-J. Of course now Objective-C also has closures/"blocks" too.
- pkulak 17y agoIf I'm going to write in a Javascript-using language, it's going to be Coffee Script. That's like Ruby and Python had a baby. A lovely, wonderful baby.
- tumult 17y agoOh please, how am I ever supposed to make practical use of this without NSZombieEnabled?!
- pak 17y agoHad to laugh at this: "Since $ has become the coolest way to do completely non-standard lookups in an almost indecipherable way"... It is true that this has practically become a meme amongst the JavaScript libraries. (did jQuery start the trend?)
- pkulak 17y agoPrototype did.
- pkulak 17y agoIt took me nearly to the end to figure out that this was a joke. This idea just seemed like a logical next step to writig web apps with Objective-C syntax.