jackdaniel changed the topic of #lisp to: Common Lisp, the #1=(programmable . #1#) programming language | <https://irclog.tymoon.eu/freenode/%23lisp> <https://irclog.whitequark.org/lisp> <http://ccl.clozure.com/irc-logs/lisp/> | offtopic --> #lispcafe
justache has joined #lisp
hiroaki has quit [Ping timeout: 240 seconds]
Oladon has joined #lisp
davepdotorg has joined #lisp
davepdotorg has quit [Ping timeout: 272 seconds]
Patzy_ has quit [Ping timeout: 272 seconds]
johnjay has quit [Ping timeout: 240 seconds]
kaftejiman__ has quit [Remote host closed the connection]
sonologico has quit [Remote host closed the connection]
sonologico has joined #lisp
johnjay has joined #lisp
iissaacc has joined #lisp
Patzy_ has joined #lisp
sonologico has quit [Remote host closed the connection]
sonologico has joined #lisp
notzmv` has joined #lisp
notzmv` is now known as zmv
zmv has quit [Changing host]
zmv has joined #lisp
notzmv has quit [Ping timeout: 256 seconds]
zmv is now known as notzmv
leo_song has quit [Ping timeout: 264 seconds]
abhixec has joined #lisp
leo_song has joined #lisp
__jrjsmrtn__ has quit [Ping timeout: 260 seconds]
X-Scale` has joined #lisp
__jrjsmrtn__ has joined #lisp
X-Scale has quit [Ping timeout: 264 seconds]
X-Scale` is now known as X-Scale
IAmRasputin has joined #lisp
arpunk has joined #lisp
IAmRasputin has quit [Ping timeout: 260 seconds]
theBlackDragon has joined #lisp
zacts has joined #lisp
abhixec has quit [Read error: Connection reset by peer]
Bourne has joined #lisp
davepdotorg has joined #lisp
<zacts> re: indenting lisp in vim/neovim, I just discovered this plugin https://github.com/ds26gte/neoscmindent
<zacts> it seems to work well enough for me
davepdotorg has quit [Ping timeout: 260 seconds]
cosimone has joined #lisp
cosimone has quit [Client Quit]
cosimone has joined #lisp
cosimone has quit [Client Quit]
IAmRasputin has joined #lisp
epony has quit [Ping timeout: 258 seconds]
IAmRasputin has quit [Ping timeout: 272 seconds]
rusua_ has quit [Quit: Connection closed for inactivity]
epony has joined #lisp
abhixec has joined #lisp
davepdotorg has joined #lisp
Stanley00 has joined #lisp
davepdotorg has quit [Ping timeout: 272 seconds]
gaqwas has quit [Ping timeout: 264 seconds]
gaqwas has joined #lisp
gaqwas has quit [Changing host]
gaqwas has joined #lisp
<beach> Good morning everyone!
shifty has quit [Ping timeout: 272 seconds]
Alfr has joined #lisp
Alfr_ has quit [Ping timeout: 240 seconds]
ex_nihilo has joined #lisp
mindCrime has quit [Ping timeout: 244 seconds]
epony has quit [Ping timeout: 258 seconds]
davepdotorg has joined #lisp
notzmv` has joined #lisp
notzmv has quit [Ping timeout: 240 seconds]
toorevitimirp has joined #lisp
<iissaacc> I'm trying to add permessage-deflate support to hunchensocket, but I don't seem to be able to decompress the message payload with any of the deflate libraries for CL. I've put some example code here: https://paste.centos.org/view/4cbf4f54 . I must be doing something wrong but I can't figure it out
<iissaacc> Anyone have any ideas?
IAmRasputin has joined #lisp
TwoNotes has quit [Remote host closed the connection]
IAmRasputin has quit [Ping timeout: 260 seconds]
sts-q has joined #lisp
Bike has quit [Quit: leaving]
<remexre> is there a standard class for streams, or is (satisfies input-stream-p) the best I'm gonna get?
<beach> clhs stream
gravicappa has joined #lisp
Bike has joined #lisp
<remexre> oh, derp; thanks
<beach> remexre: If you go to the symbol index in the Common Lisp HyperSpec and look under `s', you will find this entry.
<beach> And you can use the permuted index to see any symbol that has "stream" in it.
<remexre> yeah, I'd assumed it didn't exist (under that name) since I clicked stream and got a glossary entry; I need to start remembering that italics =/= there is no bold version...
<beach> You are right that it is often unhelpful that the links go to the glossary, especially since the glossary often does not link back to any relevant section.
sts-q has quit [Ping timeout: 264 seconds]
iissaacc has quit [Ping timeout: 240 seconds]
decentyousername has joined #lisp
Bike has quit [Remote host closed the connection]
Bike has joined #lisp
PuercoPop has quit [Quit: WeeChat 1.9.1]
iissaacc has joined #lisp
sts-q has joined #lisp
davepdotorg has quit [Ping timeout: 260 seconds]
epony has joined #lisp
bilegeek has quit [Quit: Leaving]
aartaka has joined #lisp
orivej has joined #lisp
Bike has quit [Remote host closed the connection]
_whitelogger has joined #lisp
zacts has quit [Quit: leaving]
decentyousername has quit [Ping timeout: 272 seconds]
davepdotorg has joined #lisp
saganman has joined #lisp
davepdotorg has quit [Ping timeout: 272 seconds]
aartaka has quit [Read error: Connection reset by peer]
IAmRasputin has joined #lisp
bocaneri has joined #lisp
IAmRasputin has quit [Ping timeout: 260 seconds]
narimiran has joined #lisp
rogersm_ has joined #lisp
iissaacc has quit [Ping timeout: 240 seconds]
rogersm_ has quit [Ping timeout: 240 seconds]
davepdotorg has joined #lisp
davepdotorg has quit [Ping timeout: 260 seconds]
cjv has quit [Quit: Textual IRC Client: www.textualapp.com]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
minion has quit [Remote host closed the connection]
minion has joined #lisp
Oddity_ has joined #lisp
minion has quit [Remote host closed the connection]
minion has joined #lisp
frgo has quit [*.net *.split]
mjl has quit [*.net *.split]
skapata has quit [*.net *.split]
jsatk has quit [*.net *.split]
sebboh has quit [*.net *.split]
tekipeps[m] has quit [*.net *.split]
tfb has quit [*.net *.split]
johs has quit [*.net *.split]
kelamir[m] has quit [*.net *.split]
Oddity has quit [*.net *.split]
ccl-logbot has quit [*.net *.split]
specbot has quit [*.net *.split]
dyelar has quit [*.net *.split]
p_l has quit [*.net *.split]
xzax_[m]1 has quit [*.net *.split]
voidlily has quit [*.net *.split]
nopf has quit [*.net *.split]
specbot has joined #lisp
mjl has joined #lisp
tfb has joined #lisp
jsatk has joined #lisp
sebboh has joined #lisp
johs has joined #lisp
p_l has joined #lisp
nyd has joined #lisp
tekipeps[m] has joined #lisp
xzax_[m]1 has joined #lisp
sonologico has quit [Remote host closed the connection]
ccl-logbot has joined #lisp
frgo has joined #lisp
skapata has joined #lisp
voidlily has joined #lisp
kelamir[m] has joined #lisp
nopf has joined #lisp
kelamir[m] has quit [Changing host]
kelamir[m] has joined #lisp
jprajzne has quit [Quit: jprajzne]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
ym555 has joined #lisp
krid` has joined #lisp
narimiran has quit [Ping timeout: 240 seconds]
decentyousername has joined #lisp
narimiran has joined #lisp
<flip214> how far did phoe's ultra spec get?
gensym has quit [Ping timeout: 240 seconds]
krid has quit [Ping timeout: 240 seconds]
gensym has joined #lisp
<JohnTalent> So you guys debate over EQL till you've reached the OR operator in it but do you people actually do real world things with lisp?
yoel has joined #lisp
yoel is now known as Guest68311
<no-defun-allowed> "Having asked about the possibility that there are real people out there who use LISP (as opposed to AI People who are known to be non-real) and having received no answers, I can only conclude that LISP is not being used and that it is not, therefore, a real language."
yoeljacobsen has joined #lisp
Guest68311 has quit [Client Quit]
amb007 has quit [Read error: Connection reset by peer]
rogersm_ has joined #lisp
<mseddon> wah
<no-defun-allowed> The closing words of "The key of Lisp", a short-lived article series in Lisp Pointers.
<mseddon> oh, heh. I thought it was far less self-aware than that.
decentyousername has quit [Quit: WeeChat 2.3]
rogersm_ has quit [Ping timeout: 246 seconds]
amb007 has joined #lisp
iissaacc has joined #lisp
<mseddon> I just read the first one, it's quite thoughtful actually.
iissaacc has quit [Client Quit]
amb007 has quit [Ping timeout: 246 seconds]
amb007 has joined #lisp
ljavorsk_ has joined #lisp
<markasoftware> How do I get a char code as ascii? I don't want utf-8, which is what char-code in sbcl does by default
<sm2n> utf8 is a strict superset of ascii...
<markasoftware> oh the issue seems to be in read-line, nevermind
<markasoftware> seems you are right sm2n
<aeth> you restrict it to (unsigned-byte 7) and do something if you're outside of that range.
<sm2n> that is insufficient
<aeth> CHECK-TYPE? it works. SETF AREF? No, the array might become an octet one
<sm2n> actually, nvm
<sm2n> I had a brain fart, I was thinking some of the following bytes after a multibyte indicator could have a 0 in msb
<sm2n> but that's not how utf8 works
shifty has joined #lisp
shangul has joined #lisp
wxie has joined #lisp
edgar-rft has joined #lisp
IAmRasputin has joined #lisp
Cymew has joined #lisp
IAmRasputin has quit [Ping timeout: 256 seconds]
krid` has quit [Ping timeout: 258 seconds]
JohnTalent has quit [Quit: leaving]
zacts has joined #lisp
liberliver has joined #lisp
nullman has quit [Ping timeout: 246 seconds]
shka_ has joined #lisp
davepdotorg has joined #lisp
rogersm_ has joined #lisp
davepdot_ has joined #lisp
davepdotorg has quit [Read error: Connection reset by peer]
zacts has quit [Quit: leaving]
aartaka has joined #lisp
rogersm_ has quit [Ping timeout: 260 seconds]
amb007 has quit [Read error: Connection reset by peer]
davepdot_ has quit [Ping timeout: 240 seconds]
amb007 has joined #lisp
jprajzne has joined #lisp
abhixec has quit [Ping timeout: 260 seconds]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
orivej has quit [Ping timeout: 265 seconds]
mingus has joined #lisp
pve has joined #lisp
aartaka has quit [Read error: Connection reset by peer]
nmg has quit [Ping timeout: 240 seconds]
nmg has joined #lisp
skapata has quit [Remote host closed the connection]
treflip has joined #lisp
Aurora_v_kosmose has quit [Ping timeout: 240 seconds]
Aurora_v_kosmose has joined #lisp
rogersm has quit [Ping timeout: 244 seconds]
IAmRasputin has joined #lisp
davepdotorg has joined #lisp
IAmRasputin has quit [Ping timeout: 265 seconds]
scymtym has quit [Ping timeout: 260 seconds]
schweers has joined #lisp
dra has joined #lisp
dyelar has joined #lisp
frgo has quit [Remote host closed the connection]
hendursa1 has joined #lisp
hendursaga has quit [Ping timeout: 240 seconds]
toorevitimirp has quit [Ping timeout: 264 seconds]
toorevitimirp has joined #lisp
davepdotorg has quit [Remote host closed the connection]
rogersm has joined #lisp
davepdotorg has joined #lisp
iissaacc has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
rogersm_ has joined #lisp
rogersm_ has quit [Ping timeout: 240 seconds]
cognemo has quit [Quit: cognemo]
cognemo has joined #lisp
ralt has joined #lisp
frgo has joined #lisp
achilles has joined #lisp
wxie has quit [Ping timeout: 240 seconds]
rtypo has joined #lisp
IAmRasputin has joined #lisp
scymtym has joined #lisp
IAmRasputin has quit [Ping timeout: 240 seconds]
notzmv` has quit [Ping timeout: 260 seconds]
jonatack has quit [Ping timeout: 260 seconds]
achilles has quit [Remote host closed the connection]
yoeljacobsen has quit [Ping timeout: 246 seconds]
nullman has joined #lisp
aartaka has joined #lisp
nyd has quit [Ping timeout: 240 seconds]
orivej has joined #lisp
jonatack has joined #lisp
nyd has joined #lisp
IAmRasputin has joined #lisp
IAmRasputin has quit [Ping timeout: 260 seconds]
Lord_of_Life has quit [Ping timeout: 240 seconds]
yoeljacobsen has joined #lisp
Lord_of_Life_ has joined #lisp
Lord_of_Life_ is now known as Lord_of_Life
aartaka has quit [Ping timeout: 272 seconds]
aartaka has joined #lisp
shifty has quit [Ping timeout: 256 seconds]
shifty has joined #lisp
<schweers> The hyperspec claims that a function name is either "A symbol or a list (setf symbol) ...". Is SETF the only instance where a list is valid, or is this a more general mechanism?
shifty has quit [Ping timeout: 240 seconds]
shifty has joined #lisp
iissaacc has quit [Ping timeout: 240 seconds]
aartaka has quit [Ping timeout: 258 seconds]
aartaka has joined #lisp
<no-defun-allowed> Some implementations allow for lists starting with other symbols (eg SBCL), but it's not standard.
shifty has quit [Ping timeout: 240 seconds]
<jdz> "Claim" is not the right word, "asserts" might be more appropriate.
<jdz> Or just "states."
<jdz> (It seems to me that "claims" can be challenged.)
<phoe> schweers: in portable CL, it's only SETF
<schweers> I’m slightly confused about how it works for SETF anyway, so be honest.
<phoe> (defvar *foo*) (defun foo () *foo*) (defun (setf foo) (newval) (setf *foo* newval))
narimiran has quit [Ping timeout: 246 seconds]
<phoe> then, (funcall #'(setf foo) 42)
abbe has joined #lisp
<schweers> I think I put that in a confusing way. I know how to use it, and it’s super convienient. It just doesn’t quite fit my mental model of how function names and DEFUN work
<schweers> And by extension DEFGENERIC and DEFMETHOD.
<phoe> a name is a name, it doesn't matter much for the underlying system whether you call it setf-foo or (setf foo)
<schweers> Although, I never new that #'(setf foo) could work
<phoe> (fdefinition '(setf foo)) also works
<schweers> *never knew
<schweers> huh, interesting.
rogersm_ has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
<phoe> a name is a name
rogersm_ has quit [Ping timeout: 240 seconds]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
notzmv has joined #lisp
amb007 has joined #lisp
<jackdaniel> this is a very ugly exception in the language
rogersm has quit [*.net *.split]
abbe has quit [*.net *.split]
tfb has quit [*.net *.split]
mjl has quit [*.net *.split]
Patzy_ has quit [*.net *.split]
mgsk has quit [*.net *.split]
conjunctive has quit [*.net *.split]
diamondbond has quit [*.net *.split]
MrtnDk[m] has quit [*.net *.split]
gingerale has quit [*.net *.split]
bitmapper has quit [*.net *.split]
larme has quit [*.net *.split]
parisienne has quit [*.net *.split]
thonkpod has quit [*.net *.split]
ThaEwat has quit [*.net *.split]
mjl has joined #lisp
Patzy_ has joined #lisp
diamondbond has joined #lisp
conjunctive has joined #lisp
gingerale has joined #lisp
MrtnDk[m] has joined #lisp
bitmapper has joined #lisp
parisienne has joined #lisp
larme has joined #lisp
ThaEwat has joined #lisp
thonkpod has joined #lisp
tfb has joined #lisp
abbe has joined #lisp
mgsk has joined #lisp
galex-713 has joined #lisp
<flip214> when I have a TCP socket (via Hunchentoot's SEND-HEADERS), how would I check for it still being alive?
<flip214> when I write some data I can see an error on FINISH-OUTPUT, but if I don't want to write?
<schweers> I’m not sure that UNIX can do that, but I might be mistaken.
<flip214> schweers: well, is there something like STREAM-READABLY-P?
<jackdaniel> maybe stream-listen?
<schweers> Oh, forget what I said.
<flip214> AFAIU PEEK-CHAR might block, and I can't have that
<schweers> Maybe you can do select/poll/epoll on the socket and check for errors?
<schweers> I don’t know how to do that in Common Lisp off the top of my head though
IAmRasputin has joined #lisp
decentyousername has joined #lisp
zulu-inuoe has joined #lisp
<flip214> jackdaniel: "binds to interface HOST on PORT" ??
<flip214> ah, USOCKET:SOCKET-STATE sounds promising
<decentyousername> Why is (mod -100 3) => 2? I expected it to be either 1 or -1.
<decentyousername> oh nvm
<decentyousername> I think I mixed it up with rem
<jackdaniel> who is rem?
<decentyousername> the remainder function
<jackdaniel> I know, I've just acted silly by adding a reference to an anime
<decentyousername> emilia > rem
<flip214> now I need to figure out how to get the socket from the stream...
<decentyousername> I also didn't like that anime. I stopped after half of it.
dbotton has joined #lisp
__jrjsmrtn__ has quit [Quit: Bye !]
amb007 has quit [Read error: Connection reset by peer]
IAmRasputin has quit [Ping timeout: 258 seconds]
amb007 has joined #lisp
__jrjsmrtn__ has joined #lisp
dbotton_ has quit [Ping timeout: 260 seconds]
Bourne has quit [Ping timeout: 264 seconds]
nullman has quit [Ping timeout: 240 seconds]
nullman has joined #lisp
rogersm has joined #lisp
aartaka has quit [Read error: Connection reset by peer]
aartaka has joined #lisp
frgo has quit [Remote host closed the connection]
davepdotorg has quit [Remote host closed the connection]
frgo has joined #lisp
yoeljacobsen has quit [Ping timeout: 260 seconds]
jmercouris_ is now known as jmercouris
<jmercouris> I have the following http://dpaste.com/A3BHTLKMP
<jmercouris> when Y is NOT true
<jmercouris> it will return NIL
<jmercouris> and try to apply the function with NIL
<jmercouris> how can I avoid this?
<jmercouris> I want either some-operation to return a LIST or not append anything to the functional call
frgo has quit [Ping timeout: 240 seconds]
<_death> (apply function-x (append (when ...) (when ...)))
<jmercouris> it seems so obvious now...
<jmercouris> thank you _death
<flip214> hmmm, unix-simple-poll :output doesn't see when a socket has been closed... it says happily T
<jdz> flip214: Closed on which end?
rogersm_ has joined #lisp
rogersm_ has quit [Ping timeout: 260 seconds]
<flip214> jdz: client-side. CLOSE_WAIT isn't noticed in poll().
<jdz> flip214: So your code closes the socket, and then uses unix-simple-poll to see if it's closed?
<flip214> jdz: no, the client side closes the socket, but my thread on the hunchentoot side doesn't notice until the next write.
davepdotorg has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
yoeljacobsen has joined #lisp
IAmRasputin has joined #lisp
davepdotorg has quit [Ping timeout: 240 seconds]
<jdz> flip214: Oh, your side is not the client side. Anyway, sounds reasonable to me; I'd look at the implementation of unix-simple-poll to see what exactly it is doing.
ebrasca has joined #lisp
IAmRasputin has quit [Ping timeout: 260 seconds]
<jdz> Not sure if socket being closed is a pending error or not, and whether `errorfds' needs to be used to detect the situation. SBCL does not use `errorfds' parameter in unix-simple-poll, anyway.
davepdotorg has joined #lisp
cosimone has joined #lisp
davepdotorg has quit [Ping timeout: 240 seconds]
Guest9607 has joined #lisp
cosimone has quit [Ping timeout: 240 seconds]
rgherdt has joined #lisp
Guest9607 has quit [Client Quit]
saganman has quit [Quit: WeeChat 1.6]
aartaka_d has joined #lisp
saganman has joined #lisp
aartaka has quit [Ping timeout: 260 seconds]
EvW has joined #lisp
frgo has joined #lisp
ex_nihilo has quit [Ping timeout: 240 seconds]
amb007 has quit [Read error: Connection reset by peer]
Stanley00 has quit [Remote host closed the connection]
davepdotorg has joined #lisp
amb007 has joined #lisp
davepdotorg has quit [Ping timeout: 272 seconds]
shifty has joined #lisp
jonatack has quit [Read error: Connection reset by peer]
cosimone has joined #lisp
yoeljacobsen has quit [Ping timeout: 265 seconds]
rogersm_ has joined #lisp
ljavorsk_ has quit [Ping timeout: 272 seconds]
__jrjsmrtn__ has quit [Quit: Bye !]
rogersm_ has quit [Ping timeout: 256 seconds]
__jrjsmrtn__ has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
IAmRasputin has joined #lisp
cosimone has quit [Read error: Connection reset by peer]
cosimone has joined #lisp
IAmRasputin has quit [Ping timeout: 260 seconds]
Bourne has joined #lisp
cosimone has quit [Quit: Quit.]
davepdotorg has joined #lisp
davepdot_ has joined #lisp
davepdotorg has quit [Read error: Connection reset by peer]
wsinatra has joined #lisp
Bike has joined #lisp
pok has joined #lisp
decentyousername has quit [Ping timeout: 240 seconds]
random-nick has joined #lisp
ludston has quit [Quit: -a- IRC for Android 2.1.57]
ldb has joined #lisp
<ldb> good evening
narimiran has joined #lisp
achilles has joined #lisp
<ebrasca> ldb: Hi
hendursa1 has quit [Quit: hendursa1]
hendursaga has joined #lisp
<ldb> ebrasca: hello
shifty has quit [Ping timeout: 260 seconds]
notzmv has quit [Ping timeout: 260 seconds]
cosimone has joined #lisp
shifty has joined #lisp
davepdot_ has quit [Remote host closed the connection]
__jrjsmrtn__ has quit [Quit: Bye !]
ldb has quit [Remote host closed the connection]
ldb has joined #lisp
aartaka_d has quit [Ping timeout: 256 seconds]
Bourne has quit [Remote host closed the connection]
__jrjsmrtn__ has joined #lisp
<phoe> heyyy
<phoe> flip214: stuff like this is exactly why I decided to screw raw sockets and learned to love zeromq
<phoe> and pzmq is a really nice library for handling it
shifty has quit [Ping timeout: 240 seconds]
Bourne has joined #lisp
shifty has joined #lisp
davepdotorg has joined #lisp
toorevitimirp has quit [Ping timeout: 256 seconds]
IAmRasputin has joined #lisp
rgherdt has quit [Ping timeout: 240 seconds]
rogersm_ has joined #lisp
frgo has quit [Remote host closed the connection]
toorevitimirp has joined #lisp
shifty has quit [Ping timeout: 256 seconds]
shifty has joined #lisp
rogersm_ has quit [Ping timeout: 256 seconds]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
rixard_ has joined #lisp
achilles has quit [Remote host closed the connection]
__jrjsmrtn__ has quit [Quit: Bye !]
shifty has quit [Ping timeout: 246 seconds]
rixard has quit [Ping timeout: 272 seconds]
<flip214> Can I check for NIL in ETYPECASE? (NULL ...) or (NIL ...) don't work
amb007 has quit [Read error: Connection reset by peer]
<flip214> ah, (NULL ...) does the trick after all.
<Bike> yeah, null = (eql nil). nil as a type is the bottom type, so a nil clause in typecase will be unreachable
<mseddon> oh, the infinite meanings of nil. :)
amb007 has joined #lisp
__jrjsmrtn__ has joined #lisp
<mseddon> to be fair it's not too bad, although generic functions and nil == null vs empty list trips me up
ym555 has quit [Quit: leaving...]
<mseddon> at least in the type system it has one meaning, _|_
postit has joined #lisp
ldb has quit [Remote host closed the connection]
postit has quit [Client Quit]
ldb has joined #lisp
DGASAU has joined #lisp
krid` has joined #lisp
galex-713 has quit [Ping timeout: 240 seconds]
Lord_of_Life has quit [Quit: Laa shay'a waqi'un moutlaq bale kouloun moumkine]
__jrjsmrtn__ has quit [Quit: Bye !]
decentyousername has joined #lisp
jonatack has joined #lisp
__jrjsmrtn__ has joined #lisp
<contrapunctus> mseddon: how do generic functions trip you up? 🤔
Lord_of_Life has joined #lisp
<mseddon> not generic functions themselves, but that nil can mean both null and the empty list. meaning you can get interesting effects
<phoe> mseddon: what do you mean?
<Bike> you mean, both false and the empty list?
<mseddon> yeah
<phoe> oh, that
<phoe> it's practical
<mseddon> yeah it kinda makes sense. and I'm not sure if schemes #t #f () etc is a better approach
<mseddon> I like nil punning
<mseddon> but it snagged me a couple of times since I picked up lisp again
<jackdaniel> another ugly exception ,)
frgo has joined #lisp
aartaka has joined #lisp
frgo_ has joined #lisp
<ldb> Well, multiple return value
yonkunas has joined #lisp
dbotton_ has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
<mseddon> oh yes, it's 100% user error on my part :)
ldb has quit [Quit: ERC (IRC client for Emacs 26.1)]
__jrjsmrtn__ has quit [Quit: Bye !]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
aartaka has quit [Read error: Connection reset by peer]
<mseddon> but years of searching for a 'better' dialect, and I'm back here, which says something that while it's quite quirky, the quirks have been extremely well tamed to fit together.
frgo has quit [Ping timeout: 244 seconds]
dbotton has quit [Ping timeout: 240 seconds]
davepdotorg has quit [Remote host closed the connection]
davepdotorg has joined #lisp
dbotton has joined #lisp
<jackdaniel> ldb: is it a value that you return multiple times?
<jackdaniel> what with it? ,)
galex-713 has joined #lisp
dbotton_ has quit [Ping timeout: 240 seconds]
treflip has quit [Quit: WeeChat 2.6]
notzmv has joined #lisp
dbotton_ has joined #lisp
dbotton has quit [Ping timeout: 258 seconds]
__jrjsmrtn__ has joined #lisp
frgo has joined #lisp
rogersm_ has joined #lisp
frgo_ has quit [Ping timeout: 244 seconds]
rogersm_ has quit [Ping timeout: 240 seconds]
toorevitimirp has quit [Ping timeout: 240 seconds]
toorevitimirp has joined #lisp
aartaka has joined #lisp
saganman has quit [Quit: sayoonara]
dra_ has joined #lisp
datajerk has quit [Quit: ZNC 1.7.3 - https://znc.in]
arbv has quit [Read error: Connection reset by peer]
datajerk has joined #lisp
idxu_ has joined #lisp
dra has quit [Read error: Connection reset by peer]
idxu has quit [Read error: Connection reset by peer]
arbv has joined #lisp
idxu_ is now known as idxu
EvW has quit [Ping timeout: 240 seconds]
mingus has quit [Ping timeout: 272 seconds]
amb007 has quit [Read error: Connection reset by peer]
skapata has joined #lisp
amb007 has joined #lisp
toorevitimirp has quit [Remote host closed the connection]
arpunk has quit [Ping timeout: 240 seconds]
schweers has quit [Ping timeout: 240 seconds]
edgar-rft has quit [Quit: Leaving]
ex_nihilo has joined #lisp
Cymew has quit [Ping timeout: 240 seconds]
rgherdt has joined #lisp
ex_nihilo has quit [Quit: Leaving]
<Xach> I automated my bug reporting a bit and I'm blasting out a bunch of github issues. I hope it doesn't bug people.
rogersm_ has joined #lisp
aartaka has quit [Read error: Connection reset by peer]
<easye> Xach: giving people more updates that they can unsubscribe from is a great use of automation. Is this the Quicklisp bug reporting?
davepdotorg has quit [Read error: Connection reset by peer]
<Xach> Ja
davepdotorg has joined #lisp
<Xach> So it's semiautomatic. It's doing what I already do manually - when I see a new failure, I send it to the project. But I was hand-writing the titles and descriptions, and copy-and-pasting links. Now a program scrapes it all together - i still pull the trigger on submitting it, and double-check that I haven't already reported it.
<Xach> So it's not quite a firehose of info
rogersm_ has quit [Ping timeout: 246 seconds]
kaftejiman has joined #lisp
Lord_of_Life has quit [Quit: Laa shay'a waqi'un moutlaq bale kouloun moumkine]
motersen has joined #lisp
<phoe> Xach: I am sorry
davepdotorg has quit [Remote host closed the connection]
rippa has joined #lisp
<rogersm> I recall many years ago to have our web front end for a big bank dump our traces automatically to our bug system.
<rogersm> Someone said that the number of errors was so high that the bug system would not be able to cope with it
<rogersm> traces = error traces generated by the app I mean
<rogersm> I was young and naive
galex-713 has quit [Ping timeout: 240 seconds]
jesse1010 has joined #lisp
cjv has joined #lisp
liberliver has quit [Quit: liberliver]
dbotton has joined #lisp
dbotton_ has quit [Ping timeout: 260 seconds]
dbotton_ has joined #lisp
srhm has joined #lisp
dbotton has quit [Ping timeout: 240 seconds]
blackadder has joined #lisp
dbotton__ has joined #lisp
rogersm_ has joined #lisp
karlosz has quit [Quit: karlosz]
karlosz has joined #lisp
karlosz has quit [Remote host closed the connection]
davepdotorg has joined #lisp
rogersm_ has quit [Ping timeout: 246 seconds]
davepdotorg has quit [Read error: Connection reset by peer]
dbotton_ has quit [Read error: Connection reset by peer]
<blackadder> (listp '()) and (atom '()) both says T. How can this be?
davepdotorg has joined #lisp
dbotton has joined #lisp
<White_Flame> an atom is a non-cons
<White_Flame> () is not a cons cell, although you can ask of the CAR & CDR without error
<White_Flame> also () is symbolp as well, because of the equivalence with the symbol NIL
<blackadder> but that's a list right?
<White_Flame> yes
<White_Flame> a list is a cons or nil/()
<phoe> NIL, also known as (), is the only thing that is both a list and a symbol
<beach> clhs list
<blackadder> yeah, I just did car and cdr
amb007 has quit [Quit: Quit]
<beach> blackadder: That's for historical reasons and a bit of an aberration. And it is not related to your original question.
davepdotorg has quit [Ping timeout: 246 seconds]
<beach> blackadder: It is just that the system classes CONS and NULL are both subclasses of the system class LIST.
<blackadder> where does () become symbol?
<blackadder> is null symbol?
<phoe> it doesn't need to become it
<beach> In the reader.
<phoe> it is a symbol
<beach> When the reader sees (), it return the symbol NIL.
<blackadder> oh
<White_Flame> and when it sees NIL, it returns the same symbol NIL
<phoe> do you know how cons cells/lists work?
<beach> Try (read-from-string "()")
<White_Flame> (assuming default packaging is in view)
<phoe> you know, the stuff where (1) == (1 . NIL), (1 2 3) === (1 . (2 . (3 . NIL))), and so on
<blackadder> beach, NIL 2
<phoe> yes; NIL is the thing that it read, 2 is the position where it stopped in the string
<blackadder> yes phoe, I learned that
<phoe> good - then NIL is the symbol that is also the empty list that is also the value of falsehood
<phoe> s/the symbol/a symbol/
<White_Flame> () and NIL are literally the same singular object
<White_Flame> it just is defined to work with both list and symbol functions
<beach> That's not quite true.
<beach> () and NIL are two character sequences that, when the reader sees them, it creates the same object, provided default reader macros, etc.
<blackadder> it can be used as empty list and NIL depending on context
_paul0 has joined #lisp
<White_Flame> *() and NIL represent the same singular object
paul0 has quit [Read error: Connection reset by peer]
theBlackDragon has quit [Quit: Boom.]
<blackadder> sorry for silly questions peeps, thanks for clarifying
<White_Flame> no prob. You'll get very complete, pedantic answers here. #clschool can be more newbie friendly if it's overwhelming
<decentyousername> this is the what makes you people so valuable.
<decentyousername> No generic platitudes or vague answers.
<decentyousername> <3
jayspeer has joined #lisp
<phoe> blackadder: no point in being sorry, every single one of us asked basic questions at some point in time
<phoe> and only ended up being sorta good at lisp because they got the answers they needed
<blackadder> phoe, yeah
theBlackDragon has joined #lisp
karlosz has joined #lisp
karlosz has quit [Read error: Connection reset by peer]
karlosz has joined #lisp
dra_ has quit [Quit: Leaving]
nckx has quit [Quit: Updating my Guix System — https://guix.gnu.org]
_paul0 has quit [Quit: Leaving]
davepdotorg has joined #lisp
galex-713 has joined #lisp
nckx has joined #lisp
davepdotorg has quit [Ping timeout: 258 seconds]
<decentyousername> Is it alright to not setf a variable, after calling #'sort on it, because the object is being modified anyway. Or is that not portable?
<jackdaniel> you must always assign the variable
<jackdaniel> fact that it is a destructive operation means, that your variable may i.e contain the last cons of the resulting list
<jackdaniel> it is the return value contains the reference to the sorted list
<jackdaniel> our CI failed, because roswell is coded in C, banzai
<decentyousername> Ok, so destructive really means it fucking destroys the object and you should not longer use that object, because who knows how it got messed up, right?
<jackdaniel> scratch the CI part
<jackdaniel> it's for another channel
<jackdaniel> I don't know what it does while destryoing the object, could be fucking
* decentyousername unreads the CI part.
<decentyousername> [-] _ [-]
<White_Flame> decentyousername: it reuses the cons cells in whatever way it wants to.
<decentyousername> so I can't rely on it.
<decentyousername> roger that!
<White_Flame> so yeah, your original variable is pointing to some arbitrary cons cell that may be anywhere in the list, or may not even part of the list anymore
nyd has quit [Quit: nyd]
<decentyousername> I'm talking about sequences in general, but if we want to use lists as an example that's alright.
<White_Flame> yeah, arrays are likely "safer" in that regard, but there are no guarantees. The function is allowed to cons up a new one, too
<jackdaniel> if you don't want to destroy the object, you may copy sequence first
rogersm_ has joined #lisp
<_death> decentyousername: it _may_ modify the object.. but then it may not.. so it could return a copy of the sequence and if you don't use that result, you don't get the sorted sequence.. sometimes the standard mandates in-place modification, but not in the case of SORT
rogersm_ has quit [Ping timeout: 260 seconds]
<_death> also, if you want to get a good shiver down your spine, consider the following section and the amount of code that's "unaware" of it
<_death> clhs 3.7.2.1
<specbot> Examples of Transfer of Control during a Destructive Operation: http://www.lispworks.com/reference/HyperSpec/Body/03_gba.htm
jayspeer has quit [Quit: going home; c u]
Lycurgus has joined #lisp
davepdotorg has joined #lisp
<_death> this is not limited to Lisp, of course, or even to programming..
davepdotorg has quit [Ping timeout: 256 seconds]
<Bike> does that actually come up much?
<decentyousername> how do I open links in weechat? Does anyone know that?
* decentyousername starts typing in the url manually
<_death> I don't know how often it happens, but when it does..
<_death> it's one more good reason to use nondestructive variants by default
<decentyousername> _daeth: those examples sure are scary
<decentyousername> But I'm all about that efficiency. I need to use bitvectors everywhere or my programs will be too slow.
<decentyousername> (irony-mode -1)
edgar-rft has joined #lisp
cosimone has quit [Quit: Quit.]
blackadder has quit [Quit: Leaving]
decentyousername has quit [Quit: WeeChat 2.3]
decentyousername has joined #lisp
__jrjsmrtn__ has quit [Quit: Bye !]
bocaneri has quit [Remote host closed the connection]
rogersm_ has joined #lisp
__jrjsmrtn__ has joined #lisp
kaftejiman_ has joined #lisp
rogersm_ has quit [Ping timeout: 260 seconds]
kaftejiman has quit [Ping timeout: 240 seconds]
akoana has joined #lisp
hiroaki has joined #lisp
gravicappa has quit [Ping timeout: 256 seconds]
gravicappa has joined #lisp
notzmv has quit [Remote host closed the connection]
notzmv has joined #lisp
davepdotorg has joined #lisp
cosimone has joined #lisp
Steeve has joined #lisp
aartaka has joined #lisp
davepdotorg has quit [Ping timeout: 246 seconds]
narimiran has quit [Ping timeout: 240 seconds]
arpunk has joined #lisp
Lycurgus has quit [Ping timeout: 256 seconds]
aartaka has quit [Read error: Connection reset by peer]
aartaka_d has joined #lisp
cosimone has quit [Ping timeout: 240 seconds]
rogersm has quit [Quit: Leaving...]
cosimone has joined #lisp
EvW has joined #lisp
rogersm has joined #lisp
aartaka_d has quit [Read error: Connection reset by peer]
shaman_king has joined #lisp
<shaman_king> lisp is terrible.
cosimone has quit [Read error: Connection reset by peer]
<jackdaniel> it is; what now?
<shaman_king> hi
<shaman_king> are you the guy from pauldotcom ?
<jackdaniel> no
<shaman_king> why not
<shaman_king> lisp sucks ass.
<shaman_king> pussy
shaman_king was banned on #lisp by jackdaniel [*!*b94186aa@185.65.134.*]
shaman_king was kicked from #lisp by jackdaniel [shaman_king]
<Steeve> Thank you
<jackdaniel> pleasure
<_death> may want to generalize the banmask, phoe banned him the other day as well
<jackdaniel> that is beyond my irc skill :)
<Steeve> Was doing same thing in another channel and I said 12:29:19 Steeve | Think about all the cool stuff you could learn if you directed the time you're spending doing this....into learning new stuff
<Steeve> Was not effective
bilegeek has joined #lisp
decentyousername has quit [Quit: WeeChat 2.3]
decentyousername has joined #lisp
davepdotorg has joined #lisp
defunkydrummer has joined #lisp
aartaka has joined #lisp
davepdotorg has quit [Ping timeout: 240 seconds]
defunkydrummer has quit [Quit: Leaving]
aartaka has quit [Read error: Connection reset by peer]
kaftejiman_ has quit [Remote host closed the connection]
kaftejiman_ has joined #lisp
<ebrasca> Steeve: I think he may be more interested in someting like "Imagine how much more you can ruin others lifes if you learn new skills".
defunkydrummer has joined #lisp
<Steeve> yeah so much effort, for no return...*and* being a negative influence on other peoples' days
<Steeve> no good
<defunkydrummer> @Steeve i've seen worse attitudes to be honest
<defunkydrummer> in any case, it will happen to all communities not just this one
<defunkydrummer> by the way, good morning from the far away country of Peru
<Steeve> Good morning - hello from the United States!
<ebrasca> it is 22:07 ...
<defunkydrummer> @ebrasca there's an old, ancient rule that it's always "good morning" on the internet
<defunkydrummer> i would like to know if somebody has actually used the LSP (language server protocol) plugin out there for visual studio code, and how acceptable was it. I use SLIME, btw. But i'm planning to teach CL to one or two devs in my team and perhaps this wouold make the learning curve gentler. But i don't have any idea of how acceptable is that plugin or the experience.
<ebrasca> I think in Peru it is like 15:10
<defunkydrummer> or in any case if somebody has used another "modern" (read: popular with the younger generation) editor for CL development, i'm all ears for knowning how good was the experience
<defunkydrummer> @ebrasca indeed
<ebrasca> defunkydrummer: I have see one friend to try lisp with Atom.
rogersm has quit [Remote host closed the connection]
<ebrasca> defunkydrummer: I failed to convince him to program in lisp.
<phoe> defunkydrummer: I know that sublime has its plugin that's in development
<phoe> same with atom
<phoe> both of them use swank
<defunkydrummer> @ebrasca but have you tried the atom plugin? is it ... acceptable ?
decentyousername has quit [Ping timeout: 272 seconds]
<defunkydrummer> well, if it uses swank that a good thing
<defunkydrummer> i mean, if it's able to jump to definitions, inspect almost any value, and be able to inspect stack frames, and macroexpand step by step, it would be fine for educational purposes IMO
<defunkydrummer> i wonder if the atom or sublime plugins comply with these features
<phoe> never used them extensively, so I cannot really say much about them
srhm has quit [Ping timeout: 256 seconds]
<phoe> I guess you could download and check them out, and/or open some github issues along the way
cosimone has joined #lisp
kaftejiman__ has joined #lisp
kaftejiman_ has quit [Ping timeout: 272 seconds]
notzmv has quit [Remote host closed the connection]
notzmv has joined #lisp
kaftejiman_ has joined #lisp
kaftejiman__ has quit [Ping timeout: 260 seconds]
scymtym has quit [Ping timeout: 260 seconds]
wsinatra has quit [Quit: WeeChat 2.9]
<contrapunctus> I was just thinking...what if I made a shell script called, say, `cl`, meant to be used as an hash bang interpreter for Lisp scripts? It'd load the file using the first installed Lisp it can find...and voilà, portable Lisp scripts! (Well, if it were that easy, I'm guessing someone would have done it by now?)
notzmv has quit [Remote host closed the connection]
cosimone_ has joined #lisp
cosimone has quit [Quit: Quit.]
scymtym has joined #lisp
cosimone_ has quit [Quit: cosimone_]
cosimone has joined #lisp
notzmv has joined #lisp
<contrapunctus> sm2n: lol, thanks. I knew there are like ten solutions for the task, but never investigated any in depth.
<Xach> i found cl-launch too difficult to use and had to make something simpler to make progress
<phoe> I think that roswell also attempts to solve this problem
<ebrasca> What about Mezzano?
<ebrasca> Then you don't need any of this libreryes.
<ebrasca> Do some of this methods use lisp as some tipe of daemon?
<contrapunctus> I guess I can just use the SBCL hash bang invocation for personal scripts which I don't need to distribute... 🤔
<Xach> contrapunctus: or use emacs!
<Xach> and call functions
notzmv has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dbotton_ has joined #lisp
* ebrasca thinks about structure editor vs plain text editor.
dbotton has quit [Ping timeout: 256 seconds]
notzmv has joined #lisp
notzmv has quit [Remote host closed the connection]
dbotton has joined #lisp
notzmv has joined #lisp
TwoNotes has joined #lisp
Lycurgus has joined #lisp
jw4 has quit [Read error: Connection reset by peer]
shka_ has quit [Ping timeout: 264 seconds]
dbotton_ has quit [Ping timeout: 240 seconds]
jw4 has joined #lisp
notzmv has quit [Remote host closed the connection]
mindCrime has joined #lisp
notzmv has joined #lisp
<defunkydrummer> @¢ontrapuntcus you can always create some simple bash script that takes the name of the lisp script and hands it over to SBCL or other CL implementation so it's loaded and executed immediately
gravicappa has quit [Ping timeout: 272 seconds]
Steeve has quit [Quit: end]
arpunk has quit [Remote host closed the connection]
<akoana> contrapunctus: I use a simple bash script for SBCL (as defunkydrummer suggested), see https://termbin.com/92ed
abhixec has joined #lisp
<contrapunctus> defunkydrummer, akoana: isn't that basically the cl-launch approach, then? 🤔
<defunkydrummer> @contrapunctus no idea. I haven't seen cl-launch. To be honest, this approach is so simple, i don't see any need for a special library or program
<akoana> contrapunctus: hmm, I don't know/use cl-launch, sorry
<defunkydrummer> additionally, i seldom use Lisp for "scripts", i usually use it for full on systems that need to run as a service; in that case i configure things so the program runs as a UNIX service
<defunkydrummer> i mean, Lisp is not really a "shell scripting" language, although you can use it as such
<contrapunctus> defunkydrummer, akoana: it seems to do this very thing, except implementation-portably
IAmRasputin has quit [Ping timeout: 256 seconds]
madage has quit [Ping timeout: 240 seconds]
madage has joined #lisp
notzmv has quit [Remote host closed the connection]
<akoana> contrapunctus: probably, however I agree with defunkydrummer, it is so simple, no need for a library
<defunkydrummer> @contrapunctus, well, if it's portable, not a bad thing
<defunkydrummer> i mean, to each his own; it's good to know it exists. Just like roswell -- i don't need it, but it's good to know it exists and it works
<defunkydrummer> somebody will find it useful and will benefit from it
<akoana> well said
IAmRasputin has joined #lisp
galex-713 has quit [Ping timeout: 272 seconds]
random-nick has quit [Ping timeout: 264 seconds]
IAmRasputin has quit [Ping timeout: 240 seconds]
davepdotorg has joined #lisp
earl-ducaine has joined #lisp
sonologico has joined #lisp
gaqwas has quit [Ping timeout: 256 seconds]
Frankenstein is now known as Frankenlime
sts-q has quit [Quit: -- PANIC -- The function `show_irc' expects one argument of type [irc], but it is given one argument of type [unit -> irc].]
galex-713 has joined #lisp
davepdotorg has quit [Ping timeout: 240 seconds]
igemnace has quit [Ping timeout: 240 seconds]
Stanley00 has joined #lisp
krjst has joined #lisp
Stanley00 has quit [Ping timeout: 260 seconds]
cosimone has quit [Quit: cosimone]
notzmv has joined #lisp
cosimone has joined #lisp
IAmRasputin has joined #lisp
cosimone has quit [Client Quit]
IAmRasputin has quit [Ping timeout: 240 seconds]
davepdotorg has joined #lisp
igemnace has joined #lisp
iissaacc has joined #lisp
davepdotorg has quit [Ping timeout: 260 seconds]
rgherdt has quit [Ping timeout: 240 seconds]
dbotton_ has joined #lisp
dbotton has quit [Ping timeout: 240 seconds]
EvW has quit [Ping timeout: 244 seconds]
zaquest has quit [Quit: Leaving]
zaquest has joined #lisp
EvW has joined #lisp
paul0 has joined #lisp
pve has quit [Quit: leaving]
arpunk has joined #lisp
IAmRasputin has joined #lisp
IAmRasputin has quit [Ping timeout: 264 seconds]
paul0 has quit [Quit: Leaving]
motersen has quit [Ping timeout: 240 seconds]
nitrix is now known as nitrix-or-treats
dbotton has joined #lisp
dbotton_ has quit [Ping timeout: 272 seconds]
orivej has quit [Ping timeout: 240 seconds]
Bike has quit [Quit: Lost terminal]
davepdotorg has joined #lisp