freenode/#lisp - IRC Chatlog
Search
11:03:46
drl
How can this be fixed: ; Evaluation aborted on #<SB-KERNEL:SIMPLE-PACKAGE-ERROR "~A is a nickname for the package ~A" {1006988463}>.
13:04:32
pve
Hi, are implementations required to store the source code of function definitions (as a string or cons)? I can see that on SBCL, (describe #'foo) shows me the source form, but (describe #'+) does not. Does it depend on the optimization settings used when compiling the code?
14:07:09
TwoNotes
In my logged error messages from a handler, I see a routine reference like this: "(semantics fun8)" I do have a function named "semantics" but what is the "fun8"??
14:12:10
TwoNotes
log4cl includes the name of the function it was called from. Sometimes it is putting in this extra name like "fun8"
15:44:14
drmeister
Displaced arrays in Common Lisp don't have an accessor like (setf (array-displacement displaced-array) ...)
15:45:29
drmeister
How much trouble would I be getting myself into if I added two, one to set the array that I want to displace-to and the other for the displayed-index-offset.
15:47:27
Bike
having a more restricted setf might be kind of interesting, since adjust-array can adjust a whole lot of things, but it's not in the language
15:47:55
drmeister
I'm writing simulators - and I find it's really convenient to put all the values that represent the state of the system at any point in one big vector. I'd like to displace a bunch of other vectors into that state vector to interpret the single state vector into other, more meaningful vectors.
15:54:31
drmeister
I've got these two robotic synthesizers that each have like 35 bottles of solutions that it takes material out of and 6 reactors that it assembles molecules onto. I want to simulate them both for a week and then set up another simulation. I'm going to create a state vector with (* 2 (+ 35 6)) entries for the whole system and then simulate two machines that have displaced vectors for their bottles and reactors into that
15:55:03
drmeister
Then I can copy the state vector, run it for a couple of days, make a decision, throw it away and go back to the previous state. Things like that.
18:07:58
drl
When I use quicklisp to try to load "alexandria" I get the following error message: Evaluation aborted on #<SB-KERNEL:SIMPLE-PACKAGE-ERROR "~A is a nickname for the package ~A" {1003D60BF3}>.
18:24:49
|3b|
any suggestions for handling warnings differently for some packages in QL or ASDF? in particular i want to be strict about warnings for my code when testing, but permit them for dependencies i don't control
18:25:35
|3b|
so far cleanest idea i have is to ask ASDF for a list of dependencies of my projects, and load those separately ignoring warnings
18:26:29
|3b|
other ideas are to add a mixin to the systems before loading them, so i can put around methods on asdf ops to handle things specifically
18:27:03
|3b|
(or just put methods on them directly without introducing my own classes, but that's probably too fragile, even assuming they don't have around methods already)
18:29:40
|3b|
asking for a list of dependencies has the problem of requiring the systems to already exist, which isn't always the case if i want to be strict about something that would normally be installed by ql (and even if it does exist, i still need to sort them, etc)
18:32:53
|3b|
drl: also, what does (ql:where-is-system 'alexandria) return, and does it load if you run sbcl with --no-sysinit --no-userinit
18:34:35
|3b|
true, i guess you need to add --load '(load "/quicklisp/setup.lisp")' after the --no-*
18:36:52
|3b|
drl: the error should show what package name and/or nickname is conflicting, might paste entire output (to gist or a paste site, not here) so we can look for clues
18:38:20
drl
I uninstalled alexandria, then tried to load it. quicklisp downloaded the file and uncompressed it, but then again gave the error message.
18:45:48
drl
pve, I exited emac, restarted emacs, started slime, tried to load alexandria before loading anything else. I still get the same error message.
18:49:04
|3b|
drl: if you type alexandria into the repl in slime and hit M-. on it, does it go to a file? if so, is it in that path?
18:59:06
|3b|
but either way, just need to figure out which config file is doing odd things if it loads on shell in some form
19:00:33
|3b|
if it loads without --no-sysinit --no-userinit, it should be something in slime/swank or emacs config, otherwise try just one of those to see if the other init file is the problem