Search found 36 matches
- Wed Feb 06, 2008 12:52 am
- Forum: Anything else we might add?
- Topic: Another newLISP-like language :)
- Replies: 49
- Views: 47397
Then why use contexts or OOP at all? Why indeed. Especially when implemented in a half-assed kludgy way as in C++ or Java. As for newLISP, I tried using contexts as objects but the performance was dog slow. Whether FOOP is worth it remains to be seen. I certainly haven't seen any advantages to it y...
- Tue Feb 05, 2008 11:56 pm
- Forum: Anything else we might add?
- Topic: Another newLISP-like language :)
- Replies: 49
- Views: 47397
- Fri Feb 01, 2008 3:33 pm
- Forum: newLISP newS
- Topic: release newLISP version 9.3
- Replies: 8
- Views: 6142
- Fri Feb 01, 2008 3:25 am
- Forum: Anything else we might add?
- Topic: Redefine DEFINE?
- Replies: 17
- Views: 16961
- Thu Jan 31, 2008 4:00 pm
- Forum: Anything else we might add?
- Topic: Redefine DEFINE?
- Replies: 17
- Views: 16961
- Sat Oct 27, 2007 4:30 pm
- Forum: Anything else we might add?
- Topic: regex again
- Replies: 24
- Views: 21661
Syntax should be as clear as possible. Some algorithms cannot be expressed simply, because they are not simple algorithms. They can however be broken up into simpler pieces, it's called modular programming. Regexes suck because they 1) don't do that and 2) use such terse symbols that one need const...
- Sat Oct 27, 2007 4:11 pm
- Forum: Anything else we might add?
- Topic: regex again
- Replies: 24
- Views: 21661
- Sat Oct 27, 2007 3:23 pm
- Forum: Anything else we might add?
- Topic: regex again
- Replies: 24
- Views: 21661
Re: regex again
Holy Schneikees! What is *that* supposed to do? Only a nitwit would write something like that or spend time figuring out what it did. I must say that the excessive use of macros in LISP is another example of this syndrome. I don't care how rich he is, Paul Graham is dead wrong. Clear , concise, and...
- Fri Oct 12, 2007 9:40 pm
- Forum: Anything else we might add?
- Topic: regex again
- Replies: 24
- Views: 21661
With awk you can break it up into program steps. Better yet is to get rid of all those awful special characters in regular expressions. Here is a discussion of a possible LISPy way out of Perl/regex hell:
http://c2.com/cgi/wiki?AlternativesToRegularExpressions
http://c2.com/cgi/wiki?AlternativesToRegularExpressions
- Fri Oct 12, 2007 9:09 pm
- Forum: Anything else we might add?
- Topic: regex again
- Replies: 24
- Views: 21661
Re: regex again
Yes, don't. Use awk. It may be wordy but at least it is comprehensible.cormullion wrote: Is there a rough rule of thumb for when converting Perl regexen to newLISP
- Thu Oct 11, 2007 10:52 pm
- Forum: Anything else we might add?
- Topic: Advice on programming style...
- Replies: 7
- Views: 5840
- Thu Oct 11, 2007 10:52 pm
- Forum: Anything else we might add?
- Topic: A 3D Text Editor?
- Replies: 10
- Views: 8301
- Thu Oct 11, 2007 8:38 pm
- Forum: Anything else we might add?
- Topic: Advice on programming style...
- Replies: 7
- Views: 5840
- Thu Oct 11, 2007 8:24 pm
- Forum: Anything else we might add?
- Topic: A 3D Text Editor?
- Replies: 10
- Views: 8301
- Sat Sep 22, 2007 1:26 am
- Forum: Anything else we might add?
- Topic: redirecting functions
- Replies: 5
- Views: 4128
- Tue Sep 18, 2007 7:36 pm
- Forum: newLISP in the real world
- Topic: Max threads
- Replies: 9
- Views: 6588
- Tue Sep 18, 2007 7:11 pm
- Forum: newLISP in the real world
- Topic: Max threads
- Replies: 9
- Views: 6588
- Tue Sep 18, 2007 6:50 pm
- Forum: newLISP in the real world
- Topic: Max threads
- Replies: 9
- Views: 6588
There are a number of subsystems that have configurable settings at startup. You can run the command sysctl -a to see all of them. Everything is called from the /etc/rc file and it is usually a good idea to place your custom changes in the appropriate file called by rc such as (in this instance) sys...
- Tue Sep 18, 2007 5:35 pm
- Forum: newLISP in the real world
- Topic: Max threads
- Replies: 9
- Views: 6588
- Tue Sep 18, 2007 5:08 pm
- Forum: newLISP in the real world
- Topic: Threading with fork/semaphore/share
- Replies: 2
- Views: 2750
- Fri Aug 24, 2007 4:23 pm
- Forum: Anything else we might add?
- Topic: Optimized tail recursion
- Replies: 8
- Views: 5873
The SATA drive should not be a factor either as War and Peace will easily fit into RAM. I know you are thrilled as all get out by your toy, but frankly I'm not impressed. Given the current state of OSX and the available compilers, using a quad core for anything but a server seems pretty silly to me....
- Fri Aug 24, 2007 3:05 pm
- Forum: Anything else we might add?
- Topic: Optimized tail recursion
- Replies: 8
- Views: 5873
- Wed Aug 15, 2007 4:22 pm
- Forum: Anything else we might add?
- Topic: Counting chars in a string
- Replies: 14
- Views: 10190
Is there no way to iterate quickly over the chars in a string? What is newLisp's internal representation of a string like? Strings and text appear as contiguous areas of memory in newLISP. Fastest iteration I've found while staying in newLISP is to index into them from the base address: (time (setq...
- Fri Jul 20, 2007 11:40 pm
- Forum: newLISP newS
- Topic: Loop that collects results?
- Replies: 9
- Views: 7021
Don't let that computer just sit there. Generate some cpu cycles!
---
Code: Select all
> (map eval (transpose (append (transpose (dup (list (sym (char 42)) 2) 10)) (list (rest (index string? (explode "C++ sucks!")))))))
(2 4 6 8 10 12 14 16 18 20)
- Thu Jul 19, 2007 9:20 am
- Forum: newLISP newS
- Topic: Loop that collects results?
- Replies: 9
- Views: 7021
Re: Loop that collects results?
Code: Select all
> (rest (filter (lambda (x) (= (% x 2)0)) (sort (unique (rand 21 210)))))
(2 4 6 8 10 12 14 16 18 20)