News for hackers. Stuff that matters.
Re:Java Was Strongly Influenced by Objective-C by fusiongyro on Wednesday December 26, 2012 @09:21PM (#4972038)
My impressions of Dart are not particularly well-informed but I must raise an eyebrow at the allegation that it's Smalltalk with Javascript syntax. Care to elaborate?
Re:Java Was Strongly Influenced by Objective-C by rayiner on Wednesday December 26, 2012 @09:30PM (#4972061)
The semantics are the closest to Smalltalk of any of the relatively high-profile languages. At the implementation level, everything is an object that responds to certain selectors. Objects have a static layout (unlike say Javascript or Python or Ruby which treat objects as basically hash tables of fields), and the call frames are relatively static too, compared to Python and Ruby which let you do all sorts of weird magic with the call stack. Scoping is Lisp-y, instead of the various weird scoping rules Javascript, etc, have come up with.
Re:Java Was Strongly Influenced by Objective-C by stcredzero on Wednesday December 26, 2012 @11:17PM (#4972316)
> Objects have a static layout (unlike say Javascript or Python or Ruby which treat objects as basically hash tables of fields)

This will make life easier for implementors of high performance VMs and tend to reduce memory footprint of objects.

Re:Java Was Strongly Influenced by Objective-C by darknoon on Thursday December 27, 2012 @03:17AM (#4972777)
Since we're on that topic… in Objective-C, object layout is determined at runtime (these days anyway). It's pretty efficient though, and lets you do sometimes-useful stuff like add ivars at runtime. It also kills the fragile base class binary compatibility issue that plagues other compiled languages (particularly relevant as a glue / MVC language).
Re:Java Was Strongly Influenced by Objective-C by fusiongyro on Wednesday December 26, 2012 @09:32PM (#4972071)
Thanks. That piques my interest. I'll have to take a deeper look.