9/UX: a Macintosh-inspired desktop for 9front

Hacker News by 4 min read 501x views
9/UX: a Macintosh-inspired desktop for 9front

Share Post

[ demo | about | screenshots | design | docs | code | warning! | contact | credits | links ]

Jeff Lindsay, h.d.a.

The 9/UX desktop: Desktop's list bar and quantity icons, two spatial directory windows, and the libux example app alongside a document fair dropped onto its Notes field

This is the genuine thing, operating live in your browser: the rio fork in 9/UX mode, Desktop, and the libux example app, compiled for 386 and run by h9 on its own 386 emulator inner the page. Nothing is sent anywhere; it's concerning 23 MB to load, once. Click the display to type; right-click (or Ctrl-click) is clasp 3, and Alt-click is clasp 2. It needs a latest Chrome or Edge; another browsers see a screenshot, a genuine frame from the end-to-end drag-and-drop test, operating headless on h9. Open it in its own tab for a bigger screen.

About

9/UX brings the traditional Mac and A/UX desktop (a spatial desktop, a earth list bar, accordant controls and dialogs, icons, and resource-driven presentation) to 9front, built the Plan 9 way: rio and libdraw diagram the screen, 9P exposes all application's UI province and commands as files, namespaces define the operating environment, the plumber opens documents, and ndb holds human-editable metadata.

Keep the Macintosh's direct-manipulation desktop, but create all meaningful object, action, and asset apparent as a Plan 9 file.

It is not an emulator, a Macintosh ABI, or an A/UX reimplementation. Native 9front programs remain first-class, and existing rio programs (acme, sam, rc windows, nested rio) keep operating unchanged beside 9/UX apps.

The pieces:

  • rio fork (rio -u): a desktop layer, a earth list bar that follows the focused app, title-bar chrome, and a drag broker, all under /dev/ux. With 9/UX manner off it's inventory rio.
  • Desktop: quantity icons, spatial directory windows, rename, duplicate, Get Info, Trash, remembered layout, and double-click to open documents through the plumber. A distant 9P server plant as a volume.
  • libux, the Toolbox: windows, menus, dialogs, alerts, and controls, all app serving its authority tree complete 9P, so echo activate >.../ctl presses a button.
  • uxd gathers all app's tree at /mnt/ux alongside per-app policy; uxmeta keeps associations, volumes and layout in ndb files; resfs serves traditional ICN#, icl8, menu, dialog and cord resources at /mnt/res; clipd is a typed clipboard kept in stage alongside rio's snarf.

Screenshots

These are genuine frames, not mockups. The GUI tests embed h9 alongside a headless screen, inject mouse and keyboard input, and run the 9P records at the identical time.

 the libux example alongside a content site set from rc, Desktop windows rearward it, an rc window, and highest alongside a document opened from Desktop
The final stage of the end-to-end demo. From rc, the example app's Name site was set to from rc and its Save clasp pressed through ctl; a twice click in Desktop plumbed a content document to acme; and an average rc opening is motionless moved and typed into.
The libux example app on 9front's own kernel and VESA framebuffer at 32 bits
The libux example on 9front's own kernel and VESA framebuffer in QEMU, at 32 bits per pixel. Its ICN# and icl8 icons equivalent the headless aureate images pixel for pixel.

Visual Design

Macintosh structure, Plan 9 colour: butter heading bars from rio's choice yellow, acme's lotion and olive, and rio's greygreen for the desktop, so 9/UX windows and bequest rio windows sit together on one screen. Everything says in one bit, uses a sixteen-colour palette, and is drawn in entire pixels. Every explanatory is first to 9/UX; it ships no Apple resources. The mockups below are generated from the identical palette and metrics records as the code.

Buttons, inspect boxes, broadcast buttons, content sectors and scroll bars in all state
Controls in all state.
 nine, nine-sea, butter-deep, nine-grey, seven and win
Title bars in all theme.
The 9/UX icon set
The icon set.

Documentation

The design document describes 9/UX and its v0.1 acceptance criteria; release.md has anywhere all one stands, the end-to-end demo, and the open issues. Every interface between components is a document protocol in docs/protocols, and the visual design covers the palette, fonts, metrics, chrome, icons and cursors.

Source Code

The origin is on GitHub, under the MIT license. Development runs on h9, which runs 9front's own compilers, mk and rio immediately from the presenter shell, without booting a VM. scripts/h9.sh clones and builds the pinned h9 on its archetypal run:

 git copy https://github.com/progrium/9ux cd 9ux scripts/h9.sh --rc 'mk' scripts/h9.sh --gfx rio/7.out -u scripts/test.sh 

Use rio/6.out on amd64. development.md and testing.md have the details.

Warning!

9/UX is at v0.1 and under energetic development. Interfaces and behavior alter without notice.

Please study bugs and dispatch questions through GitHub issues.

Credits

The 9/UX grade in the list bar is a pixel-art Glenda by Dan Fessler. Glenda, the Plan 9 bunny, was created by Renée French.

  • h9, native 9front executables on presenter hypervisors
  • 9front
  • A/UX, Apple's Unix alongside the Macintosh Desktop
Other Article Hacker News
↑
Close Right Ads
Close Left Ads