<Josh_2>
I have a list and would like to split it into groups of 5, is there a built in function for this?
kevingal has quit [Ping timeout: 248 seconds]
<mfiano>
No, look at serapeum:batches
<jeosol>
mfiano: very nice. TIL about serapeum:batches (serapeum:batches (loop for i from 0 to 24 collect i) 5) => ((0 1 2 3 4) (5 6 7 8 9) (10 11 12 13 14) (15 16 17 18 19) (20 21 22 23 24))
<jeosol>
can come in handy for creating batch-sizes of data for training ML/AI models. it will be interesting if it hand some randomization option
waleee has quit [Ping timeout: 248 seconds]
tyson2 has quit [Remote host closed the connection]
neon_ has joined #commonlisp
neon has quit [Read error: Connection reset by peer]
kevingal has joined #commonlisp
azimut has quit [Ping timeout: 255 seconds]
azimut has joined #commonlisp
lxi has quit [Ping timeout: 248 seconds]
jmdaemon has quit [Ping timeout: 248 seconds]
jmdaemon has joined #commonlisp
gxt__ has quit [Ping timeout: 255 seconds]
gxt__ has joined #commonlisp
jmdaemon has quit [Ping timeout: 248 seconds]
jmdaemon has joined #commonlisp
jmdaemon has quit [Ping timeout: 248 seconds]
dcb has quit [Quit: MSN Messenger 3.8]
kevingal has quit [Ping timeout: 255 seconds]
elderK has quit [Quit: Connection closed for inactivity]
agent1011001 has joined #commonlisp
agent1011001 has quit [Client Quit]
ec has quit [Remote host closed the connection]
ec has joined #commonlisp
Josh_2 has quit [Read error: Connection reset by peer]
<qhong>
I have a shadowing-imported symbol in package A that resolves the conflict between two used packages B and C. Is there a way to replace that with a symbol whose home package is A?
<beach>
You mean without restarting the image and defining the package again?
qhong has quit [Remote host closed the connection]
qhong has joined #commonlisp
qhong has quit [Remote host closed the connection]
qhong has joined #commonlisp
qhong has quit [Remote host closed the connection]
qhong has joined #commonlisp
MajorBiscuit has joined #commonlisp
Guest63 has joined #commonlisp
glaucon has joined #commonlisp
<pjb>
qhong: (shadow 'foo) 'foo
<pjb>
(in-package "A") of course.
pve has joined #commonlisp
Guest63 has quit [Quit: Client closed]
glaucon has quit [Quit: Leaving.]
glaucon has joined #commonlisp
igemnace has joined #commonlisp
dcb has joined #commonlisp
psvensson has joined #commonlisp
psvensson is now known as repeter
luis has joined #commonlisp
MajorBiscuit has quit [Ping timeout: 264 seconds]
McParen has joined #commonlisp
anticomputer has quit [Quit: quit]
anticomputer has joined #commonlisp
random-nick has joined #commonlisp
karlosz has joined #commonlisp
Guest63 has joined #commonlisp
Guest63 has quit [Client Quit]
Guest63 has joined #commonlisp
rgherdt_ has joined #commonlisp
rgherdt has quit [Ping timeout: 268 seconds]
Guest63 has quit [Quit: Ping timeout (120 seconds)]
MajorBiscuit has joined #commonlisp
Guest63 has joined #commonlisp
anticomputer has quit [Ping timeout: 255 seconds]
anticomputer has joined #commonlisp
MajorBiscuit has quit [Quit: WeeChat 3.6]
MajorBiscuit has joined #commonlisp
MajorBiscuit has quit [Client Quit]
Cymew has joined #commonlisp
azimut has joined #commonlisp
MajorBiscuit has joined #commonlisp
Major_Biscuit has joined #commonlisp
MajorBiscuit has quit [Client Quit]
Lord_of_Life has quit [Read error: Connection reset by peer]
Lord_of_Life_ has joined #commonlisp
waleee has joined #commonlisp
Lord_of_Life_ is now known as Lord_of_Life
Guest63 has quit [Quit: Ping timeout (120 seconds)]
kevingal has joined #commonlisp
Major_Biscuit has quit [Ping timeout: 248 seconds]
X-Scale has joined #commonlisp
glaucon has quit [Quit: Leaving.]
Major_Biscuit has joined #commonlisp
occ has quit [Ping timeout: 264 seconds]
occ has joined #commonlisp
jeffrey has joined #commonlisp
morganw has joined #commonlisp
Major_Biscuit has quit [Ping timeout: 252 seconds]
Major_Biscuit has joined #commonlisp
shka has joined #commonlisp
marsia` has quit [Ping timeout: 260 seconds]
marsia has joined #commonlisp
Major_Biscuit has quit [Ping timeout: 255 seconds]
glaucon has joined #commonlisp
McParen has left #commonlisp [#commonlisp]
Major_Biscuit has joined #commonlisp
kenran has joined #commonlisp
amoroso has joined #commonlisp
lancuelot has quit [Quit: Connection closed for inactivity]
kenran has quit [Remote host closed the connection]
Guest63 has joined #commonlisp
Guest63 has quit [Quit: Client closed]
Cymew has quit [Ping timeout: 246 seconds]
kevingal has quit [Ping timeout: 268 seconds]
occ has quit [Ping timeout: 255 seconds]
occ has joined #commonlisp
Cymew has joined #commonlisp
Cymew has quit [Ping timeout: 268 seconds]
glaucon1 has joined #commonlisp
kevingal has joined #commonlisp
Major_Biscuit has quit [Ping timeout: 246 seconds]
amoroso has quit [Quit: Client closed]
amoroso has joined #commonlisp
son0p has joined #commonlisp
tyson2 has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
hineios5 has joined #commonlisp
hineios has quit [Ping timeout: 248 seconds]
hineios5 is now known as hineios
<scymtym>
gilberth: under "Affected By", https://novaspec.org/cl/f_pprint-newline (correctly) references *PRINT-MISER-WIDTH*. that reference (incorrectly) refers to *PRINT-MISER* in the dpANS3 sources. are you using a different version of dpANS, did you apply a fix in you local copy or does your translator fix errors on-the-fly?
<ixelp>
pprint-newline | Common Lisp Nova Spec
glaucon1 has quit [Quit: Leaving.]
<gilberth>
scymtym: I applied some fixes.
<scymtym>
gilberth: i see. thank you. would you be interested in contributing to https://github.com/s-expressionists/dpans/tree/fixes ? that repository has fixes for issues spotted by my conversion tool (and me)
<ixelp>
GitHub - s-expressionists/dpans at fixes
<gilberth>
There also is s/pprint-if-list-exhausted/pprint-exit-if-list-exhausted/ and s/with-output-from-string/with-output-to-string/ ;I came across those while I was compiling a list of ambiguous references or not-found references.
<scymtym>
yeah, i think i have those as well
<gilberth>
I have my fixes all in one place. I don't touch the TeX files, but run a routine over it to apply patches.
X-Scale has quit [Quit: Client closed]
<scymtym>
ok
<gilberth>
scymtym: When done with references, I'll share what I have with you.
<scymtym>
thank you
<gilberth>
Somehow I was not productive the last two days and took a break instead.
<splittist>
I can extract text (more or less) from helpfully-formatted PDFs. But there are a thousand details to sort out to be able to deal with slightly-less-helpfully-formatted files. And of course I've done nothing about table-recognition, let alone images or graphics. Or efficiency. Or practicality. And I'll be travelling for a week or so and will forget everything by the time I can get back to it. Thank you for reading my diary
<splittist>
entry...
<jcowan>
splittist: High-end OCR can do table recognition nicely
<masinter>
Adobe spent a lot getting training data for document structure recognition
<masinter>
you train the recognizer to decide what is header/footer vs content
<ixelp>
GitHub - masinter/parcftp-cl: files from cl directory of parcftp about 2014
cosimone` has joined #commonlisp
<masinter>
as well as mail archives discussing issues including those that didn't pass
<scymtym>
masinter: the hyperspec contains certain cleanup issues such as CHARACTER-PROPOSAL that i have never seen in any of the archives or repositories. do you know whether those issues are available anywhere
Guest63 has joined #commonlisp
<masinter>
character-proposal might be special -- there was a separate committee
<scymtym>
thank you for the information. i think there are more such issues, though. let me try to come up with a list
<masinter>
let's see: administration wasn't an issue, it was just a mail category
<masinter>
there shouldn't be any overlap between mail and old-mail
Lord_of_Life has joined #commonlisp
<masinter>
the 'passed' list wasn't complete... so there might be things that passed later but the discussion had started
<scymtym>
yeah, administration is an error
<masinter>
applyhook-environment passed but later applyhook was removed so it's in 'passed' but didn't affect CLHS
phantomics has quit [Quit: Ex-Chat]
<scymtym>
i'm mostly concerned with issues that are referenced in the dpANS TeX sources and present in CLHS but absent in passed/mail/old-mail, like ALLOW-LOCAL-INLINE. not having these issues means alternative renderings of dpANS like the ones gilberth and i are doing will be incomplete
anticomputer has quit [Ping timeout: 255 seconds]
azimut has quit [Ping timeout: 255 seconds]
joast has joined #commonlisp
anticomputer has joined #commonlisp
gxt__ has quit [Ping timeout: 255 seconds]
azimut has joined #commonlisp
<masinter>
i'm looking at ALLOW-LOCAL-INLINE
<jeosol>
good morning all! Hope you guys are all doing well
<masinter>
it's in dpANS1/issue-index.text
<jeosol>
I wanted to discuss storage objects and get any useful info on compression or if there are better for options.
<jeosol>
Basically, I have close objects, that are serialized to disk using cl-store. I read them, do some manipulation, save some data in them, and save a copy again. I want to save these objects on S3 for instance. Thoughts?
<scymtym>
masinter: yeah, i should include the index in the table. maybe tomorrow
Major_Biscuit has joined #commonlisp
<masinter>
there are some things that are mintioned in administration
<masinter>
there was a separate compiler committee apparently I don't remember the details
<masinter>
sandra loosemore chaired it
<masinter>
i wasn't on that committee and didn't have email archives from it
<masinter>
jeosol sorry
<masinter>
Medley uses hash files
<jeosol>
masinter: hi, was that response for my question?
<masinter>
jeosol yes, i'm looking up the documentation and source files
tyson2 has quit [Remote host closed the connection]
<masinter>
someone redid it in the 90's to a more common-lisp stylel, so translation should be eaiser
Major_Biscuit has quit [Ping timeout: 246 seconds]
<char[m]>
Bike: another ctype values question for you (or anyone else who knows). Why is it "if a suffix of the 'required' types includes NULL, those values are not actually required"?
<masinter>
jeosol -- you want the files CASH-FILE and HASH-FILE in the medley repository, in the 'library' folder
<jeosol>
masinter: I am not sure your response was for me or it's confused. basically I am asking if the compression for cl-store on CLOS objects is "good" for storage on S3. Sorry if I didn't get the context of cash-file nad hash-file
<masinter>
jeool my answer was likely totally irrelevant to your question
seere has quit [Ping timeout: 264 seconds]
<masinter>
"if you have a hammer, every problem looks like a nail"
<jcowan>
s/you have/all you have is
<Bike>
char[m]: this is again based on cl:the behavior - there is actually no standard way to require a nil, because "Missing values are treated as nil for the purposes of checking their types."
seere has joined #commonlisp
<Bike>
(i don't particularly like this behavior, but i think it is the correct interpretation of the standard)
<Bike>
at least, no standard way to require a nil unless there are later non-null values required
<Bike>
at some point i should probably incorporate some options to use non-standard interpretations here
<char[m]>
(the (values boolean) (values)) something like that?
<char[m]>
where (values boolean) becomes (values &optional boolean).
<Bike>
that is what ctype does, yeah
<Bike>
it uses a strict representation internally, but the parser incorporates this fudge layer
<char[m]>
Cool. Thanks again
szkl has joined #commonlisp
samedi has joined #commonlisp
Inline has joined #commonlisp
euandreh has joined #commonlisp
zyni-moe has joined #commonlisp
<NotThatRPG>
Is there a stream that is the opposite of a broadcast stream? A stream that collects output sent to multiple streams? I'm looking to send *standard-output* and *error-output* to the same file...
zyni-moe has quit [Client Quit]
<NotThatRPG>
I'm probably just blanking on the terms that will help me find the right solution
<Bike>
NotThatRPG: well you can just bind both variables to the same stream.
<NotThatRPG>
Bike: Ah. I didn't know if that would work. Will do.
<Bike>
it should work
<NotThatRPG>
Thanks. I will test it.
<Bike>
i don't think there is an inverse broadcast stream object (though the bindings should make it unnecessary)
<pjb>
I guess you could implement an inverse broadcast stream with Gray streams.
<pjb>
It wouldn't output anything until it has been inputted on all its inputs…
<char[m]>
Bike: (the (values boolean &optional nil) (values)) errors on sbcl. Is that standard non-optional nil or is that specific to sbcl (nonconforming bug?).
shka has quit [Ping timeout: 255 seconds]
rgherdt_ has quit [Remote host closed the connection]
<Bike>
sbcl's interpretation is that if your values type includes a lambda list keyword, it uses strict semantics and none o the rules in cl:the really apply
<Bike>
i don't, personally, think is correct, but it's not a big enough deal for me to complain about
<Bike>
think this is correct*
<Bike>
since i think the standard just kind of sucks here mostly
<Bike>
the reason sbcl does that is that if you look up the definition of the values type specifier, it uses strict semantics, defining it in terms of arguments acceptable to a multiple-value-call
<Bike>
however, every use of values types in the standard goes through THE, which does not do anything like that
<Bike>
so sbcl's logic is that if there's lambda list stuff, they should use the rules under the values type specifier page, and otherwise the THE rules
Inline has quit [Remote host closed the connection]
<Bike>
my interpretation is that the values type specifier page is just a mistake since the actual operators are defined through THE, and in any case having (values foo &optional) and (values foo) be different types seems too silly
Inline has joined #commonlisp
Inline has quit [Remote host closed the connection]
Inline has joined #commonlisp
<Bike>
but because the standard is obviously messed up here i don't really want to argue about this
<char[m]>
I'm not here to argue, I just want to understand. Sometimes I feel like the existence of values at all is a mistake. 😁
<Bike>
yeah i know you're not arguing, i'm just explaining why i wouldn't want to file a bug with sbcl
<Bike>
i suppose i should write it up for wscl, though. maybe i did already
masinter has quit [Remote host closed the connection]
occ has quit [Ping timeout: 264 seconds]
molson has quit [Remote host closed the connection]
gxt__ has quit [Write error: Connection reset by peer]
jeffrey has quit [Quit: Client quit]
gxt__ has joined #commonlisp
azimut_ has joined #commonlisp
azimut has quit [Ping timeout: 255 seconds]
<char[m]>
being able to use strict values semantics in the ctype parser would be cool, but I'm not sure what it would look like to specify strict vs vague.
morganw has quit [Remote host closed the connection]
<Bike>
well, a simple way would be to have a nonstandard type specifier for it. like (svalues ...) means a values type with the mvcall semantics
<Bike>
sbcl does something a bit like that internally