[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Using XML (or JSON) for inter-thread communication

  • From: John Cowan <cowan@mercury.ccil.org>
  • To: Pete Cordell <petexmldev@codalogic.com>
  • Date: Mon, 19 Mar 2012 09:57:45 -0400

Re:  Using XML (or JSON) for inter-thread communication
Pete Cordell scripsit:

> Which makes me wonder, can you compress the 'web services' model down to 
> the level of threads and use XML or JSON for your inter-thread 
> communication? Can you define your interfaces using some sort of schema 
> and use REST or similar approaches?  Would this help simplify parallel 
> programming, perhaps as one of a basket of techniques?

All that parsing and unparsing would be expensive: you might as well deal
in binary immutable objects instead.  But otherwise the idea is good and
has been in use for decades (Unix pipelines being the best-known example).
The key is to share nothing except immutable objects.

See Flow-Based Programming, a framework based on passing around immutable
packets between components (there are Java, C#, and C++ versions) at
http://www.jpaulmorrison.com/fbp/ .

-- 
John Cowan  cowan@ccil.org  http://ccil.org/~cowan
If I have not seen as far as others, it is because giants were standing
on my shoulders.
        --Hal Abelson


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.