freenode/lisp - IRC Chatlog
Search
14:58:22
slyrus
Wow. There's a lot in that fork. I thought you meant a fork in the github sense, not a whole new project that uses cxml as it's starting point :)
15:56:11
jasom
minion: memo for Fare: it seems like all of your requirements for safe asynchronous aborts can be met by the CL condition system; a restart captures the total state at which the condition was signalled, such that higher levels of abstraction can install a handler that instructs the lower levels to continue until you are at a safe point for the higher level.
21:16:43
Shinmera
And if you meant specialising two arguments by eql, not specialising the same argument to two different eql values at the same time.
21:23:24
dim
I guess :include allows to define a tree of structs and then to dispatch on more general ones, same as classes?
21:26:48
Shinmera
Interestingly enough the defstruct entry talks about subtype relationships, rather than saying that the new structure class being defined is a subclass of the included one.
21:28:04
Shinmera
So, I might be wrong here, but it seems possible that an implementation might (for no good reason) define a structure class that does not follow a hierarchy, and instead handle the subtype relation in the type specifier, thus making it unsuitable for generic function dispatch.
21:36:25
dim
well I'd like to target ABCL and play with JDBC sometime, but I can't produce pgloader.jar yet
21:37:15
jasom
my reading of the spec as well is that a defstruct with an :include is allowed to not be a subclass of the struct it includes
22:19:44
dim
is there a simple way to handle ncurses from CL and output unicode chars? I tried once but couldn't display e.g. ♣ and ⚑
23:14:03
axion
With drakma, if I query a URL with a 301 redirect, how would I get the url it is going to redirect to without actually connecting?
23:16:02
axion
I purposely construct a URL that redirects to a non-existent domain, and drakma will try to resolve this, even if I tell drakma not to redirect with :redirect 0, making usockets error.
23:17:12
axion
I will instead get Condition USOCKET:NS-HOST-NOT-FOUND-ERROR was signalled, because drakma attempts to resolve the 301 target
23:20:13
phoe
Is it some kind of generic function call? Perhaps you can write an AROUND method that hijacks the call if some dynamic variable is set.
23:22:41
phoe
You might actually want to make a Drakma PR that, in that place, signals a custom condition, whose slots contain the URL information.
23:24:18
axion
You can try it yourself with a url i made: (drakma:http-request "https://is.gd/ESNHyV" :redirect 0)
23:37:24
Bike
mainly i'm surprised that it signals an error instead of just returning, like it does for 404, say
23:46:11
axion
the `trivial-http` library doesn't error and shows the url in the returned header. Just very irksome i'll be using 2 http clients in this project
23:52:20
phoe
Geralt had two them swords for different use cases and you're complaining about two HTTP clients
23:52:57
axion
It's just a pain because it doesnt support keep alive, and i'll be doing many urls at once
23:59:15
phoe
well, there's your motivation to actually update drakma's HTTP-REQUEST with Yet Another Keyword Argument™
23:59:44
phoe
(drakma:http-request "http://foo.bar" :redirect 0 :return-url-on-redirect-exhaustion t)
0:04:58
axion
tbh i'd much rather see this in dexador, because lots of drakma sucks. but i have bug reports from years gone unanswered by fukamachi. I try to avoid his software for this reason, but some of it is too nice
0:05:41
marvin2
I kind of like clojure's concise way of defining a lambda: #(fun % 1) would be the same as (lambda (x) (fun x 1)). is there a way to write something similar to that (doesn't need to be exactly the same syntax)?
0:09:04
aeth
marvin2: you might be looking for alexandria's curry and rcurry (although it's not fully positional, it's just right or left) e.g. (rcurry #'fun 1)
0:09:28
aeth
And it's not a major dependency because practically any large program will have some dependency that already uses alexandria.
0:14:21
marvin2
it is different than # though, and doesn't always replace it. positional-lambda seems to be closer (virtually the same). I am tempted to write a macro λ that just expands to plambda
0:16:31
aeth
Careful about using the unicode lambda... A lot of us replace "lambda" with it through emacs configuration.
0:17:17
aeth
You'd probably want to make it #λ and use this: http://www.lispworks.com/documentation/HyperSpec/Body/f_mk_dis.htm
0:18:30
marvin2
is that some sort of convention, to start all user defined reader macros with '#' sign?
0:22:05
Bike
marvin2: not exactly a convention, it's just kind of convenient. you could use the lambda character if you want.
0:24:38
JuanDaugherty
by the time i would get around to determining the matter of fact, it prolly will
0:26:35
Bike
like, you wouldn't accept a symbol with only one character in it, or you wouldn't accept the use of only one symbol incorporating hanzi?
0:27:09
JuanDaugherty
i wouldn't accept that I freely code using hanzi, but at this point think it would have a good shot
0:40:59
Bike
something weird happened when i tried to define factorial, but it might have been that i was blindly pasting curse words
0:45:38
JuanDaugherty
yeah, that must have a non expletive meaning the radicals are too common, wiktionary says it's cantonese
0:47:03
JuanDaugherty
lil wierdness is OK but more than that is the gap I had in mind between just accepting a symbol and freely coding
0:49:36
malice
During quickloading I get an error "illegal function call". Can I somehow learn which function call is illegal?