Search found 11 matches

by JeremyDunn
Mon May 13, 2013 12:10 am
Forum: newLISP newS
Topic: newLISP Development release 10.4.8
Replies: 9
Views: 10780

Re: newLISP Development release 10.4.8

I tried installing newLISP on my windows system and I keep getting this message when I try to open it

run shell:
Could not start C:\Program FIles(x86)\newlisp/newlisp.exe -C -w "C:\Users\Jeremy"

I've tried uninstalling newLISP and loading again but no luck. Any suggestions anyone?
by JeremyDunn
Tue Feb 12, 2013 1:52 am
Forum: Whither newLISP?
Topic: How to get newLISP popular?
Replies: 11
Views: 12916

Re: How to get newLISP popular?

I wish I knew more about programming. I can tell you right off the bat that if someone could figure out a way to interface with AutoCAD so that one could use NewLISP rather than AutoLISP, that the language would immediately have a large community. AutoLISP exists in several CAD programs now but none...
by JeremyDunn
Fri Jul 23, 2010 4:38 am
Forum: Whither newLISP?
Topic: Idea for MAP function
Replies: 2
Views: 3015

Idea for MAP function

I was thinking of a new form of the MAP function that would be useful. I would like to have a form of it where you could write (map func list true) where instead of a second list you have a truth flg to denote the new form. In this arrangement what happens is that func is mapped onto list. The value...
by JeremyDunn
Tue Jul 06, 2010 7:48 pm
Forum: Whither newLISP?
Topic: Nesting and Booleans
Replies: 7
Views: 5331

Re: Nesting and Booleans

For those that want to play with the boolean statements it doesn't involve changing too many functions. Here is my list: ;Redefine all of NewLisp's boolean functions (define (array?? x A B)(bool-if array? x A B)) (define (atom?? x A B)(bool-if atom? x A B)) (define (context?? x A B)(bool-if context?...
by JeremyDunn
Mon Jul 05, 2010 12:02 am
Forum: Whither newLISP?
Topic: Nesting and Booleans
Replies: 7
Views: 5331

Nesting and Booleans

My mind wanders around a lot and I find that I have something more to say about function nesting and how it turned out to be involved with boolean statements. To see the relation takes a while but please bear with me. If we have a nested statement such as (sin (cos 0.5)) we instinctively want to sim...
by JeremyDunn
Sun Jul 04, 2010 4:54 pm
Forum: newLISP in the real world
Topic: How to treat a function like a list?
Replies: 2
Views: 2954

Re: How to treat a function like a list?

Thanks so much. I was thinking that I had to write a define statement rather than define-macro because I had a fixed number of arguments rather than a variable number but these subtleties often elude me. To paraphrase Yogi Berra: LISP is so simple no one can understand it!
by JeremyDunn
Sun Jul 04, 2010 6:52 am
Forum: newLISP in the real world
Topic: How to treat a function like a list?
Replies: 2
Views: 2954

How to treat a function like a list?

I was trying to write what should be a simple function but found that I didn't know how to treat a function expression like a list. What I was trying to do was this; I wanted to write a function that I will call REV. What REV does is take a function expression as an argument and it executes the func...
by JeremyDunn
Fri May 07, 2010 3:41 am
Forum: newLISP in the real world
Topic: Another option for FOR-ALL?
Replies: 0
Views: 2355

Another option for FOR-ALL?

I would suggest generalizing FOR-ALL further to handle a list of test conditions as well as a single condition. There would also be an optional argument at the end where the user would define which logical operation is to be performed with all of the test conditions. The default for the optional arg...
by JeremyDunn
Sun Apr 25, 2010 10:04 pm
Forum: Anything else we might add?
Topic: Useful list function
Replies: 1
Views: 2463

Re: Useful list function

Here is yet another enhancement I have recently added. We can now compare the lengths of two lists. So the expression (length? list-1 list-2) returns true if the two lists are equal in length or one can add a comparison operator. For instance, (length? list-1 list-2 <) returns true if the length of ...
by JeremyDunn
Fri Apr 09, 2010 4:08 am
Forum: Anything else we might add?
Topic: Wish list
Replies: 33
Views: 15547

Re: Wish list

Thought I would get this thread going again with some more simple things that we might do to jazz things up. 1. I also put my vote in for Kazimir's operators +. and such. They look better and are easier to read. 2. I would like to see some of the math functions overloaded to do common vector operati...
by JeremyDunn
Fri Apr 09, 2010 3:01 am
Forum: Anything else we might add?
Topic: Useful list function
Replies: 1
Views: 2463

Useful list function

As we all know ideas build up over time and turn into things we didn't initially imagine. In my case I started with a basic function that I used that was simple and useful and it has recently grown into something more useful. First, the code: (define (length? lst (n 1)(op =) booltest) (and (op (leng...