[erlang-questions] Using linked-in drivers to represent objects outside of Erlang

Raimo Niskanen raimo+erlang-questions@REDACTED
Thu Dec 6 09:40:00 CET 2007

That entirely depends on the number of objects.

Mapping a Port (driver instance) <=> Object is the straightforward way.
Just as Port <=> Socket. But there is a limited number of ports.
A program is supposed to have max a few hundred sockets, there
are OS limits for this. The emulator limits the number of ports,
I do not remember the limit but it is about ten to a hundred

Port <=> Object also gives a nice and clean abstraction for communication
and such.

The footprint of a port instance is also probably about a kilobyte.
If you need more lightweight objects you need to have one port
handle several objects and use object handles.

On Wed, Dec 05, 2007 at 02:03:02PM +0000, Joel Reymont wrote:
> Suppose I want to use a linked-in driver to talk to objects outside of  
> Erlang.
> Am I correct that a driver instance would map to an object instance?
> Would this be efficient enough?
> I don't need to keep a list of objects inside the driver and have my  
> Erlang code refer to them using some sort of a handle, do I?
> 	Thanks, Joel
> --
> http://wagerlabs.com
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions


/ Raimo Niskanen, Erlang/OTP, Ericsson AB

More information about the erlang-questions mailing list