4 ms·
I think you're right about OO's continued survival. I also think mikerichards is right that OO is just technicolor procedural programming. Moreover, i think the
by twic 12y ago
I think you're right about OO's continued survival. I also think mikerichards is right that OO is just technicolor procedural programming. Moreover, i think these two things are related: OO is immortal in part because it's straightforward and obvious, just like procedural programming.
But i don't think Clojure is just continuing the (equally immortal!) LISP subculture. I think LISP is growing by recruiting people from OO-ish languages like Java, Python, and Ruby, rather than from existing LISPs. This is the first time in a long time that a LISP has done that. It's also the first time in a long time that a LISP has got even this glimmer of mainstream use. pg wrote 'Beating the Averages' in 2001 [1], and even after that, everyone still thought LISPers were freaks. But announce you're using Clojure in production today, and nobody bats an eye.
[1] http://www.paulgraham.com/avg.html http://www.paulgraham.com/avg.html
- seanmcdirmid 12y agoThe advantage of OO has always been its accessible constructs and abstractions that mirror how we talk about things linguistically. Nouns are just sticky that way. It isn't a big delta over procedural programming, and you can find object systems in many C programs written before OOP was even a word. Heck, even Clojure has its own object systems; they just often call them entities rather than objects (what is an entity? well, its an object, but not the object you are used to). I think our current OO abstractions suck, but the paradigm is OK, especially when considered in the abstract (go back to the treaty of Orlando to see how diverse objects can be!). And the biggest pushers of objects in the early day were CLOS people like Richard P Gabriel, and CLOS (edit: Flavors actually as lipsm points out) gave us mixins, which are a pretty advanced OO construct (though RPG argues the mixins that got adopted in OO languages were not the ones CLOS intended). People were using LISP in production in the 90s as an advantage, but then they were also using Smalltalk or Objective C also (ironically often in the same places...on Wall street). A new generation is discovering LISP while learning other languages first, but the phenomena is the same: OO was just less popular in the past and so they would come from C or Perl instead of Java. [edit: not sure why you were downvoted, I thought your post was completely reasonable]
- lispm 12y agoMixins are from Flavors, not CLOS. CLOS has no special support for mixins - they are just a sub-functionality of CLOS.
- seanmcdirmid 12y agoThanks, my understanding of history is probably a bit confused: http://en.wikipedia.org/wiki/Mixin#In_Common_Lisp http://en.wikipedia.org/wiki/Mixin#In_Common_Lisp In RPG's inconsumerability essay [1], he describes it like: > In that paper they described looking at Beta, Smalltalk, Flavors, and CLOS, and discovering a mechanism that could account for the three different sorts of inheritance found in these languages—including mixins from Flavors and CLOS. They did come from Flavors first regardless (mixins being named after an ice cream shop with mixins near MIT, so I heard). I think it was also the first system to allow for aspect advice via a first-class construct. [1] http://www.dreamsongs.com/Files/Incommensurability.pdf http://www.dreamsongs.com/Files/Incommensurability.pdf
- lispm 12y agoMixins were introduced with Flavors by Howard Cannon in 1979. Flavors/Mixins were used to implement some of the early MIT Lisp Machine user interface, IO and networking code. http://lispm.de/docs/Publications/Flavors/Flavors,%20a%20non-hierarchical%20approach%20to%20object-oriented%20programming.pdf http://lispm.de/docs/Publications/Flavors/Flavors,%20a%20non... 'aspect advice' was mostly introduced in Lisp in 1966 by Warren Teitelman: http://dspace.mit.edu/handle/1721.1/6905 http://dspace.mit.edu/handle/1721.1/6905 See the discussion of ADVISE and a BEFORE example in the paper... From there it came to Interlisp, Maclisp, Flavors and CLOS...
- seanmcdirmid 12y agoThanks. The Teitelman work is what I cite as the introduction of aspects, but I didn't realize it was more than just a pattern back then.
- twic 12y ago