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.