A.ANATOLICACONSULTING, LLC

The EFOS Workspace: a virtual desktop.

EFOS is a complete virtual computer, and the Workspace is its desktop. This is a recording of it running on Linux. Nothing here is a mock-up: Paint and Snake are programs written for EFOS, and each runs in a window of its own.

EFOS WorkspaceRecording, 39 seconds

What is the EFOS Workspace?

EFOS is a sandboxed virtual computer: it has its own processor, its own programming tools and its own desktop, all built from scratch. The Workspace is that desktop.

A virtual computer

EFOS has its own processor design (EFVM), its own assembler (EFASM), a console shell and a windowed desktop. Programs written for EFOS run on that virtual processor, not directly on your machine.

A desktop of its own

The Workspace has a sidebar, an Apps view and windows with title bars and close buttons. Each program opens in its own window and draws only inside it.

Sandboxed by design

Every program is given only the permissions it asks for and is approved to have, such as a window or some memory. Anything else is refused, so a program cannot reach beyond its sandbox.

Where it runs today

The Workspace is hosted on Linux. It is developed on Pop!_OS, where it opens as an ordinary window and Linux supplies the screen, keyboard and mouse. Everything inside that window, the desktop, the windows and the programs, belongs to EFOS. The core of EFOS is plain, portable C, so running it on other hosts is a direction, not something it does yet.

4 KiBof memory for each program, about 4,000 characters
1,863machine instructions in Paint, the largest program here
60 frames a secondthe speed Paint and Snake redraw their windows

The recording, screen by screen

Three screens from the same recording: the desktop with its Apps view, then the two programs.

EFOS Workspace
The EFOS Workspace with the Apps view open, listing NED, Paint and Snake

The Workspace and its Apps

A sidebar with Home, Drives, Apps and more, drawn by the native Workspace itself. Programs appear in Apps as tiles: double-click one and it opens in a window of its own, with the standard title bar and minimize and close buttons.

Paint
Paint, with a house, a sun and grass drawn on the page

Paint, in 1,863 instructions

Pencil, brush, spray, eraser, line, rectangle and ellipse, with outline or filled shapes, a 28-colour palette and separate left and right colours. It is deliberately small: there is no fill bucket and no undo. This picture was drawn with the mouse.

Snake
Snake, a green snake chasing a red apple

Snake, steered from the keyboard

Arrow keys steer and Esc quits. The window system paces the game at 60 frames a second, and the whole program fits in 754 instructions.

How a program gets here

Every program in the recording took the same three steps.

1

Write it in efclang

A short, C-like source file. Paint is one file of about 440 lines.

2

Compile to EFVM

The compiler produces bytecode for EFVM, a small virtual machine with a fixed 4 KiB of memory.

3

Run in a window

The Workspace gives the program a window and only the drawing and input it asks for.

Try it yourself

The browser playground runs efclang and EFVM programs, including Paint and Snake, with keyboard and mouse. Nothing to install.