6 ms·
Not sure how "unique" this model is; for example Claris Works was built out of an even more powerful block model (they called them frames) back in the late 1980
by gumby 6y ago
Not sure how "unique" this model is; for example Claris Works was built out of an even more powerful block model (they called them frames) back in the late 1980s:
> We came up with a frame-based approach. Most of the functionality particular to the various application types was packaged up into "frames": word processing frames, graphics frames, etc. These frames were then used as building blocks to make documents of the appropriate types, in a unified programming framework. E.g., a word processing document was essentially a bunch of text frames, one per page, linked together. (Doing this neatly was a big challenge - many subsequent efforts at building a component-based architecture (e.g. OpenDoc) have failed to take into account the top-level user interface requirements.) The result was that not only was most of the code shared across the document types, but the application was also truly integrated - the frames could be embedded in each other. E.g., you could plop a spreadsheet frame right into your word processing document. Text objects in a graphics document had a full-featured word processing engine behind them. The database form editor used the built-in graphics environment. Etc.
> One related cool thing we had was a "shared graphical context" mechanism: sometimes, stuff would wind up being displayed in multiple frames at once. E.g., maybe you're dragging an object across a page break in a document with multiple pages (like this). We developed a general architecture for displaying actions live in multiple contexts. Of course, a lot of this kind of stuff is old hat today, but it was new and exciting in 1989. Some creative programming was required to do these things efficiently on the hardware of the time.
> There were some cool features that didn't make it into the shipping product. For example, originally spreadsheet formulas were much more powerful: you could relate, e.g., graphical object positions and document properties to spreadsheet cells. So you could have the result of a calculation move objects around graphically, or vice-versa. (Further work in this direction led to a novel constraint-based programming paradigm called MOOSE, which I may resurrect some day...)
(From http://groups.csail.mit.edu/mac/users/bob/clarisworks.php#onourown http://groups.csail.mit.edu/mac/users/bob/clarisworks.php#on... )
I've been kicking around the idea of writing a CRDT-based editor using this model.
- jitl 6y agoI think it makes us unique among the popular editors of today, but we're very aware that the block model isn't original. Execution matters much more than innovation.
- sbazerque 6y ago> I've been kicking around the idea of writing a CRDT-based editor using this model. I got around to creating a data layer (p2p, browser-based, CRDT-backed) for something like this: https://github.com/hyperhyperspace/hyperhyperspace-core https://github.com/hyperhyperspace/hyperhyperspace-core I'd be interested in collaborating on your editor
- FractalHQ 6y agoExcited to check this out!! I’ve got experience with this stuff, count me in! Check out svelt-yjs[0]. It makes complex CRDT apps trivial. Websockets or P2P WebRTC in a few lines. I’ve got a live collab Svelte REPL using Monaco almost complete. It uses Postgres via Supabase for auth / row level security / saving and sharing Apps you make. Heck, plug yjs into this Svelte based notion style block editor[1] and you’re more than halfway done in an evening. [0] https://github.com/relm-us/svelt-yjs https://github.com/relm-us/svelt-yjs [1] https://github.com/djyde/plastic-editor https://github.com/djyde/plastic-editor
- deleted 6y ago[deleted]
- sbazerque 6y agoThat's cool!
- gumby 6y agoThis looks quite interesting.
- isaacimagine 6y agoI've also been toying with this idea for a while (p2p, CRDT backed, wasm-based)! It's a great concept, and I'd be interested in collaborating as well. One thing I've been working on is rich structural editors for the scripting language used to build these local-first applications. So the environment becomes something like squeak or a lisp machine, where all application data is automatically synchronized over the network.
- agd 6y agoYes, enjoyed the article, but in case others are unaware, there are several other popular block style editors today which use the same data model. E.g. https://slite.com/ https://slite.com/, https://editorjs.io/ https://editorjs.io/ (open source), and https://www.slatejs.org/ https://www.slatejs.org/ (open source).
- bakul 6y agoDidn’t Marvin Minsky come up with frames by 1974? Or are Clarisworks frames different?
- gumby 6y agoThese are not that kind of structure. The term "frame" is used in lots of contexts, e.g. these days in pandas' data frame. By coincidence (with your question) Marvin later became Bob's PhD advisor. And at the time Claris works was being written I was working on a frame system with Marvin.
- LAC-Tech 6y ago> I've been kicking around the idea of writing a CRDT-based editor using this model. Have you investigated OT at all? I'm not sure CRDTs are a great fit for complicated datatypes like an editor, and their strong convergence properties don't get you much in something as free form as text.