Erlang Mailing Lists

Author Message

<  Erlang questions mailing list  ~  Erlang documentation

davidws at csmctmto.inter
Posted: Fri Jul 09, 1999 2:18 pm Reply with quote
Guest
Hello,

I am very new to Erlang. I come from the C/C++/Python/Perl world
of Linux and I am new to functional programming as well.

I found the whitepapers on Erlang astounding as well as the ease at which
you can do distributed programming.

However, I have a problem with the tutorial. I think the main reason why
Python was able to catch on was the documentation set was so complete.

My complaint with the Erlang online docs is that they ramp up the
complexity too fast from the trivial examples to the hard ones.
Here is a suggested format:

File IO
All basic file operations, opening closing, seeking ect.
* Examples in C
* Examples that do the same in erlang

String Manipulation:
Starting with simple pattern matching to regualre expressions
* Examples in Perl/Python
* Examples that do the same in erlang

Program control flow:
Looping and testing examples in erlang compared to C

Basic syntax structures:
How to construct a function (I had to hack until I releasized that
I needed a pieriod at the end of the last statement to return a value from
a function)

Extending and Embedding guide:
I think this is what made Python and Perl really popular; wrapping
lagacy code.
Again there should be real world exhaustive examples.

With this out of the way then the introduction of functional programming
and/or logical programming should be introduced.

Then dstributed programming.


Again, I enjoy what I see thus far in Erlang. Thank you for your time
and hard work.

David Schere







Post generated using Mail2Forum (http://m2f.sourceforge.net)
tobbe at serc.rmit.edu.au
Posted: Fri Jul 09, 1999 2:41 pm Reply with quote
Guest
Hi !

> However, I have a problem with the tutorial. I think the main reason why
> My complaint with the Erlang online docs is that they ramp up the
> complexity too fast from the trivial examples to the hard ones.

Heve you only been reading the tutorial ?

If so, I recommend you to also look at:

1. The Erlang course documentation (http://www.erlang.org/course/course.html)
2. The Erlang book (http://www.erlang.org/download/erlang_book_toc.html)
3. The man-pages (http://www.erlang.org/doc/doc/index.html)

Cheers /Tobbe













Post generated using Mail2Forum (http://m2f.sourceforge.net)
lyn at healthquiz.com
Posted: Fri Jul 09, 1999 7:39 pm Reply with quote
Guest
comparing simple C programs with erlang -- I think that's a good idea.
here's my shot at your example (but I'm pretty new to erlang too!)
anybody else got a more natural solution?

-Lyn

void foo(int x, int y, int z)
{
if (x > y && y < z)
/* do something */
else
{
int i;
for(i = 0; i < z; i++)
/* do somethong else */
}
}


foo(X, Y, Z) when X > Y, Y < Z ->
do_something;

foo(X, Y, Z) ->
foo_iter(X, Y, Z).

foo_iter(X, Y, 0) ->
done;

foo_iter(X, Y, Z) ->
do_something,
foo(X, Y, Z - 1).



Post generated using Mail2Forum (http://m2f.sourceforge.net)
dsolaz at sistelcom.com
Posted: Fri Jul 09, 1999 10:47 pm Reply with quote
Guest
#!/usr/bin/entropy --why-me wrote:
> I am very new to Erlang. I come from the C/C++/Python/Perl world
>of Linux and I am new to functional programming as well.
I think knowing FP makes the difference. Even though I usually code in
procedural/OO languages, I knew Lisp and some ML (that really helps)
before coming to Erlang several weeks ago. So no problem at all with
the language, and no need to compare with others when trying to figure out
how to do something (also, the sources are there for you to take a look,
it's an interesting thing to do).

>I found the whitepapers on Erlang astounding as well as the ease at which
>you can do distributed programming.
The fact that the Erlang libs are so rich (web server, DBMS, CORBA) is
what got my interest. I'm currently looking for the way to make my boss
let me code in Erlang a system made of a DBMS and an HTTP server,
something that will start as a small project but might grow to enormous
proportions (possibly requiring non-stop service and distribution over
several Linux and/or NT boxes).

>However, I have a problem with the tutorial. I think the main reason why
>Python was able to catch on was the documentation set was so complete.
Is it? The docs on extending and embedding the interpreter are minimal,
for example.
I believe python wins because it's a well documented bit of everything
(procedures, classes, some functional behavior) with extremely simple
and clear syntax, interpreted AND portable. Rich libs, too, though
sometimes too close to C (sockets, for instance). Now if it only had a
real garbage collector...

>My complaint with the Erlang online docs is that they ramp up the
>complexity too fast from the trivial examples to the hard ones.
Possibly. I find they make you think about what you're doing.
Anyway I suggest that you get some extra docs: the Erlang spec, the
(free) part one of the Erlang Book, the pdf about the 4.4 extensions...
I found everything in the Erlang website.

-Daniel




Post generated using Mail2Forum (http://m2f.sourceforge.net)
tobbe at serc.rmit.edu.au
Posted: Sat Jul 10, 1999 8:07 am Reply with quote
Guest
> I'm currently looking for the way to make my boss
> let me code in Erlang a system made of a DBMS and an HTTP server,
> something that will start as a small project but might grow to enormous
> proportions (possibly requiring non-stop service and distribution over
> several Linux and/or NT boxes).

Sounds great !
Then it could be of interest for you to have a look at:

www.eddie.org
www.bluetail.com

/Tobbe


Post generated using Mail2Forum (http://m2f.sourceforge.net)
dsolaz at sistelcom.com
Posted: Sat Jul 10, 1999 6:49 pm Reply with quote
Guest
Torbjorn Tornkvist wrote:
>Sounds great !
Sure it does.
However, I will have to fight both the NIH and HIN syndromes:
NIH ("Not Invented Here"), that is, they'll say: never heard of Erlang,
we cannot trust Mnesia, this is too different from C and C++, none of my
fellows do (or seem to know about) FP...
HIN ("Habit Inhibiting Novelty"), that is, they'll say: let's use an SQL
Server (or Oracle) DBMS, Apache HTTPd (yes, even on NT) with PHP3, code
in C or C++, whether that suits our needs or not is something to be
solved in the future...
The very same reasons already invoked to make me code whole concurrent
network servers in pure C even though I would have done a better and
faster job in Modula-3.

>Then it could be of interest for you to have a look at:
> www.eddie.org
> www.bluetail.com
I certainly will, thanks.

-Daniel



Post generated using Mail2Forum (http://m2f.sourceforge.net)

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum