Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
A visual tour of Erlang
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Matthew Evans  
View profile  
 More options Jun 2 2012, 1:24 pm
From: Matthew Evans <mattevans...@hotmail.com>
Date: Sat, 2 Jun 2012 13:24:50 -0400
Local: Sat, Jun 2 2012 1:24 pm
Subject: [erlang-questions] A visual tour of Erlang

Sorry if this is a repost. This was posted on Reddit. Although it probably doesn't have any "real" uses (yet) I think it's a very nice way to model an Erlang VM and your applications.
It got praise from our Java developers when I ran it on our Erlang application at work.
Cudos to Kresten Krab for writing this application.
https://www.youtube.com/watch?v=lHoWfeNuAN8
https://github.com/krestenkrab/erlubi

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lukas Larsson  
View profile  
 More options Jun 2 2012, 3:20 pm
From: Lukas Larsson <lu...@erlang-solutions.com>
Date: Sat, 2 Jun 2012 21:20:53 +0200
Local: Sat, Jun 2 2012 3:20 pm
Subject: Re: [erlang-questions] A visual tour of Erlang
If you find that useful you might want to checkout
https://github.com/psyeugenic/fgraph as well.

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Björn-Egil Dahlberg  
View profile  
 More options Jun 2 2012, 5:00 pm
From: Björn-Egil Dahlberg <wallentin.dahlb...@gmail.com>
Date: Sat, 2 Jun 2012 23:00:27 +0200
Local: Sat, Jun 2 2012 5:00 pm
Subject: Re: [erlang-questions] A visual tour of Erlang

2012/6/2 Lukas Larsson <lu...@erlang-solutions.com>

> If you find that useful you might want to checkout
> https://github.com/psyeugenic/fgraph as well.

After that reminder I felt I had to write a README.

*commit, push*

There, I fixed it.

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anoop Thomas Mathew  
View profile  
 More options Jun 3 2012, 12:41 am
From: Anoop Thomas Mathew <atm...@gmail.com>
Date: Sun, 3 Jun 2012 10:11:42 +0530
Local: Sun, Jun 3 2012 12:41 am
Subject: Re: [erlang-questions] A visual tour of Erlang

Hi All,

That was a cool video demonstration of erlang processes. Nice work. Kudos
to Kresten Krab.
It aroused a question in me that, isn't erlang creating way too many
processes, and why is that so?
If someone can spread some light into this topic, and give a
comprehensive explanation about HOW and WHY, that would be great.

Thanks,
Anoop Thomas Mathew

atm
___
Life is short, Live it hard.

On 3 June 2012 02:30, Björn-Egil Dahlberg <wallentin.dahlb...@gmail.com>wrote:

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Torben Hoffmann  
View profile  
 More options Jun 3 2012, 1:39 am
From: Torben Hoffmann <torben.leh...@gmail.com>
Date: Sun, 3 Jun 2012 07:39:58 +0200
Local: Sun, Jun 3 2012 1:39 am
Subject: Re: [erlang-questions] A visual tour of Erlang

Hi Anoop,

Erlang has its own VM, so all those processes are very lightweight compared to OS processes.

The basic unit of computation in Erlang is a process with its own memory space and you can only communicate with a process by sending it a message.  

This set-up is necessary if you want to build a fault tolerant system - the last ingredience is the ability to link and monitor processes. Two linked processes will die if either of them dies. A monitor will be notified if the process it monitors die.

These simple mechanisms is what allows Erlang to work so well.

Hope this clarifies things a bit for you.

Cheers,
Torben

Sent from my iPhone

On 03/06/2012, at 06.41, Anoop Thomas Mathew <atm...@gmail.com> wrote:

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ulf Wiger  
View profile  
 More options Jun 3 2012, 5:11 am
From: Ulf Wiger <u...@feuerlabs.com>
Date: Sun, 3 Jun 2012 11:11:55 +0200
Local: Sun, Jun 3 2012 5:11 am
Subject: Re: [erlang-questions] A visual tour of Erlang

On 3 Jun 2012, at 06:41, Anoop Thomas Mathew wrote:

> It aroused a question in me that, isn't erlang creating way too many processes, and why is that so?

There is such a thing as too many processes - and too few.

The key thing about a process is that it is a single thread of control.

If you try to handle multiple, interdependent and interleaving tasks
in one single thread of control, bad things tend to happen, just as
it tends to do when one human being tries to handle too many things
at the same time.

But many threads of control need managing/coordination. Just as
human organizations become unwieldy when there are more people
than the problem calls for, too many processes in a concurrency-
oriented program tends to become a problem in itself.

The trick, then, is to figure out how many processes the problem calls
for, and to use that many - no more, no less.

Drawing inspiration from how people solve coordination problems,
including how people deal with uncertainty and inconsistencies,
can be a great help when programming Erlang.

BR,
Ulf W

Ulf Wiger, Co-founder & Developer Advocate, Feuerlabs Inc.
http://feuerlabs.com

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ivan Uemlianin  
View profile  
 More options Jun 3 2012, 6:17 am
From: Ivan Uemlianin <i...@llaisdy.com>
Date: Sun, 3 Jun 2012 11:17:36 +0100
Local: Sun, Jun 3 2012 6:17 am
Subject: Re: [erlang-questions] A visual tour of Erlang
On 3 Jun 2012, at 10:11, Ulf Wiger <u...@feuerlabs.com> wrote:

> Drawing inspiration from how people solve coordination problems,
> including how people deal with uncertainty and inconsistencies,
> can be a great help when programming Erlang.

Very good suggestion.

What do they know of Erlang, who only Erlang know? (with apologies to Kipling)

Ivan
_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Emilio De Camargo Francesquini  
View profile  
 More options Jun 5 2012, 8:25 am
From: Emilio De Camargo Francesquini <francesqu...@gmail.com>
Date: Tue, 5 Jun 2012 14:25:10 +0200
Local: Tues, Jun 5 2012 8:25 am
Subject: Re: [erlang-questions] A visual tour of Erlang
Hello,

About a month ago I wrote something similar to be able to "see", not
the links/monitors/genealogy of the Erlang processes, but rater the
communication graph between them. For this particular example the
internal graph of communication of CouchDB.

If there is interest I can upload the code to Github...

This video shows the processes communication graph for CouchDB running
in a machine with 24-cores. CouchDB was exercised using YCSB and the
video was generated using Ubigraph. I've posted the video here:

http://www.youtube.com/watch?v=2MO6Uv7KZ7g

Regards,

Emilio

2012/6/3 Ivan Uemlianin <i...@llaisdy.com>:

> On 3 Jun 2012, at 10:11, Ulf Wiger <u...@feuerlabs.com> wrote:

>> Drawing inspiration from how people solve coordination problems,
>> including how people deal with uncertainty and inconsistencies,
>> can be a great help when programming Erlang.

> Very good suggestion.

> What do they know of Erlang, who only Erlang know? (with apologies to Kipling)

> Ivan
> _______________________________________________
> erlang-questions mailing list
> erlang-questi...@erlang.org
> http://erlang.org/mailman/listinfo/erlang-questions

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adrian Roe  
View profile  
 More options Jun 5 2012, 9:04 am
From: Adrian Roe <roe.adr...@gmail.com>
Date: Tue, 5 Jun 2012 14:04:34 +0100
Local: Tues, Jun 5 2012 9:04 am
Subject: Re: [erlang-questions] A visual tour of Erlang
Awesome video. I'd definitely be interested in the code behind it.

Adrian

Sent from my iPhone

On 5 Jun 2012, at 13:25, Emilio De Camargo Francesquini <francesqu...@gmail.com> wrote:

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zabrane Mickael  
View profile  
 More options Jun 5 2012, 9:11 am
From: Zabrane Mickael <zabra...@gmail.com>
Date: Tue, 5 Jun 2012 15:11:54 +0200
Local: Tues, Jun 5 2012 9:11 am
Subject: Re: [erlang-questions] A visual tour of Erlang

Hi Emilio,

For sure there is an interest.

On Jun 5, 2012, at 2:25 PM, Emilio De Camargo Francesquini wrote:

Well done.

Regards,
Zabrane

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard O'Keefe  
View profile  
 More options Jun 5 2012, 7:03 pm
From: "Richard O'Keefe" <o...@cs.otago.ac.nz>
Date: Wed, 6 Jun 2012 11:03:31 +1200
Local: Tues, Jun 5 2012 7:03 pm
Subject: Re: [erlang-questions] A visual tour of Erlang

On 6/06/2012, at 12:25 AM, Emilio De Camargo Francesquini wrote:

> This video shows the processes communication graph for CouchDB running
> in a machine with 24-cores. CouchDB was exercised using YCSB and the
> video was generated using Ubigraph. I've posted the video here:

> http://www.youtube.com/watch?v=2MO6Uv7KZ7g

(a) When you say "communication graph" what actually do you mean?
(b) What does it signify in the movie when nodes go shooting away
    from th core and disappear off-screen?

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Emilio De Camargo Francesquini  
View profile  
 More options Jun 6 2012, 5:26 am
From: Emilio De Camargo Francesquini <francesqu...@gmail.com>
Date: Wed, 6 Jun 2012 11:26:33 +0200
Local: Wed, Jun 6 2012 5:26 am
Subject: Re: [erlang-questions] A visual tour of Erlang
Hello Richard,

a) For each message sent inside the VM there is an edge in the graph
representing it. As the number of messages is huge and the processes
that send these messages are being created and destroyed all the time,
the edges "decay" after a few seconds and are removed from the graph.
When a vertex is no longer connected to any other vertex, that is, it
has no connected edges, it is removed from the animation. So in fact
the graph represents the processes and the messages exchanged between
them during the execution of CouchDB. This is what I called
communication graph.

b) The shooting away, as you call it, is just a side-effect of the
algorithm used to draw the graph. It is a force-directed layout, so
when the last edge is disconnected from the vertex it gets "repelled"
from the rest of the vertices, and  as soon as it has no edges
connected to it, it gets removed from the animation. The actual
execution speed is 8X faster than it is shown in the video.

For those interested in the code, I'll try to upload the code
somewhere until the end of this week...

Best Regards

Emilio

2012/6/6 Richard O'Keefe <o...@cs.otago.ac.nz>:

> On 6/06/2012, at 12:25 AM, Emilio De Camargo Francesquini wrote:
>> This video shows the processes communication graph for CouchDB running
>> in a machine with 24-cores. CouchDB was exercised using YCSB and the
>> video was generated using Ubigraph. I've posted the video here:

>> http://www.youtube.com/watch?v=2MO6Uv7KZ7g

> (a) When you say "communication graph" what actually do you mean?
> (b) What does it signify in the movie when nodes go shooting away
>    from th core and disappear off-screen?

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »