jackdaniel changed the topic of #commonlisp to: Common Lisp, the #1=(programmable . #1#) programming language | Wiki: <https://www.cliki.net> | IRC Logs: <https://irclog.tymoon.eu/libera/%23commonlisp> | Cookbook: <https://lispcookbook.github.io/cl-cookbook> | Pastebin: <https://plaster.tymoon.eu/>
donleo has quit [Ping timeout: 264 seconds]
zaymington has quit [Ping timeout: 260 seconds]
flip214 has quit [Read error: Connection reset by peer]
flip214 has joined #commonlisp
Kyuvi has quit [Quit: Client closed]
Inline has quit [Quit: Leaving]
josrr has quit [Remote host closed the connection]
molson_ has quit [Read error: Connection reset by peer]
molson has joined #commonlisp
rogersm has joined #commonlisp
attila_lendvai_ has quit [Ping timeout: 256 seconds]
random-nick has quit [Ping timeout: 260 seconds]
varjag has quit [Ping timeout: 256 seconds]
Inline has joined #commonlisp
rogersm has quit [Ping timeout: 260 seconds]
waleee has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 240 seconds]
Lord_of_Life has joined #commonlisp
makomo has quit [Ping timeout: 245 seconds]
jmdaemon has joined #commonlisp
meritamen has joined #commonlisp
palter has joined #commonlisp
lucasta has quit [Quit: Leaving]
jmdaemon has quit [Ping timeout: 255 seconds]
Kyuvi has joined #commonlisp
igemnace has quit [Read error: Connection reset by peer]
zaymington has joined #commonlisp
jmdaemon has joined #commonlisp
meritamen has quit [Read error: Connection reset by peer]
igemnace has joined #commonlisp
villageidiot has joined #commonlisp
meritamen has joined #commonlisp
Inline has quit [Ping timeout: 245 seconds]
Inline has joined #commonlisp
meritamen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pranavats has left #commonlisp [Error from remote client]
Inline has quit [Quit: Leaving]
Inline has joined #commonlisp
meritamen has joined #commonlisp
azimut has quit [Ping timeout: 240 seconds]
Jach has quit [Ping timeout: 255 seconds]
meritamen has quit [Remote host closed the connection]
deadmarshal_ has quit [Quit: IRCNow and Forever!]
dirtcastle has quit [Quit: IRCNow and Forever!]
rgherdt__ has quit [Quit: Leaving]
khrbtxyz has quit [Ping timeout: 240 seconds]
deadmarshal_ has joined #commonlisp
dirtcastle has joined #commonlisp
zeka__ has quit [Ping timeout: 268 seconds]
zeka_ has joined #commonlisp
epony has quit [Ping timeout: 264 seconds]
epony has joined #commonlisp
khrbtxyz has joined #commonlisp
Jach has joined #commonlisp
decweb has quit [Ping timeout: 264 seconds]
zeka_ has quit [Read error: Connection reset by peer]
zeka_ has joined #commonlisp
Kyuvi has quit [Ping timeout: 250 seconds]
epony has quit [Remote host closed the connection]
epony has joined #commonlisp
villageidiot has quit [Quit: Client closed]
zaymington has quit [Remote host closed the connection]
zaymington has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
rogersm has joined #commonlisp
pranavats has joined #commonlisp
rogersm has quit [Ping timeout: 268 seconds]
pranavats has left #commonlisp [Disconnected: Hibernating too long]
jonatack has joined #commonlisp
jon_atack has quit [Ping timeout: 268 seconds]
Jach has quit [Ping timeout: 252 seconds]
Kyuvi has joined #commonlisp
rogersm has joined #commonlisp
rogersm has quit [Remote host closed the connection]
rogersm has joined #commonlisp
Pixel_Outlaw has quit [Remote host closed the connection]
Jach has joined #commonlisp
rogersm has quit [Remote host closed the connection]
pve has joined #commonlisp
rogersm has joined #commonlisp
dcb has quit [Quit: Connection closed for inactivity]
rogersm has quit [Ping timeout: 264 seconds]
pranavats has joined #commonlisp
meritamen has joined #commonlisp
pranavats has left #commonlisp [Error from remote client]
pranavats has joined #commonlisp
rogersm has joined #commonlisp
rogersm has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 252 seconds]
rogersm has joined #commonlisp
rogersm has quit [Ping timeout: 268 seconds]
rogersm has joined #commonlisp
herjazz has joined #commonlisp
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 264 seconds]
rogersm has quit [Ping timeout: 246 seconds]
bendersteed has joined #commonlisp
donleo has joined #commonlisp
rogersm has joined #commonlisp
mgl has joined #commonlisp
random-jellyfish has joined #commonlisp
random-jellyfish has quit [Client Quit]
yvm has joined #commonlisp
dino_tutter has joined #commonlisp
miique has joined #commonlisp
traidare has joined #commonlisp
NicknameJohn has quit [Ping timeout: 260 seconds]
luis has quit [Ping timeout: 264 seconds]
Jach has quit [Ping timeout: 252 seconds]
miique has quit [Ping timeout: 256 seconds]
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
Jach has joined #commonlisp
varjag has joined #commonlisp
Jach has quit [Ping timeout: 260 seconds]
rtypo has joined #commonlisp
bendersteed has quit [Quit: bendersteed]
bilegeek has quit [Quit: Leaving]
glaucon has joined #commonlisp
tertek has joined #commonlisp
danse-nr3 has joined #commonlisp
NicknameJohn has joined #commonlisp
igemnace has quit [Read error: Connection reset by peer]
decweb has joined #commonlisp
attila_lendvai_ has joined #commonlisp
Jach has joined #commonlisp
rtypo has quit [Ping timeout: 252 seconds]
igemnace has joined #commonlisp
yitzi has joined #commonlisp
meritamen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
meritamen has joined #commonlisp
random-nick has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
traidare has quit [Ping timeout: 268 seconds]
rgherdt has joined #commonlisp
zxcvz has joined #commonlisp
dnhester26 has joined #commonlisp
zxcvz has quit [Client Quit]
danse-nr3 has quit [Ping timeout: 264 seconds]
rogersm has quit [Remote host closed the connection]
rogersm has joined #commonlisp
rogersm has quit [Read error: Connection reset by peer]
azimut has joined #commonlisp
wheatengineer has joined #commonlisp
traidare has joined #commonlisp
makomo has joined #commonlisp
azimut has quit [Remote host closed the connection]
azimut has joined #commonlisp
dcb has joined #commonlisp
madnificent has joined #commonlisp
_cymew_ has joined #commonlisp
jonatack has joined #commonlisp
jon_atack has quit [Ping timeout: 246 seconds]
rogersm has joined #commonlisp
tyson2 has joined #commonlisp
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 260 seconds]
jmdaemon has quit [Ping timeout: 276 seconds]
josrr has joined #commonlisp
a51 has joined #commonlisp
danse-nr3 has joined #commonlisp
rogersm has quit [Remote host closed the connection]
herjazz has quit [Quit: leaving]
rogersm has joined #commonlisp
rogersm has quit [Ping timeout: 260 seconds]
bendersteed has joined #commonlisp
bendersteed has quit [Remote host closed the connection]
bendersteed has joined #commonlisp
Demosthenex has quit [Ping timeout: 268 seconds]
danse-nr3 has quit [Ping timeout: 268 seconds]
Demosthenex has joined #commonlisp
dnhester26 has quit [Read error: Connection reset by peer]
dnhester26 has joined #commonlisp
danse-nr3 has joined #commonlisp
Demosthenex has quit [Ping timeout: 245 seconds]
bendersteed has quit [Quit: bendersteed]
Demosthenex has joined #commonlisp
bendersteed has joined #commonlisp
unl0ckd has joined #commonlisp
rogersm has joined #commonlisp
kenanb has joined #commonlisp
unl0ckd has quit [Ping timeout: 268 seconds]
Odin- has quit [Ping timeout: 255 seconds]
unl0ckd has joined #commonlisp
Jach has quit [Ping timeout: 252 seconds]
Jach has joined #commonlisp
rogersm has quit [Quit: Leaving...]
kevingal has joined #commonlisp
yewscion has joined #commonlisp
pfdietz27 has joined #commonlisp
pfdietz has quit [Ping timeout: 250 seconds]
mzan has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
mzan has joined #commonlisp
pfdietz27 has quit [Ping timeout: 250 seconds]
zaymington has quit [Ping timeout: 268 seconds]
Lycurgus has quit [Quit: leaving]
meritamen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
dtman34 has joined #commonlisp
Odin- has joined #commonlisp
yewscion has quit [Ping timeout: 256 seconds]
danse-nr3 has quit [Remote host closed the connection]
danse-nr3 has joined #commonlisp
bjorkintosh has joined #commonlisp
bjorkintosh has joined #commonlisp
bjorkintosh has quit [Changing host]
yewscion has joined #commonlisp
meritamen has joined #commonlisp
miique has joined #commonlisp
triffid has quit [Remote host closed the connection]
traidare has quit [Ping timeout: 268 seconds]
triffid has joined #commonlisp
unl0ckd has quit [Ping timeout: 268 seconds]
lispmacs[work] has quit [Remote host closed the connection]
dnhester26 has quit [Remote host closed the connection]
meritamen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kevingal_ has joined #commonlisp
bendersteed has quit [Remote host closed the connection]
a51 has quit [Quit: WeeChat 4.1.2]
unl0ckd has joined #commonlisp
danse-nr3 has quit [Ping timeout: 245 seconds]
rogersm has joined #commonlisp
miique has quit [Ping timeout: 256 seconds]
yewscion has quit [Ping timeout: 245 seconds]
yewscion has joined #commonlisp
Demosthenex has quit [Ping timeout: 256 seconds]
shka has joined #commonlisp
azimut has quit [Remote host closed the connection]
azimut has joined #commonlisp
azimut has quit [Remote host closed the connection]
azimut has joined #commonlisp
<paulapatience> Is it just me, or is *default-pathname-defaults* initially set to #P"" on CCL?
overclucker has joined #commonlisp
overclucker_ has quit [Read error: Connection reset by peer]
azimut_ has joined #commonlisp
dnhester26 has joined #commonlisp
azimut has quit [Ping timeout: 240 seconds]
<beach> ,*default-pathname-defaults*
<ixelp> *default-pathname-defaults* => #P""
<beach> Looks that way.
tyson2 has quit [Remote host closed the connection]
yewscion has quit [Ping timeout: 264 seconds]
ronald has quit [Ping timeout: 276 seconds]
a51 has joined #commonlisp
yewscion has joined #commonlisp
danse-nr3 has joined #commonlisp
dcb has quit [Quit: Connection closed for inactivity]
<yitzi> On ccl #P"" leaves host as :unspecific. Everything else is NIL.
danse-nr3 has quit [Read error: Connection reset by peer]
<bike> ,(lisp-implementation-type) ,(lisp-implementation-version)
<ixelp> (lisp-implementation-type) => "Clozure Common Lisp", further (lisp-implementation-version) => "Version 1.11.5/v1.11.5 (LinuxARM32)"
<bike> huh, i see.
danse-nr3 has joined #commonlisp
waleee has joined #commonlisp
Demosthenex has joined #commonlisp
azimut_ has quit [Remote host closed the connection]
a51 has quit [Quit: WeeChat 4.1.2]
rogersm has quit [Remote host closed the connection]
unl0ckd has quit [Ping timeout: 268 seconds]
azimut has joined #commonlisp
dcb has joined #commonlisp
ronald has joined #commonlisp
azimut has quit [Remote host closed the connection]
luis1 has joined #commonlisp
azimut has joined #commonlisp
unl0ckd has joined #commonlisp
jladd has quit [Quit: ZNC - https://znc.in]
traidare has joined #commonlisp
jladd has joined #commonlisp
zaymington has joined #commonlisp
Lycurgus has joined #commonlisp
waleee has quit [Ping timeout: 256 seconds]
wheatengineer has quit [Ping timeout: 256 seconds]
tyson2 has joined #commonlisp
rtypo has joined #commonlisp
cage has joined #commonlisp
danse-nr3 has quit [Ping timeout: 260 seconds]
a51 has joined #commonlisp
Jach has quit [Ping timeout: 252 seconds]
ryuslash has quit [Quit: ZNC 1.8.2 - https://znc.in]
Kyuvi has quit [Ping timeout: 250 seconds]
zxcvz has joined #commonlisp
glaucon has quit [Read error: Connection reset by peer]
zxcvz has quit [Client Quit]
yewscion has quit [Remote host closed the connection]
yewscion has joined #commonlisp
rogersm has joined #commonlisp
rogersm has quit [Remote host closed the connection]
zaymington has quit [Remote host closed the connection]
zaymington has joined #commonlisp
rogersm has joined #commonlisp
pfdietz has joined #commonlisp
rbcarleton has quit [Ping timeout: 245 seconds]
tyson2 has quit [Remote host closed the connection]
wheatengineer has joined #commonlisp
wheatengineer has quit [Remote host closed the connection]
igemnace has quit [Read error: Connection reset by peer]
tibfulv has quit [Remote host closed the connection]
tibfulv has joined #commonlisp
pfdietz has quit [Quit: Client closed]
igemnace has joined #commonlisp
unl0ckd has quit [Ping timeout: 268 seconds]
yitzi has quit [Ping timeout: 245 seconds]
yitzi has joined #commonlisp
pfdietz has joined #commonlisp
Guest63 has joined #commonlisp
varjagg has joined #commonlisp
mgl has quit [Ping timeout: 260 seconds]
doyougnu- has joined #commonlisp
doyougnu has quit [Ping timeout: 276 seconds]
kenanb has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.1)]
green_ has quit [Ping timeout: 252 seconds]
Guest63 has quit [Quit: Client closed]
unl0ckd has joined #commonlisp
Posterdati has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
Posterdati has joined #commonlisp
waleee has joined #commonlisp
Devon7 has joined #commonlisp
thuna` has joined #commonlisp
Devon has quit [Ping timeout: 260 seconds]
tyson2 has joined #commonlisp
pfdietz has quit [Quit: Client closed]
mariari has quit [Ping timeout: 246 seconds]
jonatack has joined #commonlisp
jon_atack has quit [Ping timeout: 256 seconds]
zeka_ has quit [Read error: Connection reset by peer]
zeka_ has joined #commonlisp
green_ has joined #commonlisp
Spawns_Carpeting has quit [Remote host closed the connection]
tyson2 has quit [Remote host closed the connection]
mariari has joined #commonlisp
Spawns_Carpeting has joined #commonlisp
zaymington has quit [Ping timeout: 256 seconds]
unl0ckd has quit [Ping timeout: 268 seconds]
tyson2 has joined #commonlisp
attila_lendvai_ has quit [Remote host closed the connection]
attila_lendvai_ has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
doyougnu- has quit [Ping timeout: 260 seconds]
doyougnu has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
pfdietz has joined #commonlisp
pfdietz has quit [Client Quit]
pve has quit [Quit: leaving]
NicknameJohn has quit [Ping timeout: 268 seconds]
dnhester26 has quit []
cage has quit [Quit: rcirc on GNU Emacs 29.1]
<kevingal_> How can I load a file as a string without caring about the character encoding? I don't care if it's ASCII, UTF-8, whatever -- I just want an array of bytes. I then want to parse this "string" using esrap, hopefully that would work?
thuna` has quit [Remote host closed the connection]
jmdaemon has joined #commonlisp
<kevingal_> I think I've found my answer: treat it as binary data and read it into a byte array, as described here: https://gigamonkeys.com/book/files-and-file-io.html#reading-binary-data
<ixelp> Files and File I/O
mgl has joined #commonlisp
_cymew_ has quit [Ping timeout: 256 seconds]
traidare has quit [Ping timeout: 276 seconds]
yewscion has quit [Ping timeout: 256 seconds]
zeka_ has quit [Ping timeout: 256 seconds]
zeka has joined #commonlisp
Kyuvi has joined #commonlisp
<bike> kevingal_: alexandria has read-file-into-byte-vector for this purpose.
madnificent has quit [Remote host closed the connection]
Pixel_Outlaw has joined #commonlisp
<bike> can't tell you if esrap will work, though.
<kevingal_> Ah, perfect.
<kevingal_> I did manage to load it into a byte vector based on the gigamonkeys stuff but I can't treat the resulting vector as a string, which isn't promising.
jmdaemon has quit [Ping timeout: 260 seconds]
<bike> yeah, i mean it is not a string. a string is just an array of characters.
<bike> i'm not sure i understand what parsing you can even do without knowledge of the encoding
<aeth> kevingal_: babel
<aeth> though if you don't know the encoding...
<bike> without the encoding you can't even determine where characters begin and end. of course if you restrict the encoding to like, ascii supersets that don't put ascii bytes in the middle of non ascii characters, you could do some stuff
<kevingal_> It's for a bencoding encoder/decoder. All the parts that I need to read and treat as strings are basically restricted to ASCII, while some of the data is UTF-8/"just bytes" that I don't need to care about.
<ixelp> Storing UTF-8 Encoded Text with Strings - The Rust Programming Language
jmdaemon has joined #commonlisp
<younder> I think Rust has one of the best implementations of Unicode
<Odin-> Short version: Text is more complicated than you think.
<bike> okay, so the actual data is ascii and then there's also byte strings with known lengths that you don't care about the contents of. i see.
<bike> still don't know if esrap in particular can deal with that but it's possible to parse somehow or another.
<ixelp> GitHub - cl-babel/babel: Babel is a charset encoding/decoding library, not unlike GNU libiconv, written in pure Common L [...]
<aeth> though it's a bit consing
<kevingal_> bike: indeed. I was hoping that I could treat it as a string and the non-ASCII parts could be treated as "any old byte-sized character".
<aeth> to treat it as a string you convert the ascii encoding to a string
<bike> no, aeth, that would not work. the bytestrings are in an unknown and irrelevant encoding. you can't treat the whole thing as ascii.
<kevingal_> Ya, if I try to read the whole file as ASCII then I get a decoding error.
<Odin-> Well, because it isn't ASCII.
<bike> you could decode the thing with some coding that maps every byte to exactly one character, i guess.
<Odin-> If you insist, you could try telling it it's ISO8859-1, but that might still do weird things.
<bike> would be a little wacky. ideally you could parse in terms of bytes but it doesn't look like esrap can do that./
<ixelp> Technical Introduction
<Odin-> But at least that way you can fairly easily map code point to byte...
<aeth> what I mean is, you can just do this on subparts of the array. (babel:octets-to-string (make-array 1 :element-type '(unsigned-byte 8) :initial-element #x42) :encoding :ascii)
<aeth> it takes start/end
<aeth> it will wind up consing up potentially a ton of strings depending on the format, though
<bike> yes but you don't know which subparts are ascii until you do the parse.
<aeth> bike: yes, and? You go through the file to see which range is safe and then feed that to :start :end
<aeth> and then repeat
<bike> the entire idea here is "hey, what if i make this a string and feed it to esrap to do the parsing"
<bike> having to parse it yourself does not help with that
<younder> ASCII is UTF8
<bike> younder, dropping these uncontextualized links and statements is not very helpful.
<aeth> bike: scanning for starts/ends doesn't really seem like much as far as parsing goes, at least imo
<Odin-> aeth: Might be there's chunks of printable ASCII in the byte blocks?
* Odin- suddenly gets reminded of the arguments in 'Worse is Better'.
<ixelp> Chinese Notes
<bike> https://en.wikipedia.org/wiki/Bencode#Encoding_algorithm it's also not a totally trivial format. it's context free at least
<kevingal_> younder: Yeah, not sure what I'm supposed to be getting from these links, haha.
<aeth> anyway, what I'm talking about is basically just repeated (position-if (lambda (x) (<= x 127)) sequence)
<aeth> or, actually, the reverse
<bike> please look at the format
<aeth> > not <=
<younder> I find it confounding to support all these encoding and directions but good luck beach
<kevingal_> I was able to load the data as a string with: (uiop:read-file-string "file/path" :external-format :iso-8859-1), and esrap parsing seems to have worked.
<kevingal_> Thanks all!
<bike> great. i would be careful about that though.
<Odin-> kevingal_: I would not treat that as definitely working.
<younder> My problem is there is three level of ligature. the byte, the composite byte and then three characters composing a Chinese character before rendering a glyph to the screen. I never really got that third level.
<bike> is this related to kevingal's problem
<younder> Perhaps someone could explain it to me?
Kyuvi has quit [Ping timeout: 250 seconds]
<kevingal_> I was able to decode a file using ISO-8859-1 format, parse it using esrap, re-encode it, and get back the same data, so I'm satisfied for now.
<bike> yeah, i'd just be worried about something not round tripping through iso-8859-1
<bike> maybe it's a problem, maybe it's not, i dunno
<bike> it would be neat if esrap or something could parse sequences generally
<Odin-> bike: I suggested 8859-1 specifically because it's a full 8-bit encoding that coincides exactly with the first 256 codepoints of Unicode, so it should have the least chance of causing roundtripping issues.
<Odin-> Still wouldn't dare proclaim there aren't any.
<younder> WTF! iso-latin-1 aka iso-9959-1 is trivial it is the first 256 bytes of unicode.
<bike> Odin-: right.
<bike> i say "i dunno" because computer handling of language scares me and i try to avoid it rather than because i am knowledgeable
<bike> ideally we would all communicate in grunts and then it would not be an issue.
<younder> ?
<aeth> or we could just ask ChatGPT to assist us
<Odin-> bike: We'd just end up with ASCII-grunters and EBCDIC-grunters.
<bike> unless chatgpt is grunting at me i don't want to hear it.
<Odin-> Sometimes, sweeping things under the rug just brings you too close to the ceiling.
miique has joined #commonlisp
yvm has quit [Ping timeout: 252 seconds]
Kyuvi has joined #commonlisp
kevingal_ has quit [Ping timeout: 240 seconds]
kevingal has quit [Ping timeout: 256 seconds]
<edgar-rft> Neanderthal UTF-1 has only one character #\Ugh!
<Mondenkind> no; it encodes a complete sequence of unicode code points, in unary
<ixelp> Encoding overview - Globalization | Microsoft Learn
mgl has quit [Ping timeout: 246 seconds]
<younder> finally something that worked for me
attila_lendvai_ has quit [Quit: Leaving]
<younder> I'm starting to realize I am not the only one that finds Unicode implementation scary..
<bike> you are not.
mgl has joined #commonlisp
attila_lendvai has joined #commonlisp
czy has quit [Read error: Connection reset by peer]
green_ has quit [Ping timeout: 264 seconds]
mgl has quit [Ping timeout: 264 seconds]
tyson2 has joined #commonlisp
triffid has quit [Remote host closed the connection]
triffid has joined #commonlisp
Kyuvi has quit [Quit: Client closed]
attila_lendvai has quit [Ping timeout: 256 seconds]
makomo has quit [Ping timeout: 256 seconds]
NicknameJohn has joined #commonlisp
green_ has joined #commonlisp
lispmacs[work] has joined #commonlisp
rgherdt has quit [Remote host closed the connection]
rgherdt has joined #commonlisp
amb007 has quit [Ping timeout: 268 seconds]
`Pixel_Outlaw has joined #commonlisp
`Pixel_Outlaw has quit [Client Quit]
jmdaemon has quit [Ping timeout: 240 seconds]
yitzi has quit [Remote host closed the connection]
NicknameJohn has quit [Ping timeout: 260 seconds]
NicknameJohn has joined #commonlisp