top | item 47202952

(no title)

mindcrime | 2 days ago

As in literally today? I spent some time exploring how to programmatically interact with Docker containers using the docker-java library. Specifically I was playing around with the scenario where a container hosts a program that just listens on stdin, processes the input, and writes to stdout, and another process uses the "docker attach" mechanism to connect to that other container to send/receive messages.

Will I ever use this mechanism for anything, especially compared to the alternatives of using some sort of socket based approach? Possibly not, but I just wanted to play around with it.

Going back a day or two, I've been playing around with SCXML[1] and the Commons SCXML[2] library. It's pretty neat stuff for doing state-machines. Now I want to explore if I can use the underlying state machine machinery in Commons SCXML, without necessarily using an XML file to define the state-machine.

Also spent some time researching other Java based open source libraries for working with state machines. There are a few, but most of them don't seem to be very well supported, which is a hair disappointing.

[1]: https://www.w3.org/TR/scxml/

[2]: https://commons.apache.org/proper/commons-scxml/

discuss

order

No comments yet.