JohnEarnest / ok

An open-source interpreter for the K5 programming language.
MIT License
587 stars 72 forks source link

IPC support #54

Open jibanes opened 8 years ago

jibanes commented 8 years ago

oK should implement IPCs, at least synchronously, such as passing an object from an oK instance to another (not necessarily on the same host); this should be possible through Node's basic network IO.

JohnEarnest commented 8 years ago

Specifically the idea here is to extend the CLI repl.js frontend OR create another frontend which provides these capabilities.

Such a facility should try to imitate the way official K interpreters do it (and real interoperability would be very cool), but the constraints of Node may make it necessary to build the system around some kind of callback mechanism. I see this as valuable, but low-priority. If anyone watching the project wants to take ownership, leave a comment.

As a general note, I'd like to avoid drawing in dependencies on third-party libraries- especially anything using native code or OS-specific assumptions. Ideally it should be possible to come up with something useful based on what is provided by the Node standard library.