[#11890] Ruby and Solaris door library — "Hiro Asari" <asari.ruby@...>

Hi, there. This is my first patch against ruby. I think I followed

19 messages 2007/08/13
[#11892] Re: Ruby and Solaris door library — Daniel Berger <djberg96@...> 2007/08/14

Hiro Asari wrote:

[#11899] pack/unpack 64bit Integers — Hadmut Danisch <hadmut@...>

Hi,

13 messages 2007/08/14
[#11903] Re: pack/unpack 64bit Integers — Brian Candler <B.Candler@...> 2007/08/15

On Wed, Aug 15, 2007 at 06:50:01AM +0900, Hadmut Danisch wrote:

[#11948] Fibers in Ruby 1.9? — David Flanagan <david@...>

I just noticed that my ruby1.9 build of August 17th includes a Fiber

22 messages 2007/08/22
[#11949] Re: Fibers in Ruby 1.9? — Daniel Berger <djberg96@...> 2007/08/22

David Flanagan wrote:

[#11950] Re: Fibers in Ruby 1.9? — "Francis Cianfrocca" <garbagecat10@...> 2007/08/22

On 8/22/07, Daniel Berger <djberg96@gmail.com> wrote:

[#11952] Re: Fibers in Ruby 1.9? — MenTaLguY <mental@...> 2007/08/22

On Wed, 22 Aug 2007 20:50:12 +0900, "Francis Cianfrocca" <garbagecat10@gmail.com> wrote:

[#11988] String#length not working properly in Ruby 1.9 — "Vincent Isambart" <vincent.isambart@...>

I saw that Matz just merged his M17N implementation in the trunk.

17 messages 2007/08/25
[#11991] Re: String#length not working properly in Ruby 1.9 — "Michael Neumann" <mneumann@...> 2007/08/25

On Sat, 25 Aug 2007 10:54:20 +0200, Yukihiro Matsumoto

[#11992] Re: String#length not working properly in Ruby 1.9 — Yukihiro Matsumoto <matz@...> 2007/08/25

Hi,

[#12042] Encodings of string literals; explicit codepoint escapes? — David Flanagan <david@...>

This message contains queries that probably only Matz can answer:

16 messages 2007/08/31
[#12043] Re: Encodings of string literals; explicit codepoint escapes? — Yukihiro Matsumoto <matz@...> 2007/08/31

Hi,

Re: Ruby and Solaris door library

From: "Hiro Asari" <asari.ruby@...>
Date: 2007-08-18 01:57:31 UTC
List: ruby-core #11929
On 8/16/07, Hugh Sasse <hgs@dmu.ac.uk> wrote:
> On Thu, 16 Aug 2007, Hiro Asari wrote:
>
> > On 8/15/07, Berger, Daniel <Daniel.Berger@qwest.com> wrote:
> > > > -----Original Message-----
> > > > From: Hiro Asari [mailto:asari.ruby@gmail.com]
> > > > Sent: Tuesday, August 14, 2007 7:04 AM
> > > > To: ruby-core@ruby-lang.org
> > > > Subject: Re: Ruby and Solaris door library
> > >
> > > <snip>
> > >
> > > > >
> > > > > I think this is best done as a 3rd party library given that it's
> > > > > specific to one platform.
> > > > >
> > > > > Regards,
> > > > >
> > > > > Dan
> > > > >
> > > > >
> > > >
> > > > Hi, Dan,
> > > >
> > > > Now that Solaris is open source, it is conceivable that door
> > > > library will be ported to another platform, much like ZFS.
> > >
> > > When it actually *is* ported, and people *actually* use it, then we
> > > should consider merging it into core. Until then, I vote no.
> >
> > I wonder if anyone other than Dan and Urabe-san has opinions.
>
> I see the wisdom of the YAGNI approach, but solaris is out there,
> and having this in the code base will remind others of related edge
> cases, so having it in would act as a force pushing developers in a
> direction where it will be easier to add for other systems later.
>
> I'm thinking about the case of the Unix developer who created a
> directory containing single character filenames for all the legal
> characters in a Unix filename, and that the directory stayed there
> for a long time, tripping inadequately tested programs, helping to
> make them more robust. I forget who this was now, and which book I
> read it in, but I think it was one of Programming Pearls, The Art of
> Unix Programming, or The Practice of Programming,
>
> The analogy is less than exact, so my conclusion (that adding it
> would be good) may be false.
> > --
> > Hirotsugu Asari
>
>         Thank you,
>         Hugh
>
>

Well, I actually want/need it now.  As I stated before, I have the C
code to make use of the door library, but for stat-like functions, I
have to copy the code from file.c, which not very DRY.

Have we convinced Dan yet?  :-)

Oh, by the way, Google gave me this link:
http://smarden.org/socklog/readme.solaris.html
which states that /var/run/syslog_door was introduced with Solaris 8.
Before that, syslog used /etc/.syslog_door.

-- 
Hirotsugu Asari

In This Thread