chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] daemonize egg: redirect I/O?


From: Elf
Subject: Re: [Chicken-users] daemonize egg: redirect I/O?
Date: Fri, 26 Oct 2007 05:35:43 -0700 (PDT)


heh, none of these are going to work everywhere. all posix extensions are custom. the only i/o procs in the standard are call-with-[input|output]file,
with-[input|output]-to-file, current-[input|output]-port, [input|output]-file?,
[open|close]-[input|output]-file, write, display, read, load, eof-object?, newline, and the lovely and never implemented transcript-[on|off]. i know
im missing some (character one, prolly), but the point is that the standard
basically only says 'you need to be able to interact with the system' in terms
of its i/o specification. there has never been a general posix.1003 or posix.2 srfi submitted (or at least there has never been one posted).

<rant>
in my experiences amongst the various distributions, this is the area in which
the greatest incompatabilities are found.  furthermore, unlike 95% or more of
the other incompats, its hard/impossible to write wrappers to allow lowlev crosscompat, because everyone has different views on how to schemeify posix, and instead of agreeing on something thats fairly ugly (straight c wrapping or whatnot) that everyone can build their nice extensions with (which could then be wrapped), the implementations are almost entirely divergent. if r6rs had actually been a real attempt at standardisation, it would have tackled posix(ish) constructs, regular expressions, and
networking, as its useful to both academic and nonacademic coders, is divergent
between the distributions, is a major hook for potential converts, and has the highest visibility for ALL distributions. (go to the page for any
given distrib, and some subset of the above will be displayed most prominently
under 'features', along with whatever library/module system they use.)
</rant>

sorry.  :)

-elf


On Fri, 26 Oct 2007, Alex Queiroz wrote:

Hallo,

On 10/26/07, Elf <address@hidden> wrote:


(re: the daemon question, i would just use
      (foreign-lambda int "daemon" int int) ,
  but thats just me.)


    A very nice solution... If it worked (everywhere).

Cheers,





reply via email to

[Prev in Thread] Current Thread [Next in Thread]