Erlang序列化库 [英] Erlang serialization library

查看:248
本文介绍了Erlang序列化库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道Erlang的好的生产序列化库?



我已经尝试过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屋!

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