Join Nostr
2026-11-07 04:00:55 UTC

Ethan Black :foundation:‌:starting_dvd: :mightyt2: on Nostr: As part of :foundation: #FoundationOS -- The way Foundation's model is ...

As part of :foundation: #FoundationOS --

The way Foundation's model is object-oriented, the system is designed data-first rather than application-first. What I mean is the system is supposed to feel like you never open a file and instead just navigate to it and look at it, rather than opening the file with an app.

One of the problems my design has had for a while due to this is that there wasn't a good way to represent tools, e.g. a calculator or a bold text button. You could (say) divide two numbers by doing something like:

1. Right click → New → Math → Quotient
2. Right click numerator → New → Math → Number
3. Type in the number you want
4. Repeat 2 & 3 for the denominator
5. Invoke the value cmd on the Quotient (still not sure what that's like in the GUI)

But obviously that's too tedious and limited.

One way I'm thinking of addressing the calculator issue is to simply build a calculator out of individual items, for the keypad and the display, and then have a Program item for the calculator's logic. Kind of like a webpage with buttons and JS.

That works, but what about tools like the bold button? There was no concept of a "tool" in the system to do things like that, but I have an idea now:

New standard Itemsys (the OS's obcap model :itemsys: ) Item Class: Tool. It has a Cmd [an object method] which takes a list of items, which it operates on. In Foundation, you'd select something, then click the Tool to invoke the Tool on the selected item(s).

For example, the GUI for Text items could have a bold text tool which applies some "bold" Attrib to each item in the list. But actually, apply the Attrib to the list itself, since child items inherit parent Attribs (compare Unix envvars), rather than enumerating over the children of the list and applying the Attrib to each.

The Text driver (the process implementing the Text item) would have created the list as a VI (Virtual Item -- an item reference to a new, unique item, backed by the driver that created it). The VI would contain characters (virtually; merely referring to characters in the Text item). When the bold Tool sets this "bold" Attrib on the list, the Text driver would apply it to the selected text (in the way that particular Text item's Format expects -- would be e.g. <b>old tags for HTML text, if I make a Text driver for an HTML Format).

One of the really neat things with this is that you could in theory drag-and-drop the bold Tool out of the Text item and into something else, with it still working. That's going to be one of the most curious thing about this OS: the ability to drag-and-drop anything anywhere. While there wouldn't be many items which are affected by such a "bold" Attrib, there's still potential here. I'm working on network-transparency for this sort of thing, too.

I'm looking forward to getting out of college and getting a job with consistent hours and no homework! It won't be enough time to work on Foundation as much as I want to, but I'll be able to plug away at it.

#FoundationProject #softwareEngineering #OSDev #objectCapability #devlog