How gochan562/poliac works
POLIAC is a browser-based visual programming computer: users create and wire shape-node programs, execute them, and inspect outputs and machine state. The editor is the primary entry point; programs are evaluated through a runtime that owns execution state and coordinates input, graphics, and the virtual disk. Users can also open built-in examples or save and exchange editable .pol programs. The graph includes documented capabilities whose implementation details were not sampled; those relationships are omitted where no caller evidence was available.
Main entry points: runtime.ts Execution Runtime · Machine.tsx Node Editor · evaluator.ts Program Evaluator · apps.ts Example Library
Components 21
Program Authoring
- App Shell
src/app/page.tsx - Node Editor
src/shape-computer/Machine.tsx - Computer View
src/shape-computer/Computer.tsx
Execution Engine
- Runtime Binding
src/shape-computer/useRuntime.tsx - Execution Runtime
src/shape-computer/runtime.ts - Program Evaluator
src/shape-computer/evaluator.ts - Instruction Set
src/shape-computer/isa.ts - Program Model
src/shape-computer/types.ts
Machine I/O
- Virtual Filesystem
src/shape-computer/fs.ts - Framebuffer
src/shape-computer/screen.ts - Input Channels
src/shape-computer/input.ts - Input Capture
src/shape-computer/input-capture.ts - Screen Canvas
src/shape-computer/ScreenCanvas.tsx
Programs and Storage
- POL Serializer
src/shape-computer/scs.ts - Example Library
src/shape-computer/apps.ts - Built-in Programs
public/pol - Local Programs
src/shape-computer/store.ts - Demo Sources
src/shape-computer/demos.ts - Minsky Programs
src/shape-computer/minsky.ts - Pong Program
src/shape-computer/pong.ts
Other components
- Programmer
Connections 23
- Programmer → App Shell: opens
README.md - App Shell → Node Editor: renders
src/app/page.tsx - Node Editor → Runtime Binding: uses runtime
src/shape-computer/Machine.tsx - Computer View → Runtime Binding: observes runtime
src/shape-computer/Computer.tsx - Runtime Binding → Execution Runtime: creates
src/shape-computer/useRuntime.tsx - Execution Runtime → Program Evaluator: evaluates ticks
src/shape-computer/runtime.ts - Program Evaluator → Instruction Set: checks instructions
src/shape-computer/evaluator.ts - Program Evaluator → Virtual Filesystem: evaluates file ops
src/shape-computer/evaluator.ts - Execution Runtime → Virtual Filesystem: commits disk ops
src/shape-computer/fs.ts - Execution Runtime → Framebuffer: rasterizes graphics
src/shape-computer/screen.ts - Execution Runtime → Input Channels: reads channels
src/shape-computer/runtime.ts - Input Capture → Input Channels: updates devices
src/shape-computer/input-capture.ts - Input Capture → Execution Runtime: feeds input
src/shape-computer/input-capture.ts - Computer View → Screen Canvas: renders screen
src/shape-computer/Computer.tsx - Screen Canvas → Framebuffer: reads framebuffer
src/shape-computer/ScreenCanvas.tsx - Node Editor → POL Serializer: encodes programs
src/shape-computer/Machine.tsx - Node Editor → Example Library: opens examples
src/shape-computer/Machine.tsx - Example Library → POL Serializer: decodes programs
src/shape-computer/apps.ts - Example Library → Built-in Programs: fetches files
src/shape-computer/apps.ts - Node Editor → Local Programs: lists saved
src/shape-computer/Machine.tsx - Programmer → Local Programs: saves locally
README.md - Demo Sources → Minsky Programs: compiles examples
src/shape-computer/demos.ts - Demo Sources → Pong Program: includes game
src/shape-computer/demos.ts