7 ms·
Interim OS: minimalist OS influenced by Lisp machines and Plan 9
- jxy 8y agoWhen you have Lisp, why do you still need a so called filesystem? The idea of flat text files sounds odd, when you can have structured S-exp's.
- monocasa 8y agoInteroperability with the rest of the planet.
- vbuwivbiu 8y agoyou don't need "everything is a filesystem" for that
- monocasa 8y agoBut once you have to have a filesystem, it's a nice model.
- reagan 8y agohttps://xkcd.com/224/ https://xkcd.com/224/
- mrighele 8y agoI would say that currently interoperability with the rest of the world is better served by a network interface and a standard protocol (HTTP for example)
- jj12345 8y agoI'm just now starting to crack open some Lisp tutorials, coming from the OOP side of the fence, so please excuse the ignorance. For my learning purposes, would you be open to explaining how symbolic expressions would circumvent the need for a file system?
- derefr 8y agoInstead of a file system (a system that consumes a block device and exposes a database mapping a hierarchy of tree-nodes with stringly-keyed names to seekable byte-buffers), picture something like Erlang’s DETS (a system that consumes a seekable byte-buffer and exposes a tuple store, where the tuples are regular in-memory objects that happen to live in an isolated heap which is memory-mapped from the file.) Now consider that anything that consumes a seekable byte-buffer as its backing store could just-as-well be modified to consume a block device as its backing store. Voila: your OS now has “durable memory” in place of a filesystem. (And, in fact, in modern systems you can skip the whole block-device layer and just sit your tuple store directly on top of NVMe.)
- nerdponx 8y agoconsumes a block device and database mapping a hierarchy of tree-nodes with stringly-keyed names to seekable byte-buffers Sounds pretty much like a filesystem to me. Isn't this basically what Linux already does?
- idle_zealot 8y agoOP is describing a file system in the text you quoted. So I should hope that it sounds like what Linux does now.
- skissane 8y agoI've often wondered, instead of a filesystem, why not a database? A filesystem is effectively a hierarchical model database with a very limited feature set (usually no transactions, minimal or no schema enforcement, very limited query language.) Why not add some of those features? Filesystem transactions: Windows supports them, but Microsoft has deprecated them; part of the reason, I think, is transactions required use of a different API to access files, which meant almost nobody used them; if they had been accessible through the same filesystem API as non-transactional operations, they might have seen more adoption. Schema enforcement: I could create a directory called "images", and then specify that all files in images have to be of MIME type image/*, and the FS will refuse to let me put a text file or executable in there. I could have a directory called "logs", and require all file names in that directory to have names containing a valid date/timestamp. I could enforce the rule that a .json file has to contain well-formed JSON, or a .xml file must contain well-formed XML. Querying: filesystem could support SQL queries over file extended attributes. (It doesn't have to be SQL, SQL syntax is pretty ugly.) "Find all files of MIME type image/png which are greater than 100KB in size?" "How many executable files are there? How much space do they consume?"
- cmrdporcupine 8y agoYou need some kind of global (or not-so global) persistent namespace. And ability to interoperate with the outside world. It's not a bad idea to have a separate API for managing persistent state vs ephemeral state -- or at least that's not a bad convention we've developed over the years in order to allow for some sanity in state management. Persistent image-based systems like Smalltalk tend in my experience to degrade to a confusing mess and become difficult to reason about over time unless you end up introducing concepts that start looking suspiciously like files.
- gcb0 8y agoyou can abstract as much as you want, but at some point you will have to interact with a disk. heck most http proxies abuse the "file" concept in linux kernel as a way to get memory cache of disk data for free. see https://varnish-cache.org/trac/wiki/ArchitectNotes https://varnish-cache.org/trac/wiki/ArchitectNotes
- a7776f88862 8y agoHow do you organize the s-expressions? Interlisp offered what you describe: structured storage, with "in-place" structured editing, for code and data. The unit of organization was still the file; you just had structured files (which BTW was the norm in most operating systems other than Unix). A hierarchical file system is a tree anyway (add symbolic links, and you have a graph). A lot of data storage layouts use it exactly as a data structure. Maildir is an example.
- taeric 8y agoBecause partially structured data is essentially unstructured data. So, you ultimately need a way to store unstructured data.
- deleted 8y ago[deleted]
- pjmlp 8y ago> C 88.8% Common Lisp 6.4% C++ 3.1% Assembly 0.7% I would expect a bit more Lisp in an OS that is supposed to be inspired by Lisp Machines.
- agumonkey 8y ago95% of C code is comment teasing Greenspun
- DonHopkins 8y agoLisp is just such a powerfully concentrated language that it's doing 85% of the work even though it's just 6.3% of the mass. ;) It's like Dr. Bronner's soap: Dilute! Dilute!
- rudolfwinestock 8y agoPrevious Discussion: https://news.ycombinator.com/item?id=10222934 https://news.ycombinator.com/item?id=10222934
- mntmn 8y agoInterim author here. Surprised to see this reappear. I'm a bit embarrassed by the code quality nowadays, but I still like the concept and as critics here have correctly pointed out, there ought to be a lot less C in it. Back then I was struggling very hard to get the low level details of the machine under control (Pi back then and some experiments with x86 BIOS stuff). It was super fun to have this ham-fisted brutalist JIT actually do something real and to connect to IRC on this mockery of a TCP stack and to make some VC4 GL triangles appear out of a bunch of commandstream arrays. In the meantime I've built an FPGA graphics card for Amiga (VA2000) and an open laptop, the MNT Reform, whose beta units will ship very soon now (TM). A while ago I also worked with some really smart software engineers as a startup CTO for 1.5 years and all of these things together have given me a lot more perspective and depth compared to back then. It will be fun to return to this and clean it up as a demo for Reform.
- dman 8y agoThe fact that you are embarassed is a sure sign that you have grown tremendously as an engineer. Kudos for working on such interesting things.
- wanderfowl 8y agoThis is a stellar comment, I've always found that a person's level of (dis)comfort with their past work is a great judge of how willing they are to learn and improve.
- dkersten 8y ago> I've built an FPGA graphics card for Amiga (VA2000) That sounds pretty interesting! Every so often I think about the things I don’t enjoy when using computers and how I’d solve it (I’ve played around with hobbyist kernel/is development on occasion too, including contributing to Daeken’s RenrakuOS ten years ago..) but my motivation always drains when I think about how it would never be realistic to get hardware accelerated graphics working. Just the other day I was thinking that maybe my best bet is a minimal Linux system that boots into a full screen OpenGL application that basically pretends to be my OS. I even thought about doing it on a RPi3 since I have a few of them sitting around and it seems like a nice self-contained, expandable and cheap hardware platform to build on. Your projects sound like some of the things I’ve dreamed about but never actually did. :)
- nanomonkey 8y agoThe documentation specifies the Raspberry Pi 2. Are there problems getting this to load on other version? I have a RPi 1 and a 3.
- DonHopkins 8y agoReminds me of this legendary but true story about Lisp Machine hacking I posted a few years ago: https://news.ycombinator.com/item?id=7879364 https://news.ycombinator.com/item?id=7879364 Precisely! When Lisp Machine programmer look at a screen dump, they see a lot more going on behind the scenes than meets the eye. I'll attempt to explain the deep implications of what the article said about "Everything on the screen is an object, mouse-sensitive and reusable": There's a legendary story about Gyro hacking away on a Lisp Machine, when he accidentally trashed the function cell of an important primitive like AREF (or something like that -- I can't remember the details -- do you, Scott? Or does Devon just make this stuff up? ;), and that totally crashed the operating system. It dumped him into a "cold load stream" where he could poke around at the memory image, so he clamored around the display list, a graph of live objects (currently in suspended animation) behind the windows on the screen, and found an instance where the original value of the function pointer had been printed out in hex (which of course was a numeric object that let you click up a menu to change its presentation, etc). He grabbed the value of the function pointer out of that numeric object, poked it back into the function cell where it belonged, pressed the "Please proceed, Governor" button, and was immediately back up and running where he left off before the crash, like nothing had ever happened! Here's another example of someone pulling themselves back up by their bootstraps without actually cold rebooting, thanks to the real time help of the networked Lisp Machine user community: ftp://ftp.ai.sri.com/pub/mailing-lists/slug/900531/msg00339.html Also eudox posted this link: Related: A huge collections of images showing Symbolics UI and the software written for it: http://lispm.de/symbolics-ui-examples/symbolics-ui-examples.html http://lispm.de/symbolics-ui-examples/symbolics-ui-examples....
- DonHopkins 8y agoDevon had a great (but dated) idea for a company called "Rent-A-RAM" that had vans full of RAM which would drive around late at night, plugging into Lisp machines while their programmers were sleeping, paging in all their memory, garbage collecting, and paging it back to disk.
- equalunique 8y agoOn the topic of the Symbolics machines, there is a group-buy running until October 26 for Cherry-compatible keycaps inspired by the look and feel of the Space Cadet keyboard for the Symbolics Lisp Machine. A Novelty keycaps set even includes "LMI" and "Symbolics" logo keycaps: https://kono.store/collections/all-products-list/products/sa-symbiosis-keycaps?variant=12358483771492 https://kono.store/collections/all-products-list/products/sa...