freenode/#lisp - IRC Chatlog
Search
1:18:25
inaimathi
Can anyone point me to a quick example for how to use `qlot` to install a package in a local `quicklisp` instance?
1:19:17
inaimathi
I'm trying `(qlot:with-local-quicklisp (#P"/home/inaimathi/.cl-notebook/") (qlot:install :skippy))` and getting "Component not found" errors
3:09:26
vtomole
jonnymacs: Rigetti uses Lisp in there software stack. You can't actually run lisp on a quantum computer, but it is used to build toolchains for quantum computers.
3:11:20
johnnymacs
So if there was a language that could run on a quantum computer it could do something lisp could not do.
3:12:51
siraben
johnnymacs: Quantum computers cannot compute anything more than an existing computer can
3:13:22
siraben
johnnymacs: It may do things more quickly in certain tasks (e.g. number factorization, SAT solving, search problems), but it can't solve the halting problem
3:13:49
Bike
but what if it runs every program at once through superposition so that i don't have to learn how quantum annealing works
3:23:41
fouric
Question: I have a CLOS class foo and a subclass bar. How do I get the initial form of a bar slot to be the initial value of a (different) foo slot?
3:24:22
jeosol
@pierpa, @Bike, @Stacksmith, for their help last night, I was able to resolve the parallel functionality
3:25:44
jeosol
I now have speed up factor of at least 3 with a 2-second evaluation case. Should be higher for the main problem
3:29:41
jeosol
is there a command to view threads in my slime session and subsequently kill threads an lparallel worker?
3:53:08
jeosol
that worked, but I can't kill the lparallel worker, so I switched to using bt-threads directly.
3:54:02
jeosol
I had one lparallel worker running in the background and when I rand (bt:all-threads), I still the lparallel threads running and printing out
5:37:00
jeosol
@pierpa, thanks for your help man. The parallel functional is running ok. I am trying to get cloud instances to do the runs. I am cleaning out the code to make sure it does not fail on the lisp/sbcl slide
6:07:28
jack_rabbit
Is there a reason quicklisp doesn't like symlinks in the local-projects directory?
6:11:10
jack_rabbit
I just symlinked a project into the local-projects directory. Just says "couldn't find package whatever"
10:44:28
earl-ducaine
I'm running into a peculiar error with cffi:with-foreign-slots. The message: Attempt to bind a special variable with SYMBOL-MACROLET: WIDTH
10:45:04
earl-ducaine
looking at the expansion the following is a minimal example of that type of error:
10:45:06
earl-ducaine
(defparameter WIDTH 1) (SYMBOL-MACROLET ((WIDTH 2)) (FORMAT T "width: ~d~%" width))
10:45:24
earl-ducaine
This is the full code: https://gist.github.com/earl-ducaine/786b3c616ee014a7359e554619322924
10:46:30
|3b|
"If an attempt is made to bind a symbol that is defined as a global variable, an error of type program-error is signaled. "
10:46:39
earl-ducaine
Yes, so the problem seems to be that if you have a special variable that has the same name as you've assigned to one of your structure slots, you get the error.
10:49:59
|3b|
possibly with-foreign-slots should allow explicitly naming the variable so you could work around that, but not really a 'bug'
10:51:50
earl-ducaine
Holy crap. I'd never noticed that before. I'd always assumed that with-slots created a lexical binding for the slot name.
10:53:06
|3b|
no portable way to make a lexical binding that overrides a global special declamation, so it can't do that (without being a special form at least), and it would still have to figure out how to get the writes back to the slot
10:53:48
didi
Constants are a weird thing to have in a highly interactive environment. I always try to redefine them at some point.
10:54:33
|3b|
maybe if i can prove that some specific thing actually affects performance i might change it to a constant