Article View: comp.lang.lisp
Article #78Re: read-file for sbcl
From: Alexander Schreiber
Date: Sat, 28 Nov 2026 11:38
Date: Sat, 28 Nov 2026 11:38
29 lines
2004 bytes
2004 bytes
steve g <Sgonedes1977@gmail.com> wrote:
> --==-=-=
> Content-Type: multipart/mixed; boundary="=-=-="
>
> --=-=-=
> Content-Type: text/plain
> Content-Transfer-Encoding: quoted-printable
>
>
> I am working on a project and came across the need to read files very
> easily. I created this package for SBCL. If you need or want a rather
> fast read-file function; Just run make, load, the compile.
>
> I know this is not a binary group, I'll try try and attach the base64.
>
> I have been using this version of file-length-by-name for quite some
> time. It seems more accurate that stat. It just uses lseek.
Exactly how is that supposed to be "more accurate that stat"? How do you
think the kernel figures out the file size returned by stat? It is not
"eyeballing" the file and going "yeah, looks about 1234 bytes, give or
take a few", it reads that fromt the inode. Same source of truth it uses
when you lseek to the end of the file.
Kind regards,
Alex.
--
"Opportunity is missed by most people because it is dressed in overalls and
looks like work." -- Thomas A. Edison
Technical Details
Message-ID:
<slrn11glf8t.1hn9k.als@mordor.angband.thangorodrim.de>Path:
mbox-mo1.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<87ld6gl8ah.fsf@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Alexander Schreiber <als@usenet.thangorodrim.de> Newsgroups: comp.lang.lisp Subject: Re: read-file for sbcl Date: Sat, 28 Nov 2026 12:38:05 +0100 Organization: Not much. Lines: 29 Message-ID: <slrn11glf8t.1hn9k.als@mordor.angband.thangorodrim.de> References: <87ld6gl8ah.fsf@gmail.com> Reply-To: als@usenet.thangorodrim.de X-Trace: individual.net UHU2yUaqpyoDzcZcV4va5wBQWmQHrn/GSg6bErlRN+iHw5B3zW X-Orig-Path: frodo.angband.thangorodrim.de!not-for-mail Cancel-Lock: sha1:fJ/NR8+BOQF+gAKC7gqosbwzpbI= sha256:iGM0zP/yXA/ddmMyDjAxyABRPfi3OXYGMCIuew6y8jY= User-Agent: slrn/1.0.3 (Linux)