Erlang序列化库 [英] Erlang serialization library
问题描述
我已经尝试过erlang_protobuffs,但是它的测试失败。我不需要公开方法或这样的任何东西,我只需要编码/解码消息。
还有什么值得尝试的吗?
正如@Alexey Romanov所说,尝试 term_to_binary
和 binary_to_term
。如果您在Erlang节点之间进行通话,您甚至不需要这样做,因为Erlang运行时可以透明地执行此操作。
还有(un)以其他语言序列化这些值。这个关键字是BERT(二进制erlang条款)。主页包含图书馆的一些链接: http://bert-rpc.org/
Does anybody know good and production ready serialization library for Erlang?
I have tried erlang_protobuffs - but it fails on its tests. I don't need to expose methods or anything like this, all I need is to encode/decode messages.
Is there anything else worth trying?
As @Alexey Romanov said, try term_to_binary
and binary_to_term
. If you are talking between Erlang nodes, you don't even need this, because the Erlang runtime can do this for you transparently.
There are also libraries for (un)serializing these values in other languages. The keyword for this is BERT (binary erlang terms). The homepage contains some links to libraries: http://bert-rpc.org/
这篇关于Erlang序列化库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!