Author Topic: Any need or interest for self-descriptive format?  (Read 646 times)

0 Members and 1 Guest are viewing this topic.

Offline m_dr_m

  • CPC664
  • ***
  • Posts: 75
  • Country: se
  • http://orgams.wikidot.com/
    • OrgaMS!
  • Liked: 60
  • Likes Given: 34
Hallo.


I'm polishing Ayane's "module" on-disk format, and was wondering whether it would be of any interest to use a self-descriptive format.
Not XML-like, god forbid. Rather IFF like, with tagged chunks + some common meta info for each chunk (version, size).


Recently Gunhed was interested in decoding Orgams files.
But in both cases a generic format appears neither sufficient nor necessary!


What do you think?

Offline norecess

  • CPC6128
  • ****
  • Posts: 151
  • Country: ca
  • Liked: 315
  • Likes Given: 137
Re: Any need or interest for self-descriptive format?
« Reply #1 on: 15:10, 20 May 20 »
I think IFF is amazing because you can extend it as you wish, while remaining small data-wise. I used it for reading LightWave's LWO objects a long time ago. 30 years after, they almost reinvented IFF as "BSON" ("Binary JSON", http://bsonspec.org/).

On the other side, you can't directly read a fixed structure with IFF; you need to parse each block separately and recursively. This may slow down loading + much complicated to parse in asm.

Is your data fragmented a lot (with many small data structures) ? then yes, maybe it worth it.
If your data is like 1 or 2 "big structs" + some 2 or 3 linear data with variable size, well, maybe it does not worth it.

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 1.969
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
  • Liked: 882
  • Likes Given: 2215
Re: Any need or interest for self-descriptive format?
« Reply #2 on: 19:15, 20 May 20 »
What do you think?
Do it the way it's best for Orgams, that keeps it quick.  :)  However to know how the format works would be of advantage for other apps in case they like to show an .o file for example. To be realistic, on CPC there not so much coders. So it's worth thinking if the effort makes sense or not.  :) :) :)
http://futureos.de --> Get the revolutionary FutureOS (Recent update: 2019.08.07)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2019.08.14)

Offline m_dr_m

  • CPC664
  • ***
  • Posts: 75
  • Country: se
  • http://orgams.wikidot.com/
    • OrgaMS!
  • Liked: 60
  • Likes Given: 34