freenode/lisp - IRC Chatlog
Search
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
7:49:26
no-defun-allowed
must have been their very short story, though I think using a hash is cheating the word count metric
7:49:44
jiny
clisp -c quicklisp.lisp left me a output file named quicklisp.fas . what does this mean?
7:50:42
jiny
clisp -c quicklisp.lisp left me a output file named quicklisp.fas . what does this mean?
7:51:19
ck_
jiny: look up 'fasl file', it stands for fast load and contains -- who'd have guessed -- compilation output.
8:24:57
tourjin
clisp -c myfile.lisp print out Wrote file /cygdrive/c/work/myfile.fas message. what does this mean? how can I run myfile.fas?
8:29:07
pjb
tourjin: what about reading some documentation? https://clisp.sourceforge.io/impnotes/ https://clisp.sourceforge.io/impnotes/clisp.html
8:31:00
saturn2
if you're just getting started you might find this easier https://portacle.github.io/
8:32:01
pjb
jackdaniel: that doesn't really work. That seem to work. But conformingly, it's quite difficult to make it work. Because you need to ensure that the function is available both in the compilation environment, and in the execution environment. It's rather delicated to do it correctly and conformingly. Also, notice that you want to generate function names, for your randome type specifiers, and you need to keep some consistency b
8:40:25
beach
jackdaniel: Jim Newton's PhD dissertation was largely about type descriptors for sequences. It is a great document.
8:50:25
jackdaniel
For now I'll define it to check for a sequence, this type annotation is primarily meant for a programmer reading the code, not for the compiler