[erlang-questions] erlang bignums implementation

Robert Virding robert.virding@REDACTED
Thu May 12 14:55:03 CEST 2011


One thing to be aware of is that bsr is an arithmetic shift, both for normal integers and bignums.

Robert

----- "Steve Davis" <steven.charles.davis@REDACTED> wrote:

> As far as overhead, this may help:
> 
> http://www.erlang.org/doc/efficiency_guide/advanced.html#id66649
> 
> Caveats? None that I am personally aware of. Others may be able to
> say
> more.
> 
> /s
> 
> On May 12, 5:10 am, Paolo Negri <paolo.ne...@REDACTED> wrote:
> > Dear list
> >
> > I was pleased to find out that the following in erlang just works
> fine
> >
> > Eshell V5.8.3  (abort with ^G)
> > 1> 1 bsl 70.
> > 1180591620717411303424
> >
> > I'm then evaluating to use bitwise operations on bignums (up to 128
> > bits) and I'm asking if anyone can share how internally bignums are
> > represented what's the overhead of using them and if there are any
> > caveats related to their usage.
> >
> > Thanks,
> >
> > Paolo Negri
> > _______________________________________________
> > erlang-questions mailing list
> >
> erlang-questi...@REDACTED://erlang.org/mailman/listinfo/erlang-questions
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list