pd_computer.md 1.5 KB

PD Computer Ideas

Programming Language

comun

CPU

TODO

OS

TODO

Programs

Comun Shell

  • global stack modified by scripts that are run and commands in the shell?
  • global "program" to which we append commands?

Text Editor

  • name: fe? (file editor), fed?
  • will be both text editor AND hex editor (will be able to switch between text and hex view)
  • similar to vim but simpler
  • will work without color, non-ASCII symbols and animations (all can be optional)
  • cursor: ^ under the char? < after it? |?
  • tabs? splits?
  • should cursor always be in the middle of the screen? would be KISS
  • modes (switched with escape?):
    • typing:
    • command: typing simple commands (think about syntax), possibilities:
    • w filename (write/save)
    • f what (find, allowing "almost regex" search)
    • u (undo)
    • r (redo)
    • s what what (substitute, some kinda "almost regex")
    • o (open)
    • c (copy)
    • p (paste)
    • x (cut)
    • n (new)
    • q (quit)
    • m (mode, switch between text and hex view)



1   my document title,
2   some text some text some text some
3   more text, some text, texttext text
4   mooore text.  ^
5
6
7
8
9
10
command line here

Formats

Each file will begin with magic number:

  • < 128: text file
  • 234: "our" file format, next byte says the type:
    • highest 3 bits have this meaning:
    • 000: document
    • 001: image
    • 010: audio
    • 011: video
    • 100: archive
    • 101: ?
    • 110: ?
    • 111: other
    • specific values:
    • TODO
  • else: unknown