Search found 126 matches

by DrDave
Tue May 04, 2010 12:50 pm
Forum: Anything else we might add?
Topic: A Little NUmber Curiosity
Replies: 4
Views: 3849

Re: A Little NUmber Curiosity

Kazimir Majorinc wrote:When you speak about problems with 27, that means that 1/27 doesn't make nice output, right?
Essentially, yes. When you compare the inverse of 27, 27227, 27272, etc. with any of the others that I listed above, it doesn't seem to be inserting either zeros or other digits as the above numbers do.
by DrDave
Sat May 01, 2010 4:07 pm
Forum: Anything else we might add?
Topic: A Little NUmber Curiosity
Replies: 4
Views: 3849

Re: A Little NUmber Curiosity

cormullion wrote: 9 is a bit odd in my view.
You are so right. And it's also a little square.
by DrDave
Fri Apr 30, 2010 12:11 pm
Forum: Anything else we might add?
Topic: A Little NUmber Curiosity
Replies: 4
Views: 3849

A Little NUmber Curiosity

Recently, I was doing some number crunching that involved 9 and multiples thereof. Just for fun, look at the digits for the INVERSE of each of these numbers. The "special properties" (whatever that might mean) of 9 have been studied and used since ancient times. In the numbers below, they mostly sho...
by DrDave
Mon Feb 15, 2010 8:50 am
Forum: Anything else we might add?
Topic: Newlisp Forum Members Trend.
Replies: 5
Views: 4877

Re: Newlisp Forum Members Trend.

so, how did you collect this data, manually or use some nl script? What is this symbol E if formula y=2E+.... and what is R^2?? It was long ago when I worked with math..... :-) The correlation coefficient for a simple linear regression like these tells you how much of the variability in the Y-value...
by DrDave
Wed Sep 16, 2009 11:52 am
Forum: Anything else we might add?
Topic: --- newLISP JOBS ---
Replies: 3
Views: 3405

cormullion wrote:"Common Lisp programmer willing to learn newLISP." Should be interesting... :)
Do any such creatures exist in the DC area? Or do any such creatures exist ANYWHERE on the planet?
by DrDave
Fri Jul 31, 2009 7:00 am
Forum: Whither newLISP?
Topic: Benchmarking
Replies: 23
Views: 12397

I'm wondering why FLOOR runs about 2X slower than CEIL.

DrDave
by DrDave
Tue Apr 07, 2009 4:53 pm
Forum: newLISP in the real world
Topic: self-destruct
Replies: 5
Views: 2162

Heheh.. Well actualy "being Lucky at self-destruct" is partly a good function as you can only do it ones, I tried indeed the harakiri but I did not want to involve a 2nd party... PS the above is about a newlisp function..just to make that clear ;-) PPS Harakiri is an individual action where the Sep...
by DrDave
Mon Apr 06, 2009 5:33 pm
Forum: Whither newLISP?
Topic: newLISP Challenge: The seemingly simple 'my-or'
Replies: 37
Views: 22518

How did you get those results? With that code the second argument is always evaluated, therefore producing this result: (my-or temp nil) = 45 (my-or nil temp) = 45 ----------- first arg second arg should be 1: 1 ----------- first arg second arg should be 2: 2 Ah, my bad. You're right. I didn't look...
by DrDave
Mon Apr 06, 2009 11:32 am
Forum: Whither newLISP?
Topic: newLISP Challenge: The seemingly simple 'my-or'
Replies: 37
Views: 22518

Does this work for you? (define-macro (my-or) (let ( temp (eval (args 0)) temp1 (eval (args 1)) ) (if temp temp temp1 ) ) ) results: (my-or temp nil) = 45 (my-or nil temp) = 45 ----------- first arg should be 1: 1 ----------- first arg second arg should be 2: 2
by DrDave
Thu Mar 12, 2009 7:09 pm
Forum: newLISP Graphics & Sound
Topic: (fwd)potential bug in REPL in newLISP-GS in newLISP v.10.0.1
Replies: 15
Views: 11391

The problem with [cmd][/cmd] tags in the newLISP-GS Java front-end has been fixed. Download a new guiserver.jar from: http://www.newlisp.org/download/development/guiserver.jar and install on Win32 as: $PROGRAMFILES/newlisp/guiserver.jar or install on Mac OS X and other Unix as: /usr/share/newlisp/g...
by DrDave
Wed Mar 11, 2009 8:50 am
Forum: newLISP Graphics & Sound
Topic: (fwd)potential bug in REPL in newLISP-GS in newLISP v.10.0.1
Replies: 15
Views: 11391

Re: (fwd)potential bug in REPL in newLISP-GS in newLISP v.10

I am running newLISP 10.0.0 on WIN 32 IPv4 and newLISP-GS 1.24 on Win XP pro SP2 Your code [cmd] (define (foo x y) (+ x y)) [/cmd] runs fine in both a console and in newLISP-GS. According to the error message, it appears that when you run the code from GS, the two trailing right parentheses have som...
by DrDave
Sat Feb 07, 2009 7:08 pm
Forum: newLISP newS
Topic: Promoting my blog.
Replies: 61
Views: 34922

Thanks for the nice analysis of Apply.
by DrDave
Mon Feb 02, 2009 5:41 pm
Forum: newLISP newS
Topic: Promoting my blog.
Replies: 61
Views: 34922

cormullion wrote: there are a lot of CL-ers looking for an argument, it seems.
@cormullion, was that "looking for an argument" in reference to "check whether someone supplied extra arguments to function", or meant being argumentative?
by DrDave
Thu Jan 29, 2009 8:41 pm
Forum: Anything else we might add?
Topic: My recent challenge for Common Lispers.
Replies: 5
Views: 4780

I think the CL club has totally forgotten about ...

...it is better to first strive for clarity and correctness and to make programs efficient only if really needed.

"Getting Started with Erlang" version 5.6.2
by DrDave
Tue Jan 27, 2009 11:04 pm
Forum: newLISP newS
Topic: The 9.4.0 newLISP manual
Replies: 68
Views: 35449

Maybe someone could write a post explaining how modernizing the antiquated... As I recall, they like to remind those that question the CL dogma that they have a "Standard". While standards usually have a positive aspect, it seems to me that the standard bearers are so afraid of breaking any existin...
by DrDave
Wed Jan 21, 2009 7:46 pm
Forum: newLISP and the O.S.
Topic: directory? vs. file? on WIN32
Replies: 4
Views: 3982

Re: directory? vs. file? on WIN32

The other issue is whether a directory or file can end with "/". I've no idea, it could be a Windows-specific thing. More Windows inconsistencies... On XP, navigate to any folder and attempt to rename it with a backslash or front slash on the end. The error message is A filename cannot contain any ...
by DrDave
Wed Jan 21, 2009 6:28 pm
Forum: newLISP and the O.S.
Topic: directory? vs. file? on WIN32
Replies: 4
Views: 3982

directory? vs. file? on WIN32

Why is there this subtle difference in results? (set 'test-dir1 "C:/Program Files/programming") (set 'test-dir2 "C:/Program Files/programming/") (directory? test-dir1) -->true (directory? test-dir2) -->true (file? test-dir1) -->true (file? test-dir2) -->nil The manual states for true? This function ...
by DrDave
Sun Jan 18, 2009 9:08 pm
Forum: newLISP newS
Topic: double quotes
Replies: 7
Views: 3833

cormullion wrote:I see, but wouldn't claim to understand fully yet.
I'm on the same wagon! How about a different concrete example that might clear away a bit more of the fog.
by DrDave
Sun Jan 18, 2009 9:05 pm
Forum: newLISP Graphics & Sound
Topic: starting java using process
Replies: 19
Views: 12948

From what I was able to extract form your earlier posts, you did not install newLISP to the default settings. So, perhaps when you were moving things around, not all your paths match where your target files reside. For example, on my installation using the default settings, I have ("NEWLISPDIR" "C:\...
by DrDave
Sat Jan 17, 2009 8:10 am
Forum: newLISP newS
Topic: double quotes
Replies: 7
Views: 3833

cormullion wrote:Thanks, Kazimir - that works great.

I had always thought ' and quote were interchangeable...
I also thought they were interchnageable. So perhaps one of the gurus will post an explanation of the difference, and maybe how it came about that we have both of them in the language.
by DrDave
Thu Jan 15, 2009 11:02 am
Forum: newLISP newS
Topic: Inconsistent syntax of "case"
Replies: 21
Views: 9162

Why does letex create a variable that seems to get evaluated? Because letex creates new expression such that x is replaced with its value, and evaluates that new expression. These two are equivalents ( letex = let & ex pand.) (println (letex ((x 3)) (+ x 3))) (println (let((x 3)) (eval (expand '(+ ...
by DrDave
Thu Jan 15, 2009 10:52 am
Forum: newLISP newS
Topic: Inconsistent syntax of "case"
Replies: 21
Views: 9162

So just to clarify, we can use letex to set a variable to use in the case selections, but we can't put an expression directly in place of the variable. (set 'n 3 'x 24 'y 8) (letex ((m (/ x y))) (println (case n (1 "one") (2 "two") (m "three") (4 "four")))) --> "three"
by DrDave
Wed Jan 14, 2009 10:35 pm
Forum: newLISP newS
Topic: Inconsistent syntax of "case"
Replies: 21
Views: 9162

I think letex is perfect for that. Something like (but I didn't tested it) (letex ((y (string mystring x))) (case str-to-match (y (string "found" x)))) Lutz did few such things really hitting the target. Now that is very interesting! Why does letex create a variable that seems to get evaluated? Thi...
by DrDave
Wed Jan 14, 2009 7:04 pm
Forum: newLISP newS
Topic: Inconsistent syntax of "case"
Replies: 21
Views: 9162

My original gripe was that exp-1 implied that it was evaluated. It would've been better to call it const-1 so that you get: (case exp-switch (const-1 body-1) [(const-2 body-2) ... ]) You see "const" then you know that you cannot put an expression there. I know it seems a petty matter to those alrea...
by DrDave
Wed Jan 14, 2009 6:08 pm
Forum: newLISP newS
Topic: Inconsistent syntax of "case"
Replies: 21
Views: 9162

Let's just say the 2nd argument "did not need to be" evaluated instead of "never" because it could have been evaluated if we wanted to. Just that the results will not be used. I don't think that is correct for newLISP. My understanding is that in the case where the first argument is true, it is imp...