Search found 15 matches
- Thu Nov 16, 2006 6:08 pm
- Forum: newLISP in the real world
- Topic: Recursion Error
- Replies: 2
- Views: 3500
Ahh, way to go n00ber. I just figured out why this is happening. Note the difference in the following statements (define (fib val) .... ) (define (fib 'val) ... ) The first define is of course correct. The second will cause this behavior, because I believe that it is setting a variable at that point...
- Thu Nov 16, 2006 6:01 pm
- Forum: Anything else we might add?
- Topic: Whats kooking at Kozoru ?
- Replies: 1
- Views: 2035
- Thu Nov 16, 2006 5:50 pm
- Forum: newLISP in the real world
- Topic: Recursion Error
- Replies: 2
- Views: 3500
Recursion Error
I am working with the latest newlisp-TK on a windows platform. I have written the following simple recursive algorithm for the fibonacci sequence (define (fib 'val) (if (< val 2) 1 (+ (fib (- val 1)) (fib (- val 2))))) What is strange is that when I try to do either of the following statements (fib ...
- Tue Oct 10, 2006 8:16 pm
- Forum: Anything else we might add?
- Topic: newlisp vs. perl (not a language war)
- Replies: 14
- Views: 13005
newlisp vs. perl (not a language war)
Can anyone tell me what the newlisp equivelent would be to the following perl code? #!/usr/bin/perl # linux_ia32_exec - CMD=ls -l Size=68 Encoder=PexFnstenvSub http://metasploit.com my $shellcode = "\x2b\xc9\x83\xe9\xf5\xd9\xee\xd9\x74\x24\xf4\x5b\x81\x73\x13\x64" . "\x96\x2c\xed\x83\xeb\xfc\xe2\xf4...
- Mon Aug 15, 2005 7:58 pm
- Forum: newLISP newS
- Topic: NewLisp competition
- Replies: 19
- Views: 22229
- Thu Jun 16, 2005 4:06 pm
- Forum: newLISP newS
- Topic: newLISP v.8.6.0 tk-126 source and Win32 installer
- Replies: 10
- Views: 12867
Slackware
Too bad slackware itself couldn't get an install rating of "3" (excellent). I would give it a "-5" (teh suck). :P
- Thu Jun 09, 2005 6:42 pm
- Forum: newLISP in the real world
- Topic: regex variable pattern
- Replies: 2
- Views: 3450
Yes you are right, and in fact I was doing the following.
The problem of course is that I put a quote before s-tag
which of course will ruin everything. It turns out to be something of an embarrassing oversite
:D
Code: Select all
(if (not (find (rest tag) s-tag 0))
Code: Select all
's-tag
:D
- Thu Jun 09, 2005 4:46 pm
- Forum: newLISP in the real world
- Topic: regex variable pattern
- Replies: 2
- Views: 3450
regex variable pattern
I was wondering if it is possible to use a variable for a pattern in a regex. My code looks something like the following.
Obviously this doesn't work, but hopeful explains what I am trying to do.
Code: Select all
(set 'var1 (pop some-stack))
(if (find var1 var2 0)
;continue execution here
)
- Fri May 06, 2005 7:08 pm
- Forum: newLISP in the real world
- Topic: net-receive and waiting
- Replies: 6
- Views: 6496
It turns out that the system is dependent on sending messages before a message can be received. The most appropriate way to handle this was to write a receiving function that can be forked off of the main process and yet continue to send messages between the parent and child process. This way the pa...
- Mon May 02, 2005 7:27 pm
- Forum: newLISP in the real world
- Topic: net-receive and waiting
- Replies: 6
- Views: 6496
That is the source of my problem. Since it is a 3rd party server, I have no control over dropping the connection or really any server functions, furthermore since authentication is first required dropping the connection would require going back through an authentication process before reaching the s...
- Mon May 02, 2005 6:18 pm
- Forum: newLISP in the real world
- Topic: net-receive and waiting
- Replies: 6
- Views: 6496
net-receive and waiting
I am currently writing an application that does substantial communication with a third party remote server using TCP. I run into a problem when I have authenticated the connection and begin passing information between the client and the server. I am having a problem determining exactly when the remo...
- Wed Apr 06, 2005 8:04 pm
- Forum: newLISP in the real world
- Topic: Benchmarks
- Replies: 2
- Views: 3918
Ineficciency discovered
It appears that the problem is when you run n_is_prime? for every single number. If I change my (define (n_prime_factor number) to the following there is a dramatic speedup. (define (n_prime_factor number) (set 'number_lst (sequence 3 (/ number 2) 2)) (push '2 number_lst) (set 'prime_seq '()) (until...
- Wed Apr 06, 2005 4:30 pm
- Forum: newLISP in the real world
- Topic: Benchmarks
- Replies: 2
- Views: 3918
Benchmarks
Lutz, I was talking to you earlier about the performance of two versions of the same algorithm. Intuitively the most recent version I have written should be much faster, but that is not the case. I cannot figure out why the introduction of mapping and filters should cause the program to degrade time...
- Fri Apr 01, 2005 7:09 pm
- Forum: newLISP in the real world
- Topic: Context List
- Replies: 2
- Views: 3756
Thanks for the pointers, I found your explanation extremely helpful. It turns out that the only thing I really needed to change was the following (cons items item_obj) To this (push (eval item_obj) items) I wasn't very specific about what "this_item" was and I noticed that you thought it was a conte...
- Thu Mar 31, 2005 10:29 pm
- Forum: newLISP in the real world
- Topic: Context List
- Replies: 2
- Views: 3756
Context List
Is it possible to make a list of contexts? For example the following is a snippet of code (that obviously doesn't work) that i have written. (context 'ITEM) (set 'title "") (set 'link "") (set 'content "") (set 'item_date "") (set 'author "") (context 'MY_CONTEXT) (set 'items '()) (define (create_it...