Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

claes (1758)

claes
  (email not shown publicly)
http://www.surfar.nu/
AOL IM: claesjacobsson@mac.com (Add Buddy, Send Message)

Journal of claes (1758)

Tuesday March 04, 2003
06:30 PM

on Net::Java::RMI and Serialization

[ #10890 ]
Several people have told me the past days that I'm basiclly nuts. I dunno why, but since I can't find any arguments to prove them wrong they are probablly right.

Well, I think it all comes down to my fascination of doing serialization. So, I've listed my top six libraries/frameworks/technologies (note, some of these do not do cross-platform or cross-language communication).

1: use Storable qw(freeze thaw)
What can we say? Storable is reasonably fast and creates pretty compact binaries.

2. YAML
Compact readable dumps, easy to debug, easy to handcraft.

3. NSCoding protocol in Cocoa/GNUstep
I actually like this, it gives me full control of what to serialize. And I'm a big fan of Objective-C too.

4. XML
Can be compact and nice, can be huge and ugly. It's what you make of it.

5. Roll your own binary
Not a bad alternative. Autogenerating XS code from XML is fun.

9999: JAVA built-in
java.io.ObjectOutputStream, java.io.ObjectInputStream, java.io.Serializable and java.io.Externalizable says it all. Backwards-compability is a biatch. Doing it in Perl is even more a biatch, but it can be done.

Well, that list pretty much sums it up, don't we think?

Cheers, Claes
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.