131 points · by thealphanerd · 13y ago · 69 comments
https://groups.google.com/d/topic/comp.sys.newton.misc/Kb0Jo...
The discussion was originally about Java on the Newton, and someone had made the goofy suggestion that Java was based on NewtonScript. Patrick Naughton jumping in was an interesting ending to the thread.
As a side note: four years later I actually wound up writing the only version of Java released on the Newton (Waba).
http://www.cs.utah.edu/~mcdirmid/ghost/
Lots of fun fitting the 1.0.2 class libraries into 180K (out of 256K available, needed some space to run in!).
This will make life easier for implementors of high performance VMs and tend to reduce memory footprint of objects.
That said, I think reference counting warrants more attention than it has gotten in memory management research. If you're willing to punt on the leaking cycles issue, you can get a lot of mileage out of using a reference counting collector as a tenured generation with a copying nursery.
Are there implementations one can play with?
Important: Garbage collection is deprecated in OS X v10.8. You should use ARC
instead—see Transitioning to ARC Release Notes.
https://developer.apple.com/library/mac/#documentation/Cocoa...Whether ARC is better or worse than GC overall is immaterial. Apple has moved away from garbage collected Objective C.
... In Apple's Sandbox. Apple has also killed ethernet and other very not-dead in the real world things.
Automatic reference counting dates back to probably the 1950s. If it "works just as well" as garbage collection, don't you think it would have won by now?
http://www.csd.uwo.ca/staff/magi/personal/humour/Computer_Fo...
See http://labs.oracle.com/features/tenyears/volcd/papers/intros... for a historical note. Smith & Ungar's "Self: Power of Simplicity" is a must-read for anyone interested in this topic: http://ranger.uta.edu/~nystrom/courses/cse3302-fa10/selfPowe...
I've been considering a port to Android but all the JNI boilerplate I'd have to write is putting me off.
Cool synth, by the way. I'd like to see more of these kinds of experimental instruments on the iPad.
1: http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Class...
2: http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/refle...
The exception I'd make to that is meta-programming—especially for ORM libraries—where responds to, perform, and lambdas together produce some lovely patterns to marry a schematic to a dynamically generated object hierarchy.
No, static methods do not count.
Imagine my surprise when I disovered Delphi has class methods too, but they were not copied to C#. I guess most of the time they're not particularly useful, but when you do need to create some factory code, having pure virtual class methods (template methods), is really useful.
Downside w/ Delphi is the metaclasses do not implicitly exist - you have to manually define it, eg TMyObjectClass = class of TMyObject; They should just be implicity, when you define a class, the metaclass is defined too. I guess when they first designed it memory constraints were still a consideration
Class-side methods in Smalltalk are inherited, working with classes (as an object) is analogous to how instance-side methods work with instances (also objects). So e.g implementing and using factory methods are simpler in Smalltalk and similar languages.
Edit: grammer and typos.
Smalltalk to be precise.
Also, if they were influenced by Obj-C then why on earth didn't they bring over the by far most useful feature of the language, caegories?! Or maybe categories were a later addition?
I have been developing Java for 15 years and ObjC only for two but categories are seriously the best thing since sliced bread. Anything missing in the libraries? Just add it!
Edit: this is from the Apple naming guidelines, but it doesn't clarify that they always follow that convention for private methods: Avoid the use of the underscore character as a prefix meaning private in method names (using an underscore character as a prefix for an instance variable name is allowed). Apple reserves the use of this convention. Use by third parties could result in name-space collisions; they might unwittingly override an existing private method with one of their own, with disastrous consequences. See “Private Methods” for suggestions on conventions to follow for private API.
Not at all. The syntax was modelled after C++ which was what SUN wanted Java to replace at the time (generally it is a C-family style syntax).
Smalltalk itself has better syntax than any of the bunch.
>Better than obj-c but worse than nice languages like Ruby or Python.
Ruby and Python are not statically typed languages, which covers a lot of the simplicity in their syntaxes.
And while they did exist at the time, they were far from anybody's attention at the time Java emerged. It took 3-5 years after that for Python to make a strong appearance in some circles, and another 3-5 years for Ruby to emerge.
http://en.wikipedia.org/wiki/Excite
I briefly worked for Excite entirely by accident, but my tenure there was pretty brief due to an odd situation. I was originally hired by Novo Media Group who at the time was in the final stages of a merger with McKinley (known for the Magellan search engine), and McKinley's Sausalito offices were closer to my home (Novo was in SF and I was living in Marin) so I was located in that office under the assumption that both offices would soon be serving the same company but the deal with Novo fell through, Excite bought McKinley and things got weird and I left.
"I don't wanna grow, I wanna buy a crappy web portal..."