freenode/#lisp - IRC Chatlog
Search
14:30:42
elderK
Maybe these questions aren't so important. It's just, I come from C. So, naturally, I've very interested in issues of interfacing CL ro it.
14:32:55
akr[m]
Hello, I wonder if someone could help me with a build error from buildapp/asdf I'm getting. The error is `Component :DE.SETF.AMQP.AMQP-1-1-0-9-1 not found` and it's caused by `--eval "(asdf:operate 'asdf:load-op :de.setf.amqp.amqp-1-1-0-9-1)"` argument to buildapp. Strangely enough, I stared getting the error when I've checkout out another git branch, however when I've switched back to the original branch where it was working,
14:34:20
pjb
Probably, this exact version is not available from the quicklisp distribution in quicklisp anymore.
14:37:29
pjb
Then inspect ~/quicklisp/local-projects/ and any other place configured in asdf for your local systems. Install manually de.setf.amqp there (~/quicklisp/local-projects/).
16:32:26
jmarciano
I would like to understand why is this warning coming up seemingly randomly. http://paste.lisp.org/display/350928
16:33:13
jmarciano
I can turn on some of those :depends-on files, and will get other similar warnings, and I tried to isolate it, but it happens too often.
16:36:11
loke
although, interestingly enough, there have been commits to the source repository last month
16:42:55
jmarciano
on the other hand, SBCL does not load that file, complaining about EOF, while clisp does load
16:50:02
Bike
the warning in your paste is just from https://github.com/edicl/cl-ppcre/blob/master/cl-ppcre.asd#L83-L85
16:53:46
Bike
ppcre's code is not a bug. clisp's reacting to it with a warning is silly but not a bug in clisp exactly, i guess.
16:56:13
aeth
iirc, clisp is maintained enough to get new commits, but not maintained enough to get a new release
16:56:47
aeth
I always check github because there's usually a github mirror if the project's not there
16:57:29
aeth
This mirror has Mar 24 as the last commit, which doesn't mean that's the last actual commit. https://github.com/rurban/clisp
16:57:49
jmarciano
CLISP is running pretty well, it is mature software, while I run development version.
16:58:27
aeth
The source of that mirror is hg and says "2 weeks ago". http://hg.code.sf.net/p/clisp/clisp
17:03:23
jmarciano
by the way I am willing to find programmer to convert some C++ mathematical formulars to Lisp
17:03:50
jmarciano
I would pay few hundred dollars for the job to get it done properly, even who knows to read C++ this could be just few hours of work (or few days)
17:06:44
aeth
You might have to modify it a bit to get it to work for you. I did. I am not the originator of that script. Iirc, someone else in #lisp is.
17:12:28
aeth
Unrelated trick, but something I find very uesful is to do this if you're using the REPL as a calculator instead of to write programs: (setf *read-default-float-format* 'double-float)
17:13:07
aeth
In a program, you might want the speed and lack of consing of single-float, but quick REPL usage probably requires doubles to get the right answer.
17:28:33
aeth
It has a lot of calculator stuff (e.g. mean, binomial-coefficient, factorial) and a lot of stuff for quick programming one-liners (e.g. curry/rcurry)
18:09:34
jmarciano
I would need to construct all variables and functions, like list of it to get better completion.
18:11:47
aeth
*slime-repl foo-lisp* with paredit (or something similar) is basically everything that one needs, and then some
18:12:34
Bike
(do-external-symbols (s :cl) (fresh-line completions) (write (symbol-name s) :stream completions))
18:20:24
jmarciano
That makes sense, than each implementation with rlwrap or rlfe can have symbol completion and history.
18:40:34
Bike
(defvar *alphabet" "abcdefghijklmnopqrstuvwxyz") (defun alpha-code (char) (position char *alphabet*)) (defun code-alpha (code) (char *alphabet* code)) (defun caesar (string n) (map 'string (lambda (c) (code-alpha (mod (+ n (alpha-code c)) 26))) string))
18:40:54
aeth
All you really need is an incf-mod/decf-mod for that, e.g. https://gitlab.com/mbabich/cl-brainfuck/blob/master/brainfuck.lisp#L22-33
18:42:09
aeth
I prefer to implement incf-mod/decf-mod and mod+/mod- (in several places actually, I should make a library) because I think tiny helper functions/macros that express things exactly are more idiomatic Lisp.
18:43:40
pjb
Bike: you have to take into account non-*alphabet* character to encode caesar. Either filtering them, or leaving them alone.
18:49:10
aeth
pjb: what I'd probably do is use code-char and char-code to have the A-Z, a-z ranges (although this non-portably assumes that the char-code/code-char system has A-Z in a row and then a-z in a row)
18:50:01
aeth
One could also set different ranges to cycle over, and non-portably assume unicode or something.
18:53:45
aeth
actually, you'd only need the #\A and #\a if you assume they're cycles of 26 characters with e.g. a at (+ lower-case-a-position 0) and the last at (+ lower-case-a-position 25)
20:45:54
jmarciano
is there a way to get LISP result in Emacs buffer directly just like I can do it with Emacs Lisp
20:48:49
jmarciano
I know it is beautiful in the clouds, but when you are too long there, you miss the earth.
20:50:09
Bike
i don't... are you saying i'm stuck up? it's not like the repl isn't available to you either
20:51:17
jmarciano
I do use REPL all the time, more than SLIME, it depends if I am writing something or calculating, or running some programs
20:52:44
jmarciano
I need less then a second to open REPL, and I need way longer to come into Emacs, Slime, to get REPL, makes no sense.
20:53:19
jmarciano
My REPL is bound to C-t l in stumpwm, and it just comes up, less than a second, with all the functions prepared.
20:55:06
Bike
i think you need to do, uh.... (slime-setup '(slime-repl)) in your emacs configuration
21:08:23
jmarciano
It somehow makes sense to run Window Manager in SBCL, where runs Emacs and CLISP in background.
21:11:45
tetero
jmarciano: Oh I typically tend to split when I have more than one window, and mode-line helps if you're into that
21:12:34
jmarciano
My laptop is smaller for splitting. And I enlarge all letters to watch easy from more than 1 meter with extended keyboard.
21:16:18
tetero
Although, what is it that you need to copy/paste between? Your terminal and most apps should support that
21:16:25
jmarciano
(define-key *root-map* (kbd "=") "rcd-paste") I have that like this, but is not getting into terminal
21:34:55
PuercoPop
jmarciano: you can use the xtest extension to send mouse clicks from lisp. its implemented in CLX
21:40:21
jmarciano
I don't need a mouse, programs need a mouse more than me, like some make programs for sake of programs, and not of people.
21:55:59
phoe
beach: You have your style guide in the SICL repository. Do you think you could extract it into a separate document?