jackdaniel changed the topic of #lisp to: Common Lisp, the #1=(programmable . #1#) programming language | <http://cliki.net/> <https://irclog.whitequark.org/lisp> <http://ccl.clozure.com/irc-logs/lisp/> | SBCL 1.4.5, CMUCL 21b, ECL 16.1.3, CCL 1.11.5, ABCL 1.5.0
stardiviner has joined #lisp
robotoad has quit [Quit: robotoad]
themsay has joined #lisp
Bike has joined #lisp
jack_rabbit has joined #lisp
nowhere_man has joined #lisp
* jasom is secretly hoping that the issue will be the GC stopping the workd and drmeister will spend the next 6 months writing a state-of-the-art concurrent GC for clasp
mrcom has quit [Read error: Connection reset by peer]
moei has quit [Quit: Leaving...]
stardiviner has quit [Quit: WeeChat 2.3]
nchambers has joined #lisp
jack_rabbit has quit [Ping timeout: 250 seconds]
themsay has quit [Ping timeout: 246 seconds]
atgreen has joined #lisp
didi has joined #lisp
<didi> Shouldn't (format nil "~{~}" '()) eval to an empty string?
<didi> Also, (format nil "~{x~}" '(1)) in SBCL loops forever, with increasing RAM usage.
<verisimilitude> You're missing an @, didi.
jack_rabbit has joined #lisp
<jasom> didi: the second one should loop forever
<didi> verisimilitude: Oh... right. I always miss it.
<jasom> ~{ means "continue until list is empty, consuming as many as wanted"
pierpal has quit [Ping timeout: 250 seconds]
<jasom> IMO the only conforming thing to do with (format nil "~{~}" nil) is to return "" which is not what sbcl does. Be interesting to see if this has been discussed before
Essadon has quit [Quit: Qutting]
mrcom has joined #lisp
hectorhonn has joined #lisp
<hectorhonn> morning everyone
frgo has quit [Remote host closed the connection]
makomo has quit [Ping timeout: 244 seconds]
<no-defun-allowed> morning hectorhonn
themsay has joined #lisp
robotoad has joined #lisp
elderK has quit [Quit: WeeChat 1.9]
milanj has quit [Quit: This computer has gone to sleep]
dogenpunk has joined #lisp
atgreen has quit [Ping timeout: 245 seconds]
atgreen_ has joined #lisp
atgreen_ has quit [Remote host closed the connection]
atgreen_ has joined #lisp
robotoad has quit [Read error: Connection reset by peer]
rnmhdn has joined #lisp
Lycurgus has quit [Quit: Exeunt]
emaczen has joined #lisp
dogenpunk has quit [Ping timeout: 252 seconds]
dddddd has quit [Remote host closed the connection]
Lord_of_Life has quit [Ping timeout: 244 seconds]
Lord_of_Life has joined #lisp
myrkraverk has quit [Ping timeout: 250 seconds]
iAmDecim has joined #lisp
emaczen has quit [Ping timeout: 268 seconds]
myrkraverk has joined #lisp
emaczen has joined #lisp
shifty has quit [Ping timeout: 244 seconds]
shifty has joined #lisp
esper0s has joined #lisp
atgreen_ has quit [Ping timeout: 250 seconds]
<beach> Good morning everyone!
Bike has quit [Quit: sleep]
<beach> jasom: Did you look at the chapter about garbage collection in the SICL specification?
rumbler31 has joined #lisp
rnmhdn has quit [Ping timeout: 246 seconds]
robotoad has joined #lisp
nullheroes has quit [Quit: WeeChat 1.9.1]
nullheroes has joined #lisp
esper0s has quit [Read error: Connection reset by peer]
eminhi has quit [Ping timeout: 250 seconds]
rnmhdn has joined #lisp
sword has quit [Remote host closed the connection]
<mfiano> Excuse me for not paying attention to the discussions here in a couple weeks, but has anyone noticed that the recent QL dist has a broken trivia system?
emaczen has quit [Ping timeout: 268 seconds]
<mfiano> Sorry to bother. Updated SBCL and it seems to work now
rippa has joined #lisp
smokeink has joined #lisp
rumbler31 has quit [Remote host closed the connection]
rumbler31 has joined #lisp
rnmhdn has quit [Ping timeout: 268 seconds]
psqueak has joined #lisp
vlatkoB has joined #lisp
Arcaelyx has quit [Ping timeout: 250 seconds]
iAmDecim has quit [Ping timeout: 252 seconds]
rnmhdn has joined #lisp
rumbler31 has quit [Remote host closed the connection]
Lycurgus has joined #lisp
robotoad has quit [Quit: robotoad]
psqueak has left #lisp ["ERC (IRC client for Emacs 25.2.2)"]
skeuomorf has joined #lisp
skeuomorf has left #lisp [#lisp]
robotoad has joined #lisp
emaczen has joined #lisp
milanj has joined #lisp
slyrus1 has quit [Quit: slyrus1]
Inline has quit [Quit: Leaving]
rnmhdn has quit [Ping timeout: 240 seconds]
rumbler31 has joined #lisp
milanj has quit [Quit: This computer has gone to sleep]
CrazyEddy has quit [Ping timeout: 268 seconds]
Necktwi has joined #lisp
Arcaelyx has joined #lisp
JohnMS_WORK has joined #lisp
rnmhdn has joined #lisp
makomo has joined #lisp
rumbler31 has quit [Remote host closed the connection]
smokeink has quit [Remote host closed the connection]
<phoe> Morniiiing
<verisimilitude> Hello, phoe.
<zigpaw> morning :)
shrdlu68 has joined #lisp
<splittist> Good morning #lisp!
<shrdlu68> 'Morning
kajo has quit [Ping timeout: 250 seconds]
mrcom has quit [Read error: Connection reset by peer]
mrcom has joined #lisp
rnmhdn has quit [Ping timeout: 272 seconds]
mathu has left #lisp [#lisp]
heisig has joined #lisp
ebrasca has joined #lisp
frgo has joined #lisp
clintm has quit [Remote host closed the connection]
lnostdal has quit [Ping timeout: 246 seconds]
lnostdal has joined #lisp
nanoz has joined #lisp
varjag has joined #lisp
themsay has quit [Ping timeout: 246 seconds]
meepdeew has joined #lisp
nanozz has joined #lisp
nanoz has quit [Ping timeout: 246 seconds]
meepdeew has quit [Remote host closed the connection]
smokeink has joined #lisp
Lord_of_Life has quit [Ping timeout: 268 seconds]
jochens has joined #lisp
jochens has quit [Remote host closed the connection]
jochens has joined #lisp
Lord_of_Life has joined #lisp
jochens_ has joined #lisp
aindilis has quit [Remote host closed the connection]
atgreen_ has joined #lisp
smokeink has quit [Ping timeout: 250 seconds]
jochens has quit [Ping timeout: 250 seconds]
rnmhdn has joined #lisp
aindilis has joined #lisp
<phoe> heyyyy
<shka_> phoe: good morning
<ogamita> jasom: all implementations seem to get ~{~} wrong.
<ogamita> At least they're consistent. However, the consistency breaks at (format nil "~{~}" nil nil) where ccl keeps signaling an error.
clintm has joined #lisp
lnostdal has quit [Ping timeout: 268 seconds]
lnostdal has joined #lisp
m0w has joined #lisp
zotan has joined #lisp
frgo has quit []
frgo has joined #lisp
* heisig wonders how many implementors already had a nervous breakdown at chapter 22 of the spec...
<jackdaniel> heisig: for better or worse some implementations just took cmu's code for that and fixed over the years :)
aindilis has quit [Read error: Connection reset by peer]
hhdave has joined #lisp
<jackdaniel> (but chapter 22 is also about pretty printing and such - this is not part of cmu format)
gxt has quit [Quit: WeeChat 2.3]
<splittist> If the ~{~} is empty, then an argument is used as the contents. It must be a format control and precede any arguments processed by the iteration.
rnmhdn has quit [Ping timeout: 244 seconds]
robdog has joined #lisp
<no-defun-allowed> Chapter 22.3 is probably the most reread chapter in the clhs if I has to guess.
shrdlu68 has quit [Ping timeout: 268 seconds]
robdog has quit [Remote host closed the connection]
robdog has joined #lisp
<clintm> (string #\1) -> "1" - Is there a related function that will give me the number 1?
nanozz has quit [Ping timeout: 250 seconds]
<jdz> CHAR-DIGIT-P
milanj has joined #lisp
<jdz> I mean DIGIT-CHAR-P
<jdz> (digit-char-p #\F 16) ; => 15
<no-defun-allowed> Digit-char.
<clintm> thank you! I think I was mentally filtering out -p functions assuming they returned nil or t.
<jdz> This is one of the cases where a function returns "generalized boolean".
<jackdaniel> no-defun-allowed: no, digit-char returns a character, digit-char-p is the function
<no-defun-allowed> What, what, it is that. My bad.
dddddd has joined #lisp
<no-defun-allowed> Well I never.
jfb4 has quit [Ping timeout: 240 seconds]
orivej has joined #lisp
aindilis has joined #lisp
hectorhonn has quit [Quit: Page closed]
<ogamita> splittist: Ah right! ~{~} is like ~? (format nil "~{~}" "~A" '(42 33 b)) #| --> "4233b" |#
<ogamita> So only ccl is conforming here :-)
<ogamita> all predicates are allowed to return "useful" values. Only digit-char-p is specified to do so, IIRC.
<jackdaniel> so in conforming CL code you may depend only on digit-char-p returning something useful
<jackdaniel> becaue in other cases conforming implementations may behave differently
<jackdaniel> because*
<ogamita> Exactly.
<jackdaniel> well, member too (except that it doesn't have -p suffix)
<ogamita> Indeed.
<_death> and string< and friends..
<ogamita> and mismatch, etc. So, I was wrong: there are more than one predicate specified to return useful values.
<_death> many sequence functions do
nowhere_man has quit [Ping timeout: 252 seconds]
rumbler31 has joined #lisp
<pfdietz> Those predicates were so annoying when writing ansi-tests. Had to wrap (not (not ...)) around many forms to convert true to T.
atgreen_ has quit [Remote host closed the connection]
<_death> (defun bool (x) (if x t nil))
<pfdietz> I just defined notnot as a function.
Bike has joined #lisp
<pfdietz> There are also cases where predicates returned different values depending on compilation. (typep x '(member x y z)) might return T if constant folded, or (X Y Z) if actually called with those arguments.
<pfdietz> Is that a bug? Arguably yes, even if allowed by the standard.
<pfdietz> (typep 'x '(member x y z))
<_death> I think so too.. but at least you can write a constant-folded-p ;)
rumbler31 has quit [Remote host closed the connection]
nowhere_man has joined #lisp
wigust has joined #lisp
wigust- has quit [Ping timeout: 250 seconds]
orivej has quit [Ping timeout: 250 seconds]
milanj has quit [Quit: This computer has gone to sleep]
jhei has quit [Ping timeout: 260 seconds]
jhei has joined #lisp
m0w has quit [Remote host closed the connection]
m0w has joined #lisp
robdog has quit [Remote host closed the connection]
smokeink has joined #lisp
Necktwi has quit [Ping timeout: 240 seconds]
Necktwi has joined #lisp
ebrasca has quit [Remote host closed the connection]
orivej has joined #lisp
uint has quit [Remote host closed the connection]
uint has joined #lisp
smokeink has quit [Remote host closed the connection]
Bike is now known as Bicyclidine
rnmhdn has joined #lisp
nicksmaddog has joined #lisp
smokeink has joined #lisp
FreeBirdLjj has joined #lisp
FreeBirdLjj has quit [Ping timeout: 245 seconds]
neirac has joined #lisp
rnmhdn has quit [Ping timeout: 246 seconds]
ebrasca has joined #lisp
robotoad has quit [Ping timeout: 246 seconds]
Bike has joined #lisp
rumbler31 has joined #lisp
orivej has quit [Ping timeout: 240 seconds]
didi has quit [Ping timeout: 250 seconds]
rumbler31 has quit [Ping timeout: 245 seconds]
jack_rabbit has quit [Ping timeout: 268 seconds]
pierpal has joined #lisp
LiamH has joined #lisp
milanj has joined #lisp
smokeink has quit [Remote host closed the connection]
sjl_ has joined #lisp
seok has quit [Ping timeout: 256 seconds]
kajo has joined #lisp
ebrasca has quit [Remote host closed the connection]
<neirac> I just found out about time function in common lisp to measure execution time, made my day
<jackdaniel> neirac: then this tool will make your whole week: https://github.com/scymtym/clim.flamegraph/blob/future/screenshots/screenshot-1.png ;-)
Lycurgus has quit [Quit: Exeunt]
<hjudt> hi! i am having a problem with the dbd-oracle library available from quicklisp. apparently, it is not thread-safe and causes sbcl to crash or report freaky memory corruptions. when using the same code with sqlite3 the problem goes away. does anyone know of alternatives?
<neirac> jackadaniel this is truly awesome, I'm using ccl but I'll switch to sbcl :)
<hjudt> test sample: https://pastebin.com/2KADxUwK
<p_l> hjudt: remember that it binds to Oracle OCI binaries
<pfdietz> How does dbd-oracle do with other lisps? If it works in, say, ccl, is that a sign of an sbcl bug?
didi has joined #lisp
<hjudt> i've used plain-odbc before, which uses the oracle oci binaries too in some way (the odbc part of it that is). it did cope well with multiple connections.
<hjudt> p_l: could be. maybe also https://github.com/sergadin/dbd-oracle/blob/master/src/foreign-resources.lisp#L14 which should be synchronized (easy to do in sbcl)?
<p_l> there are few, inconsistent places where the OCIEnvCreate is called, all with OCI_DEFAULT instead of OCI_THREADED
JohnMS_WORK has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<p_l> access to *foreign-resource-hash* should IMO also be synchronized, can be done with standard Bordeaux-Threads code
<p_l> personally I think nobody ever tested this library with multiple threads
<hjudt> p_l: i've used sbcl's (make-hash-table :synchronized t). but as you mentioned, this is probably not the only culprit.
<p_l> so you end up with C code messing with itself, and if that causes an address written to by C code to suddenly point elsewhere because of a race condition on data structure... welll
<hjudt> p_l: it also uses some special variables which could interfere when threading.
<p_l> hjudt: depends on when the specials are bound
<p_l> AFAIK most implementations have thread-local special stack
<hjudt> i guess i will have to read up on oci docs if i want to try to fix this. unfortunately, this seems to be the only oracle library remaining for common lisp.
steiner has joined #lisp
gxt has joined #lisp
warweasle has joined #lisp
steiner has quit [Remote host closed the connection]
steiner has joined #lisp
gigetoo has quit [Ping timeout: 240 seconds]
kajo has quit [Quit: From my rotting body, flowers shall grow and I am in them and that is eternity. -- E. M.]
kajo has joined #lisp
kajo has quit [Client Quit]
rnmhdn has joined #lisp
<neirac> I'm trying to use clack it was working fine in ccl but I changed to sbcl and trying to load it gives me: Retry compiling #<IRONCLAD-SOURCE-FILE "ironclad" "src" "common">.
nchambers has quit [Quit: WeeChat 2.2]
<p_l> hjudt: OCI will be generally fine if you pass OCI_THREADED to OCIEnvCreate afaik
<p_l> hjudt: just also make sure that access to lisp-side structures is synchronized properly
heisig has quit [Quit: Leaving]
<scymtym> neirac: some ironclad versions and sbcl versions don't work together. unfortunately, the easiest solution is upgrading both to the newest released versions
<hjudt> p_l: thanks, i will look into this and see what i can achieve, though i am not sure i have enough experience to fix it. nevertheless it is worth a try.
<neirac> scymtym thanks a lot I'll do thaat
gigetoo has joined #lisp
Lord_of_Life_ has joined #lisp
kajo has joined #lisp
Lord_of_Life has quit [Ping timeout: 240 seconds]
Lord_of_Life_ is now known as Lord_of_Life
myrkraverk has quit [Ping timeout: 250 seconds]
kajo has quit [Quit: From my rotting body, flowers shall grow and I am in them and that is eternity. -- E. M.]
ebrasca has joined #lisp
myrkraverk has joined #lisp
frgo_ has joined #lisp
kajo has joined #lisp
ambrevar has joined #lisp
frgo has quit [Ping timeout: 246 seconds]
kajo has quit [Quit: From my rotting body, flowers shall grow and I am in them and that is eternity. -- E. M.]
kajo has joined #lisp
pierpal has quit [Read error: Connection reset by peer]
robotoad has joined #lisp
pierpal has joined #lisp
rnmhdn has quit [Ping timeout: 250 seconds]
nanoz has joined #lisp
nanozz has joined #lisp
jkordani has joined #lisp
atgreen has joined #lisp
robotoad has quit [Quit: robotoad]
slyrus1 has joined #lisp
meepdeew has joined #lisp
ambrevar has quit [Ping timeout: 252 seconds]
meepdeew has quit [Ping timeout: 245 seconds]
steiner has quit [Read error: Connection reset by peer]
robotoad has joined #lisp
varjag has quit [Quit: ERC (IRC client for Emacs 25.2.2)]
meepdeew has joined #lisp
robotoad has quit [Client Quit]
meepdeew has quit [Ping timeout: 250 seconds]
meepdeew has joined #lisp
meepdeew has quit [Ping timeout: 250 seconds]
meepdeew has joined #lisp
robotoad has joined #lisp
meepdeew has quit [Ping timeout: 240 seconds]
meepdeew has joined #lisp
FreeBirdLjj has joined #lisp
jfb4 has joined #lisp
doubledup has joined #lisp
doubledup has quit [Remote host closed the connection]
meepdeew has quit [Ping timeout: 240 seconds]
Inline has joined #lisp
meepdeew has joined #lisp
Inline has quit [Read error: Connection reset by peer]
Inline has joined #lisp
scymtym has quit [Ping timeout: 245 seconds]
meepdeew has quit [Ping timeout: 240 seconds]
meepdeew has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #lisp
meepdeew has quit [Ping timeout: 244 seconds]
meepdeew has joined #lisp
FreeBirdLjj has quit [Ping timeout: 240 seconds]
meepdeew has quit [Ping timeout: 244 seconds]
meepdeew has joined #lisp
dale_ has joined #lisp
dale_ is now known as dale
FreeBirdLjj has joined #lisp
meepdeew has quit [Ping timeout: 244 seconds]
meepdeew has joined #lisp
orivej has joined #lisp
varjag has joined #lisp
Zaab1t has joined #lisp
meepdeew has quit [Ping timeout: 240 seconds]
meepdeew has joined #lisp
scymtym has joined #lisp
rumbler31 has joined #lisp
jochens_ has quit [Remote host closed the connection]
jochens has joined #lisp
kahredici has joined #lisp
slyrus1 has quit [Quit: slyrus1]
meepdeew has quit [Ping timeout: 240 seconds]
meepdeew has joined #lisp
jochens has quit [Ping timeout: 250 seconds]
Lycurgus has joined #lisp
meepdeew has quit [Ping timeout: 240 seconds]
meepdeew has joined #lisp
meepdeew has quit [Ping timeout: 244 seconds]
meepdeew has joined #lisp
meepdeew has quit [Ping timeout: 245 seconds]
kahredici has quit [Remote host closed the connection]
meepdeew has joined #lisp
seok has joined #lisp
knicklux has joined #lisp
kajo has quit [Quit: From my rotting body, flowers shall grow and I am in them and that is eternity. -- E. M.]
kajo has joined #lisp
meepdeew has quit [Ping timeout: 244 seconds]
elderK has joined #lisp
varjag has quit [Remote host closed the connection]
meepdeew has joined #lisp
meepdeew has quit [Ping timeout: 250 seconds]
rumbler31 has quit [Remote host closed the connection]
kajo has quit [Quit: From my rotting body, flowers shall grow and I am in them and that is eternity. -- E. M.]
kajo has joined #lisp
m0w has quit [Ping timeout: 246 seconds]
kajo has quit [Client Quit]
kajo has joined #lisp
<jasom> splittist: thanks! I totally missed that.
meepdeew has joined #lisp
<jasom> so (format nil "~{ ~}" nil) => ""
FreeBirdLjj has quit [Remote host closed the connection]
meepdeew has quit [Ping timeout: 250 seconds]
meepdeew has joined #lisp
hhdave has quit [Ping timeout: 240 seconds]
CrazyEddy has joined #lisp
meepdeew has quit [Ping timeout: 246 seconds]
meepdeew has joined #lisp
neirac has quit [Ping timeout: 246 seconds]
frgo_ has quit [Ping timeout: 268 seconds]
meepdeew has quit [Ping timeout: 244 seconds]
meepdeew has joined #lisp
orivej has quit [Ping timeout: 250 seconds]
neirac has joined #lisp
meepdeew has quit [Ping timeout: 246 seconds]
meepdeew has joined #lisp
notzmv has quit [Ping timeout: 246 seconds]
meepdeew has quit [Ping timeout: 240 seconds]
<neirac> anyone using https://github.com/joaotavora/snooze ? I'm just getting 500 don't know why
meepdeew has joined #lisp
meepdeew has quit [Ping timeout: 250 seconds]
hiroaki has joined #lisp
meepdeew has joined #lisp
meepdeew has quit [Ping timeout: 240 seconds]
meepdeew has joined #lisp
fckit has joined #lisp
nanozz has quit [Ping timeout: 240 seconds]
nanoz has quit [Ping timeout: 240 seconds]
meepdeew has quit [Ping timeout: 245 seconds]
nanoz has joined #lisp
meepdeew has joined #lisp
<nirved> neirac: try *catch-errors* to :verbose or nil
Essadon has joined #lisp
meepdeew has quit [Ping timeout: 250 seconds]
meepdeew has joined #lisp
meepdeew has quit [Ping timeout: 268 seconds]
shifty has quit [Ping timeout: 250 seconds]
k-hos has joined #lisp
m0w has joined #lisp
k-hos is now known as potatonomicon
scottj has joined #lisp
sauvin has quit [Ping timeout: 250 seconds]
sword has joined #lisp
rnmhdn has joined #lisp
nowhere_man has quit [Ping timeout: 252 seconds]
knicklux has quit [Remote host closed the connection]
ebrasca has quit [Remote host closed the connection]
notzmv has joined #lisp
AdmiralBumbleBee has joined #lisp
ah_ has joined #lisp
ah_ is now known as akoana
rnmhdn has quit [Ping timeout: 268 seconds]
rjid has joined #lisp
nowhere_man has joined #lisp
themsay has joined #lisp
rumbler31 has joined #lisp
fortitude has joined #lisp
rumbler31 has quit [Ping timeout: 250 seconds]
kajo has quit [Ping timeout: 252 seconds]
orivej has joined #lisp
varjag has joined #lisp
isBEKaml has joined #lisp
nowhere_man has quit [Ping timeout: 252 seconds]
themsay has quit [Ping timeout: 250 seconds]
pjb has quit [Ping timeout: 252 seconds]
varjag has quit [Remote host closed the connection]
pjb has joined #lisp
emaczen has quit [Ping timeout: 260 seconds]
nicksmaddog has quit [Ping timeout: 246 seconds]
kajo has joined #lisp
isBEKaml has quit [Quit: leaving]
varjag has joined #lisp
rjid has quit [Ping timeout: 256 seconds]
warweasle has quit [Quit: rcirc on GNU Emacs 24.4.1]
eschulte has quit [Ping timeout: 246 seconds]
jlarocco has quit [Ping timeout: 272 seconds]
fckit has quit [Ping timeout: 244 seconds]
nanoz has quit [Ping timeout: 268 seconds]
Lycurgus has quit [Quit: Exeunt]
pierpal has quit [Ping timeout: 240 seconds]
jruchti has quit [Ping timeout: 268 seconds]
atgreen has quit [Ping timeout: 250 seconds]
Essadon has quit [Read error: No route to host]
notzmv has quit [Ping timeout: 250 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Essadon has joined #lisp
Essadon has quit [Max SendQ exceeded]
Essadon has joined #lisp
Elephant454 has joined #lisp
neirac has quit [Remote host closed the connection]
neirac has joined #lisp
borei has joined #lisp
<borei> hi all
<borei> finally getting back on "lisp" track, 6 months just gone
<jackdaniel> welcome back
<jackdaniel> hey
<borei> can somebody gimme heads-up, im trying to pull property from the plist but getting nil.
kajo has quit [Quit: From my rotting body, flowers shall grow and I am in them and that is eternity. -- E. M.]
<borei> plist
milanj has quit [Quit: This computer has gone to sleep]
nowhere_man has joined #lisp
kajo has joined #lisp
<borei> trying to get tags or datapoints like
<borei> "(get-properties metrics '(|tags|))"
<Xach> borei: the property is identified by :|tags|, not |tags|
<pjb> borei: (eval "(get-properties metrics '(|tags|))") #| --> "(get-properties metrics '(|tags|))" |# ;doesn't seem to work.
kajo has quit [Client Quit]
kajo has joined #lisp
<borei> Xach: yep :-)
<borei> simple as usual
kajo has quit [Client Quit]
kajo has joined #lisp
vlatkoB has quit [Remote host closed the connection]
<borei> thanks a lot !
<neirac> I'm stuck trying to use https://github.com/joaotavora/snooze every route I create ends with 500 internal error. https://pastebin.com/CmEY7x7H
<Xach> neirac: do you see the backtrace in the log?
<neirac> Xach is there a log ?
<neirac> Xach I did not know, awesome
<Xach> neirac: i don't know if you need to turn it on or not, but it can be very helpful.
<neirac> Xach thanks I'll check how to do it.
m0w has quit [Ping timeout: 250 seconds]
<Xach> neirac: what do you get if try (return-cheapest "bob") or something?
<Xach> It can help to test all your components by just running them
<Xach> neirac: here's a fun thing you can do: (map 'vector (lambda (x y) (cons x y)) names prices) can be changed to (map 'vector 'cons names prices)
<sjl_> Does anyone have any experience using RESTART-CASE's :test along with HANDLER-BIND? I can't understand how I'm supposed to used the two together.
<sjl_> So in bar, I want to offer a restart IGNORE-BORKED if there's an error of type BORK inside foo, but not for any other error (e.g. division by zero)
<sjl_> Using :test borkp there works great, and I can see in the debugger that I only get the restart offered to me when the error is from the bork. I don't get it if I pass 0. Perfect.
yvy has joined #lisp
<sjl_> But then when I try to use handler-bind to invoke that restart programatically, it says there's no IGNORE-BORKED restart active.
<neirac> Xach thanks, for checking the code !,that line shows that I'm a beginner :)
<sjl_> If I remove the :test from restart case, I *can* invoke the restart with the handler-bind, but then I also get it offered to me when it's not applicable
<Xach> sjl_: i have not tried that option
themsay has joined #lisp
<Xach> neirac: does return-cheapest work if you call it directly?
potatonomicon has quit [Quit: blap]
nowhere_man has quit [Ping timeout: 252 seconds]
<Bike> that's a humdinger, sjl
<Bike> i wonder if using invoke-restart like that means the knowledge of what condition is in play is lost
<sjl_> This happens in both SBCL and CCL so it must be something I just haven't wrapped my head around
<Bike> also clasp, not that you care about clasp
<sjl_> I mean, I care about it as another data point that it's not an implementation bug, heh
<Bike> in clasp/ecl, invoke-restart calls find-restart, which is probably pretty normal
<Bike> find-restart is a standard function and takes an optional condition argument
<sjl_> Sure
<Bike> i think if you don't provide the condition, find-restart doesn't like, get it
<Bike> it doesn't have a condition to test
<Bike> so you could workaround with (invoke-restart (find-restart 'ignore-borked c)), let's see if that works
<neirac> Xach yes, it works
<Bike> hmm. weirder error now
<sjl_> Bike: wow, yes, that works
<sjl_> good god
<Bike> i think this might be an implementation bug
<Bike> ok great
<sjl_> clhs invoke-restart
<sjl_> says it takes a restart-designator
<sjl_> which can be > a non-nil symbol (denoting the most recently established active restart whose name is that symbol)
<Bike> yeah, i think clasp and maybe ecl don't accept an actual restart properly
<sjl_> shouldn't this still work?
<sjl_> with just the name?
<Bike> I don't think so
<Bike> I mean the implementation would have to do funny things, keeping track of a "current condition" or something
<Bike> C++ does that and it results in weird shit so I think I prefer it this way
* dim has spent some time on the pgloader documentation, it's getting near where I wanted it to be: https://pgloader.readthedocs.io/en/latest/index.html
<dim> (reason why you might care: 100% Common Lisp implementation)
<Bike> it's an inconvenient interface, though
<sjl_> I guess. ugh.
<scymtym> sjl_: could this be the problem (from the RESTART-CASE page): "If the restartable-form is a list whose car is any of the symbols signal, error, cerror, or warn (or is a macro form which macroexpands into such a list), then with-condition-restarts is used implicitly to associate the indicated restarts with the condition to be signaled. "
<scymtym> tripped me up multiple times
<dim> IOW: hey, here's the kind of project you can implement all by yourself when using CL, here's how much user experience improvements you can actually code because everything is suddenly made easy by the language ;-)
<Bike> man, that's an ugly bit in the standard
<Bike> (defun invoke-restart-with-condition (restart condition &rest args) (apply #'invoke-restart (find-restart restart condition) args))
<Bike> need more hyphens imo
<sjl_> clhs 9.1.4.2.4
<specbot> Associating a Restart with a Condition: http://www.lispworks.com/reference/HyperSpec/Body/09_adbd.htm
<sjl_> this is not the rabbit hole I want to be down
<Bike> i don't think it needs to be associated
<Bike> since it's just your test that's the issue
<sjl_> Yeah. I can just wrap up the invoke-restart in a helper function like people often do, using the long form of find-restart
<sjl_> that'll work fine
meepdeew has joined #lisp
scymtym has quit [Ping timeout: 252 seconds]
meepdeew has quit [Ping timeout: 250 seconds]
Zaab1t has quit [Quit: bye bye friends]
<sjl_> thanks
<Bike> no problemo
nowhere_man has joined #lisp
kdridi has joined #lisp
<kdridi> Hi there!
<nirved> neirac: to see the error in browser (setf *catch-errors* :verbose)
<kdridi> I'm looking for a serie of exercize that can make a lisp beginner an advanced programmer
<nirved> neirac: to see the backtrace in emacs/slime (setf *catch-errors* nil)
JordiGH has joined #lisp
<JordiGH> Is Emacs dominant around here?
<kdridi> I tried many ways like website like project euler, hacker rank and so on but their execize are not adapted to lisp languages
JordiGH has left #lisp ["Leaving"]
JordiGH has joined #lisp
<JordiGH> kdridi: What about Advent of Code?
<kdridi> JordiGH, this one : https://adventofcode.com ? Never heard about it ;-)
<JordiGH> I don't know what does it mean for an exercise to adapted to lisp, though.
<JordiGH> advent of code has pretty generic exercises.
<JordiGH> They start out easy, like, read a list of numbers and add them all up.
<sjl_> I've done a bunch of Project Euler, Advent of Code, and Rosalind in Common Lisp. CL works fine for all of them (and I've found it especially good for Euler)
<jasom> JordiGH: I use emacs just for SLIME (the lisp IDE) and use vim for everything else.
<JordiGH> At ILC 2014, everyone raised their hands when asked if they use Emacs.
<kdridi> I'll check that, thks
<sjl_> Project Euler will teach you math, though, not Lisp.
<JordiGH> Speaking of which, nobody's offered to host another ILC yet?
<kdridi> tottaly agree
<nirved> neirac: in your case in defroute name is a symbol, while return-cheapest expects a string
<kdridi> hum... for example, I'm looking for "exercises" that's ask to to create macro and do metaprogrammation
scymtym has joined #lisp
<sjl_> Someone should write a Learn Common Lisp the Hard Way that's just a long workbook of exercises in gradually-increasing difficulty, exploring various parts of the language.
<kdridi> sjl_ yes!
<Xof> really?
<Xof> that sounds fun
<Xof> would anyone actually buy that?
<sjl_> 1449 bought the one like that I did for Vimscript (even though it's also completely free online)
<sjl_> so... maybe?
<sjl_> though CL is probably a smaller audience than Vim users
<jasom> There is a Learn Lisp the Hard Way, but it didn't really follow the LXtHW template.
<verisimilitude> Yes, but it's easier to exit Common Lisp than Vim, sjl.
sabrac has quit [Ping timeout: 250 seconds]
jfb4 has quit [Ping timeout: 268 seconds]
<jasom> verisimilitude: The variable QUIT is unbound.
<sjl_> PAIP and Gentle both have lots of exercises, but also lots of other content too
rumbler31 has joined #lisp
lavaflow has quit [Read error: Connection reset by peer]
lavaflow has joined #lisp
m0w has joined #lisp
<Xof> well, who knows? If I need some kind of spare time project, I can add that to the list
varjag has quit [Ping timeout: 272 seconds]
LiamH has quit [Quit: Leaving.]
Bike has quit [Quit: lator gater]
sjl_ has quit [Ping timeout: 250 seconds]
<neirac> nirved awesome thank you very much I'll add catch-errors
notzmv has joined #lisp
<neirac> nirved I don't understand the last thing you said return-cheapest I'm passing name I'm assuming that's a string http://localhost:9006/prices/meat -> "meat" is the parameter to return-cheapest, that's my assumption.
<neirac> nirved (setf *catch-errors* :verbose) worked!
<nirved> neirac: to get a string you could use (symbol-name name)
<nirved> neirac: please note, that the list of products returned by the site can be incomplete, and the cheapest one might be missing (not yet loaded by the page)
<neirac> nirved awesome! I lost like 2 days on this. thank you very much now it works
<nirved> neirac: you might be better by calling the api directly instead of parsing html - it returns json
rumbler31 has quit [Remote host closed the connection]
<nirved> and allows different types of ordering
<neirac> nirved oh, never realized that one, I just was creating web-scrapper. I did not check an api existed. you check the html ?
<neirac> nirved which is the api?. I'm trying to create to do groceries more informed
<nirved> neirac: if you open the network log in a browser, and then select the desired ordering in the page, you'd get the api request somewhere at the end
<neirac> nirved thank you very much!!
debsan has quit [Ping timeout: 240 seconds]
yvy has quit [Read error: Connection reset by peer]
phenoble has quit [Quit: ZNC 1.7.0 - https://znc.in]
terpri has quit [Read error: Connection reset by peer]
hiroaki has quit [Ping timeout: 246 seconds]
phenoble has joined #lisp
permagreen has quit [Remote host closed the connection]
permagreen has joined #lisp
<drmeister> What's the relationship between quicklisp and ASDF - does quicklisp always compile it's own version of ASDF or can it use one from the system?
notzmv has quit [Quit: WeeChat 2.3]
<jasom> drmeister: it will compile and load its own unless 1: ASDF is already present and new enough, 2: (require 'asdf) works and is new enough
notzmv has joined #lisp
atgreen has joined #lisp
shifty has joined #lisp
robotoad has quit [Quit: robotoad]