freenode/#lisp - IRC Chatlog
Search
7:05:24
dfrkp
Hi! can someone please help me to understand why the following line throws a wrong parameter error: (setq jedi:server-args '("--sys-path" (projectile-project-root))) ; but (setq jedi:server-args '("--sys-path" "/some/path") works as expected?
7:10:18
beach
dfrkp: Because it is inside a quote '("..." (projectile-project-root)) it is not evaluated.
7:11:50
dfrkp
beach: Honestly I did not know about backquote. I will try it right now (have to restart emacs, but will rejoin the channel asap)
7:13:23
dfrkp
beach: unfortunately I'm now getting a new error: deferred error : (wrong-type-argument stringp (\, (projectile-project-root)))
7:15:07
dfrkp
beach: Here's the surrounding code, to give some context: http://paste.lisp.org/display/353876
8:20:02
fiddlerwoaroof
I think this is an interesting way of implementing extensible pattern-matching: https://github.com/fiddlerwoaroof/fwoar.lisputils/blob/master/patmatch.lisp
8:21:24
fiddlerwoaroof
Basically, you pick a symbol to use as the discriminator and then you use find-class and class-prototype to get the class named by the symbol. Then, you pass that prototype object into a generic function with the APPEND method combination
8:22:15
fiddlerwoaroof
That way, you can specify how the base class's slots are destructured in one method definition and how the class's slots are destructured in another.
8:23:25
fiddlerwoaroof
I don't think it's anything particularly special, but it seems to me that generic functions could be very useful for writing macros that need to be extensible
10:07:57
Xach
I don't know what spacemacs is, but in emacs in general, you push do this: https://common-lisp.net/project/slime/doc/html/Installation.html#Installation
10:10:53
akr
previous to this I actually tried to update slime in the project, but when I got the new version, compilation started failing
10:19:21
akr
when connecting remotely to a system running a certain version of SBCL, do I need the same version of SBCL on both machines?
10:39:51
akr
ACTION uploaded an image: slime.png (86KB) <https://matrix.org/_matrix/media/v1/download/matrix.org/IfTWORuFcqOZZiTDKcyNRHmN>