freenode/#lisp - IRC Chatlog
Search
3:19:37
jcowan
perhaps sbcl stands for sanely bootstrappable common lisp, at least some of the time?
8:39:58
shrdlu68
flip214: How did you solve the multithreading thing where different threads were writing to a stream?
8:41:19
flip214
I was stumbling about having :if-already-exists :append and did look at old data in that file.
8:57:53
jeosol
flip214: had similar problems with my parallel code, and used with (bt:with-lock-held ...)
9:17:54
MrMc
I am trying to use parenscript with the Chartist javascript library how do I get parenscript to emmit new Chartist.Line('.ct-chart', data);
9:20:17
MrMc
The challenge is that this is wrapped as a function returning new Chartist.Line('.ct-chart', data)
11:01:22
phoe
antoszka: I have no idea how postmodern works on the inside. Even if I use multiple threads in my code, they may block on a single connection for example.
11:02:10
antoszka
Well I'm sure you could easily find that out if you try (by even watching connections).
11:20:28
flip214
also, see https://www.quicklisp.org/beta/UNOFFICIAL/docs/postmodern/doc/postmodern.html#*max-pool-size*
11:41:52
flip214
I guess you should be using (with-connection (... :pooled-p T) body) and not ever set *DATABASE* at all.
11:43:35
flip214
phoe: and also be aware of potential problems if you (need to) give the database connection up, eg. because of multiple independent requests via hunchentoot
11:44:15
flip214
a SELECT FOR UPDATE will not work, because a) the old transaction might/will be aborted, and b) you might get assigned some other connection
13:44:21
schweers
is LAUNCH-PROGRAM a fairly recent addition to UIOP? I don’t have it on my machine.
13:44:42
schweers
As I’m running debian (read: ancient software) I suspect that I might need a newer version
13:47:52
schweers
so I don’t necessarily have to install a new version for the whole system, but can drop it somewhere where the installed asdf can find it?
13:48:27
svillemot
schweers: /usr/local/share/common-lisp/source should be the right system-wide path
13:49:53
shrdlu68
schweers: This may help: https://common-lisp.net/project/asdf/asdf/Replacing-your-implementation_0027s-ASDF.html#Replacing-your-implementation_0027s-ASDF
13:52:14
svillemot
my understanding is that schweers uses the ASDF from the Debian package, not from its implem, which is 3.1.7 in Debian "Stretch" 9
13:52:56
schweers
I’m not entirely sure whether asdf comes from the implementation (sbcl) or from debian. Is there a way to check which version is currently loaded?
13:53:22
schweers
It seems that the cl-asdf package from debian testing is new enough, maybe I’ll use that or build a newer sbcl from source
13:56:21
schweers
huh. I’ve installed the new version and I still get the old one in a new lisp image
14:34:24
schweers
It seems to me that the process dies in my program (where I do not care about the return value, other than the stream it contains)
14:39:02
schweers
I want to compress my output with bzip2. So instead of just opening the file (as I did until now), I create a bzip2 process. I give it as output the filename I previously opened directly and return the input stream, promptly forgetting the process-info value itself
14:39:36
schweers
flip214: my experiments on the REPL showed me that CLOSE on the input stream is sufficient, how is that wrong?