freenode/lisp - IRC Chatlog
Search
12:15:54
Fare
Gerbil has actors and RPC builtin, and a decent story for DSLs (including Racket-like #lang)
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)