freenode/lisp - IRC Chatlog
Search
11:01:54
xificurC
I got lost in reasoning about a double backticked form. What would be a good resource to read about how backquote is processed? If there was a part about double backquotes or macro-writing-macros that would be even better
11:02:21
no-defun-allowed
I think the cl-d protocol is sussed out now. I've finished an event loop macro and I'm going to write all the cl-d primitive requests tomorrow.
11:08:17
no-defun-allowed
cl-decentralise's event-loop uses a make-event which matches the event forms and e-l simply loops over with some gensyms too.
11:25:35
splittist
xificurC: you can also read Appendix C of CLtL2 https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node367.html#BACKQUOTESIMULATOR
11:25:43
makomo
it's part of my personal notes, i.e. i don't have a blog, but i might rework it a bit and send it
11:26:16
makomo
xificurC: it becomes really simple once you start to see the "patterns" imo. it's just like any other concept really
11:28:02
makomo
xificurC: oh, perhaps also take a look at the two comments i posted here: https://www.reddit.com/r/learnlisp/comments/98gssu/sbcl_inserting_comma_in_macro_transformation/
11:28:30
makomo
they might not be 100% precise, but i tried my best. suggestions welcome. :-) it's not meant to be a tutorial on backquote though, but i did mention some general techniques/things
11:32:59
makomo
xificurC: also, take a look at Bawden's paper https://web.archive.org/web/20170701182144/http://repository.readscheme.org/ftp/papers/pepm99/bawden.pdf . it mentions a funny anecdote about steele as well :-)
11:40:59
makomo
xificurC: after you start to understand it better (or perhaps you can do it in parallel), i would recommend studying ONCE-ONLY (i prefer Alexandria's version to the one found in PCL) https://github.com/keithj/alexandria/blob/master/macros.lisp#L30
12:51:17
russellw
http://www.lispworks.com/documentation/lw61/CLHS/Body/f_coerce.htm#coerce doesn't explicitly say you can coerce a list of characters to a string, but one of the examples implies it, and it works in SBCL. Is it something that can be relied on, in portable code?
12:52:17
beach
russellw: A string is a vector of characters, and it is possible to coerce a list to a vector.
12:53:45
russellw
ah! so the part about sequences, is intended to imply that, if one knows about the relationship between the kinds of vectors? Okay, thanks!
14:31:54
paule32
*** - SETQ: '(GENITIV '(DES BAKTERIUMS '(DER BAKTERIEN)) (SUBSTANTIV SÄCHLICH LEBEWESEN)) is no symbol.
14:32:47
Bike
you've been around here what, two years? you need to seriously reevaluate your process.
15:32:15
Demosthenex
_death: so i found the mailbox lib, which defines a simple object for locked inter-thread communication
15:38:12
dim
Shinmera: re (coerce "/" 'character), see https://github.com/dimitri/pgloader/issues/835#issuecomment-421627350 where I've been using (aref ... 0) instead, because I'm not exposing reader macrology in pglaoder's command language
16:03:24
beach
I mean, if, while running your application, you run out of space in one generation and the GC is disabled, then the system will fail. And if you don't run out of space, then the GC won't run.
16:24:18
AeroNotix
hmm, well there goes that theory. I was trying to see why two threads operating on two different hardware memory transactions were occasionally failing
16:32:37
AeroNotix
shka_: Well, it's more a case of how RTM behaves on the cpu, rather than anything intrinsic to SBCL it seems
16:36:35
Demosthenex
if i create a thread in a let inside a function, when i leave the let scope is the thread killed?
16:51:41
Demosthenex
_death: https://bpaste.net/show/5db6bd9c1964 i've been able to get async input working with other screen updates going
16:52:09
Demosthenex
i'm deliberately moving it, and also trying to protect and restore the position
16:55:09
Demosthenex
AeroNotix: that's a good thought, but it spends 99% of its time sleeping, and its a POC by a noob ;]
16:56:11
AeroNotix
Demosthenex: I prefer using a different method of thread synchronization: channels