[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
Original Message From: "John Cowan" > All that parsing and unparsing would be expensive: That was certainly one of my concerns, does it scale (unscale?!) to the tiny? If the cost of serialization is small compared to the number of cores you can throw at a problem then it might cost in. These days that's probably an accessment you have to make on a daily basis! > 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. I was thinking the act of serialization could be used to enforce the immutability aspects and reduce the changes of unintentionally getting access to 'foreign' mutating state. > 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/ . Will do, Thanks. Pete Cordell Codalogic Ltd Interface XML to C++ the easy way using C++ XML data binding to convert XSD schemas to C++ classes. Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com for more info
[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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|