I'm thinking a bit lately about multiplexing, it started with the only problem I can see for FTP protocol in modern internet - the need for additional tcp connections. ssh and scp solve this by creating virtual connections inside single TCP/IP channel. Basicaly ssh provides powerfull generic infrastructure for multiplexing lots of channels into one encrypted channel.
Another very visible place you can find such solutions is multimedia - container files with audio and video plexed together...
If you think you can avoid this problem by not watching video and not listening to digital audio you're sadly mistaken, old-school multiplexing raises it's head in form of this whole MIME framework.
Modern filesystems try to provide multiplexing primitives in form of media forks and other such solutions - watch for BeFS, XFS, NTFS, reiserfs etc...
Basicaly, multiplexing is everywhere...
But, how can I accomplish something like that in perl?
For one thing, I could go into this whole MIME mess, another way would be using Storable, Freeze and family to multiplex complex datastructures into a string/file.
Another intensively generic solution is XML, which, while good idea when first introduced, now feels like monstrous beast better left in it's lair.
One at first moronic idea I heard about is binary xml, it sounds horrible, but after I've seen it in action in form of mkv data format, I've got my doubts... the format is very lightweight, efficient, seems to work extremely well and stable (this may be the result of technology being young, looking at what age did to XML might suggest that...;)
Anyone played with something similiar?
Getting back on track... I would like some kind of online multiplexing of data, while Storable and friends can do solid job of freezing static data, they're useless for streams.. ( from what I can see, only ssh and binary xml provides solution for this problem - the problem is, I don't know how to tackle those with perl )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Multiplexing Stuff
by SpanishInquisition (Pilgrim) on Oct 12, 2004 at 13:21 UTC | |
by Eyck (Priest) on Oct 12, 2004 at 13:50 UTC | |
by SpanishInquisition (Pilgrim) on Oct 12, 2004 at 14:57 UTC | |
by jfroebe (Parson) on Oct 12, 2004 at 17:15 UTC | |
|
Re: Multiplexing Stuff
by samtregar (Abbot) on Oct 12, 2004 at 18:22 UTC | |
|
Re: Multiplexing Stuff
by tantarbobus (Hermit) on Oct 12, 2004 at 18:24 UTC |