From mikl@REDACTED Thu Jul 1 07:45:26 1999 From: mikl@REDACTED (Mickael Remond) Date: Wed, 30 Jun 1999 22:45:26 -0700 Subject: httpd error under Linux Message-ID: <377B0076.A7F87BED@linux-france.org> Hi, Under Linux I get this error report when I try to connect to an erlang httpd server. Note that I am using the sample 8888.conf and that this file works well under Windows. Do you have any idea of what I am forgetting to do under Linux ? Thanks in advance. -- Mickael Remond mikl@REDACTED ICQ : 2265396 =ERROR REPORT==== 30-Jun-1999::22:41:19 === {undef,{mod_auth_mnesia,do, [{mod,{init_data,{1152,"127.0.0.1"},"louxor"}, [{real_name, {"/var/tmp/server_root/htdocs/index.html", []}}], ip_comm, {socket,<0.52.0>,#Port,inet_tcp}, {httpd_conf8888,<0.43.0>}, "GET", "/", "HTTP/1.0", "GET / HTTP/1.0", [{"Connection","Keep-Alive"}, {"User-Agent", "Mozilla/4.6 [en] (X11; I; Linux 2.2.9 i586)"}, {"Host","localhost:8888"}, {"Accept", "image/gif, image/x-xbitmap, image/jpeg, image/jpeg, image/png, */*"}, {"Accept-Encoding","gzip"}, {"Accept-Language","en"}, {"Accept-Charset","iso-8859-1,*,utf-8"}], [], close}]}} From toni.siljamaki@REDACTED Thu Jul 1 09:13:27 1999 From: toni.siljamaki@REDACTED (Toni Siljamäki) Date: Thu, 01 Jul 1999 09:13:27 +0200 Subject: Erlang Quick Reference Guide ??? Message-ID: <377B1517.BEA93005@etx.ericsson.se> Hi there. Have any of you guys an idea where to find an Erlang Quick Refence Guide? Something small and easy to carry. Regards /Toni ------------------ Ericsson Corporate Supply Technologies ----------------- Toni Siljam?ki - DST/U/HJ Tel: +46 8 719 5404 Systems Development Technology Fax: +46 8 719 8099 SW Methods & SW/HW Co-Design Mobile: +46 70 764 4283 Ericsson Telecom AB G?talandsv?gen 230 email: toni.siljamaki@REDACTED 126 25 Stockholm - Sweden URL: http://sct.ericsson.se/ --------------------------------------------------------------------------- From Ulf.Wiger-cut-to-reply@REDACTED Thu Jul 1 14:07:25 1999 From: Ulf.Wiger-cut-to-reply@REDACTED (Ulf Wiger) Date: 01 Jul 1999 14:07:25 +0200 Subject: Erlang environment question... In-Reply-To: Edwin Young's message of "01 Jul 1999 11:21:49 +0100" References: <930768836.270312@watserv4.uwaterloo.ca> Message-ID: The following message is a courtesy copy of an article that has been posted to comp.lang.functional as well. >>>>> "Edwin" == Edwin Young writes: Edwin> Since there doesn't seem to Edwin> be an easy way of separating out just the required parts of Edwin> the package, Erlang isn't as suitable for applets or small Edwin> utility programs. It's quite possible to write a utility that figures out which parts of the Erlang environment to include in a tarball. In fact, there is such a function in the systools.erl module. I'll admit that the Release Handler architecture in Erlang was designed with large embedded systems in mind, so getting acquainted with it is somewhat of a chore. You'll find quite a few examples in the SASL (Software Architecture Support Libraries) User's Guide. The general idea is that you specify a text file, .rel, which defines your release; then you call systools:make_script() to generate a start script, from which you can start your system. Once you've verified that it works, you can call systools:make_tar(ReleaseName, Options) to package the VM and those applications you need into a tarball. At AXD301, we have a support system which takes care of this automatically when a user types 'install -conf ' in a shell. It's not completely generic, and we haven't been able to separate it from the proprietary AXD 301 code in order to post it to erlang.org. If anyone is interested in building a wrapper around the systools functions, I'd be happy to assist with pointers (we've been using our own for over a year now.) /Uffe (snipped from the systools man page): make_tar(ReleaseName) -> TarRet make_tar(ReleaseName,Opts) -> TarRet Types ReleaseName = string() Opts = [{path, Path} | silent | {dirs, Dirs} | {erts, ErtsDir} | no_module_tests | {variables, Vars} | {var_tar, VarTar} | {machine, Machine} | exref | {exref, [AppName]}] Path = [Dir] Dir = string() Dirs = [atom()] ErtsDir = string() Vars = [Var] Var = {VarName, PreFixDir} VarName = atom() | string() PreFixDir = string() VarTar = include | ownfile | omit Machine = atom() AppName = atom() TarRet = ok | error | {ok, Module, Warnings} | {error, Module, Error} Warnings = void() Module = atom() Error = void() Ericsson Utvecklings ALast change: sasl 1.7 6 systools(3) ERLANG MODULE DEFINITION systools(3) A release package file is generated from the ReleaseName.rel file. The ReleaseName.tar.gz file is generated. This file can then be uncompressed and unpacked on the target system before the new release can be activated, using the release_handler. By default, the generated release package contains a directory under the lib directory for each included application . Each application directory is named ApplicationName-ApplicationVsn. For each application, the ebin and priv directories are included. These directories are copied from where the applications were found. If more directories are needed, it is possible to specify these with the {dirs, Dirs} option. For example, if the src and example directories should be included for each application in the release package, the {dirs, [src, examples]} option should be supplied. [USW... lots of different options] -- Ulf Wiger, Chief Designer AXD 301 Ericsson Telecom AB tfn: +46 8 719 81 95 Varuv?gen 9, ?lvsj? mob: +46 70 519 81 95 S-126 25 Stockholm, Sweden fax: +46 8 719 43 44 From lyn@REDACTED Fri Jul 2 22:22:35 1999 From: lyn@REDACTED (Lyn A Headley) Date: Fri, 02 Jul 1999 15:22:35 -0500 Subject: inets logging Message-ID: <199907022022.PAA05759@karma.uchicago.edu> Hi, I'm using inets and mod_esi for some server side scripting. Now I'm wondering how to go about logging my debug info. mod_log exports the function error_log/5. Not only does it seem cumbersome, but I don't know what to pass as the first 3 parameters -- Socket, SocketType, and ConfigDB. Should I just use the error_logger or can someone give me hints about those parameters? thanks, -Lyn From klacke@REDACTED Fri Jul 2 23:06:20 1999 From: klacke@REDACTED (Claes Wikstrom) Date: Fri, 2 Jul 1999 23:06:20 +0200 Subject: Open Source Erlang Message-ID: <199907022106.XAA00474@kaja.bluetail.com> mk@REDACTED wrote: > It must have been a missunderstanding then because they were ment to be > left out since the much better replacments do already exists ie IDL > communication with the help of the IC (in both version) that gives much > better performance than IG and Jive. Well, maybe I'm wrong,but as far as I recall, the IC libs were not in a representable state in the release that OSE is based on. That would be R4B in erispeak. So, we had the choice of shipping nothing or IG+jive. > Correction the Java backend is not > released yet (I think) but will be in the next OSE release. > We're all eagerly waiting for the next OSE release with the new IC libs. For readers of this list that have never heard of IC (the Interface compiler) it's a compiler that compiles IDL specs into interfaces that can be used by erlang programs to communicate with C/C++/Java programs and vice versa. Just what we all need. Anyway, I'm sorry if we released a buggy IG lib that you would prefer buried and forgotten for ever :-) Cheers /klacke From klacke@REDACTED Fri Jul 2 23:07:21 1999 From: klacke@REDACTED (Claes Wikstrom) Date: Fri, 2 Jul 1999 23:07:21 +0200 Subject: Visibility of Erlang Message-ID: <199907022107.XAA00477@kaja.bluetail.com> jhague@REDACTED wrote: > Actually, I sent something to slashdot about Erlang when it was released > in February, but they didn't mention it. To them, I suppose, they didn't > see widespread interest in mentioning an oddball functional language used > in embedded telephone switches released by a large Swedish corporation :) It's been mentioned there a couple of times, but it's clear that the hype surrounding java is a completely different ballgame. I just read a book call "Open sources" with essays from a bunch of the open source key people like Eric Raymond etc, and there the release of Erlang is mentioned a number of times as a sign o' the times, where large corps like Ericsson realize that open source software is the way of the future. All of you in this list should be aware of the radical difference we in the initial erlang community feel now that Erlang is open source compared to earlier when it was truly proprietary. We *know* that erlang is much superior to many (most ((all ??!!)) of the other programming tech's available out there, and we've known it for quite some time. Thus at least I hope that it'll spread (possibly not like wildfire), just on technical merit if we just give it some time. Ericsson has no previous experience in this kind of endavour. Furthermore, ericsson has a long tradition of never bragging about what sort of tech is inside the equipment that ericsson sells. As a matter of fact not even talking about it, did you ever see an ericsson add talking about "XYZ inside " or something like that. I did not. So we shouldn't expect Ericsson to start talking/bragging about their superior software technology in order to promote the real products. I personally thing that ericsson should do just that, but don't expect to see it happen. As it is now, Erlang will have to survive in the open source community soley on it's own merits. The new company (bluetail) where I and a bunch of other old erlangers are working will (as opposed to Ericsson) brag about the cool tech we're using to build our stuff. http://www.bluetail.com Without Erlang at least I can't imagine that the sort of stuff we build would be realistic. Cheers /klacke  -=- MIME -=-  This is a MIME-encapsulated message --XAA12871.930776731/mail.pi.se The original message was received at Wed, 30 Jun 1999 23:05:24 +0200 (MET DST) from ap04-237.mp.pi.se [195.7.87.237] ----- The following addresses had permanent fatal errors ----- ----- Transcript of session follows ----- 550 ... Host unknown (Name server: hades.cslab.ericsson.net.: host not found) --XAA12871.930776731/mail.pi.se Content-Type: message/delivery-status Reporting-MTA: dns; mail.pi.se Received-From-MTA: DNS; ap04-237.mp.pi.se Arrival-Date: Wed, 30 Jun 1999 23:05:24 +0200 (MET DST) Final-Recipient: RFC822; erlang-questions@REDACTED Action: failed Status: 5.1.2 Remote-MTA: DNS; hades.cslab.ericsson.net Last-Attempt-Date: Wed, 30 Jun 1999 23:05:29 +0200 (MET DST) --XAA12871.930776731/mail.pi.se Content-Type: message/rfc822 Return-Path: Received: from kaja.bluetail.com (ap04-237.mp.pi.se [195.7.87.237]) by mail.pi.se (8.8.8/8.8.8) with ESMTP id XAA12805; Wed, 30 Jun 1999 23:05:24 +0200 (MET DST) Received: by kaja.bluetail.com; Wed, 30 Jun 1999 22:59:10 +0200 Date: Wed, 30 Jun 1999 22:59:10 +0200 Message-Id: <199906302059.WAA00486@REDACTED> From: Claes Wikstrom To: jhague@REDACTED CC: erlang-questions@REDACTED In-reply-to: <199906281557.KAA32713@REDACTED> (message from James Hague on Mon, 28 Jun 99 20:54:26 -0500) Subject: Re: Visibility of Erlang References: <199906281557.KAA32713@REDACTED> > Actually, I sent something to slashdot about Erlang when it was released > in February, but they didn't mention it. To them, I suppose, they didn't > see widespread interest in mentioning an oddball functional language used > in embedded telephone switches released by a large Swedish corporation :) It's been mentioned there a couple of times, but it's clear that the hype surrounding java is a completely different ballgame. I just read a book call "Open sources" with essays from a bunch of the open source key people like Eric Raymond etc, and there the release of Erlang is mentioned a number of times as a sign o' the times, where large corps like Ericsson realize that open source software is the way of the future. All of you in this list should be aware of the radical difference we in the initial erlang community feel now that Erlang is open source compared to earlier when it was truly proprietary. We *know* that erlang is much superior to many (most ((all ??!!)) of the other programming tech's available out there, and we've known it for quite some time. Thus at least I hope that it'll spread (possibly not like wildfire), just on technical merit if we just give it some time. Ericsson has no previous experience in this kind of endavour. Furthermore, ericsson has a long tradition of never bragging about what sort of tech is inside the equipment that ericsson sells. As a matter of fact not even talking about it, did you ever see an ericsson add talking about "XYZ inside " or something like that. I did not. So we shouldn't expect Ericsson to start talking/bragging about their superior software technology in order to promote the real products. I personally thing that ericsson should do just that, but don't expect to see it happen. As it is now, Erlang will have to survive in the open source community soley on it's own merits. The new company (bluetail) where I and a bunch of other old erlangers are working will (as opposed to Ericsson) brag about the cool tech we're using to build our stuff. http://www.bluetail.com Without Erlang at least I can't imagine that the sort of stuff we build would be realistic. Cheers /klacke --XAA12871.930776731/mail.pi.se-- From klacke@REDACTED Fri Jul 2 23:16:56 1999 From: klacke@REDACTED (Claes Wikstrom) Date: Fri, 2 Jul 1999 23:16:56 +0200 Subject: Visibility of Erlang In-Reply-To: <37787D34.EE59B5AF@eei.ericsson.se> (message from Chandrashekhar on Tue, 29 Jun 1999 09:00:52 +0100) References: <199906281557.KAA32713@babba.advancenet.net> <37787D34.EE59B5AF@eei.ericsson.se> Message-ID: <199907022116.XAA00513@kaja.bluetail.com> > I feel this is not enough. Marketing is essential, however good the > language is. People just dont have want to spend time looking for > alternatives...because they dont have the time. Someone has to put it > under > their nose. > > Maybe the Bluetail guys can do something about this :) > I don't know about that, we did however relase our first product the Bluetail Mail Robustifier on time on July 1, It's about as cool as it gets and is shipping to our first customers. The Manual, (but no trial download (yet)) on the web site. /klacke From tobbe@REDACTED Sat Jul 3 00:49:14 1999 From: tobbe@REDACTED (Torbjorn Tornkvist) Date: Sat, 03 Jul 1999 08:49:14 +1000 Subject: Open Source Erlang In-Reply-To: <199907022106.XAA00474@kaja.bluetail.com> References: <199907022106.XAA00474@kaja.bluetail.com> Message-ID: <199907022249.IAA21859@universe.serc.rmit.edu.au> > Anyway, I'm sorry if we released a buggy IG lib that you > would prefer buried and forgotten for ever :-) The error is more likely to be in the erl_interface library, i.e not in IG. /Tobbe From taavi@REDACTED Sun Jul 4 17:20:13 1999 From: taavi@REDACTED (Taavi Talvik) Date: Sun, 4 Jul 1999 18:20:13 +0300 (EEST) Subject: http://www.ericsson.se/cslab/erlang/ ? Message-ID: as referenced from www.erlang.org is giving: Proxy Error The proxy server could not handle the request GET /cslab/erlang/. Reason: Host not found Apache/1.3.7-dev Server at www.ericsson.se Port 80 ----------------------------------------------------------- Taavi Talvik | Internet: taavi@REDACTED Unineti Andmeside AS | phone: +372 6405150 Ravala pst. 10-412 | fax: +372 6405151 EE0001, Tallinn, Estonia | From per@REDACTED Sun Jul 4 22:08:51 1999 From: per@REDACTED (Per Hedeland) Date: Sun, 4 Jul 1999 22:08:51 +0200 (MET DST) Subject: http://www.ericsson.se/cslab/erlang/ ? Message-ID: <199907042008.WAA28106@super.du.uab.ericsson.se> Taavi Talvik wrote: >Proxy Error >The proxy server could not handle the request GET /cslab/erlang/. >Reason: Host not found >Apache/1.3.7-dev Server at www.ericsson.se Port 80 Thanks for pointing this out - the CSLab has moved physically (and IP-wise) this last week, and it seems the forwarding function at www.ericsson.se hasn't quite picked this up... - we'll try to get it fixed as soon as possible. --Per Hedeland per@REDACTED From mikl@REDACTED Mon Jul 5 17:02:32 1999 From: mikl@REDACTED (Mickael Remond) Date: Mon, 05 Jul 1999 08:02:32 -0700 Subject: Erlang business application project Message-ID: <3780C908.E63744DA@club-internet.fr> Hi, I don't know if you remember me, but I made an announcement a few months ago about the developpment of a set of business software in Erlang. I worked on specification and I am now at the point of starting the development. I am working on a little tool on top of mnesia, to manage objects as a hierarchy. I use a table matching a path to a table, and I made it possible to work on a complete branch of the tree and to manipulate a set of objects. Does such tools already exist in Erlang ? I find that the way I am doing this is very ugly. I need some kind of Erlang mentor to help me to get acquainted with good Erlang programming methods and habits and to show me the Erlang wy to do things. I there someone here that would play this part. I fact I also need to know how you would strucutre the modules, the directories, and so on. I am not completly sure that this library is useful and is well coded. If a good soul is willing to help me, maybe I can place the code on a web server to let you access it. Thanks in advance for your help. -- Mickael Remond mikl@REDACTED ICQ : 2265396 From cesarini@REDACTED Mon Jul 5 18:14:30 1999 From: cesarini@REDACTED (Francesco Cesarini) Date: Mon, 5 Jul 1999 18:14:30 +0200 (MET DST) Subject: Jam vs. beam Message-ID: Are there any specific reasons for preferring to use the jam instead of the beam other than historical ones? >From what I understand, the beam takes about the same time to compile the code as the jam, is platform independent, produces compiled code which run 2 - 10 times faster than the jam, can allocate more memory, etc etc, with the only down side beeing larger compiled modules? Is it the force of habit which still leads the way when the choice should instead be obvious? //fc =========================================================================== Francesco Cesarini Phone: +46 8 719 56 97 Fax: +46 8 719 89 40 Erlang Systems Cellular: +46 70 563 04 36 Torshamnsgatan 39 B Box 1214 http://www.ericsson.se/erlang S-164 28 KISTA, SWEDEN cesarini@REDACTED ============================================================================ From moreda@REDACTED Mon Jul 5 18:41:00 1999 From: moreda@REDACTED (Roberto Moreda) Date: Mon, 5 Jul 1999 18:41:00 +0200 Subject: Erlang business application project In-Reply-To: <3780C908.E63744DA@club-internet.fr>; from Mickael Remond on lun, jul 05, 1999 at 08:02:32 -0700 References: <3780C908.E63744DA@club-internet.fr> Message-ID: <19990705184100.A1382@sanluis.net> * Mickael Remond (mikl@REDACTED) [990705 08:29]: > I don't know if you remember me, but I made an announcement a few months > ago about the developpment of a set of business software in Erlang. Ok, I've just posted a few weeks ago a question about linking erlang with legacy systems using ODBC or similar. My goal is a bussines suite in Erlang, probably with an interface in other language more suitable (Java?). I'm very interested in a project wich name can be ;) Open-ERP ... I know it is a very big work, but it must be started in some point someday > I worked on specification and I am now at the point of starting the > development. Fantastic, I have no too much time, but I'm VERY interested. > I am working on a little tool on top of mnesia, to manage objects as a > hierarchy. I use a table matching a path to a table, and I made it > possible to work on a complete branch of the tree and to manipulate a > set of objects. I don't have played too much with Erlang, but in a bussines environment we must deal with legacy databases (Oracle, Informix,...) > Does such tools already exist in Erlang ? I don't know > I find that the way I am doing this is very ugly. I need some kind of > Erlang mentor to help me to get acquainted with good Erlang programming > methods and habits and to show me the Erlang wy to do things. > I there someone here that would play this part. > I fact I also need to know how you would strucutre the modules, the > directories, and so on. The same for me. > I am not completly sure that this library is useful and is well coded. I know a place where we can test it in a real production environment. > If a good soul is willing to help me, maybe I can place the code on a > web server to let you access it. :) > Thanks in advance for your help. It's nothing. Rober BTW : Sorry for my poor English :) -- Roberto Moreda Resp. Dpto. Inform?tica Handem/San Luis Tlf +34 981 779000 Fax +34 981 779022 Pol. Piadela Sur, Autov?a A6 Sal.567 15300 Betanzos (A Coru?a) - Espa?a From klacke@REDACTED Tue Jul 6 00:12:51 1999 From: klacke@REDACTED (Claes Wikstrom) Date: Tue, 6 Jul 1999 00:12:51 +0200 Subject: Erlang business application project In-Reply-To: <3780C908.E63744DA@club-internet.fr> (message from Mickael Remond on Mon, 05 Jul 1999 08:02:32 -0700) References: <3780C908.E63744DA@club-internet.fr> Message-ID: <199907052212.AAA00476@kaja.bluetail.com> > > I find that the way I am doing this is very ugly. I need some kind of > Erlang mentor to help me to get acquainted with good Erlang programming > methods and habits and to show me the Erlang wy to do things. > I there someone here that would play this part. I suggest that you simply post the code here (or a pointer to the code) The worst that can happen to you is that nobody had anything to say about the code. In that case it's either perfect or beyond commentary/remdey. So post asway .. > > I fact I also need to know how you would strucutre the modules, the > directories, and so on. > I am not completly sure that this library is useful and is well coded. As for erlang modules I suggest a simple scheme that is similar to the structure erlang itself. A least if the application is of any size. Makefile.in configure.in doc lib Makefile lib1 src Makefile foo.erl ebin foo.beam c_src Makefile.in lib2 .... Then make your start script setup the erlang code paths correctly. /klacke From davidws@REDACTED Fri Jul 9 16:26:41 1999 From: davidws@REDACTED (#!/usr/bin/entropy --why-me) Date: Fri, 9 Jul 1999 10:26:41 -0400 (EDT) Subject: Erlang documentation Message-ID: <199907091426.KAA21453@csmctmto.interpoint.net> 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 From tobbe@REDACTED Fri Jul 9 16:40:50 1999 From: tobbe@REDACTED (Torbjorn Tornkvist) Date: Sat, 10 Jul 1999 00:40:50 +1000 Subject: Erlang documentation In-Reply-To: <199907091426.KAA21453@csmctmto.interpoint.net> References: <199907091426.KAA21453@csmctmto.interpoint.net> Message-ID: <199907091440.AAA02749@campari.serc.rmit.edu.au> 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 From lyn@REDACTED Fri Jul 9 21:39:39 1999 From: lyn@REDACTED (Lyn A Headley) Date: Fri, 09 Jul 1999 14:39:39 -0500 Subject: Erlang documentation In-Reply-To: Your message of "Fri, 09 Jul 1999 15:00:58 EDT." <199907091900.PAA30723@csmctmto.interpoint.net> Message-ID: <199907091939.OAA19704@karma.uchicago.edu> 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). From dsolaz@REDACTED Sat Jul 10 00:06:48 1999 From: dsolaz@REDACTED (Daniel Solaz) Date: Sat, 10 Jul 1999 00:06:48 +0200 Subject: Erlang documentation References: <199907091426.KAA21453@csmctmto.interpoint.net> Message-ID: <37867278.75A27676@sistelcom.com> #!/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 From tobbe@REDACTED Sat Jul 10 10:07:11 1999 From: tobbe@REDACTED (Torbjorn Tornkvist) Date: Sat, 10 Jul 1999 18:07:11 +1000 Subject: Erlang documentation In-Reply-To: <37867278.75A27676@sistelcom.com> References: <199907091426.KAA21453@csmctmto.interpoint.net> <37867278.75A27676@sistelcom.com> Message-ID: <199907100807.SAA00797@campari.serc.rmit.edu.au> > 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 From mikl@REDACTED Sat Jul 10 19:55:05 1999 From: mikl@REDACTED (Mickael Remond) Date: Sat, 10 Jul 1999 10:55:05 -0700 Subject: Problems with Inets In-Reply-To: <99071000493400.00684@localhost.localdomain>; from Luther Huffman on Sat, Jul 10, 1999 at 12:43:31AM -0400 References: <99071000493400.00684@localhost.localdomain> Message-ID: <19990710105505.A407@louxor.home> On Sat, Jul 10, 1999 at 12:43:31AM -0400, Luther Huffman wrote: > Hello, > > I read your post regarding not getting Inets operating under Erlang/Linux. I'm > having exactly the same problem with the same error message. I also had no > trouble getting the server working under Win32. > > Have you ever solved your problem? If so, what was the solution? There seem to be a problem in mod_auth_mnesia. The program try to find a do "loop" in this module and there are no such function in this module. In fact, Windows and Linux version of Erlang are not using the same version numbering and maybe the error might have been introduced in the latest version. Or maybe there are some things to do before launching httpd in the latest version. There are two way to solve your problem. As I don't need to use Mnesia auth now, I removed this module in my configuration script and this seem to correct the problem. You can also try to use a previous version of Inets (the one in the windows package), if it is possible to find it on erlang.org. > Regards, > Luther Huffman Bye, -- Mickael Remond mikl@REDACTED ICQ : 2265396 From dsolaz@REDACTED Sat Jul 10 18:31:11 1999 From: dsolaz@REDACTED (Daniel Solaz) Date: Sat, 10 Jul 1999 18:31:11 +0200 Subject: Erlang documentation References: <199907091426.KAA21453@csmctmto.interpoint.net> <37867278.75A27676@sistelcom.com> <199907100807.SAA00797@campari.serc.rmit.edu.au> Message-ID: <3787754F.1DAE11F8@sistelcom.com> 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 From patrickdlogan@REDACTED Tue Jul 13 02:35:04 1999 From: patrickdlogan@REDACTED (patrickdlogan@REDACTED) Date: Mon, 12 Jul 1999 17:35:04 -0700 (PDT) Subject: Erlang business application project In-Reply-To: <19990705184100.A1382@sanluis.net> References: <3780C908.E63744DA@club-internet.fr> <19990705184100.A1382@sanluis.net> Message-ID: <14218.34128.955579.2013@c837917-a.potlnd1.or.home.com> Roberto Moreda writes: > > Ok, I've just posted a few weeks ago a question about linking > erlang with legacy systems using ODBC or similar. My goal is a > business suite in Erlang, probably with an interface in other > language more suitable (Java?). I am interested in further discussions along these lines. *Please* send me private email if you'd like to be a part of some discussions in order to keep the traffic down on this mail list. I am building some applications in Erlang, inets, mnesia, etc. with the intent to evolve the applications into a "framework" for building more applications easier (a la Lotus Notes). > I'm very interested in a project wich name can be ;) Open-ERP ... > I know it is a very big work, but it must be started in some point > someday... I am starting small, but it does not hurt to think big either. > Fantastic, I have no too much time, but I'm VERY interested. Another reason to start small. > BTW : Sorry for my poor English :) No es malo. Usted debe leer mi espa?ol! 8^) -- Patrick D. Logan mailto:patrickdlogan@REDACTED From eeicmui@REDACTED Wed Jul 21 17:52:11 1999 From: eeicmui@REDACTED (Chandrashekhar) Date: Wed, 21 Jul 1999 16:52:11 +0100 Subject: need for mnesia:create_schema Message-ID: <3795ECAB.81EE89A@eei.ericsson.se> Hi, I'm tinkering with mnesia and have this doubt. I cannot create a persistent data base without invoking mnesia:create_schema first. But the only thing I can specify is the node list. Why is this function call there at all - why cant it just be done by mnesia when it receives a request for a persistent table the first time? regards, Chandru -- Random Wodehouse Quote He blinked, like some knight of King Arthur's court, who, galloping to perform a deed of derring-do, has had the misfortune to collide with a tree. Uncle Dynamite (1948) From eeicmui@REDACTED Thu Jul 22 18:05:40 1999 From: eeicmui@REDACTED (Chandrashekhar) Date: Thu, 22 Jul 1999 17:05:40 +0100 Subject: Distributed erlang Message-ID: <37974154.70197714@eei.ericsson.se> Hi, I have two erlang nodes running on a Win95 machine. erl -sname node1 erl -sname node2 I start a process which is a gen_server on node2. When I try to invoke some client interface functions on node1, the request always times-out because it cant locate node2. I tried executing nodes() on both nodes and got []. I can't figure out what's happening. I tried net_adm:ping(node1) on node2 and got pang, and the same vice-versa. tia, Chandru -- Random Wodehouse Quote He blinked, like some knight of King Arthur's court, who, galloping to perform a deed of derring-do, has had the misfortune to collide with a tree. Uncle Dynamite (1948) From eedber@REDACTED Fri Jul 23 17:06:29 1999 From: eedber@REDACTED (Bernd Roscher) Date: Fri, 23 Jul 1999 17:06:29 +0200 Subject: slow read from spawned processes Message-ID: <199907231506.RAA29446@granus33.eed.ericsson.se> Hi, I have a problem concerning spawned external processes , spawned by 'open_port({spawn, FileName}...)' and using the 2-byte-header-protocol on the STDIN, STDOUT file descriptors. I've spawned two processes this way (C++ executables), one is sending messages of length 54, the other receives the messages. The Erlang program behind this, provides a routing mechanism between several processes, thus connecting these two processes in this example. The final program, that uses this routing facility, shall call a non-blocking read inside an execution loop. But the blocking read (upto now the receiving process is able to block because it does not do anything else besides receiving the messages) appears to be 7-10 times faster then the nonblocking version. I also tried to simulate a non-blocking by first checking the number bytes on the file descriptor, but this turned out to behave like the slow normal non-blocking. Does anyone have an idea what makes the non-blocking so slow? Another problem is the Erlang interpreter. In the case of a slow receiver it allocates a mass of memory (with 100000 messages sent it allocates about 50% of the whole systems memory which is 128MB Ram and raises upto 75% in subsequent runs). But the whole amount of data sent is just 5.6 MB. Where is the rest of the memory spent? /Bernd From jhague@REDACTED Fri Jul 23 23:23:47 1999 From: jhague@REDACTED (James Hague) Date: Fri, 23 Jul 1999 16:23:47 -0500 (CDT) Subject: BEAM for Windows Message-ID: Two questions: 1. Is the BEAM emulator expected to run under Windows in the next open source Erlang release? 2. What compiler is recommended for recompiling the current version of Erlang for Windows? James From vlad.dumitrescu@REDACTED Sat Jul 24 08:42:49 1999 From: vlad.dumitrescu@REDACTED (Vlad Dumitrescu) Date: Sat, 24 Jul 1999 08:42:49 +0200 Subject: Erlang OS?! Message-ID: <93283830101@flashmail.com> Hi! I am new with Erlang, but I think it is really great. As someoned said here before, its foremost plus is that it is used successfully in real applications. To my question: Erlang might be a very good candidate to have a whole operating system based on. Maybe not a general purpose one, but for custom purposes. Is there anyone working or thinking about that? I have seen references to ExoKernel, but that is not exactly what I have in mind (not the way MIT's implementation looks like today) An operating system integrated with the Erlang run-time, could it be done? Would it be worth the work, compared to for example the VxWorks port? I think it might be interesting from at least an academic point of view... Any comments are welcome. Thanks. /Vlad From per@REDACTED Mon Jul 26 02:11:22 1999 From: per@REDACTED (Per Hedeland) Date: Mon, 26 Jul 1999 02:11:22 +0200 (MET DST) Subject: slow read from spawned processes Message-ID: <199907260011.CAA20203@super.du.uab.ericsson.se> Bernd Roscher wrote: >I've spawned two processes this way (C++ executables), one >is sending messages of length 54, the other receives the messages. >The Erlang program behind this, provides a routing mechanism >between several processes, thus connecting these two processes >in this example. > >The final program, that uses this routing facility, shall >call a non-blocking read inside an execution loop. > >But the blocking read (upto now the receiving process is able >to block because it does not do anything else besides receiving >the messages) appears to be 7-10 times faster then the nonblocking >version. Well, if you're asking why non-blocking reads in C++ programs are slow, maybe this is the wrong place:-) - but perhaps there are some C++ gurus around. In terms of Unix system calls (assuming this is on Unix), I'd say that a non-blocking read is exactly as fast as a blocking one reading the same amount of data. However if your program is actually doing multiple reads, with only the final one actually retrieving any data, this would of course mean that the entire process takes a longer time - and system calls are generally "expensive" (perhaps some C++ library functions are doing this "under the covers", I wouldn't know). You *might* get better results using select() or poll() if possible, doing reads only when data is actually available - assuming you only do a single read each time select/poll says it's OK, you don't need non-blocking reads in this case. But again, if you end up doing multiple "polling" select/poll calls before actually reading anything, it will still cost you (this is actually a problem that the Erlang runtime system suffers from too) - best is if you can arrange your program such that its "main loop" is based on a *blocking* select/poll. >Another problem is the Erlang interpreter. In the case of a slow >receiver it allocates a mass of memory (with 100000 messages sent it >allocates about 50% of the whole systems memory which is 128MB Ram >and raises upto 75% in subsequent runs). But the whole amount of data >sent is just 5.6 MB. >Where is the rest of the memory spent? Impossible to say without knowing what your program does of course, but in general there are two issues to consider: - Your data might use up more space as Erlang terms than as "raw" data - e.g. I believe a list of bytes uses basically eight bytes per data byte. Using "binaries" (if you aren't already) may help with this, they're particularly suited for applications where you mostly pass un-interpreted chunks of data through. - If your Erlang processes create a lot of data, their heaps may grow rapidly, and in "pathological" cases may not be garbage collected as quickly as you'd like - I could imagine that you might run into this with processes that do some work and then exit in normal cases, but may be hanging around waiting for an ack or whatever in your case of a "slow receiver". Apropos, you should consider that Erlang message passing is (by design) asynchronous and non-flow-controlled - if you send a lot of data and risk having "slow receivers", you probably need to have some form of end-to-end flow control to prevent message queues from growing without bounds (i.e. you'd need to add this if it isn't implicit in your application protocols). --Per Hedeland per@REDACTED From dave.hill@REDACTED Mon Jul 26 14:58:26 1999 From: dave.hill@REDACTED (Dave Hill) Date: Mon, 26 Jul 1999 13:58:26 +0100 Subject: Erlang OpenLinux 2.2 Message-ID: I have just installed Caldera OpenLinux 2.2 and I would like to try running the full Open Source Erlang 47.4.1 distribution on it. Has anyone succeeded in building a full working Erlang 47.4.1 system on Caldera OpenLinux 2.2 ( or any other comparable linux kernel 2.2.x system ) ? Have you any advice to impart ? Are there any pitfalls I should know about ? All help gratefully received - thanks in advance Dave Hill. From vlad.dumitrescu@REDACTED Tue Jul 27 09:32:30 1999 From: vlad.dumitrescu@REDACTED (Vlad Dumitrescu) Date: Tue, 27 Jul 1999 09:32:30 +0200 Subject: networking support Message-ID: <93306911601@flashmail.com> Hi! As far as I can see (but I may have missed things), the built-in networking support for Erlang is for TCP/IP and UDP. How easy would it be to implement support for other protocols? Hopefully the networking functionality is modular enough to enable some kind of plug-and-play... or isn't it? Thanks. /Vlad From joe@REDACTED Wed Jul 28 13:14:26 1999 From: joe@REDACTED (Joe Armstrong) Date: Wed, 28 Jul 1999 13:14:26 +0200 (CEST) Subject: networking support In-Reply-To: <93306911601@flashmail.com> Message-ID: On Tue, 27 Jul 1999, Vlad Dumitrescu wrote: > Hi! > > As far as I can see (but I may have missed things), the built-in > networking support for Erlang is for TCP/IP and UDP. How easy > would it be to implement support for other protocols? Hopefully the > networking functionality is modular enough to enable some kind of > plug-and-play... or isn't it? > > Thanks. > /Vlad > Yes it is modular - certain predefined messages are delivered to net_kernel.erl when messages are received etc. HOW the messages get there TCP/IP etc. is not defined. The kernel libraries were completely rewritten to make it easy to support other protocols. Saying that it's modular does not mean it's easy! - naming issues and supporting multiple protocols requires a fairly deep knowledge of the system. Conceptually its easy - we have no shared memory etc. All Erlang messages are mapped to the external term format and shipped with any available byte transport mechanism. If you want to do this yourself post to this group first - you'll probably need to chat to one of the guys who did the network code. /Joe -- Joe Armstrong, Bluetail AB, tel: +46 8 692 22 11 Hantverkargatan 78, fax: +46 8 654 70 71 SE-112 38 Stockholm, Sweden info: www.bluetail.com From eeicmui@REDACTED Wed Jul 28 13:48:55 1999 From: eeicmui@REDACTED (Chandrashekhar) Date: Wed, 28 Jul 1999 12:48:55 +0100 Subject: EUC Message-ID: <379EEE27.7516BEED@eei.ericsson.se> Hi, Will all presentations at the Erlang Users Conference be available on the Web? I'm not sure my manager is going to fund my visit to Stockholm! regards, Chandru -- Random Wodehouse Quote He's as jealous as billy-ho. Smear a bit of burnt cork on him, and he could step right on to any stage and play Othello without rehearsal. From bjarne@REDACTED Wed Jul 28 15:11:06 1999 From: bjarne@REDACTED (Bjarne =?iso-8859-1?Q?D=E4cker?=) Date: Wed, 28 Jul 1999 15:11:06 +0200 Subject: EUC References: <379EEE27.7516BEED@eei.ericsson.se> Message-ID: <379F0169.73F89BDF@erix.ericsson.se> Dear Chandru > Will all presentations at the Erlang Users Conference be > available on the Web? I'm not sure my manager is going to > fund my visit to Stockholm! Whatever material we obtain in suitable format we will put out on the web. This will probably not be very consistent. I hope that a couple of representatives from each design centre or project would actually come to Stockholm for the user conference. The informal exchange of information and experiences between user groups is as important as the conference itself ! We are also quite flexible about the conference programme in case somebody comes with new interesting contributions. I hope to see you in Stockholm on September 30 ! Best regards Bjarne D?cker Computer Science Laboratory Ericsson Utvecklings AB S-125 25 Stockholm/?lvsj? Sweden From dave.hill@REDACTED Wed Jul 28 16:49:17 1999 From: dave.hill@REDACTED (Dave Hill) Date: Wed, 28 Jul 1999 15:49:17 +0100 Subject: Erlang build problem Message-ID: I have been trying unsuccessfully to build Erlang 47.4.1 on a OpenLinux 2.2 platform. When I run ./configure it fails with the following message: "installation or configuration problem: C++ compiler cannot create executables" this seems to be coming from the ../lib/orber/configuration. The config.log in the ../lib/orber directory has the following lines in it: configure 778: Checking whether the C++ compiler (gcc ) works configure 792: gcc -o conftest conftest.C 1>&5 gcc: installation problem, cannot exec `cc1plus`: No such file or directory configure: failed program was: #line 788 "configure" #include "confdefs.h" main() { return(0); } Has anyone come across this problem before ? All helpful suggestions gratefully received - thanks in advance: Dave Hill From per@REDACTED Fri Jul 30 22:42:42 1999 From: per@REDACTED (Per Hedeland) Date: Fri, 30 Jul 1999 22:42:42 +0200 (MET DST) Subject: Erlang OpenLinux 2.2 Message-ID: <199907302042.WAA10524@super.du.uab.ericsson.se> Dave Hill wrote: >I have just installed Caldera OpenLinux 2.2 and I would like to try running >the full Open Source Erlang 47.4.1 distribution on it. >Has anyone succeeded in building a full working Erlang 47.4.1 system on >Caldera OpenLinux 2.2 ( or any other comparable linux kernel 2.2.x system ) >? Have you any advice to impart ? Are there any pitfalls I should know about >? Well, why not just try and build it and see what problems you run into - if any.:-) Maybe we can help with those. Also check out the http://www.erlang.org/faq/bugs_and_fixes.html page, which lists some known problems with some Linux (or glibc) versions. --Per Hedeland per@REDACTED From per@REDACTED Fri Jul 30 22:54:36 1999 From: per@REDACTED (Per Hedeland) Date: Fri, 30 Jul 1999 22:54:36 +0200 (MET DST) Subject: Erlang build problem Message-ID: <199907302054.WAA10768@super.du.uab.ericsson.se> Dave Hill wrote: >I have been trying unsuccessfully to build Erlang 47.4.1 on a OpenLinux 2.2 >platform. Oops, seems I should read *all* my old mail before responding:-) - please ignore the previous message... >When I run ./configure it fails with the following message: > >"installation or configuration problem: C++ compiler cannot create >executables" >gcc: installation problem, cannot exec `cc1plus`: No such file or directory Well, it seems the problem is rather obvious - your gcc installation is broken, or rather incomplete, and doesn't have support for C++ compilation. Doing a full gcc (re-)install would probably fix this, I guess there is some package available for this but I'm afraid I'm not familiar with Caldera OpenLinux. Then again, if you don't need the orber application, you should be able to do without - the base system is written in plain old C, and so doesn't need C++ support. --Per From dsolaz@REDACTED Sat Jul 31 00:12:34 1999 From: dsolaz@REDACTED (Daniel Solaz) Date: Sat, 31 Jul 1999 00:12:34 +0200 Subject: Erlang on BeOS Message-ID: <37A22352.9830B4B5@sistelcom.com> Anybody ever tried to build the OSE code on BeOS? That (R4.5) is what I'm using now, so I'd like to take Erlang with me. I don't even know if it is possible to build it with no or just minor tweaks. The shell is bash, the compiler is gcc (2.9) and many other unix tools are installed, so I guess I have all I need. To begin with I'd need something to pass as the system type (the HOST flag); "i386-unknown-beos" and others I tried are rejected by the configure script. What do I need to check in order to make it compile? Is it worth trying? -Daniel