freenode/lisp - IRC Chatlog
Search
21:31:28
ralt
is there an easy way to access an element by name, e.g.: `((:server . "nginx") (:etag . "foo"))` looping through every element looks ugly. Want to get a drakma response header.
22:06:07
ralt
never needed it until now, and now I realize there's a lot of things I could've done better
3:59:16
ck_
tourjin: you can get slime through the emacs package system, for example. Search for "Melpa packages" to set that up
4:00:39
jeosol
Is there a work around to save SBCL from slime (normally do that from the shell). Keep getting this message: "Cannot save core with multiple threads running."
4:08:15
|3b|
you could try killing all worker threads, exiting repl, and saving from *inferior-lisp*
4:52:21
Colleen
Unknown command. Possible matches: 8, time, deny, set, say, mop, get, tell, roll, help,
5:00:19
beach
And what does your interpreter have to do with CLISP? Are you trying to copy what they did?
5:05:21
LdBeth
Since a very bare bone lisp interpreter such as ulisp can barely fit into Ardurino chip
5:07:12
fragamus
the interpreter needs to be tiny but the code for common lisp can be on a regular storage device
5:13:42
LdBeth
I don’t get the point, since if a large storage is available there’s no need for a lisp interpreter to load a Common Lisp
5:14:14
fragamus
well the lisp program will be small and won't link to much and won't do a lot of alloc
5:22:22
pjb
fragamus: lisp.run is in a place that depends on the installation of clisp. For example, it can be something like: /usr/local/lib/clisp-2.49.93+/base/lisp.run
5:22:46
pjb
fragamus: The best is to get the sources of clisp and to configure and compile them yourself.
5:23:48
pjb
fragamus: clisp implementation is made much more complex than what you want, because it has to deal with two stacks: a normal C stack, and a lisp VM stack.
5:24:31
pjb
fragamus: see https://clisp.sourceforge.io/impnotes/ and https://clisp.sourceforge.io/impnotes/internals.html
5:28:02
tourjn
alt-x package-list-packages show me several slimes which is most popular one? I have two slim-mode two slime and a lot of slime-*.
5:44:14
beach
I wonder how many toy interpreters for toy versions of Lisp there are out there. And I wonder how many of them are actually used.
5:44:35
pjb
tourjn: My personnal preference is to use the slime provided by quicklisp, since slime needs a swank, and it's better if it comes from the same version.
5:45:33
pjb
fragamus: + have a look at https://www.informatimago.com/articles/usenet.html#Compilation
5:48:14
mfiano
Toy Lisp interpreters comes up more often on the Lisp Discord server. Though it is quite a bit more active of a forum than here
5:49:35
no-defun-allowed
(My theory is they can't be bugged to write a parser for their favourite language, since that 60% rarely follows any Lisp semantics.)
6:13:08
jeosol
|3b|: didnt get it to work. Just reran the procedure on terminal and saved the image that way
6:15:08
jackdaniel
how would you define a type denoting a homogenous sequence? something like '(sequence* integer)
6:30:06
Shinmera
There's two answers, either you can't, or you write a type expander that generates a global function to use in satisfies for that particular element type.
6:32:25
jackdaniel
but elt is a parameter of the type, not something known at the type definition time
6:33:37
jackdaniel
I don't follow, symbol given to "satisfies" denotes only a function accepting one argument - the object
6:34:52
jackdaniel
so if we compile it to a predicate checking for integer sequence, then this function will check for `every integerp` and that's it