That is amazing.
Someday I will also get to learn the black art of macros.
Search found 123 matches
- Mon Nov 12, 2012 12:27 pm
- Forum: newLISP in the real world
- Topic: Juxtaposition
- Replies: 2
- Views: 1750
- Mon Nov 12, 2012 12:49 am
- Forum: newLISP in the real world
- Topic: Juxtaposition
- Replies: 2
- Views: 1750
Juxtaposition
The clojure.core has this juxtapostion function which i find very useful. I wonder how easy is it to implement in newLisp. Takes a set of functions and returns a fn that is the juxtaposition of those fns. The returned fn takes a variable number of args, and returns a vector containing the result of ...
- Sun Nov 11, 2012 4:19 pm
- Forum: newLISP in the real world
- Topic: newlisp and openwrt
- Replies: 9
- Views: 4230
Re: newlisp and openwrt
In order to shave kilobytes, will it be possible to remove compilation options for the matrix, financial, trigonometry functions?
I am not sure why this decision to add these functions to the 'core' of a general purpose language.
I am not sure why this decision to add these functions to the 'core' of a general purpose language.
- Sat Nov 10, 2012 2:25 pm
- Forum: newLISP in the real world
- Topic: newlisp and openwrt
- Replies: 9
- Views: 4230
Re: newlisp and openwrt
Did you strip your newlisp executable?
- Thu Nov 08, 2012 2:25 pm
- Forum: newLISP in the real world
- Topic: How does (define (sum (x 0)) (inc 0 x)) work?
- Replies: 8
- Views: 3918
Re: How does (define (sum (x 0)) (inc 0 x)) work?
cormullion,
In other Lisp's this function is called a closure.
But newlisp does not support closures. If then what is it?
In other Lisp's this function is called a closure.
But newlisp does not support closures. If then what is it?
- Wed Nov 07, 2012 8:11 pm
- Forum: newLISP in the real world
- Topic: (float) with elements of the list
- Replies: 4
- Views: 2471
Re: (float) with elements of the list
Same issue on my Linux desktop.
Code: Select all
newLISP v.10.4.3 on Linux IPv4/6 UTF-8 libffi, execute 'newlisp -h' for more info.
> (set 'lst '("23" "hello" "3.14"))
("23" "hello" "3.14")
> (float (lst 1))
"3.14"
- Mon Nov 05, 2012 12:38 pm
- Forum: newLISP in the real world
- Topic: Exploding a list using patterns
- Replies: 5
- Views: 2696
Re: Exploding a list using patterns
Thanks Lutz for that terse, and at the same time intuitive code.
I wish match also accepts regular expressions. Something like this.
I wish match also accepts regular expressions. Something like this.
Code: Select all
(match '(* {BEGIN} * "END" *) lst)
- Sun Nov 04, 2012 3:17 pm
- Forum: newLISP newS
- Topic: new documentation revisions
- Replies: 7
- Views: 8055
Re: new documentation revisions
Is there a PDF/ePub version of the Newlisp manual complete with TOC?
- Sun Nov 04, 2012 5:01 am
- Forum: newLISP in the real world
- Topic: Exploding a list using patterns
- Replies: 5
- Views: 2696
Re: Exploding a list using patterns
Thank you winger for your timely responses.
It is interesting to see how newLisp allows you to use symbols (tmplst and result) without 'declaring' ahead.
I am not used to that kind of thinking. Is that considered good practice?
It is interesting to see how newLisp allows you to use symbols (tmplst and result) without 'declaring' ahead.
I am not used to that kind of thinking. Is that considered good practice?
- Sat Nov 03, 2012 9:39 pm
- Forum: newLISP in the real world
- Topic: Exploding a list using patterns
- Replies: 5
- Views: 2696
Exploding a list using patterns
Is there a Lisp pattern where I can explode a list which has BEGIN and END markers ("exb" "BEGIN" "unknown" "num" "of" "items" "END" "BEGIN" "ex3" "END" "something" "and" "so" "on" ) To (("BEGIN" "unknown" "num" "of" "items" "END") ("BEGIN" "ex3" "END")) The builtin explode function doesnt allow cus...
- Sat Oct 27, 2012 10:15 pm
- Forum: newLISP in the real world
- Topic: newLISP on Rockets
- Replies: 20
- Views: 12174
Re: newLISP on Rockets
Is dragonfly maintained anymore? Looks like it has not been updated since 2010!
- Tue Oct 23, 2012 2:58 pm
- Forum: newLISP in the real world
- Topic: Function documentation via REPL
- Replies: 5
- Views: 2908
Re: Function documentation via REPL
Thank you everyone for all the answers provided.
I tried searching before i asked this question.
I tried searching before i asked this question.
- Mon Oct 22, 2012 7:52 am
- Forum: newLISP in the real world
- Topic: Function documentation via REPL
- Replies: 5
- Views: 2908
Function documentation via REPL
Is it possible to see the documentation for a builtin function (within MAIN context) via the REPL?
- Sun Feb 19, 2012 6:00 pm
- Forum: newLISP and the O.S.
- Topic: Unix - Linking newLISP source and executable - newbie query
- Replies: 5
- Views: 4131
Re: Unix - Linking newLISP source and executable - newbie qu
Hmm, I don't remember seeing the error before.
However can you add the pathname for the newlisp executable in your repl.
If that fails too, you may copy the newlisp executable to your script path.
Cheers!
However can you add the pathname for the newlisp executable in your repl.
Code: Select all
newlisp /path/to/link.lsp
(link "/path/to/newlisp executable" "uppercase" "uppercase.lsp")
Cheers!
- Sat Feb 18, 2012 3:06 pm
- Forum: newLISP and the O.S.
- Topic: Unix - Linking newLISP source and executable - newbie query
- Replies: 5
- Views: 4131
Re: Unix - Linking newLISP source and executable - newbie qu
Can you try this?
Code: Select all
newlisp /path/to/link.lsp
(link "newlisp" "your-exe-name" "your_newlisp_script.lsp")
- Tue Feb 14, 2012 11:46 pm
- Forum: newLISP newS
- Topic: newLISP Stable Release v.10.4.0
- Replies: 13
- Views: 11033
Re: newLISP Stable Release v.10.4.0
Thank you Lutz for the readline improvements.
- Mon Feb 06, 2012 1:01 pm
- Forum: newLISP newS
- Topic: newLISP development release v.10.3.10
- Replies: 9
- Views: 8086
Re: newLISP development release v.10.3.10
Nice. When will this be announced as a stable release?
- Sat Jan 28, 2012 10:23 am
- Forum: Whither newLISP?
- Topic: Compose for NewLISP?
- Replies: 3
- Views: 6752
- Thu Jan 26, 2012 1:24 am
- Forum: newLISP newS
- Topic: Updated links for modules page
- Replies: 4
- Views: 4598
Re: Updated links for modules page
Is this about the rundragonfly.com site. Maybe you should switch of "noscript" :)conan wrote:Your links on the navbar do not point to anything, they have the hashmark.
- Tue Jan 10, 2012 11:58 pm
- Forum: newLISP in the real world
- Topic: [wishlist] things I wish for newlisp for 2012
- Replies: 9
- Views: 4414
Re: [wishlist] things I wish for newlisp for 2012
An Expect/Pty module would be a welcome addition to the newlisp library.
- Sat Dec 31, 2011 2:59 am
- Forum: newLISP in the real world
- Topic: What is the direct equivalent of for-each(Scheme) in newlisp
- Replies: 6
- Views: 3594
Re: What is the direct equivalent of for-each(Scheme) in new
Very informative.
Thank you Kazimir, Lutz.
Thank you Kazimir, Lutz.
- Fri Dec 30, 2011 9:00 pm
- Forum: newLISP in the real world
- Topic: What is the direct equivalent of for-each(Scheme) in newlisp
- Replies: 6
- Views: 3594
Re: What is the direct equivalent of for-each(Scheme) in new
I am getting an error for the foreach macro.
(foreach (fn (x) (println (* x x))) '(1 2 3 4))
Is there a macroexpand-1 facility in newlisp to see what is going on underneath?
(foreach (fn (x) (println (* x x))) '(1 2 3 4))
Code: Select all
ERR: symbol expected in function dolist : (lambda (x) (println (* x x)))
called from user defined function foreach
- Fri Dec 30, 2011 4:03 am
- Forum: newLISP in the real world
- Topic: What is the direct equivalent of for-each(Scheme) in newlisp
- Replies: 6
- Views: 3594
What is the direct equivalent of for-each(Scheme) in newlisp
In Scheme
I didn't see a foreach function in the manual.
Note : I am NOT looking for 'dolist' which is different from foreach.
Code: Select all
> (for-each (lambda (x) (display (* x x))) '(1 2 3 4))
14916
Note : I am NOT looking for 'dolist' which is different from foreach.
- Wed Dec 28, 2011 11:51 am
- Forum: newLISP in the real world
- Topic: Set Operations
- Replies: 4
- Views: 2660
Set Operations
Is there a module somewhere which can perform basic Set operations (like unions, intersections, differences etc)
Basic Set theory is something I know since Middle school and easy to associate with :)
Basic Set theory is something I know since Middle school and easy to associate with :)
- Tue Dec 27, 2011 1:42 pm
- Forum: newLISP in the real world
- Topic: [wishlist] things I wish for newlisp for 2012
- Replies: 9
- Views: 4414
Re: [wishlist] things I wish for newlisp for 2012
Newlisp does not have TCO. How about adding loop/recur(aka clojure) like feature which internally does looping/trampolines/?