* splittist
has made it as far as Brussels on his way to ELS
jmdaemon has quit [Ping timeout: 240 seconds]
<jackdaniel>
almost there, keep going
<splittist>
“boy, are my arms tired”
<splittist>
Why would Deflate encoders emit an encoded stream with #\String-Terminator or #(#\x #\String-Terminator) prefixes that would prevent a naive decoding, but when skipped, would decode successfully. (If you see what I mean.)
<splittist>
?
attila_lendvai_ has quit [Ping timeout: 248 seconds]
attila_lendvai_ has joined #commonlisp
attila_lendvai_ has quit [Ping timeout: 246 seconds]
random-nick has joined #commonlisp
euandreh has joined #commonlisp
Brucio-61 has quit [Ping timeout: 260 seconds]
scymtym has quit [Ping timeout: 276 seconds]
<jackdaniel>
edwlan[m]: thanks for the hint, the company mode is something I've needed (but didn't know about it)
triffid has quit [Remote host closed the connection]
triffid has joined #commonlisp
Brucio-61 has joined #commonlisp
anticomputer has quit [Remote host closed the connection]
scymtym has joined #commonlisp
anticomputer has joined #commonlisp
Brucio-61 has quit [Ping timeout: 260 seconds]
Brucio-61 has joined #commonlisp
jonatack has quit [Ping timeout: 240 seconds]
uddipiggu has joined #commonlisp
jonatack has joined #commonlisp
mooseball has quit [Quit: Leaving]
mikko has quit [Ping timeout: 260 seconds]
occ has joined #commonlisp
LW has quit [Quit: WeeChat 3.8]
mikko has joined #commonlisp
mikko has quit [Changing host]
mikko has joined #commonlisp
Josh_2 has quit [Ping timeout: 255 seconds]
_cymew_ has joined #commonlisp
X-Scale has joined #commonlisp
treflip has quit [Ping timeout: 260 seconds]
<semz>
splittist: reeks of zlib format
<semz>
yeah, #\x #\String-Terminator would be #x78 #x9C, which is a zlib header
<semz>
some people say deflate and take it to mean zlib for some reason. is notably the case in HTTP's Content-Encoding
tyson2 has joined #commonlisp
karlosz has joined #commonlisp
qhong has joined #commonlisp
ebrasca has joined #commonlisp
nij- has quit [Ping timeout: 246 seconds]
<splittist>
semz: great - thanks! This is in the context of PDFs, fwiw.
Gleefre has joined #commonlisp
occ has quit [Read error: Connection reset by peer]
easye has quit [Remote host closed the connection]
easye has joined #commonlisp
<jdz>
AFIK deflate does not use any kind of magic indicator / header.
pranavats has left #commonlisp [Error from remote client]
pranavats has joined #commonlisp
zxcvz has joined #commonlisp
<Shinmera>
Yeah, there's ... iirc three containers that use deflate
zxcvz has quit [Client Quit]
Cymew has quit [Ping timeout: 250 seconds]
<czy>
when does #'describe return the source form?
<beach>
czy: If there were a reliable way to return a source form, then Common Lisp would never be used as a product by commercial vendors.
<jackdaniel>
seeing the source code does not invalidate copyright and license
<beach>
I didn't say that either.
<jackdaniel>
alright, but then I don't understand why Common Lisp would never be used as a product by commercial vendors
<jackdaniel>
(if describe had reliably returned source forms)
X-Scale has quit [Quit: Client closed]
<beach>
I see.
<jackdaniel>
Great!
<czy>
beach: fair enough, so if i want to see it myself, chances are i will have to be grepping the sbcl (or what have you) source?
<jackdaniel>
czy: common lisp implementations often feature an extension known as "source locations", basically various objects have an information recorded that points to the source code
<jackdaniel>
IDE's like SLIME use it (in SLIME you may navigate to the source code, when available, with M-.)
szkl has quit [Quit: Connection closed for inactivity]
<beach>
czy: I have nothing to add to what jackdaniel told you.
rtypo has joined #commonlisp
ebrasca has quit [Ping timeout: 255 seconds]
<czy>
jackdaniel, beach: thank you, it worked like a charm!
<jackdaniel>
sure
NotThatRPG has joined #commonlisp
kenran has quit [Remote host closed the connection]
skin has joined #commonlisp
Cymew has joined #commonlisp
lucasta has joined #commonlisp
edgar-rft has quit [Remote host closed the connection]
mooseball has joined #commonlisp
makomo has joined #commonlisp
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mooseball has quit [Client Quit]
NotThatRPG has joined #commonlisp
<cpli>
how can i read `.` as simply `#\.`?
<cpli>
i.e. what *readtable* adjustment would allow me to read https://0x0.st/H8ym.txt as simply `(DEFSRC ESC MUTE #| ... |# #\. #| ... |#)`?
<phoe>
cpli: none
<phoe>
the dot is not read as a part of the readtable but as a part of the reader macro for #\(
<phoe>
so you would need to replace that one
<phoe>
...well, not exactly "none" per se then, but yes it's not in an obvious place
keinbock has joined #commonlisp
<cpli>
phoe, can i take the already existing #\( reader and adjust it?
<phoe>
probably, yeah; look for it in your implementation sources
<cpli>
no trivial-readtables to make this implementation agnostic?
<phoe>
I have no idea if the reader macro for #\( is allowed to be portably redefined
<phoe>
"The specification files are read by the normal Lisp reader, so they have syntax very similar to normal Lisp code. In particular, semicolon-comments and reader-macros will work as expected."
<cpli>
oh, reasonable. i assume it simply implements eval itself
<skin>
That way you wouldn't have to muck with paren reader macro, which lisp really, really wants to turn into a list. But Lisp has explicitly steered clear of brackets so we can use them for whatever.
NotThatRPG_ has joined #commonlisp
NotThatRPG_ has quit [Client Quit]
tyson2 has quit [Remote host closed the connection]
tibfulv has quit [Remote host closed the connection]
tibfulv has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
Cymew has quit [Ping timeout: 260 seconds]
dcb has quit [Remote host closed the connection]
dcb has joined #commonlisp
karlosz has joined #commonlisp
<pjb>
cpli: yes you can redefine the reader macro on #\( and when you do that, you have no obligation in implementing what is specified for the standard reader macro for #\( ; however, be careful. Some implementation use cl:read-delimited-list in their reader macro for #\( with a wrong (non-conforming) implementation that allows for dotted lists. The standard reader macro for #\( cannot use cl:read-delimited-list since the later cannot
<pjb>
handle dotted lists.
<pjb>
cpli: you could of course wrap your threads in filter streams that remove dots, but it would be more complicated. There's really only a single place where dots are processed, it's in the reader macro for #\( .
<pjb>
cpli: read the Chapter 2 for more information.
Gleefre has quit [Remote host closed the connection]