Object paradigm: message passing

  • Thread starter Thread starter 0rthodontist
  • Start date Start date
Click For Summary

Discussion Overview

The discussion centers around the concept of the object paradigm, specifically the interpretation of method calling as "message passing" between objects. Participants explore theoretical frameworks, potential implementations, and the implications of a pure message-passing approach in programming languages.

Discussion Character

  • Debate/contested
  • Conceptual clarification
  • Technical explanation

Main Points Raised

  • One participant argues that method calling in languages like Java and Smalltalk resembles function calling more than true message passing, proposing a framework where objects communicate through a global Send procedure and a Receive method.
  • This participant suggests that messages should represent true statements about the universe, advocating for a structured format like XML for data representation.
  • Another participant counters that method calls can be viewed as equivalent to message passing, as they involve passing arguments and invoking actions, thus questioning the need for a new language to implement this concept.
  • This counterpoint emphasizes that the abstraction of method names in the proposed framework introduces unnecessary complexity and performance overhead.
  • A later reply highlights that the proposed Send method has no return type, suggesting that data is returned through additional Send calls, which aligns more closely with message passing than traditional return mechanisms.

Areas of Agreement / Disagreement

Participants express differing views on whether method calls can be equated to message passing, with some supporting the notion of a distinct message-passing paradigm while others argue for the sufficiency of existing method call mechanisms. The discussion remains unresolved regarding the necessity and practicality of a new programming language based on these ideas.

Contextual Notes

Participants note potential limitations such as verbosity, the need for unique identifiers to avoid conflicts, and performance concerns related to the proposed message-passing framework. The discussion also highlights the ambiguity introduced by runtime dispatching versus compile-time method resolution.

  • #31
I do see your points, and they are interesting -- I just don't know that they would actually lead to better programs. (Where "better" could mean anything from easier to write, easier to debug, faster, smaller, less prone to errors, etc.)

- Warren
 
Technology news on Phys.org
  • #32
Don't forget

XY is a programming language; XML is a way to describe data.

I am not in the mood of reading this thread but I think you might be close to this

http://research.sun.com/self/

The Self programming language.
 
Last edited by a moderator:
  • #33
Recently i came across something called XMLVM, used for something called XML11 which reads the Java byte code and places the instructions (elementary ones, such as push/pop ..etC) into an XML file.
There's obviously a lot of overhead involved, but one of its uses is an implementation of the X11 protocol allowing you to have a remote desktop client that runs in your browser completely with Javascript, without the Java plugin.
After converting the byte code to XML, the XML is sent to the browser via AJAX and processed. There's clearly a huge overhead for this, but i saw a demo and it worked.
Basically they made a version of Java's AWT package which interfaces with their XML11 broker, sitting at the server, which then sends the interface to the browser. So you would be able to start any AWT based Java application and see it on a web browser.
This is only slightly related to this thread. :)
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
13
Views
4K
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 15 ·
Replies
15
Views
4K
Replies
9
Views
3K
  • · Replies 33 ·
2
Replies
33
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K