English 中文(简体)
passing events from erlang to Clojure
原标题:

I m looking for a way to pass events back and forth between Clojure and erlang.

  • has someone done this before?
  • how should I encode the (immutable) messages in a flaxable general way?
  • Should IPC be used for this? what sort?
  • where has this gone wrong for you in the past?
最佳回答

You could use jinterface from clojure and be able to act as an Erlang node and send out multiple Pids associated with your node, in the Erlang cluster.

问题回答

You ve got lots of options as long as you use a socket (e.g. TCP/IP).

  • Have you considered JSON?
  • XML?

I can t say I ve done Clojure <--> Erlang bridges before but "talking" to Erlang in JSON/XML is sufficiently painless.

Of course you can use the erl_interface (binary exchange protocol) but then you ll need (probably unless there is a lib for this) to craft a marshaller for this in Clojure.





相关问题
posix_ipc python package equivalent for Windows?

Inter process communication primitives (Semaphores, Shared Memory) in python on windows? posix_ipc works great on linux, anything similar for windows?

passing events from erlang to Clojure

I m looking for a way to pass events back and forth between Clojure and erlang. has someone done this before? how should I encode the (immutable) messages in a flaxable general way? Should IPC be ...

Sockets vs named pipes for local IPC on Windows?

Are there any reasons for favoring named pipes over sockets for local IPC (both using win-api), effectiveness-wize, resource-wize or otherwise, since both behave very much alike (and likely to be ...

transparent process creation for cocoa components

I have an application A which may or may not need to spawn an application B and will communicate with it using remote messaging (via NSConnections etc.). While i know how to do this if B is started ...

Linux Pipes as Input and Output

I would like to do the following inside a C program on a Linux os: Create a PIPE using a syscall (or 2) Execute a new process using exec() Connect the process s STDIN to to the previously created ...

Shared memory vs. Go channel communication

One of Go s slogans is Do not communicate by sharing memory; instead, share memory by communicating. I am wondering whether Go allows two different Go-compiled binaries running on the same machine to ...

IPC between Python and C#

I want to pass data between a Python and a C# application in Windows (I want the channel to be bi-directional) In fact I wanna pass a struct containing data about a network packet that I ve captured ...

热门标签