整合erlang和python的最佳方式 [英] best way to integrate erlang and python

查看:130
本文介绍了整合erlang和python的最佳方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我们需要在erlang中调用python函数并调用python中的erlang函数。在这一刻,我们试图将SOAP用作这两种语言之间的中间层,但是我们有很多不兼容的问题。你能建议最好的方式进行整合吗?

解决方案

erlport 所述,您可以请使用 Erlang端口协议 term_to_binary / binary_to_term 功能在Erlang端。在Python端,有一些低级端口驱动程序端口,可以发送和接收来自Erlang的消息和更高级别的协议处理程序协议,这简化了情况当你想从Erlang调用一个Python函数。目前在Erlang方面没有任何辅助接口,但是将来可能会有一些。在示例目录中,您可以找到不同情况的一些示例代码。



请随时与我联系任何ErlPort相关主题。


What's the best way to integrate erlang and python?

We need to call python functions in erlang and call erlang functions in python. At this moment we are trying to use SOAP as a intermediate layer between these two languages, but we have a lot of "not compatible" troubles. Could you advise the best way to perform integration?

解决方案

As already mentioned with erlport you can use Erlang port protocol and term_to_binary/binary_to_term functions on Erlang side. On Python side there are low level port driver Port which can send and receive messages from Erlang and more high level protocol handler Protocol which simplified situation when you want to call a Python function from Erlang. Currently there are no any auxiliary interfaces on Erlang side but it's possible there will be some in the future. In the examples directory you can find some example code for different situations.

And feel free to contact me about any ErlPort related topic.

这篇关于整合erlang和python的最佳方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆