4 ms·
AMB – Ancient Machine Book Format
- emeraldd 6y agoI'm seeing a "this page has moved link" that points to http://amb.osdn.io/ http://amb.osdn.io/ might be worth updating the post...
- bArray 6y ago> last update: 2020-12-14 Exactly what we needed, another format! I agree with the general sentiment, that long-term documents should be human readable. But essentially what is being designed here is just a text document with very specific formatting, that isn't even really designed to be parsed that well. What sucks about the format proposed is that it's not going to be so easily parsed by a human/machine. I would instantly do away with the concept on index data, the hashing technique is really not going to provide any real advantage. I think this is the sort of thing that should be left to the implementer to decide when parsing the documents, rather than per-specified. Honestly, in terms of portability, I would prefer to pick a subset of markdown. Perhaps you could apply the following restrictions: 1. Headers to use '#' and not underline feature. 2. Stick to a line wrap of 80 characters (or less if older machines require it). 3. Code blocks should use fours space indentation and not back-ticks ('```'). 4. Table should be correctly white-spaced to make the formatting nice and human viewable. 5. Do away with embedded images and instead use links. 6. 7-bit readable ASCII only, no tabs (as they suggest). A tab is different on each machine (and it bugs the living hell out of me in codebases too). 7. A twist on the idea specified, "links" (to files/documents) should be unique for the first 12 characters (or an appropriate specification). This would allow them to be longer and more verbose, but also backwards compatible. One thing I think markdown compromises on and maybe it shouldn't have is links. I think the format: [link_text](link_location) Should have been something like: [link_location] Where the location is simply displayed. I feel like the idea of hiding the content of a link is deceptive - it's name should really reflect what is actually is and by displaying the link itself you encourage it to be as short as possible. Anyway, that's my 2 cents.
- flobosg 6y ago> Should have been something like: [link_location] Markdown has a similar syntax using angle brackets, i.e., <link_location>. See https://daringfireball.net/projects/markdown/syntax#autolink https://daringfireball.net/projects/markdown/syntax#autolink.
- bArray 6y agoWoah, I was never aware of this, thanks!
- PaulHoule 6y agoThe advantage of that AMB format is that it does not depend on large and variable-length data structures so you can easily implement a viewer in BASIC or macro assembler on an "8-bit" computer like the Apple ][. (e.g. a friend of mine wrote a "filesystem" in BASIC on a TRS-80 Color Computer that stored 90kb on a floppy side (you flip) and also built a "robot" that could change floppies. The IBM PC was double density and heads on both sides so it stored 4 times as much, 360kb on a floppy, the early C64 split the difference around 150kb,...) I think the hash index is cute and probably scales up to the 1.2MB floppy range that came with the PC AT.
- goldsteinq 6y agoCode blocks should use backticks (which allow to specify a language and easy to type).
- livre 6y agoThey aren't easy to type in all keyboard layouts, in my Spanish keyboard you have to press alt gr+backtick twice (because it's a dead key), that's 3 key presses for a single backtick, you need 14* in total if you are using 3 backticks at the beginning and 3 at the end. Some people have even bigger issues like more keys to press or no backtick at all[1] Backticks are such an annoyance for me that when I started learning programming I dreaded having to type them and actively avoided languages that relied too much on them. * 7 per each 3 consecutive backticks if you don't accidentally release the alt gr [1] https://spaghettidba.com/2011/09/19/typing-the-backtick-key-on-non-us-keyboards/ https://spaghettidba.com/2011/09/19/typing-the-backtick-key-...
- lifthrasiir 6y agoWhy should it be another container format? To me the only reason that it should be a container instead of a monolithic file format seems to be an index. A plain text with some metadata and trailing indices (probably in octal, so that it is vaguely readable) might be more robust.
- PaulHoule 6y agoModern documents are composite documents. A Microsoft Word DOCX document is really a ZIP file and if you unzip it you will find XML files, PNG files, all sorts of things you can read with ordinary tools. Similarly a PDF file is a graph of more-or-less JSON objects which can be nested inside "filters" which support compression, encryption, etc. The organization of numerous small subfiles makes it easy to pick one piece out to work with in RAM which would be important on a small target.
- lifthrasiir 6y agoBut AMB doesn't have such resources nor filters at all. Also the file length limit of 64KB is not as small as it sounds; some implementations will have to only read one screenful a time (plus a bit of buffers) to save the working memory.
- PaulHoule 6y agoAnd neither did the "ar" file that the linker used on the original Unix. Before there was ZIP there was ARC, and before ARC came to the IBM PC, there were LBR (a "tar" kind of format) and the SQ compressor on CP/M (I don't know what possesed me to write a SQ decoder in BASIC instead of going straight to macro assembler) "Containers of containers (... of containers)" is a general architecture for file formats. The 64k limit makes it a lot easier to implement an an 8-bit computer in that you can use 16-bit pointers into one of the documents, going to 24-bit or 32-bit pointers would be a hassle but BASIC programmers might use floats which would work OK until they don't.
- EvanAnderson 6y agoIf it isn't a joke it's hard not to take it as one when the format spec contains: > %b boring text follows (usually displayed grey on grey) All in all it seems needless.
- devenblake 6y agoSVN in 2020? Why not git?
- stronglikedan 6y agoLooks like a single contributor. IMO, Git only wins over SVN when used in a collab environment.
- devenblake 6y agoAre there any advantages?
- saba2008 6y agoEmbedded codepage is a good idea, but proposed 'unicode.map' format is limiting: - Target side is limited to single bmp codepoint - Local side assumes single byte encoding (so, for example, no shift-jis support) Such limits could make sense from performance/simplicity standpoint, but not in a part targeted to non-ancient machines.
- jefurii 6y agoI like the idea but the formatting is terrible and there are no carriage returns so if you turn off page style you just see a wall of text.