Oh that's a solved problem since 1969. It's called "unix". Everything is a file which can be processed as a byte stream. Composition is a breeze- can't be any more general than that!
(I kid, mostly :)).
(I kid, mostly :)).
- LISP: everything is a lambda.
- Tandem: everything is a database.
- QNX: everything is a message.
- IBM System/38: everything is a capability.
The Right Thing, as any Lisp programmer can tell you, is lambda.