Well I wouldn't expect you to consume ports. What I meant was to
suggest that it would be enormous, undefeatable win if I could generate
what amount to executables. In that context, one would not expect an
interactive system, ofcoz. What I'm really hoping for, some day, is
the ability to make applications that I can hand out without the user
having any idea what language they were written in.<br>
<br>
There's a lot to be said for standalone binaries. Users are dumb and
don't want to learn things. Standalone binaries are one of the major
steps towards opening Erlang up as a general purpose language (along
with certain heresies I'm not talking about yet.)<br><br><br><br><br><br><div class="gmail_quote">On Wed, May 6, 2009 at 9:50 AM, Hakan Mattsson <span dir="ltr"><<a href="mailto:hakan@erix.ericsson.se">hakan@erix.ericsson.se</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Tue, 5 May 2009, John Haugeland wrote:<br>
<br>
> > Work is ongoing in the direction towards a maintainable Standalone Erlang.<br>
><br>
> (the previous solution from Joe had its good sides but was not easy to<br>
> > maintain)<br>
> ><br>
><br>
> You just became my hero, Mr. Lundin <3 Standalone applications would be<br>
> epic win, _especially_ if they were single executable files.<br>
<br>
</div>We do not attempt to have the runtime system as one single file. But<br>
we want to be able to have substantially fewer files than today. For<br>
most applications it will be possible to package them into one file<br>
per application and load the beam code from that archive. However<br>
applications that have port programs, device drivers etc. on priv-dir<br>
will still need to have these file outside the archive file.<br>
<br>
There will be two flavors of standalone applications:<br>
<br>
- The traditional one with a runtime system that is separately<br>
installed and shared between several of your application(s).<br>
You can package your application(s) into a single escript file<br>
and run it without installation if you have setup your paths<br>
right. Escripts can nowdays contain an archive file with several<br>
complete Erlang applications. Given that you have installed a<br>
runtime system, you will be able to ship your applications as one<br>
single executable escript.<br>
<br>
- A standalone system that containing your application(s) as well as<br>
the runtime system.<br>
<br>
In both cases, Reltool (which still is experiental) can assist you in<br>
creating a customized target system that only contains the parts of<br>
Erlang/OTP that your applications needs and strip away stuff that you<br>
do not need. For example you may not want to ship source code,<br>
documentation etc. and you may want to strip away debug info from the<br>
beam code.<br>
<div class="im"><br>
> This won't be limited to Unix this time around, right?<br>
<br>
</div>No it is not limited to Unix.<br>
<br>
/Håkan<br>
---<br>
Håkan Mattsson (uabhams)<br>
Erlang/OTP, Ericsson AB</blockquote></div><br><br clear="all"><br>-- <br>---<br>GuaranteedVPS.com - bandwidth commitments and root starting from $12.98/mo<br>