3 ms·
CLI- as opposed to what ? What other option is there that is easier and safer to implement ?
by zython 10y ago
CLI- as opposed to what ? What other option is there that is easier and safer to implement ?
- arpa 10y agopowershell approach comes to mind - you just pass objects.
- pjmlp 10y agoActual libraries.
- SixSigma 10y agoAnd then someone wraps it in a CLI interface. What you need is a kernel that exposes programs as a file system like plan9
- pjmlp 10y agoThat is what the REPL like on Lisp Machines, Interlisp-D, Smalltalk, Mesa/Cedar, Oberon is for.
- deleted 10y ago[deleted]
- RandomOpinion 10y ago>What you need is a kernel that exposes programs as a file system like plan9 Powershell?
- zeveb 10y agoBut if it's a C library then there are memory issues, buffer overflows, undefined behaviour — everything that's bad about C. The right thing IMHO would be to use pipes & stdin/stdout/stderr, but with a well-defined machine interface.
- pjmlp 10y agoAgreed, which is why C should be treated as the "portable macro assembler" it is and just like Assembly, those libraries should be wrapped in higher level languages.
- gpvos 10y agoPassing JSON over stdin and stdout comes to mind.
- msbarnett 10y ago> CLI- as opposed to what ? What other option is there that is easier and safer to implement ? A library, with an exposed pubic API that a compiler will, y'know, refuse to compile against when the expected arguments to a call you depend on are completely changed? Depending on blind CLI calls that silently fail is about the least safe option possible.