Article View: comp.lang.lisp
Article #92Re: read-file for sbcl
From: steve g
Date: Mon, 30 Nov 2026 00:02
Date: Mon, 30 Nov 2026 00:02
43 lines
2722 bytes
2722 bytes
Alexander Schreiber <als@usenet.thangorodrim.de> writes: > 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. no shit. > Kind regards, > Alex. read 2 lseek. it is very fast and uses very little memory. I don't fucking care if you use my code or not, your attitude is that of a 5 year old child. Why don't you do some research an tell me the difference between stat and lseek. At some point you take starting pos and substract ending pos. This is not very difficult. Always remeber, never trust people that give a shit.
Technical Details
Message-ID:
<87ik1fchks.fsf@gmail.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!border-4.nntp.ord.giganews.com!nntp.giganews.com!local-4.nntp.ord.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mailReferences:
<87ld6gl8ah.fsf@gmail.com> <slrn11glf8t.1hn9k.als@mordor.angband.thangorodrim.de>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!border-4.nntp.ord.giganews.com!nntp.giganews.com!local-4.nntp.ord.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 30 Nov 2026 00:02:11 +0000 From: steve g <Sgonedes1977@gmail.com> Newsgroups: comp.lang.lisp Subject: Re: read-file for sbcl References: <87ld6gl8ah.fsf@gmail.com> <slrn11glf8t.1hn9k.als@mordor.angband.thangorodrim.de> Date: Sun, 29 Nov 2026 19:02:11 -0500 Message-ID: <87ik1fchks.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:uiOSA0h9lHL2zxrwUcMmZ9SYNeQ= MIME-Version: 1.0 Content-Type: text/plain Lines: 43 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-V2kDJaAytPOIJaQrCUHqhf6yt6OxKu06oiKXN1lyawa0zk4JXC85xEUYX9S6z2jvgQUfsOdRM6QQmtr!5WaVU/n6dkeF2yNZFisKvUub1S5E8R40nWH0GUP88RM/z28= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40