Erlang Versus Python

Luke Gorrie <>
Wed Mar 1 14:03:02 CET 2000


Samuel Tardieu <> writes:

> There is no much difference between Python and Erlang, sockets are
> accessed via a library, with a quite similar interface.
> 
> Python:
> 
>    s = socket (AF_INET, SOCK_STREAM)
>    s.connect (("remotemachine", remorteport))
>    s.send ("I am sending over the socket\n")
> 
> Erlang:
> 
>   {ok, S} = gen_tcp:connect ("remotemachine", remoteport, [])
>   gen_tcp:send (S, "I am sending over the socket\n")

But remember that Erlang also has rather transparent distribution
using message passing. Maybe it says something about how nicely
integrated that feature is, since it's not what you thought of when
someone mentioned networking :-)

Cheers,
Luke




More information about the erlang-questions mailing list