[erlang-questions] idea: ml9 (sort of) in the erlang shell
Ulf Wiger
ulf@REDACTED
Tue Nov 27 23:54:38 CET 2007
I've committed some R12B for the extended shell:
svn co http://svn.ulf.wiger.net/ext_shell/branches/r12b
My testing has been limited, and if the code fails, it probably
won't live up to the new error reporting standards set by R12. (:
But, please, give it a whirl and let me know what you find.
BR,
Ulf W
2007/11/23, Ulf Wiger <ulf@REDACTED>:
> I took a quick look at the R12B versions of shell.erl, epp.erl and
> io_lib_pretty.erl, and they have all been changed quite a lot, so
> patching may take some time...
>
> BR,
> Ulf W
>
> 2007/11/23, Alex Arnon <alex.arnon@REDACTED>:
> > Thanks. This is very interesting.
> > I'll try this out, and try to find time to make a patch and apply it
> > to an R12 snapshot.
> >
> > On Nov 23, 2007 12:14 AM, Ulf Wiger <ulf@REDACTED> wrote:
> > > Oh, I should also mention that I've tried to make the changes as
> > > safe as possible. The extended shell handling is actually triggered
> > > as an evaluated command, like this:
> > >
> > > {[{call,_,{atom,_,raw_exprs},
> > > [AbstEnv, AbstText]}],_V,_CommandN}
> > >
> > > The raw_exprs/2 function is then evaluated (and can be blocked in the
> > > restricted shell), so if there are bugs in the code that follows, it's
> > > similar to a normal crash in evaluated code. It doesn't kill the whole
> > > shell.
> > >
> > > The error handling for the output filters can and should be improved.
> > > Right now, a badly written filter can cause the shell to terminate.
> > > It should be a rather easy fix, once one decides what /should/ happen
> > > when an output filter crashes.
> > >
> > > BR,
> > > Ulf W
> > >
> > > 2007/11/22, Ulf Wiger <ulf@REDACTED>:
> > >
> > > > Hmm, at least not tonight, but the full modules are available at
> > > > svn co http://svn.ulf.wiger.net/ext_shell/trunk/ext_shell/src/
> > > >
> > > > (You can fetch them using any browser if you don't have subversion)
> > > >
> > > > They are based on R11B.
> > > >
> > > > BR,
> > > > Ulf W
> > > >
> > > > 2007/11/22, Alex Arnon <alex.arnon@REDACTED>:
> > > > > Hi Ulf,
> > > > >
> > > > > This looks like fantastic stuff!
> > > > > Can you provide the code as a patch to the standard distribution?
> > > > > (R11B5 or R12's snapshot?)
> > > > >
> > > > >
> > > > > On Nov 21, 2007 5:08 PM, Ulf Wiger <ulf@REDACTED> wrote:
> > > > > > I've now written two blog articles on the subject.
> > > > > >
> > > > > > http://ulf.wiger.net/weblog/?p=8
> > > > > > http://ulf.wiger.net/weblog/?p=9
> > > > > >
> > > > > > The code is also available at http://svn.ulf.wiger.net/ext_shell/trunk
> > > > > >
> > > > > >
> > > > > > BR,
> > > > > > Ulf W
> > > > > > _______________________________________________
> > > > > > erlang-questions mailing list
> > > > > > erlang-questions@REDACTED
> > > > > > http://www.erlang.org/mailman/listinfo/erlang-questions
> > > > > >
> > > > >
> > > >
> > >
> >
>
More information about the erlang-questions
mailing list