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/>
wacki_ has quit [Ping timeout: 246 seconds]
shka has quit [Ping timeout: 252 seconds]
troojg has quit [Ping timeout: 272 seconds]
spdegabrielle has quit [Quit: Connection closed for inactivity]
supercode has quit [Quit: Client closed]
kevingal has quit [Ping timeout: 246 seconds]
wacki has joined #commonlisp
Akbar-Birbal has joined #commonlisp
wacki has quit [Ping timeout: 272 seconds]
Akbar-Birbal has left #commonlisp [#commonlisp]
wacki has joined #commonlisp
Akbar-Birbal has joined #commonlisp
wacki has quit [Ping timeout: 252 seconds]
wacki has joined #commonlisp
wacki has quit [Ping timeout: 260 seconds]
shawnw has quit [Ping timeout: 265 seconds]
crestofthebeast has joined #commonlisp
Pixel_Outlaw has quit [Quit: Leaving]
random-nick has quit [Ping timeout: 260 seconds]
wacki has joined #commonlisp
gorignak has joined #commonlisp
wacki has quit [Ping timeout: 246 seconds]
pabs3 has quit [Quit: Don't rest until all the world is paved in moss and greenery.]
pabs3 has joined #commonlisp
markb1 has quit [Remote host closed the connection]
crestofthebeast has quit [Quit: Client closed]
emaczen has joined #commonlisp
mzan has joined #commonlisp
drewjose has quit [Ping timeout: 246 seconds]
drewjose has joined #commonlisp
wacki has joined #commonlisp
wacki has quit [Ping timeout: 246 seconds]
wacki has joined #commonlisp
emaczen has quit [Ping timeout: 252 seconds]
wacki has quit [Ping timeout: 252 seconds]
randm has quit [Remote host closed the connection]
randm has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 252 seconds]
Lord_of_Life has joined #commonlisp
amb007 has joined #commonlisp
hineios23 has quit [Ping timeout: 246 seconds]
hineios23 has joined #commonlisp
amb007 has quit [Ping timeout: 244 seconds]
shawnw has joined #commonlisp
decweb has quit [Ping timeout: 252 seconds]
troojg has joined #commonlisp
wacki has joined #commonlisp
wacki has quit [Ping timeout: 260 seconds]
PennyBlake has joined #commonlisp
wacki has joined #commonlisp
wacki has quit [Ping timeout: 252 seconds]
lazy has left #commonlisp [Leaving]
JuanDaugherty has joined #commonlisp
m5zs7k has quit [Ping timeout: 276 seconds]
amb007 has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
m5zs7k has joined #commonlisp
rainthree has joined #commonlisp
wacki has joined #commonlisp
mistivia has joined #commonlisp
wacki has quit [Ping timeout: 260 seconds]
troojg has quit [Ping timeout: 260 seconds]
wacki has joined #commonlisp
wacki has quit [Ping timeout: 252 seconds]
phantomics has quit [Remote host closed the connection]
skeemer has joined #commonlisp
rainthree has quit [Ping timeout: 265 seconds]
PennyBlake has quit [Ping timeout: 252 seconds]
crumbles has quit [Quit: ZNC - https://znc.in]
crumbles has joined #commonlisp
shka has joined #commonlisp
varjag has joined #commonlisp
paddymahoney has quit [Ping timeout: 244 seconds]
jrm has quit [Quit: ciao]
jrm has joined #commonlisp
wacki has joined #commonlisp
pve has joined #commonlisp
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
bitspook has joined #commonlisp
wacki has quit [Ping timeout: 252 seconds]
qhong has quit [Ping timeout: 246 seconds]
alcor has joined #commonlisp
mgl has joined #commonlisp
paddymahoney has joined #commonlisp
wacki has joined #commonlisp
qhong has joined #commonlisp
treflip has joined #commonlisp
varjag has quit [Ping timeout: 265 seconds]
meaty has quit [Ping timeout: 255 seconds]
rtypo has joined #commonlisp
puke has quit [Ping timeout: 260 seconds]
attila_lendvai has joined #commonlisp
treflip has quit [Remote host closed the connection]
treflip has joined #commonlisp
phantomics has joined #commonlisp
McParen has joined #commonlisp
spdegabrielle has joined #commonlisp
attila_lendvai has quit [Ping timeout: 248 seconds]
elderK has joined #commonlisp
donleo has joined #commonlisp
Josh_2 has joined #commonlisp
<Josh_2> Hi :wave:
treflip has quit [Ping timeout: 244 seconds]
JuanDaugherty has quit [Quit: JuanDaugherty]
McParen has left #commonlisp [#commonlisp]
bitspook has quit [Ping timeout: 260 seconds]
heisig has joined #commonlisp
JuanDaugherty has joined #commonlisp
ingeniot has joined #commonlisp
cage has joined #commonlisp
cage has quit [Excess Flood]
cage has joined #commonlisp
pranav has quit [Remote host closed the connection]
gioyik has joined #commonlisp
ingeniot has quit [Ping timeout: 256 seconds]
Josh_2 has quit [Ping timeout: 252 seconds]
alternateved has joined #commonlisp
alternateved has quit [Remote host closed the connection]
edgar-rft_ has joined #commonlisp
alternateved has joined #commonlisp
edgar-rft has quit [Ping timeout: 252 seconds]
random-nick has joined #commonlisp
puke has joined #commonlisp
edgar-rft_ is now known as edgar-rft
<elderK> Hey aeth, for your defstar, how did you go about parsing the lambda list? I've been trying several different ways and they all feel kind of meh or overkill.
chomwitt has joined #commonlisp
alcor has quit [Remote host closed the connection]
alternateved has quit [Remote host closed the connection]
spdegabrielle has quit [Quit: Connection closed for inactivity]
alternateved has joined #commonlisp
heisig has quit [Quit: Leaving]
elderK has quit [Quit: Sleep]
pin56 has joined #commonlisp
pin56 has quit [Remote host closed the connection]
pranav has joined #commonlisp
pin56 has joined #commonlisp
pin56 has quit [Remote host closed the connection]
pin56 has joined #commonlisp
pin56 has quit [Remote host closed the connection]
pin56 has joined #commonlisp
pin56 has joined #commonlisp
pin56 has quit [Remote host closed the connection]
pranav has quit [Remote host closed the connection]
kathe has joined #commonlisp
yitzi has joined #commonlisp
kathe has quit [Quit: Leaving]
paddymahoney has quit [Ping timeout: 255 seconds]
paddymahoney has joined #commonlisp
JuanDaugherty has quit [Quit: JuanDaugherty]
johnjaye has quit [Ping timeout: 272 seconds]
johnjaye has joined #commonlisp
amb007 has quit [Ping timeout: 265 seconds]
decweb has joined #commonlisp
amb007 has joined #commonlisp
alexander1 has joined #commonlisp
gioyik has quit [Ping timeout: 260 seconds]
josrr has joined #commonlisp
green has joined #commonlisp
yitzi has quit [Remote host closed the connection]
green__ has joined #commonlisp
gioyik has joined #commonlisp
pranav has joined #commonlisp
gioyik has quit [Ping timeout: 260 seconds]
gorignak has quit [Quit: quit]
gorignak has joined #commonlisp
shawnw has quit [Ping timeout: 252 seconds]
drewjose has quit [Quit: Ping timeout (120 seconds)]
gioyik has joined #commonlisp
drewjose has joined #commonlisp
gioyik has quit [Ping timeout: 260 seconds]
brokkoli_originl has quit [Ping timeout: 265 seconds]
skeemer has quit [Ping timeout: 252 seconds]
treflip has joined #commonlisp
treflip has quit [Remote host closed the connection]
treflip has joined #commonlisp
brokkoli_origin has joined #commonlisp
prokhor_ has quit [Ping timeout: 252 seconds]
gioyik has joined #commonlisp
gorignak has quit [Quit: quit]
gorignak has joined #commonlisp
amb007 has quit [Ping timeout: 265 seconds]
gioyik has quit [Ping timeout: 260 seconds]
amb007 has joined #commonlisp
phantomics has quit [Ping timeout: 245 seconds]
phantomics has joined #commonlisp
attila_lendvai has joined #commonlisp
alexander1 has quit [Ping timeout: 265 seconds]
troojg has joined #commonlisp
char has joined #commonlisp
attila_lendvai_ has joined #commonlisp
attila_lendvai has quit [Ping timeout: 260 seconds]
drewjose has quit [Ping timeout: 248 seconds]
drewjose has joined #commonlisp
<char> Hey bike (or anyone else), in the ctype project, there is a comment that says "if a suffix of the "required" types includes NULL, those values are not actually required.". Do you have a source for that?
<bike> https://www.lispworks.com/documentation/HyperSpec/Body/s_the.htm#the "Missing values are treated as nil for the purposes of checking their types."
<ixelp> CLHS: Special Operator THE
<char> I see that is in the for THE, would that apply to VALUES used in FUNCTION as well? ctype seems to apply this rule at the parsing level.
<bike> yes, declaring a function return type is equivalent to wrapping calls to that function in a THE form
<bike> per the documentation for the FUNCTION type
<char> Thank you so much!
<bike> no problem
<char> One more thing, so is there no way to specify that a function must return nil? It seems that ctype would always move the null type into optional. If you wrote (values null), it would parse as (values &optional null)
wacki has quit [Ping timeout: 252 seconds]
wacki has joined #commonlisp
<bike> char: i don't think there is any standard way to say that a function returns exactly one nil. sbcl has a different interpretation and treats (values null &optional) as meaning that.
supercode has joined #commonlisp
<char> Would you say that sbcl is non-conforming in that regard? or perhaps the spec is just too vauge.
<bike> i don't like sbcl's interpretation, but the spec is self contraictory about values types anyway, so i can't blame sbcl for coming up with something that lets you write useful declarations
<bike> self contradictory -> check out the page on the values type, and marvel at how unlike it is in THE
mwnaylor has quit [Remote host closed the connection]
mwnaylor has joined #commonlisp
troojg has quit [Ping timeout: 272 seconds]
McParen has joined #commonlisp
<McParen> hey #cl, what is the common way to replace str1 with str2 in a target string? (the lisp version of sed s/foo/bar/g)
<McParen> there is substitute but only replaces one char for another char in a sequence, but is there a way to do this for substrigs?
<McParen> there is "replace", but this only replaces strings of same length.
chomwitt has quit [Ping timeout: 252 seconds]
mathrick has quit [Ping timeout: 246 seconds]
char has quit [Ping timeout: 260 seconds]
<bike> McParen: i'd just use ppcre
<bike> a simpler function to do it would be simple to write, alternatiely
<McParen> ideally, somebody would already have written it in all the years lisp exists, but not just a string replacement, but a seqeunce version of substitute.
mathrick has joined #commonlisp
<paulapatience> McParen: serapeum:string-replace-all
<paulapatience> And string-replace
<McParen> paulapatience: that looks good, thanks.
PennyBlake has joined #commonlisp
skeemer has joined #commonlisp
<McParen> its a pity that it only works for strings and not for sequences in general, to "complete" what the standard library is missing.
Akbar-Birbal has left #commonlisp [Error from remote client]
hashfunc has joined #commonlisp
mgl has quit [Remote host closed the connection]
mgl has joined #commonlisp
<Bubblegumdrop> I do some horrible things with ppcre
shka has quit [Quit: Konversation terminated!]
Posterdati has quit [Remote host closed the connection]
Pixel_Outlaw has joined #commonlisp
shka has joined #commonlisp
Posterdati has joined #commonlisp
hashfunc has quit [Remote host closed the connection]
char has joined #commonlisp
chomwitt has joined #commonlisp
<paulapatience> Do you often have to replace all in a vector? It has never happened to me to need that.
<McParen> not really, but such a function still feels like missing from the standard library.
<Bubblegumdrop> (mapcar (lambda (x) (substitute new old x)) seq)
<Bubblegumdrop> I think there's a library that lets you write lambdas shorter.
<Bubblegumdrop> If you write it as a helper function you can compose it with ALEXANDRIA:COMPOSE
<Bubblegumdrop> (mapcar (alexandria:compose #'substitute-1 #'substitute-2) seq)
<Bubblegumdrop> I've done this.
alendvai__ has joined #commonlisp
yitzi has joined #commonlisp
supercode has quit [Quit: Client closed]
attila_lendvai_ has quit [Ping timeout: 252 seconds]
<McParen> this is what i came up with, seems to work with lists, vectors and strings: http://paste.debian.net/hidden/0444a666/
<ixelp> Debian Pastezone
alendvai__ has quit [Ping timeout: 252 seconds]
troojg has joined #commonlisp
yitzi has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
McParen has left #commonlisp [#commonlisp]
yitzi has joined #commonlisp
char has quit [Ping timeout: 260 seconds]
treflip has quit [Ping timeout: 265 seconds]
varjag has joined #commonlisp
char has joined #commonlisp
drewjose has quit [Ping timeout: 260 seconds]
paddymahoney has quit [Ping timeout: 255 seconds]
drewjose has joined #commonlisp
PennyBlake has quit [Read error: Connection reset by peer]
troojg has quit [Ping timeout: 264 seconds]
paddymahoney has joined #commonlisp
cage has quit [Remote host closed the connection]
akoana has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
paddymahoney has quit [Ping timeout: 255 seconds]
amb007 has joined #commonlisp
shka has quit [Ping timeout: 252 seconds]
pve has quit [Quit: leaving]
mgl has quit [Ping timeout: 252 seconds]
char has quit [Ping timeout: 276 seconds]
gorignak has quit [Quit: quit]
gorignak has joined #commonlisp
alternateved has quit [Remote host closed the connection]
akoana has quit [Quit: leaving]
amb007 has quit [Ping timeout: 265 seconds]
amb007 has joined #commonlisp
yitzi has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
minion has joined #commonlisp
specbot has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
supercode has joined #commonlisp
varjag has quit [Ping timeout: 252 seconds]
amb007 has quit [Ping timeout: 265 seconds]
Oladon has quit [Read error: Connection reset by peer]
donleo has quit [Ping timeout: 252 seconds]
wacki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
troojg has joined #commonlisp
chomwitt has quit [Ping timeout: 248 seconds]
paddymahoney has joined #commonlisp