Xach 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/>
libertyprime has quit [Ping timeout: 258 seconds]
anewuser has quit [Ping timeout: 240 seconds]
madage has joined #lisp
Lord_of_Life_ has joined #lisp
zclark has quit [Quit: ERC (IRC client for Emacs 26.3)]
quazimodo has joined #lisp
Lord_of_Life has quit [Ping timeout: 272 seconds]
Lord_of_Life_ is now known as Lord_of_Life
nullman has quit [Ping timeout: 265 seconds]
nullman has joined #lisp
lucasb has quit [Quit: Connection closed for inactivity]
libertyprime has joined #lisp
tiwEllien has quit [Ping timeout: 268 seconds]
madage has quit [Remote host closed the connection]
madage has joined #lisp
slyrus_ has joined #lisp
lavaflow has quit [Quit: WeeChat 2.6]
slyrus has quit [Ping timeout: 260 seconds]
wxie has joined #lisp
gabiruh has joined #lisp
smazga has quit [Quit: leaving]
asdf_asdf_asdf has quit [Ping timeout: 260 seconds]
emys has quit [Quit: Leaving]
lavaflow has joined #lisp
gigetoo has quit [Ping timeout: 265 seconds]
ebrasca has joined #lisp
jebes has joined #lisp
gigetoo has joined #lisp
ebrasca has quit [Remote host closed the connection]
turona has quit [Ping timeout: 272 seconds]
turona has joined #lisp
oxum has joined #lisp
gioyik has joined #lisp
analogue has joined #lisp
adolby has quit [Ping timeout: 258 seconds]
orivej has joined #lisp
adolby has joined #lisp
cl-arthu1 has joined #lisp
gioyik has quit [Ping timeout: 265 seconds]
|Pirx| has joined #lisp
cl-arthur has quit [Ping timeout: 265 seconds]
asdf_asdf_asdf has joined #lisp
vlatkoB has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
__jrjsmrtn__ has joined #lisp
_jrjsmrtn has quit [Ping timeout: 258 seconds]
clothespin has joined #lisp
shifty has quit [Ping timeout: 265 seconds]
ebzzry has joined #lisp
slyrus__ has joined #lisp
slyrus_ has quit [Ping timeout: 265 seconds]
v88m has joined #lisp
karlosz has joined #lisp
lavaflow has quit [Ping timeout: 265 seconds]
slyrus has joined #lisp
libertyprime has quit [Ping timeout: 268 seconds]
libertyprime has joined #lisp
slyrus__ has quit [Ping timeout: 260 seconds]
eschulte has quit [Ping timeout: 260 seconds]
adolby has quit [Ping timeout: 240 seconds]
analogue has quit [Quit: Leaving]
adolby has joined #lisp
statusf90 has joined #lisp
bitmapper has quit [Ping timeout: 268 seconds]
harovali has joined #lisp
libertyprime has quit [Ping timeout: 258 seconds]
ebzzry has quit [Read error: Connection reset by peer]
gioyik has joined #lisp
chocimir has joined #lisp
davisr has quit [Remote host closed the connection]
gioyik has quit [Ping timeout: 240 seconds]
clothespin has quit [Ping timeout: 272 seconds]
nullniverse has joined #lisp
igemnace has quit [Ping timeout: 268 seconds]
davr0s_ has quit [Remote host closed the connection]
davr0s has quit [Remote host closed the connection]
libertyprime has joined #lisp
frgo_ has joined #lisp
wxie has quit [Ping timeout: 272 seconds]
frgo has quit [Ping timeout: 265 seconds]
ahungry has joined #lisp
hostile has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
minion has quit [Remote host closed the connection]
specbot has quit [Remote host closed the connection]
easye has quit [Read error: Connection reset by peer]
zooey has quit [Ping timeout: 240 seconds]
sammich has quit [Remote host closed the connection]
karlosz has quit [Quit: karlosz]
madage has quit [Ping timeout: 240 seconds]
karlosz has joined #lisp
null_ptr has quit [Ping timeout: 248 seconds]
cartwright has quit [Ping timeout: 240 seconds]
igemnace has joined #lisp
hostile has joined #lisp
lavaflow has joined #lisp
Bike has quit [Quit: Lost terminal]
akoana has joined #lisp
aindilis has quit [Read error: Connection reset by peer]
zooey has joined #lisp
slyrus has quit [Ping timeout: 265 seconds]
klltkr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karlosz has quit [Quit: karlosz]
karlosz has joined #lisp
cartwright has joined #lisp
libertyprime has quit [Ping timeout: 268 seconds]
asdf_asdf_asdf has quit [Remote host closed the connection]
aindilis has joined #lisp
igemnace has quit [Ping timeout: 265 seconds]
klltkr has joined #lisp
Codaraxis has quit [Read error: Connection reset by peer]
|Pirx| has quit [Remote host closed the connection]
madage has joined #lisp
fe[nl]ix has quit [Quit: No Ping reply in 180 seconds.]
Blkt_ has quit [Remote host closed the connection]
klltkr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hsaziz has joined #lisp
adolby has quit [Ping timeout: 265 seconds]
slyrus has joined #lisp
adolby has joined #lisp
specbot has joined #lisp
null_ptr has joined #lisp
frgo has joined #lisp
minion has joined #lisp
klltkr has joined #lisp
klltkr has quit [Client Quit]
frgo_ has quit [Ping timeout: 260 seconds]
fe[nl]ix has joined #lisp
Blkt has joined #lisp
igemnace has joined #lisp
hsaziz has quit [Remote host closed the connection]
ealfonso has joined #lisp
statusf90 has quit [Quit: statusf90]
cartwright has quit [Remote host closed the connection]
cartwright has joined #lisp
xkapastel has joined #lisp
cartwright has quit [Read error: Connection reset by peer]
cartwright has joined #lisp
gioyik has joined #lisp
aindilis has quit [Remote host closed the connection]
gioyik has quit [Ping timeout: 258 seconds]
aindilis has joined #lisp
froggey has quit [Ping timeout: 265 seconds]
froggey has joined #lisp
gabiruh has quit [Quit: ZNC - 1.6.0 - http://znc.in]
gabiruh has joined #lisp
Codaraxis has joined #lisp
<ealfonso> is there a recommended websockets client library? I tried websocket-driver, which works for ws, but for wss fails with this error: "error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version". Could this be a "websocket-driver" issue or a cl+ssl one?
rumbler31 has quit [Read error: Connection reset by peer]
rumbler31 has joined #lisp
adolby has quit [Remote host closed the connection]
adolby has joined #lisp
libertyprime has joined #lisp
<no-defun-allowed> There is only one websocket client to my knowledge (though I had planned to write one a long time ago).
<no-defun-allowed> I think that means that the client and server can't negotiate a SSL/TLS version.
<ealfonso> no-defun-allowed I know, but... what should I do?
<no-defun-allowed> Some people (using other languages, but still using SSL) suggest you could update your version of the OpenSSL library.
<ealfonso> the thing is that I don't know which one is the problematic version. I've tried other non-CL ws libraries on my system (e.g. python, etc) and they work. My openssl version is "OpenSSL 1.1.1d 10 Sep 2019", which seems recent.
<no-defun-allowed> Right. Maybe you need to give it a larger set of protocols it is allowed to use. I forgot how you configure that though; it's quite awful in my opinion.
<ealfonso> there's also someone using plain usocket for websocket: https://stackoverflow.com/questions/25608424/websocket-client-in-common-lisp-with-usocket-library but that probably doesn't help me with wss either. I could probably just fall-back to a command-line client
quazimodo has quit [Ping timeout: 258 seconds]
quazimodo has joined #lisp
gioyik has joined #lisp
libertyprime has quit [Ping timeout: 260 seconds]
gravicappa has joined #lisp
libertyprime has joined #lisp
libertyprime has quit [Read error: Connection reset by peer]
libertyprime has joined #lisp
ealfonso has quit [Ping timeout: 272 seconds]
adolby has quit [Remote host closed the connection]
adolby has joined #lisp
harovali1 has joined #lisp
harovali has quit [Ping timeout: 260 seconds]
igemnace has quit [Ping timeout: 265 seconds]
slyrus has quit [Ping timeout: 258 seconds]
ealfonso has joined #lisp
asarch has joined #lisp
<copec> How many people are using Sly these days?
<Josh_2> I'm using it
<aeth> at least one
<aeth> That's the lower bound. The upper bound is easier, let's pick a million.
igemnace has joined #lisp
<copec> well, I'm probably behind the times
<copec> Nobody mentioned that Sly is the new Slime in the TPS Reports.
libertyprime has quit [Ping timeout: 258 seconds]
<aeth> I use SLIME so SLIME still has at least one user
libertyprime has joined #lisp
oxum has quit [Remote host closed the connection]
<copec> How do I get quicklisp/asdf to look under the paths again without restarting lisp?
<beach> Good morning everyone!
<Josh_2> push paths to asdf:*central-registry* ?
<Josh_2> morning beach!
malfort_ has joined #lisp
bkst has joined #lisp
<copec> Good morning!
ealfonso has quit [Remote host closed the connection]
<ahungry> what does Sly offer over Slime?
<Josh_2> #v syntax in repl which is SWEET
<Josh_2> stickers as well, although I could never get that to work so I don't use them xD
malfort has quit [Ping timeout: 268 seconds]
bkst_ has quit [Ping timeout: 268 seconds]
<copec> There are obligatory animated gifs https://github.com/joaotavora/sly
<ahungry> neat, what is #v syntax? Something like *1 and *2 in clojure/cider? (a reference to the last evaluated thing?)
<Josh_2> perhaps
<Josh_2> it lets you reference repl values all the way up to when you started your session
<Josh_2> I find it very helpful
<ahungry> very nice, it is the same type of thing
adolby has quit [Ping timeout: 265 seconds]
adolby has joined #lisp
oxum has joined #lisp
brown121407 has quit [Ping timeout: 268 seconds]
brown121408 has joined #lisp
X-Scale` has joined #lisp
X-Scale has quit [Ping timeout: 260 seconds]
X-Scale` is now known as X-Scale
libertyprime has quit [Ping timeout: 268 seconds]
ealfonso has joined #lisp
wxie has joined #lisp
shangul has joined #lisp
libertyprime has joined #lisp
ggole has joined #lisp
adolby has quit [Remote host closed the connection]
X-Scale` has joined #lisp
ebzzry has joined #lisp
X-Scale has quit [Ping timeout: 268 seconds]
adolby has joined #lisp
ahungry has quit [Remote host closed the connection]
X-Scale` is now known as X-Scale
akoana has left #lisp ["Leaving"]
sauvin has joined #lisp
adolby has quit [Ping timeout: 268 seconds]
adolby has joined #lisp
space_otter has joined #lisp
ealfonso has quit [Remote host closed the connection]
oxum has quit [Ping timeout: 240 seconds]
oxum has joined #lisp
nalik891 has joined #lisp
nullniverse has quit [Ping timeout: 260 seconds]
Cymew has joined #lisp
dddddd has joined #lisp
<pjb> AFAIK, there's only 1 sly user.
adolby has quit [Ping timeout: 268 seconds]
adolby has joined #lisp
<pjb> Josh_2: you mean in sly they deleted presentations?
oxum has quit [Read error: Connection reset by peer]
oxum_ has joined #lisp
oxum has joined #lisp
oxum_ has quit [Read error: Connection reset by peer]
oxum has quit [Read error: Connection reset by peer]
oxum has joined #lisp
Necktwi_ has joined #lisp
<Josh_2> Huh?
elderK has joined #lisp
elderK has quit [Client Quit]
oxum has quit [Read error: Connection reset by peer]
oxum has joined #lisp
karlosz has quit [Quit: karlosz]
<pjb> Josh_2: since this slime features allows you already to refer to any previous result, they must have REPLACED it by #v?
<no-defun-allowed> Well, they could have kept both, but presentations are cooler.
karlosz has joined #lisp
vlatkoB has joined #lisp
Nilby has quit [Read error: Connection reset by peer]
<cl-arthu1> I think both presentations and #v syntax are present in sly, but not 100% sure.
<no-defun-allowed> Though, I think there weren't presentations when I tried SLY.
knicklux has joined #lisp
jprajzne has joined #lisp
cl-arthu1 has quit [Read error: Connection reset by peer]
dale has quit [Quit: My computer has gone to sleep]
gxt has joined #lisp
hiroaki has quit [Ping timeout: 265 seconds]
asarch has quit [Quit: Leaving]
flamebeard has joined #lisp
varjag has joined #lisp
adolby has quit [Ping timeout: 258 seconds]
adolby has joined #lisp
Roland2 has joined #lisp
orivej has quit [Ping timeout: 258 seconds]
chocimir has quit [Ping timeout: 240 seconds]
adolby has quit [Ping timeout: 240 seconds]
adolby has joined #lisp
dddddd has quit [Ping timeout: 268 seconds]
wxie has quit [Ping timeout: 268 seconds]
scymtym has joined #lisp
knicklux has quit [Quit: Leaving]
dddddd has joined #lisp
karlosz has quit [Quit: karlosz]
trittweiler has quit [Remote host closed the connection]
wxie has joined #lisp
mingus has joined #lisp
trittweiler has joined #lisp
Necktwi has quit [Read error: Connection reset by peer]
longshi has joined #lisp
tiwEllien has joined #lisp
Necktwi has joined #lisp
gioyik has quit [Quit: WeeChat 2.7]
frgo has quit [Remote host closed the connection]
space_otter has quit [Remote host closed the connection]
pnp has joined #lisp
<pnp> Hi all. How is possible to move with Emacs + slime inside nested groups of parenthesis? If possible i would like to navigate Lisp code without using the mouse or the arrows keys
<jackdaniel> pnp: check out "paredit" mode for emacs
<pnp> yes...i installed paredit
<jackdaniel> it may feel a bit quirky at start, but once your fingers get used to it it is a very useful aid
ralt has joined #lisp
<pnp> ok jackdaniel, i'm reading here: http://wikemacs.org/wiki/Paredit-mode
<pnp> all fine
<pnp> is working
<pnp> now if i'm looking that there is the go up command C-M-u but i don't find the command to do the inverse
<pnp> ok found is simply )
oxum has quit [Read error: Connection reset by peer]
oxum_ has joined #lisp
pnp has left #lisp [#lisp]
ebzzry has quit [Ping timeout: 260 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
hhdave has joined #lisp
adolby has quit [Ping timeout: 268 seconds]
adolby has joined #lisp
william1_ has joined #lisp
davepdotorg has joined #lisp
dilated_dinosaur has quit [Ping timeout: 260 seconds]
wxie has quit [Ping timeout: 268 seconds]
frgo has joined #lisp
oxum_ has quit [Read error: Connection reset by peer]
oxum has joined #lisp
oxum has quit [Read error: Connection reset by peer]
oxum has joined #lisp
oxum has quit [Read error: Connection reset by peer]
oxum has joined #lisp
montaropdf has joined #lisp
libertyprime has quit [Remote host closed the connection]
dilated_dinosaur has joined #lisp
Necktwi_ has quit [Ping timeout: 265 seconds]
frgo_ has joined #lisp
frgo has quit [Read error: Connection reset by peer]
frgo_ has quit [Ping timeout: 258 seconds]
shrdlu68 has joined #lisp
jmercouris has joined #lisp
adolby has quit [Remote host closed the connection]
bendersteed has quit [Remote host closed the connection]
adolby has joined #lisp
<shrdlu68> I want to iterate over a range of integers while skipping some. Would using the series package be more efficient than a simple loop?
<montaropdf> Wouldn't it be better to first filter your list with something like remove-if?
<phoe> shrdlu68: (loop for i in list when (foo-p i) do ...)
<montaropdf> phoe: that works too ;)
<phoe> where FOO-P is a predicate that returns true if the number should be iterated on
amerlyq has joined #lisp
<shrdlu68> Language fails me - I meant more like collect.
<phoe> shrdlu68: (loop for i in list when (foo-p i) collect i)
<phoe> where FOO-P is a predicate that returns true if the number should be collected
<shrdlu68> Sure, but would using the series package be more efficient?
<phoe> oh right - you've asked that
<phoe> I need to wake up
Lord_of_Life has quit [Read error: Connection reset by peer]
<phoe> no idea - I haven't used SERIES at all
orivej has joined #lisp
longshi has quit [Ping timeout: 265 seconds]
<shrdlu68> I suppose I have to test it myself.
adolby has quit [Read error: Connection reset by peer]
Lord_of_Life has joined #lisp
adolby has joined #lisp
xkapastel has joined #lisp
nalik891 has quit [Ping timeout: 265 seconds]
adolby has quit [Remote host closed the connection]
adolby has joined #lisp
m00natic has joined #lisp
longshi has joined #lisp
frgo has joined #lisp
longshi has quit [Ping timeout: 272 seconds]
longshi has joined #lisp
capitaomorte has joined #lisp
adolby has quit [Remote host closed the connection]
<capitaomorte> Hello all. My friend Arthur tells me there was some SLY questions here. I can answer a couple if you wish.
<phoe> A user named ahungry had some sly questions, but they left
adolby has joined #lisp
<capitaomorte> Thanks. If you see him/her, please tell him it's ok to open simple question issues on github.
<capitaomorte> bye!
capitaomorte has left #lisp [#lisp]
cosimone has joined #lisp
z147 has joined #lisp
davepdotorg has quit [Ping timeout: 258 seconds]
davepdotorg has joined #lisp
william1_ has quit [Ping timeout: 265 seconds]
<ioa> Hi lispers. Three more weeks to paper submission deadline for the ELS2020: https://european-lisp-symposium.org/2020
klltkr has joined #lisp
klltkr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Josh_2 has quit [Ping timeout: 240 seconds]
<beach> ioa: Thanks for the reminder. I'm on it! :)
<ioa> Happy to know, beach! :)
<beach> I never disappoint. :)
adolby has quit [Read error: Connection reset by peer]
klltkr has joined #lisp
adolby has joined #lisp
Finnfinn_oops has quit [Quit: The humanity!]
z147 has quit [Remote host closed the connection]
z147 has joined #lisp
ljavorsk has joined #lisp
davepdotorg has quit [Remote host closed the connection]
davepdotorg has joined #lisp
hsaziz has joined #lisp
davepdo__ has joined #lisp
mingus has quit [Ping timeout: 265 seconds]
davepdotorg has quit [Ping timeout: 268 seconds]
ljavorsk has quit [Ping timeout: 260 seconds]
quazimodo has quit [Ping timeout: 265 seconds]
hsaziz has quit [Ping timeout: 268 seconds]
brown121408 has quit [Read error: Connection reset by peer]
jonatack has quit [Ping timeout: 246 seconds]
brown121408 has joined #lisp
igemnace has quit [Quit: WeeChat 2.7]
quazimodo has joined #lisp
tiwEllien has quit [Ping timeout: 268 seconds]
gko_ has joined #lisp
refpga has joined #lisp
cosimone has quit [Quit: Terminated!]
brown121408 has quit [Read error: Connection reset by peer]
shifty has joined #lisp
brown121407 has joined #lisp
gabiruh_ has joined #lisp
refpga has quit [Ping timeout: 260 seconds]
nika_ has joined #lisp
gabiruh has quit [Ping timeout: 265 seconds]
Nilby has joined #lisp
mingus has joined #lisp
jonatack has joined #lisp
klltkr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
montaropdf has quit [Quit: ERC (IRC client for Emacs 26.3)]
Necktwi has quit [Read error: Connection reset by peer]
Necktwi has joined #lisp
bitmapper has joined #lisp
malfort_ has quit [Quit: Leaving]
mingus` has joined #lisp
malfort has joined #lisp
mingus has quit [Ping timeout: 272 seconds]
montaropdf has joined #lisp
wxie has joined #lisp
notzmv has joined #lisp
montaropdf has quit [Remote host closed the connection]
asdf_asdf_asdf has joined #lisp
orivej has quit [Ping timeout: 265 seconds]
raghavgururajan has quit [Read error: Connection reset by peer]
ebzzry has joined #lisp
mingus`` has joined #lisp
mingus`` has quit [Client Quit]
<pjb> minion: memo for emaczen: ARM Assembler in Lisp http://www.ulisp.com/show?2XZH
<minion> Remembered. I'll tell emaczen when he/she/it next speaks.
statusf90 has joined #lisp
mingus` has quit [Ping timeout: 268 seconds]
manualcrank has quit [Quit: WeeChat 1.9.1]
jeosol has quit [Remote host closed the connection]
papachan has joined #lisp
wxie has quit [Ping timeout: 260 seconds]
adolby has quit [Ping timeout: 268 seconds]
adolby has joined #lisp
montaropdf has joined #lisp
cosimone has joined #lisp
z147x has joined #lisp
z147 has quit [Remote host closed the connection]
Bike has joined #lisp
<beach> Nilby: If you want to be acknowledged for helping me find information about SBCL breakpoints, I need to know how you would like your name to appear. You can give it here, or send it by email.
tiwEllien has joined #lisp
<Nilby> beach: Thank you, but I don't like to be acknowledged. You can take any credit.
<beach> OK, as you wish.
_fe_ has joined #lisp
<asdf_asdf_asdf> Hi. How coerced value from (read) to type alien?
nullman has quit [Ping timeout: 272 seconds]
nullman has joined #lisp
<ck_> asdf_asdf_asdf: I think you just try to coerced value as best as you can. But more seriously, this sounds like a question for #sbcl.
statusf90 has quit [Quit: statusf90]
_fe_ has quit [Quit: Leaving]
orivej has joined #lisp
Roland2 has quit [Quit: Leaving.]
<asdf_asdf_asdf> OK.
oxum_ has joined #lisp
LiamH has joined #lisp
mn3m has joined #lisp
oxum has quit [Ping timeout: 268 seconds]
amerlyq has quit [Quit: amerlyq]
amerlyq has joined #lisp
hiroaki has joined #lisp
oxum_ has quit [Ping timeout: 260 seconds]
oxum has joined #lisp
jprajzne has quit [Quit: Leaving.]
asdf_asdf_asdf has quit [Quit: asdf_asdf_asdf]
nullman has quit [Remote host closed the connection]
nullman has joined #lisp
lucasb has joined #lisp
refpga has joined #lisp
seok has quit [Remote host closed the connection]
seok has joined #lisp
<refpga> Hello, how does one send whois queries using lisp?
<dlowe> one looks up the protocol and uses a network socket library (like usocket) to implement the protocl
adolby has quit [Ping timeout: 265 seconds]
<Xach> refpga: one easy way is (run-program "whois" string)
<dlowe> iirc, the protocol is actually pretty simple
<dlowe> or that :p
<pjb> (uiop:run-program "whois foo" :output :string)
adolby has joined #lisp
<dlowe> one word of warning: they clamp down hard on automated whois queries
<dlowe> I have an ip address that I think is just permabanned from whois servers.
EvW has joined #lisp
klm2is has joined #lisp
dddddd has quit [Ping timeout: 268 seconds]
adolby has quit [Read error: Connection reset by peer]
adolby has joined #lisp
EvW has quit [Ping timeout: 260 seconds]
sjl_ has joined #lisp
efm has joined #lisp
flamebeard has quit []
dddddd has joined #lisp
ebrasca has joined #lisp
EvW has joined #lisp
rippa has joined #lisp
tiwEllien has quit [Ping timeout: 265 seconds]
tiwEllien has joined #lisp
v88m has quit [Ping timeout: 240 seconds]
william1_ has joined #lisp
nika_ has quit [Read error: Connection reset by peer]
nika_ has joined #lisp
klm2is has quit [Quit: Leaving]
scymtym has quit [Ping timeout: 248 seconds]
asdf_asdf_asdf has joined #lisp
swills has quit [Quit: swills]
raghavgururajan has joined #lisp
shrdlu68 has quit [Ping timeout: 265 seconds]
mn3m has quit [Quit: mn3m]
william1_ has quit [Ping timeout: 258 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
EvW has quit [Ping timeout: 272 seconds]
gxt has quit [Ping timeout: 240 seconds]
zekus_ has joined #lisp
<jmercouris> can someone please remind me how to break from a loop and return the element that is true for some predicate?
<Bike> "when (predicate thing) return thing"?
<jmercouris> is there not another form?
<galdor> FIND-IF ?
<jmercouris> is it just (loop for element in list when (predicate x) return y)?
<ebrasca> always/never ?
<Shinmera> thereis
<Shinmera> but it won't return the element, if I remember correctly.
<jmercouris> FIND-IF... that could be a good idea
<jmercouris> but I don't think I can find-if across a hash table
<Bike> Oh, if that's the entire loop you could just do (some predicate list)
<Bike> find-if doesn't work on hash tables, no
<jmercouris> Bike: what is (some-predicate list)?
<Bike> and thereis apparently does return the element, so that works too, but it'll be the value returned by the predicate.
<Bike> clhs some
<Bike> no wait, i thought that returns the element but it doesn't
<Bike> nevermind
<Bike> forget my own head next...
<jmercouris> OK
<Bike> so yeah, probably the first thing i said. unless that's a problem for some reason?
<jmercouris> let us say this, how to go through values in hash table and check for predicate and return first value that matches
<Bike> you can loop over a hash table with loop
<jmercouris> so, is what I said true then?
<Bike> though i can never remember the syntax
<Bike> loop for x being the values of table, or something
<jmercouris> same, but I have an example
zekus_ has left #lisp ["ERC (IRC client for Emacs 26.3)"]
<galdor> CATCH + MAPHASH + THROW should work
<jmercouris> and you can do when (predicate-x x) (return element)?
<galdor> LOOP + RETURN if you can remember the syntax
<jmercouris> let me just try with a simple sequence first
<Bike> "when (predicate x) return x". return is a loop keyword
<jmercouris> OK that's basically what I was trying to figure out
<galdor> generally speaking, if you need to regularly find a specific value in a hash table, I'm not sure the hash table is not the right data structure
<jmercouris> it is rare that I have to do so
<Bike> you could also do "when (predicate x) do (return x)"
<jmercouris> it is for a sanitation function that checks the state of the objects in the hash table
<jmercouris> Bike: would that not keep looping though?
<jmercouris> or does (return x) break?
<Shinmera> you can also just 'do (when x (return y))' like anything else.
<jmercouris> ah, OK, thank you all
<Bike> i recommend going through and macroexpanding a loop some time
<Bike> your implementation will go and put in a bunch of weird shit, but usually you can get it down to a simple form
<Bike> makes loop much less mysterious
<jmercouris> I will try to do that
swills has joined #lisp
<Bike> though it might still be kind of weird in the end with hash tables, since with-hash-table-iterator is kind of weird.
shangul has quit [Ping timeout: 268 seconds]
chocimir has joined #lisp
jonatack has quit [Ping timeout: 268 seconds]
gko_ has quit [Ping timeout: 265 seconds]
dale_ has joined #lisp
dale_ is now known as dale
mathrick has quit [Ping timeout: 268 seconds]
EvW1 has joined #lisp
mathrick has joined #lisp
v0|d has joined #lisp
Cymew has quit [Ping timeout: 260 seconds]
montaropdf has quit [Quit: See you later]
tiwEllien has quit [Ping timeout: 258 seconds]
narimiran has joined #lisp
random-nick has joined #lisp
shrdlu68 has joined #lisp
ggole has quit [Quit: Leaving]
turona has quit [Quit: ...]
turona has joined #lisp
v88m has joined #lisp
dru1d has quit [Ping timeout: 260 seconds]
frgo has quit [Ping timeout: 272 seconds]
jonatack has joined #lisp
longshi has quit [Ping timeout: 240 seconds]
<asdf_asdf_asdf> Hi. How get type from var in Common Lisp?
v88m has quit [Ping timeout: 268 seconds]
<beach> Variables don't have types. Objects do.
<asdf_asdf_asdf> :type (type-of obj)
<asdf_asdf_asdf> Yes, object.
<beach> So what is it that you want?
<phoe> (type-of x)
<beach> Most objects can have many types, some even an infinite number.
<sjl_> *every* object can trivially have an infinite number of types of the form `(or actual-type (member 1 2 3 ...))`
<beach> True.
<asdf_asdf_asdf> (alien-size (type-of ptr) :bytes) ; error
<jmercouris> is asdf_asdf_asdf fare?
<beach> No.
<jmercouris> OK
<beach> asdf_asdf_asdf: I strongly recommend that you program in Common Lisp instead.
<Nilby> I'm thankful that everything is of type T.
longshi has joined #lisp
harovali has joined #lisp
chocimir has quit [Ping timeout: 268 seconds]
harovali1 has quit [Ping timeout: 260 seconds]
davepdo__ has quit [Remote host closed the connection]
ebzzry has quit [Ping timeout: 268 seconds]
tiwEllien has joined #lisp
heisig has joined #lisp
ealfonso has joined #lisp
raghavgururajan has quit [Read error: Connection reset by peer]
X-Scale` has joined #lisp
X-Scale has quit [Ping timeout: 260 seconds]
X-Scale` is now known as X-Scale
hhdave has quit [Quit: hhdave]
dddddd has quit [Ping timeout: 265 seconds]
asdf_asdf_asdf has quit [Remote host closed the connection]
<pjb> asdf_asdf_asdf: you are completely misled. Lisp types have nothing in common with C types. A lisp object can often be stored in several different C variables (or fields or parameters) of different C types. You cannot determine a C type from a lisp object. You can only know in advance what C type a given C variable (or field or parameter) has, and convert the lisp object into a C value of that C type.
<pjb> minion: memo for asdf_asdf_asdf: you are completely misled. Lisp types have nothing in common with C types. A lisp object can often be stored in several different C variables (or fields or parameters) of different C types. You cannot determine a C type from a lisp object. You can only know in advance what C type a given C variable (or field or parameter) has, and convert the lisp object into a C value of that C type.
<minion> Remembered. I'll tell asdf_asdf_asdf when he/she/it next speaks.
dddddd has joined #lisp
asarch has joined #lisp
heisig has quit [Quit: Leaving]
shifty has quit [Ping timeout: 258 seconds]
frgo has joined #lisp
|Pirx| has joined #lisp
<|Pirx|> hello
<pjb> helo
<|Pirx|> someone could help me troubleshoot hunchentoot?
<Xach> |Pirx|: what's up?
<|Pirx|> i've installed it and get a root page, but easy-handler example from the docs gives 404
<|Pirx|> define-easy-handler succeeds, but then 404, i did
<|Pirx|> (require :hunchentoot)
<|Pirx|> (hunchentoot:start (make-instance 'hunchentoot:acceptor :port 4242))
<|Pirx|> now localhost:4242 works
<|Pirx|> but after (hunchentoot:define-easy-handler (say-yo :uri "/yo") (name)
<|Pirx|> (setf (hunchentoot:content-type*) "text/plain")
<|Pirx|> (format nil "Hey~@[ ~A~]!" name))
<|Pirx|> 404
<Xach> |Pirx|: What gives a 404?
<|Pirx|> the browser
<Xach> |Pirx|: what URL?
<|Pirx|> localhost:4242/yo
<|Pirx|> i see the log in the sbcl console too
<Xach> I tried that code, visited http://localhost:4242/yo and got "Hey!"
<Xach> Hmm
<|Pirx|> should i add something more to the code?
<Xach> |Pirx|: I don't think so.
<|Pirx|> i only have exactly what i pasted
<Xach> |Pirx|: do you use quicklisp?
<dlowe> where did you type in the define-easy-handler?
<Xach> dlowe: since all the symbols are qualified, I'm not sure that matters much.
<|Pirx|> in the console
<dlowe> I guess so. I'm just wondering if it wasn't evaluated somehow
<Xach> |Pirx|: does (fdefinition 'say-yo) return a function object?
<|Pirx|> the require did throw some warnings about
<Xach> |Pirx|: do you use quicklisp?
<|Pirx|> it returns SAY-YO
papachan has quit [Quit: Leaving]
<Xach> If you do, what does (ql:where-is-system "hunchentoot") show you?
jmercouris has quit [Remote host closed the connection]
<|Pirx|> warnings the require about system definitions files that should be under hunchentoot, but root page works anyway
nika_ has quit []
<|Pirx|> maybe the function doesn't get assigned properly to the acceptor :m
<|Pirx|> sorry, i missed your last
<Xach> If you use quicklisp, what does (ql:where-is-system "hunchentoot") show you?
<|Pirx|> #P"C:/Users/lenovo/quicklisp/dists/quicklisp/software/hunchentoot-v1.2.38/" is what ql:where-is-system returns
<Xach> ok, that's what I get too. and things work like the docs suggest. very weird! what lisp do you use? (it generally shouldn't matter, but maybe it does in this cae)
<|Pirx|> sbcl
<Xach> same here.
<Xach> |Pirx|: i don't know what might be fouling up for you, sorry.
<|Pirx|> no preferences, i've seen some recommendations for clozure... thanks anyway :)
<Xach> I know it's not super-helpful to say "works for me", but it does, as described in the docs, work for me.
<|Pirx|> that helps
<|Pirx|> it eliminates some sources of error
varjagg has joined #lisp
<|Pirx|> i suspect now something about the environment, maybe i have not included some package by default or something like that
<|Pirx|> i'm new to this, but very persistent :)
FreeBirdLjj has joined #lisp
jxy has quit [Quit: leaving]
<Xach> |Pirx|: i started from a fresh session, used (ql:quickload "hunchentoot"), (hunchentoot:start (make-instance 'hunchentoot:easy-acceptor :port 4242)), (hunchentoot:define-easy-handler (say-yo :uri "/yo") (name) (setf (hunchentoot:content-type*) "text/plain") (format nil "Hey~@[ ~A~]!" name)), and got the expected results. i didn't run anything else in the session.
smazga has joined #lisp
<|Pirx|> i'll try something different
FreeBirdLjj has quit [Ping timeout: 265 seconds]
statusf90 has joined #lisp
DGASAU has quit [Read error: Connection reset by peer]
<|Pirx|> if i put a "yo" file in the directory it serves it, so the problem is that it's not binding the function to the acceptor
DGASAU has joined #lisp
jxy has joined #lisp
m00natic has quit [Remote host closed the connection]
<Xach> "in the directory"?
<|Pirx|> the root directory where index.html and doc.html is
<Xach> oh, i see
<|Pirx|> are
asdf_asdf_asdf has joined #lisp
amerlyq has quit [Quit: amerlyq]
ealfonso has quit [Remote host closed the connection]
longshi has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 268 seconds]
adolby has quit [Remote host closed the connection]
adolby has joined #lisp
asdf_asdf_asdf has quit [Remote host closed the connection]
asdf_asdf_asdf has joined #lisp
jebes has quit [Quit: ZNC 1.7.5 - https://znc.in]
refpga has quit [Read error: Connection reset by peer]
adolby has quit [Read error: Connection reset by peer]
brown121407 has quit [Ping timeout: 268 seconds]
adolby has joined #lisp
brown121408 has joined #lisp
refpga has joined #lisp
brown121408 has quit [Read error: Connection reset by peer]
brown121407 has joined #lisp
<nirved> |Pirx|: you have to make an easy-acceptor instance, just acceptor wouldn't work
<Xach> nirved: good eyes. that's a critical difference.
* Xach assumed the lines had been copied straight out of the tutorial
<|Pirx|> let's see
<|Pirx|> Hey!
patlv has joined #lisp
<|Pirx|> thanks! that was it
<|Pirx|> now i also have ccl installed :)
<|Pirx|> it neither worked on it of course
asarch has quit [Quit: Leaving]
sauvin has quit [Read error: Connection reset by peer]
|Pirx| is now known as |Pirx_off|
vlatkoB has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
manualcrank has joined #lisp
clothespin has joined #lisp
|Pirx_off| is now known as |Pirx|
longshi has joined #lisp
bitmapper has quit []
tiwEllien has quit [Ping timeout: 268 seconds]
<boeg> Can someone help be understand why `(some #'typep (list 1) (list 'number 'string 'number))` returns `T` but `(some #'typep (list 1) (list 'string 'number))` return `NIL` ? And is there a better approach when what I want is test of the type of an object is on a list of "allowed types"?
<boeg> Can someone help be understand why `(some #'typep (list 1) (list 'number 'string 'number))` returns `T` but `(some #'typep (list 1) (list 'string 'number))` return `NIL` ? And is there a better approach when what I want is test of the type of an object is on a list of "allowed types"?
<boeg> woah, sorry about double posting
Arcaelyx has joined #lisp
tiwEllien has joined #lisp
<phoe> you don't want to do that
<phoe> SOME calls TYPEP only once
<phoe> (TYPEP 1 'NUMBER) is called
<Bike> it stops after the shortest list runs out.
<phoe> since the first list only has one element
<phoe> you want (some (a:curry #'typep 1) '(number string whatever))
<phoe> also, yes
<Bike> If the list is constant you can just do (typep 1 '(or number string)). Is that what you're doing?
<phoe> (typep x '(or number string whatever))
gxt has joined #lisp
patlv has quit [Quit: Leaving]
<boeg> oh
<boeg> thats clever
<boeg> and makes sense why it wasn't working what i was doing
jmercouris has joined #lisp
<boeg> thanks a lot
cosimone has quit [Quit: Quit.]
davr0s has joined #lisp
davr0s_ has joined #lisp
<splittist> Is there some MOPery that will allow my subclass to skip the super's :after method on INITIALZE-INSTANCE ?
<splittist> (and use my, and only my, i-i :after method?)
<splittist> (and I would probably spell it properly )
<phoe> splittist: sounds like your own custom method combination
<phoe> the standard method combination states that all :AFTER methods are executed in order, no exceptions
<phoe> so if you define your own one, then perhaps you might be able to play around with the method order in some way, including which methods actually are executed and which are skipped
<Bike> can't do that with initialize-instance tho.
<phoe> oh wait!
<phoe> yes, I-I uses a standard method combination
<Bike> so, no.
<splittist> yes. But I was hoping to plug into an existing protocol in existing project that almost, but not quite, allows enough specialisation. I guess I just fork/replicate and be done with it ): (and once I have it working, perhaps a PR)
<phoe> what's the exact issue?
<Nilby> But you can likely do whatever you want hackishly with throw.
tiwEllien has quit [Ping timeout: 268 seconds]
<Bike> :after methods are called most-specific-last, so the super's after method will be called before yours, so you can't exit early... and even if you could i'm not sure how that would be arranged.
<Bike> just redefine the method or something.
ralt has quit [Quit: Connection closed for inactivity]
<splittist> yeah. I think it will be fewer lines to not inherit, and come at it from the protocol-end (i.e. specialise each of the protocol gfs). Thanks!
z147x has quit [Remote host closed the connection]
z147x has joined #lisp
shangul has joined #lisp
cl-arthur has joined #lisp
Codaraxis has quit [Ping timeout: 265 seconds]
EvW1 has quit [Ping timeout: 245 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
orivej has joined #lisp
shangul has quit [Ping timeout: 272 seconds]
adolby has quit [Read error: Connection reset by peer]
emys has joined #lisp
adolby has joined #lisp
adolby has quit [Ping timeout: 258 seconds]
harovali has quit [Ping timeout: 268 seconds]
tiwEllien has joined #lisp
adolby has joined #lisp
knicklux has joined #lisp
papachan has joined #lisp
nowhereman_ has joined #lisp
shangul has joined #lisp
cosimone has joined #lisp
jayspeer has joined #lisp
klltkr has joined #lisp
nowhereman_ has quit [Ping timeout: 272 seconds]
jeosol has joined #lisp
zclark has joined #lisp
narimiran has quit [Ping timeout: 258 seconds]
Codaraxis has joined #lisp
gravicappa has quit [Ping timeout: 268 seconds]
adolby has quit [Ping timeout: 260 seconds]
shangul has quit [Ping timeout: 268 seconds]
adolby has joined #lisp
z147x has quit [Ping timeout: 240 seconds]
knicklux has quit [Ping timeout: 268 seconds]
adolby has quit [Ping timeout: 265 seconds]
z147x has joined #lisp
adolby has joined #lisp
gabiruh_ has quit [Remote host closed the connection]
z147x has quit [Ping timeout: 240 seconds]
shangul has joined #lisp
hiroaki has quit [Ping timeout: 240 seconds]
ArthurStrong has joined #lisp
gxt has quit [Ping timeout: 240 seconds]
akoana has joined #lisp
hiroaki has joined #lisp
turona has quit [Quit: ...]
turona has joined #lisp
<splittist> OK. After a few hours work I'm back where I started, with something that almost works, but now with a myriad layers of indirection. Time to declare victory and leave it for the evening. :P
<Xach> nooo
Bike has quit [Remote host closed the connection]
<Odin-> Indirection is at least somewhat preferable over misdirection.
<splittist> the indirection/protocol thing actually works fine, now. It's just that I started the day with a slightly-broken thing and I'm ending it with exactly the same brokenness. But there is a slightly sleeker yak, so that's something.
Bike has joined #lisp
terpri has quit [Remote host closed the connection]
jayspeer has quit [Quit: ERC (IRC client for Emacs 26.3)]
z147 has joined #lisp
terpri has joined #lisp
karlosz has joined #lisp
<Shinmera> splittist: what's the project in question?
<splittist> Using djula templates with docx (ms word) documents.
longshi has quit [Ping timeout: 245 seconds]
jmercouris has quit [Remote host closed the connection]
<Shinmera> Ah.
turona has quit [Quit: ...]
<splittist> It started yesterday as a bit of a distraction from something else docx-related. (Which itself is ...) Basically, it 's squirrels all the way down.
<|Pirx|> squirrels :)
<|Pirx|> all the way up?
<phoe> depends on your CPU architecture I guess, same question as "which direction does the stack grow"
<|Pirx|> it grows fat on my arch
turona has joined #lisp
<Shinmera> splittist: my condolences
Bike has quit [Quit: Bike]
efm_ has joined #lisp
efm has quit [Ping timeout: 265 seconds]
seok has quit [Remote host closed the connection]
efm_ has quit [Client Quit]
Codaraxis has quit [Ping timeout: 245 seconds]
EvW has joined #lisp
madage has quit [Remote host closed the connection]
emys has quit [Ping timeout: 248 seconds]
jonatack has quit [Ping timeout: 260 seconds]
karlosz has quit [Quit: karlosz]
varjagg has quit [Quit: ERC (IRC client for Emacs 26.1)]
emys has joined #lisp
madage has joined #lisp
Codaraxis has joined #lisp
shifty has joined #lisp
jeosol has quit [Remote host closed the connection]
emys has quit [Ping timeout: 240 seconds]
adolby has quit [Ping timeout: 268 seconds]
adolby has joined #lisp
sjl_ has quit [Quit: WeeChat 2.3-dev]
<White_Flame> how would one express a non-shortcutting version of OR?
<White_Flame> in the shortest way possible
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sjl has quit [Quit: WeeChat 2.2-dev]
random-nick has quit [Ping timeout: 265 seconds]
<no-defun-allowed> (defun lousy-or (value &rest values) (let ((next (apply #'lousy-or values))) (if (null value) next value))) ; but this has non-tail recursion and is slightly cursed
tiwEllien has quit [Ping timeout: 268 seconds]
<White_Flame> some of the cyc code very, very manually performs a non-shortcutting OR on 2 cleanup items for a "success" return, and I'm wondering if there's some little trick
<Xach> White_Flame: (defun ns-or (&rest values) (some #'identity values))?
<White_Flame> some shortcuts, doesn' tit?
<no-defun-allowed> Ooh, nice one.
<Xach> White_Flame: yes, but functions evaluate all their arguments
<Xach> White_Flame: so it evaluates everything (unlike OR) and still gives the semantics of only being true if something is true.
<White_Flame> ah true, I didn't explore SOME because of that, although I know it's been used for such things
<Xach> you can't write real OR as a function
<White_Flame> even (some #'identity (list expr1 exrp2)) etc
<White_Flame> I'll disasm and see if it reduces away nicely
<White_Flame> eh, it still constructs and walks the list
<White_Flame> although without any function calls
adolby has quit [Read error: Connection reset by peer]
adolby_ has joined #lisp
jonatack has joined #lisp
Bike has joined #lisp
LiamH has quit [Quit: Leaving.]
|Pirx| is now known as |Pirx_off|
adolby_ has quit [Read error: Connection reset by peer]
adolby has joined #lisp
<gabc> Is there any external requirement to use Qtools? Or this should be enough? (ql:quickload '(qtools qtcore qtgui))
emys has joined #lisp
shrdlu68 has quit [Ping timeout: 240 seconds]
adolby has quit [Read error: Connection reset by peer]
adolby has joined #lisp
shangul has quit [Remote host closed the connection]
shangul has joined #lisp
shangul has quit [Remote host closed the connection]
Arcaelyx has quit [Quit: Arcaelyx]
shangul has joined #lisp
emys has quit [Ping timeout: 272 seconds]
smazga has quit [Ping timeout: 265 seconds]