I like the 0 dimensional array idea. It makes everything mathematically consistent in my mind.
Thank you.
Search found 16 matches
- Fri Aug 09, 2013 4:30 pm
- Forum: Common Lisp
- Topic: Question on methods and setting
- Replies: 9
- Views: 17437
- Wed Aug 07, 2013 10:22 pm
- Forum: Common Lisp
- Topic: Question on methods and setting
- Replies: 9
- Views: 17437
Re: Question on methods and setting
Why was I asking? I am running some simulation models with different degrees of analysis. In the most simplistic model, the clos slots are merely ratios. Each more detailed level of analysis adds another dimension of data. Thus the slots of the clos objects in level 2 contain vectors, the slots in l...
- Tue Aug 06, 2013 7:05 am
- Forum: Common Lisp
- Topic: Question on methods and setting
- Replies: 9
- Views: 17437
Re: Question on methods and setting
why does doing the same thing with the array work?
- Tue Aug 06, 2013 6:20 am
- Forum: Common Lisp
- Topic: Question on methods and setting
- Replies: 9
- Views: 17437
Question on methods and setting
I'm feeling particularly stupid today. Have a method which specifies on numbers and arrays. When applied to accessors of an clos object, it works on arrays, but not on numbers. The question is why. I would think that passing by value would mean both fail. I would think that passing by reference, bot...
- Sun Oct 24, 2010 5:31 pm
- Forum: Common Lisp
- Topic: Editing a Stream Question
- Replies: 5
- Views: 5564
Editing a Stream Question
This should be obvious, but apparently I'm missing it. The idea is to read in a file, do a string replace and write it back out again. My initial code is appending the edited text to the existing text rather than overwriting the old text. Any pointers? (defun read-file-replace-string1 (file-name str...
- Tue Oct 12, 2010 10:25 am
- Forum: Common Lisp
- Topic: Financial functions?
- Replies: 1
- Views: 3405
Re: Financial functions?
You might look at http://packages.debian.org/search?keywo ... sm-finance
I have not looked at it, so even less warranties than usual.
I have not looked at it, so even less warranties than usual.
- Mon Oct 04, 2010 10:26 pm
- Forum: Common Lisp
- Topic: Puzzled by a declaration
- Replies: 2
- Views: 3264
Puzzled by a declaration
I was looking at the source code for cl-dot and came across the functions defined below. In the first function, why declare 2 key parameters after the &rest , then declare they should be ignored, then pass the &rest parameter to a function that doesn't seem to use it, but rather wants the pa...
- Thu Sep 30, 2010 3:05 pm
- Forum: Common Lisp
- Topic: asdf:run-shell-command question
- Replies: 6
- Views: 9725
Re: asdf:run-shell-command question
From the Mersenne Twister Homepage FAQ: http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/efaq.html Mersenne Twister is not cryptographically secure. (MT is based on a linear recursion. Any pseudorandom number sequence generated by a linear recursion is insecure, since from sufficiently long subsequen...
- Tue Sep 28, 2010 12:45 pm
- Forum: Common Lisp
- Topic: asdf:run-shell-command question
- Replies: 6
- Views: 9725
Re: asdf:run-shell-command question
Thanks all. Using ls was just the simplest example I could think of. Trivial-shell looks like what I need. Now if I could find a cross platform decent entropy generator for true random numbers ... no one seems to be confident that (random) is really random for cryptography purposes and it has been o...
- Mon Sep 27, 2010 9:16 pm
- Forum: Common Lisp
- Topic: asdf:run-shell-command question
- Replies: 6
- Views: 9725
asdf:run-shell-command question
I know that if I run (asdf:run-shell-command "ls") I get the return code from the shell function. Is there any way to actually get the output of the command (in this case, the actual directory listing) directly back? I can obviously have the output directed to a file and then have lisp rea...