Why does FILE-LENGTH take a stream rather a pathname?

From: Peter Seibel (peter_at_javamonkey.com)
Date: 02/29/04


Date: Sun, 29 Feb 2004 01:44:39 GMT

I'm guessing that on some historically important filesystem the
natural way to get the length of a file was the Lisp way: opening it
and getting the information from the stream. If so, what was that OS?

I only ask becuase it may seem strange to folks used to Unix-centric
languages where that information is available without opening the
file.

-Peter

-- 
Peter Seibel                                      peter@javamonkey.com
         Lisp is the red pill. -- John Fraser, comp.lang.lisp


Relevant Pages

  • Re: Why does FILE-LENGTH take a stream rather a pathname?
    ... > I'm guessing that on some historically important filesystem the ... > natural way to get the length of a file was the Lisp way: opening it ...
    (comp.lang.lisp)
  • Re: How to dynamically create structs?
    ... love with Lisp by opening their eyes in an instant to the universe of new ideas and possibilities that the language offers. ...
    (comp.lang.lisp)
  • Re: Pure speed
    ... > allows me to submit lisp solutions to some contest problems. ... > It's all nice and I've become a little format and loop master(never ... > be almost as fast as a normal loop. ... virtuel thumbs waiting for the OS and its filesystem to return. ...
    (comp.lang.lisp)
  • River Concert setlist
    ... Dunno what will be the opening 3 or the encores, ... be one fucking party (*and I'm guessing some time since a number of ...
    (rec.music.artists.springsteen)
  • CPU pegged when browsing files over LAN
    ... folder might take as long as several minutes. ... This only happens over the network -- local browsing of the filesystem ... somebody starts opening folders, and this appears to be the culprit ...
    (microsoft.public.windows.server.networking)