198 points · by pm2016 · 10y ago · 107 comments
Can anyone elaborate what he means by this (and the overall idea of "real objects"?
That's Alan Kay in The Early History of Smalltalk, which you might enjoy reading in full: http://worrydream.com/EarlyHistoryOfSmalltalk/
I believe it was Jonathan Rees who emphasized the relationship between Smalltalk's messages and generic functions.
A "message" is something you can (more) easily adapt to be something sent over the network. In a high-level system, the distinction between a "function call" and RPC can also dissappear - but does it really matter if it is messaging that is like (abstract/high level) function calls or the other way around?
Consider if the ("x86") function call ends up being a jump from an x86 core on a server to an arm chip on a phone - it doesn't work.
But a phone might very well respond to a "getId" message. Might return a phone number or an ip address for example.
Alan Kay has had many opportunities to specify precisely what he means by objects and messages, and based on reading his more recent (or less old) VRI papers, Kay draws inspiration for objects from biology, where swarms of molecules pattern match against the partially constructed molecule and build it up step by step. I've seen him give an example in only one paper.
Needless to say this is not how Smalltalk works.
I've always gotten the strangest feeling that Mr. Kay made up the distinction between Smalltalk and later OOP languages after the fact. I think this is precisely the reason I get that feeling: because despite what Mr. Kay says about Smalltalk and OO, programming in Smalltalk feels very much like programming in any other OO language.
I don't mean any disrespect to Mr. Kay. I give him the benefit of the doubt in assuming that his intended language was different from the language that actually materialized, likely due to implementation issues. In that regard, as a language designer I can very much sympathize.
Instead, we started to apply OO principles from a software engineering point of view, in order to write big monoliths.
So, in process, out of process, to another box, this shouldn't matter.
For performance reasons, all kinds of optimizations are present.
In Pharo (http:/pharo.org), which is "Smalltalk inspired", there are new developments like the remote debugger:
http://dionisiydk.blogspot.be/2016/07/remote-debugging-tools...
It is based on Seamless.
Instead of objects being a structure inside of a single process that manipulates the object, objects are general entities that exist broadly on a system. All things on the system use a neutral messaging format to talk to objects, getting data or asking for the object to run operations.
I saw Alan Kay give a talk on Squeak in NYC when I was a little Sega Genesis kid... he made me want to be a programmer because I hoped one day to work on the stuff he does the way he does it. That's like wanting to be an astronaut.
The tricky bit is that startups pretend that they're doing that kind of work to hire engineers (or get press/funding/etc).
Them: "We just really want to find people who are passionate about this work and these tools!"
Me: "Anybody who is telling you they're 'passionate' about making yet-another-dashboards-as-a-service product on top of a tired old Java Spring software stack is lying to you."
Them: "So you're not passionate about dashboards or Java?"
Me: "No. No I am not. What I am is capable of fixing your performance and scale problems so that you don't lose your reference customers and destroy any chance you have at acquisition or IPO. Look on the bright side. At least I'm not lying to you."
Them: "Oh. I see."
Me: "I'm passionate about making money."
Being compelled to maintain sustained cognitive dissonance is a form of low-grade chronic stress, and unfortunately depression is often a side-effect of chronic stress.
I'm always weary of places that are more interested in building a cult than a company for precisely these kinds of reasons.
Get well, mate.
I know it can be super hard to motivate yourself to take the necessary steps when you're depressed, but hopefully the thought of some relief is enough of a motivator, if only barely. The first step is to see a psychiatrist if you haven't already.
If you need/want someone (not a mental health professional) to talk to, my e-mail address is in my profile. Either way, I hope things get better for you soon :)
Then ~6 years ago I tried starting a startup, working for startups, but as Kay points out that's not a great place to do research either. Really, you need to be ruthlessly market- and production-focused.
So I guess my first two guesses for where I could do my own research were wrong. My new theory: The best place to do research is in your garage.
Let's see if I still feel the same way 6 years from now.
First you get "fuck you money" (which is not necessarily millions and millions of dollars, just enough money so you don't have to be a wage slave anymore).
Second, you move to some place cheap with low upkeep costs and a nice garage/mad-science-laboratory on premises. That's where you do your research.
"What one wants is to be able to talk with a diverse club of smart
people, arrange to do short one-off research projects and
simulations, publish papers or capture intellectual property
quickly and easily, and move on to another
conversation. Quickly. Easily. For a living. Can’t do that in
industry. Can’t do that in the Academy. Yet in my experience,
scientists and engineers all want it. Maybe even a few
mathematicians and social scientists do, too."
-- Bill Tozier, [[http://williamtozier.com/slurry/2006/07/17/diverse-themes-observed-at-gecco-2006][Diverse themes observed at GECCO 2006]]I'm much happier at the latter. None of the pressure to publish/write grant proposals all the time like in academia, and much more time to actually sit down and think thoroughly about problems than in startups.
There are of course downsides - you don't have much control over the product like you might have in a startup, and you can't pursue completely crazy blue sky stuff like you might be able to as a grad student; but it's worked out for me.
If anyone reading this is interested in HCI research and designing future hardware; if you're as comfortable programming as you are with a soldering iron as you are in Sketch as you are reading academic papers and reflecting deeply about the field; please send a resume/portfolio to the email in my bio.
Though I've noticed an unfortunate trend where large enterprises create a Research org that isn't any such thing and is instead just an incubator for the Product org. It seems to result in sadness for both sides.
PayPal was a huge pivot. Their original business was hardware security tokens.
When he talks about research, he's valuing a certain kind of research: laboratory, explorative research that may or may not reach a market.
Startups are, from a certain point of view, research in that they try to discover ways to fulfill customer needs, whether customers know they have them or not.
A few examples just from YC: Airbnb, Twitch, Dropbox. In particular, Airbnb discovered a need that people really had. Is this not research? I think it is, depending on your value system.
Creating a community of makers building together in an open and discoverable fashion is the first step. It first allows you to combine marketing with building, and attract community earlier, thus finding more knowledge-share, and hopefully building better products quicker.
Next, by sharing what you're building, we're able to tap into that community making along side and following your journey by using crowdfunding. Specifically continuous crowdfunding during the prototyping and research phase.
Now that you're building a company/product with your community , you can find support all along the way. Your audience is happy in sharing and support in the successes and challenges you will face.
Next when you're ready to launch a real product (after the prototyping/research phase) you should be able to sell pre-orders and crowdfund bringing these products to a mass market.
Beyond this you should be able to continue selling those items, then repeat this entire process with the community momentum, trust, and social proof you've now built up.
We're working to build that future for startups/companies/products at Baqqer. https://baqqer.com/
Ouch.
The point is that the iPhone / iOS devices could be more open (to user control and modification at the OS level, to third-party peripherals, to third-party software distribution and installation, etc)... but, due to fiat policy rather than any significant technical constraint, it is not.
Is that hard to "get"?
The Steve who was most passionate about starting a revolution with cheap, accessible computers was named Wozniak.
Of course, Apple soon figured out that what sells is not mind amplification tools but 'appliances' and under second Steve they became really good at producing those.
There's much to be said for the concept.
Then OSX introduced virtual memory. Programs became a little bit safer.
Then in later versions, Application Sandboxing, code signing, etc.
Every step of the way programs can do less but are safer for the OS.
His quote is “research means you can change your mind”. Well, I change my mind all the time.
I'd like to think I have read a few definitions of OOP, I have to say I don't recognize the above - what does "pinpointed procedures" mean? Also, "if-then" programming doesn't seem like a paradigm or a necessary/representative flow control structure of OOP.
To be fair, I am not familiar with Smalltalk and perhaps this definition makes more sense in that context.
I've never heard it described that way, but I assume the part about "pin pointed procedures" tied to data is a weird way of describing the way that methods relate to the data encapsulated by their owning object.
Ultimately, I think this is a case where someone familiar with the concept has explained it to someone who is not, who has then tried to paraphrase and, lacking any domain knowledge, summarised it in an unusual and vague way.
"Here is an a la carte menu of features or properties that are related to these terms; I have heard OO defined to be many different subsets of this list.
1. Encapsulation - the ability to syntactically hide the implementation of a type. E.g. in C or Pascal you always know whether something is a struct or an array, but in CLU and Java you can hide the difference.
2. Protection - the inability of the client of a type to detect its implementation. This guarantees that a behavior-preserving change to an implementation will not break its clients, and also makes sure that things like passwords don't leak out.
3. Ad hoc polymorphism - functions and data structures with parameters that can take on values of many different types.
4. Parametric polymorphism - functions and data structures that parameterize over arbitrary values (e.g. list of anything). ML and Lisp both have this. Java doesn't quite because of its non-Object types.
5. Everything is an object - all values are objects. True in Smalltalk (?) but not in Java (because of int and friends).
6. All you can do is send a message (AYCDISAM) = Actors model - there is no direct manipulation of objects, only communication with (or invocation of) them. The presence of fields in Java violates this.
7. Specification inheritance = subtyping - there are distinct types known to the language with the property that a value of one type is as good as a value of another for the purposes of type correctness. (E.g. Java interface inheritance.)
8. Implementation inheritance/reuse - having written one pile of code, a similar pile (e.g. a superset) can be generated in a controlled manner, i.e. the code doesn't have to be copied and edited. A limited and peculiar kind of abstraction. (E.g. Java class inheritance.)
9. Sum-of-product-of-function pattern - objects are (in effect) restricted to be functions that take as first argument a distinguished method key argument that is drawn from a finite set of simple names.
So OO is not a well defined concept. Some people (eg. Abelson and Sussman?) say Lisp is OO, by which they mean {3,4,5,7} (with the proviso that all types are in the programmers' heads). Java is supposed to be OO because of {1,2,3,7,8,9}. E is supposed to be more OO than Java because it has {1,2,3,4,5,7,9} and almost has 6; 8 (subclassing) is seen as antagonistic to E's goals and not necessary for OO.
The conventional Simula 67-like pattern of class and instance will get you {1,3,7,9}, and I think many people take this as a definition of OO.
Because OO is a moving target, OO zealots will choose some subset of this menu by whim and then use it to try to convince you that you are a loser."
this is an overly simplified and reduced way of describing the idea of encapsulation.
>"A fish on land still waves its fins, but the results are qualitatively different when the fish is put in its most suitable watery environment."
>"Because of the normal distribution of talents and drive in the world, a depressingly large percentage of organizational processes have been designed to deal with people of moderate ability, motivation, and trust. We can easily see this in most walks of life today, but also astoundingly in corporate, university, and government research. ARPA/PARC had two main thresholds: self-motivation and ability. They cultivated people who "had to do, paid or not" and "whose doings were likely to be highly interesting and important".
>"Out of control" because artists have to do what they have to do. "Extremely productive" because a great vision acts like a magnetic field from the future that aligns all the little iron particle artists to point to “North” without having to see it. They then make their own paths to the future."
>"Unless I'm badly mistaken, in most processes today—and sadly in most important areas of technology research—the administrators seem to prefer to be completely in control of mediocre processes to being "out of control" with superproductive processes. They are trying to "avoid failure" rather than trying to "capture the heavens".
I’m not interested in being remembered — but I would to have the ideas, visions, goals, and values of my whole research community not just remembered but understood and heeded.
I recommend his talk "Normal Considered Harmful".
Whether or not one outweighs the other, or whether the latter is all that bad, is a different discussion. But just because you have a different perspective than he does is no reason to attack him for it.
And he calls it "sugar water". Baffling.
Shell scripting is a subset of this with short-lived processes typically communicating sequentially via a text-based messaging system (particularly line-oriented, text-based, moderately structured data).
Long-running unix processes communicating with each other or with external processes via some other mechanism is also an example of the actor model, and consequently can each be conceived of as "real objects". But they aren't typically modeled this way or constructed around this concept, so it's more a post hoc description rather than a deliberate consequence of their design.
For "web kiddies", they deal with multiple objects all the time. Their database is an object (or collection of objects), it responds to queries by returning information, changing information, storing information. Their web server is an object responding to HTTP connections, generating session objects, which deal directly with each browser instance viewing the web content. Again, not typically modeled in this way, but it's the actor model at work.
When software is designed in this way, IMHO, it comes out better in the end. Though perhaps not as performant so sometimes we have to take those designs and drill down a bit and end up with something slightly different than the high level model.