Search found 16 matches

by sabra.crolleton
Fri Aug 09, 2013 4:30 pm
Forum: Common Lisp
Topic: Question on methods and setting
Replies: 9
Views: 15879

Re: Question on methods and setting

I like the 0 dimensional array idea. It makes everything mathematically consistent in my mind.

Thank you.
by sabra.crolleton
Wed Aug 07, 2013 10:22 pm
Forum: Common Lisp
Topic: Question on methods and setting
Replies: 9
Views: 15879

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...
by sabra.crolleton
Tue Aug 06, 2013 7:05 am
Forum: Common Lisp
Topic: Question on methods and setting
Replies: 9
Views: 15879

Re: Question on methods and setting

why does doing the same thing with the array work?
by sabra.crolleton
Tue Aug 06, 2013 6:20 am
Forum: Common Lisp
Topic: Question on methods and setting
Replies: 9
Views: 15879

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...
by sabra.crolleton
Sun Oct 24, 2010 5:31 pm
Forum: Common Lisp
Topic: Editing a Stream Question
Replies: 5
Views: 4827

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...
by sabra.crolleton
Tue Oct 12, 2010 10:25 am
Forum: Common Lisp
Topic: Financial functions?
Replies: 1
Views: 3078

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.
by sabra.crolleton
Mon Oct 04, 2010 10:26 pm
Forum: Common Lisp
Topic: Puzzled by a declaration
Replies: 2
Views: 2930

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...
by sabra.crolleton
Thu Sep 30, 2010 3:05 pm
Forum: Common Lisp
Topic: asdf:run-shell-command question
Replies: 6
Views: 8954

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...
by sabra.crolleton
Tue Sep 28, 2010 12:45 pm
Forum: Common Lisp
Topic: asdf:run-shell-command question
Replies: 6
Views: 8954

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...
by sabra.crolleton
Mon Sep 27, 2010 9:16 pm
Forum: Common Lisp
Topic: asdf:run-shell-command question
Replies: 6
Views: 8954

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...