[phobos] Removing std.stdio.File.popen()

Lars Tandle Kyllingstad lars at kyllingen.net
Wed Aug 18 02:44:00 PDT 2010


On Wed, 2010-08-18 at 11:10 +0200, Lars Tandle Kyllingstad wrote:
> On Wed, 2010-08-18 at 10:17 +0200, Lars Tandle Kyllingstad wrote:
> > On Tue, 2010-08-17 at 23:46 -0500, Andrei Alexandrescu wrote:
> > > Incidentally a colleague of mine mentioned today a much faster 
> > > implementation of popen():
> > > 
> > > http://blog.famzah.net/2009/11/20/a-much-faster-popen-and-system-implementation-for-linux/
> > > 
> > > http://code.google.com/p/popen-noshell/
> > > 
> > > We should get that in Phobos.
> > 
> > This is very useful information!  I'll see if this can be incorporated
> > in the new std.process.
> 
> I had a more thorough look at it now, and from what I can understand,
> this trick trades safety for speed.

Forget it.  execve() takes care of creating a new memory space.  I'll
definitely add this to std.process.

-Lars



More information about the phobos mailing list