Madhu <enom…@meer.net> writes:
> * 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 do not feel like exploring memory access time.
>> 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
I do not know what claud is. Any info would be appreciated.
> 2. if sbcl-only then why the posix c sharedlib, just use cffi for
> syscalls
I use POSIX because I am not stupid. Please, you must be kinding me? I
need 23,000 lines of quicklisp code to read the size of a file.
``They'' were so pissed off at the pathname spec they could not get to a
``byte'' specifier. This was mostly do to VMS or a VAC; can't remeber.
If you happen to have a mainframe for sale I have some property for sale
in the middle of a desert (something like that).
> 3. iolib uses posix for io (maybe it loses to your code because of
> streams)
I do not know what libio is. The basic idea is to help users of sbcl to
do something simple without every one having to rewrite the same code.
You are free to not use it and stick with iolib. This doesn't bother me
any.
> 4. i cant imagine in 2020s linux hw where this would make a practical
> difference
That's what I said 20 years ago.
Stat must load lots of stuff into memory. When using lseek to get the
length of the file it is ``kinda loaded into memory'' or a cache.
Believe me my SCSI drives definitely knew the difference between cached
io and scatter brain read.
Anywho, what is this claude you speed of? Let me guess I need quicklisp.