[erlang-questions] Erlang Cost Model
Wed Sep 16 20:37:41 CEST 2015
What Joe writes is of course true, but Python programs are generally run on
general purpose multitasking operating systems too, so they too have the
problem of concurrency, getting their cache forcibly invalidated, etc.,
etc., it's just that they generally can't do it to themselves.
I think it would be awesome for someone to build a site/document that
helped (semi-)formally solidify intuitions for people coming to Erlang,
because most of the intuitions earned in other languages are not applicable
either due to immutability (e.g. "changing" element N of a list), language
design (e.g. math on arbitrarilybignums), or semi-opaque foreignness (e.g.
ets bag perf characteristics vs. set vs. OTP state vs. process dictionary).
On Wed, Sep 16, 2015 at 9:56 AM, Joe Armstrong <> wrote:
> On Wed, Sep 16, 2015 at 5:03 PM, Eric des Courtis
> <> wrote:
> > What is the cost model of all operations in Erlang 18?
> > For example Python has this cost model
> > .
> > I either want a link to a single source for this information or I would
> > to crowd source the information here now.
> Interesting question - the problem with Erlang is that you cannot
> ignore concurrency - so even if you know the costs of an atomic
> operation in an isolated process I suspect this is not going to tell you
> the cost when a few tens of thousands of processes perform that
> In a singly threaded language (like Python) I guess you could add costs
> of atomic things together - but in Erlang it's more tricky.
> I'd love to be able to reason like this:
> If process P1 takes time T1 and process P2 takes time T2
> then it might take time max(T1, T2) on a dual core and about
> T1+T2 on a single core.
> But as soon as you start measuring these kind of things the
> of the data becomes very difficult.
> Not much help I'm afraid
> > Thanks for your cooperation.
> > Eric des Courtis
> > _______________________________________________
> > erlang-questions mailing list
> > http://erlang.org/mailman/listinfo/erlang-questions
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions