On Thu, 26 Nov 2026 09:45:59 +0530, Madhu <enom…@meer.net> wrote:
>* steve g <87ld…@gmail.com> : >Wrote on Wed, 25 Nov 2026 19:56:38 -0500: >
>> 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.
> >"more accurate" ? when are they never equal?
I have never found them different, but ... lseek() is not guaranteed to work with special files - only open(), close() and stat() are guaranteed for them. lseek() may work for special files currently - or it may work in whatever disto Steve happens to be using ... but it is not guaranteed by any documentation, and it may not continue to work in the future. I wouldn't rely on it. Also you can stat() a file without opening it.
>> The attachments should be alright. Let me know if you have any questions >> or unexpressed anger...
> >1. "sbcl-only" is a virtue only for claude code customers >2. if sbcl-only then why the posix c sharedlib, just use cffi for >syscalls >3. iolib uses posix for io (maybe it loses to your code because of >streams) >4. i cant imagine in 2020s linux hw where this would make a practical >difference >