Boost logo

Boost :

Subject: Re: [boost] Is there any interest in a library for actor programming?
From: Dominik Charousset (dominik.charousset_at_[hidden])
Date: 2013-06-24 07:34:53


On Jun 23, 2013, at 11:26 AM, Bjorn Reese <breese_at_[hidden]> wrote:
> The documentation on atoms states that
>
> "Atoms are mapped to integer values at compile time in libcppa. This
> mapping is guaranteed to be collision-free and invertible, but limits
> atom literals to ten characters and prohibits special characters."
>
> Just wondering, is this some kind of base-64 encoding?

Actually, it is just a simple 6-bit encoding using a lookup table [1]. In this way, the mapping is guaranteed to be collision free and invertible.

[1] https://github.com/Neverlord/libcppa/blob/master/cppa/detail/atom_val.hpp


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk