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>
15:03:00
zulu_inuoe
Hello all. If anyone has experience using the fast-io library: How can I tell I've reached EOF on a buffer when using the multi-byte reads? the fast-read-byte function has eof-error-p and eof-value parameters, but I'm not seeing any such for the multi-byte reads (readu32-le, etc)
15:23:34
some-user
even slime-eval-last-expression-in-repl switches repl's current package to A eval exp and then switches back to B
15:26:04
Bike
paule32: i don't want to write your whole program. but you can use if for conditionanls, and eql to test whether two things are the same. that seems like it's probably enough.
16:29:32
some-user
how can i rewrite (let ((result '())) (loop for row in square do (loop for x in row do (push x result))))
16:34:18
some-user
pjb: Bike sorry, i'm using some processing before pushing x to result, failed to show it snippet sorry
16:44:14
some-user
is there destructuring-bind for loop? like (loop for x in xs for (a b) = in x) where x is '(1 2)
16:59:03
pjb
And since you're building a new list in the inner loop, you can use nconc instead of append in the outer loop.
17:07:22
pjb
paule32: I would advise newbies, as well as seasonned programmers, to fucking READ the error messages!
17:08:03
pjb
paule32: don't assign undefined variables! s0plus and computer are not defined. This code is undefined, it's implementation dependent.
17:09:01
pjb
paule32: also, it may be a good idea to compose paste.lisp.org pastes by using copy-and-paste of real sources and REPL output!