Object paradigm: message passing

  • Thread starter Thread starter 0rthodontist
  • Start date Start date
Click For Summary
The discussion centers on the object paradigm and the concept of method calling as "message passing." The original poster argues that in languages like Java and Smalltalk, method calls resemble function calls more than true message passing, suggesting a framework where objects communicate through a universal Send method and a Receive method that processes incoming data. This proposed system emphasizes human-readable data, potentially improving debugging by treating messages as true statements about the universe. Critics argue that this approach adds unnecessary complexity and performance overhead compared to traditional method calls, which can achieve similar outcomes with less ambiguity. The conversation highlights the tension between traditional object-oriented programming and the desire for a more abstract, message-oriented paradigm.
  • #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
3K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
13
Views
3K
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 15 ·
Replies
15
Views
4K
Replies
9
Views
3K
  • · Replies 33 ·
2
Replies
33
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 24 ·
Replies
24
Views
3K