Object paradigm: message passing

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

The discussion centers on the concept of message passing in object-oriented programming, specifically contrasting it with traditional method calling in languages like Java and Smalltalk. Participants argue that true message passing involves sending data without expecting a return value, as opposed to method calls that inherently return values. The proposed "pure message-passing" paradigm introduces a universal Send(D, B) function and a Receive(D, A) method, emphasizing human-readable data formats like XML for communication between objects. The conversation also touches on the advantages and disadvantages of this approach, including verbosity and potential performance issues.

PREREQUISITES
  • Understanding of object-oriented programming principles
  • Familiarity with Java and Smalltalk programming languages
  • Knowledge of XML as a data representation format
  • Awareness of performance considerations in programming paradigms
NEXT STEPS
  • Explore the "signals and slots" mechanism in Qt for a practical implementation of message passing
  • Research the differences between method calls and message passing in various programming languages
  • Investigate the use of XML for data interchange in software applications
  • Examine performance optimization techniques for message-passing frameworks
USEFUL FOR

Software developers, particularly those interested in object-oriented programming, system architects exploring alternative paradigms, and anyone looking to enhance their understanding of message passing versus method calling.

  • #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 6 ·
Replies
6
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
4K