> (symbol? 'true)
true
> (symbol? (eval 'true))
nil
> (= 'true (eval 'true))
true
Is it bug or feature? I'd expect that true is always symbol.
Search found 388 matches
- Wed Jun 25, 2014 5:34 am
- Forum: Whither newLISP?
- Topic: Is true symbol?
- Replies: 4
- Views: 6810
- Sun Jan 19, 2014 9:55 am
- Forum: So, what can you actually DO with newLISP?
- Topic: Pentaquine
- Replies: 0
- Views: 4751
- Sat Jan 19, 2013 9:26 am
- Forum: Anything else we might add?
- Topic: John Shutt's blog Structural Insight.
- Replies: 2
- Views: 3878
Re: John Shutt's blog Structural Insight.
I know little about differences between various RnRS Schemes, but it appears that everyone, including Shutt, claim that fexprs are the most important issue in Kernel.
- Thu Jan 03, 2013 10:17 am
- Forum: newLISP in the real world
- Topic: -=((( HAPPY NEW YEAR 2013 )))=-
- Replies: 8
- Views: 4966
Re: -=((( HAPPY NEW YEAR 2013 )))=-
Happy new year to everyone.
- Wed Oct 24, 2012 3:21 pm
- Forum: newLISP in the real world
- Topic: newLISP on Rockets
- Replies: 20
- Views: 12195
- Mon May 28, 2012 6:44 pm
- Forum: So, what can you actually DO with newLISP?
- Topic: Wendal's Lua-Newlisp github project and few blog posts
- Replies: 3
- Views: 7041
- Mon May 28, 2012 4:10 pm
- Forum: So, what can you actually DO with newLISP?
- Topic: Patrick Lerner's blog
- Replies: 1
- Views: 5334
Patrick Lerner's blog
Partrick Lerner recently published two posts related to Newlisp on Do mind the gap blog.
(I posted it in wrong subforum few hours ago.)
(I posted it in wrong subforum few hours ago.)
- Sat Apr 14, 2012 3:19 pm
- Forum: Whither newLISP?
- Topic: In-place parameter substitution
- Replies: 8
- Views: 10294
Re: In-place parameter substitution
It would be nice to have some function that returns list of the caller functions, similarly like (sys-info 3) returns the level of recursion. Although it sounds quite 'dangerous' it can actually provide some debugging facilities, i.e. functions could react if called by someone they do not appreciate.
- Sat Apr 14, 2012 12:43 am
- Forum: Whither newLISP?
- Topic: In-place parameter substitution
- Replies: 8
- Views: 10294
Re: In-place parameter substitution
How about this one for beginning:
(define-macro (myinc p0)(set p0 (+ (eval p0) 1)))
(define-macro (myinc p0)(set p0 (+ (eval p0) 1)))
- Sun Mar 11, 2012 10:01 pm
- Forum: Anything else we might add?
- Topic: 5th European Lisp Symposium, Zadar, Croatia
- Replies: 2
- Views: 3021
Re: 5th European Lisp Symposium, Zadar, Croatia
No, I'll not be there.
- Sat Mar 10, 2012 12:23 pm
- Forum: Anything else we might add?
- Topic: 5th European Lisp Symposium, Zadar, Croatia
- Replies: 2
- Views: 3021
- Thu Mar 08, 2012 1:40 am
- Forum: newLISP in the real world
- Topic: Set Operations
- Replies: 4
- Views: 2664
Re: Set Operations
I agree about union, not because it is particularly missing, but because it is low hanging fruit.
- Sat Jan 28, 2012 2:00 pm
- Forum: Whither newLISP?
- Topic: Compose for NewLISP?
- Replies: 3
- Views: 6811
Re: Compose for NewLISP?
In this particular case you can check expand in manual.
- Fri Dec 30, 2011 9:22 pm
- Forum: newLISP in the real world
- Topic: What is the direct equivalent of for-each(Scheme) in newlisp
- Replies: 6
- Views: 3597
Re: What is the direct equivalent of for-each(Scheme) in new
Yes, that macro is intended to be used on different way. (foreach i '(1 2 3 4) (println (* i i))) In the meantime you can use following (as Ted suggested): (setf foreach map) (foreach (fn(x)(println(* x x))) '(1 2 3 4)) In Scheme, map and for-each are the same, just 'return value' of for-each isn't ...
- Sun Dec 25, 2011 12:47 pm
- Forum: Anything else we might add?
- Topic: Merry Christmas to all forum members!
- Replies: 2
- Views: 3317
Re: Merry Christmas to all forum members!
Thanx, I join to good wishes.
- Sun Dec 25, 2011 12:34 pm
- Forum: newLISP in the real world
- Topic: Is there the name conflict of lambda in newlisp?
- Replies: 11
- Views: 5371
Re: Is there the name conflict of lambda in newlisp?
The conflict might happen only if you pass "free variable" around; that is the case with (lambda()(setf a 3)) but not with (lambda()(let((a 4))(setf a 3))). As long as one does not pass free variables around he is safe. The problem most frequently occurs with Newlisp macros (actually, fexprs). These...
- Sat Dec 24, 2011 12:34 pm
- Forum: newLISP in the real world
- Topic: Is there the name conflict of lambda in newlisp?
- Replies: 11
- Views: 5371
Re: Is there the name conflict of lambda in newlisp?
Newlisp uses dynamic scope. That means that application of (lambda()(setq a 30)) doesn't refer to binding of a on the place of definition of (lambda()(setq a 30)) , in this case in myfun , but on binding of a in the place of application , i.e. in myfun2 . It is how it was in original, McCarthy 's Li...
- Tue Dec 20, 2011 9:23 pm
- Forum: newLISP in the real world
- Topic: Function composition?
- Replies: 4
- Views: 2787
Re: Function composition?
I wrote the post "Composition of functions and macros" on my blog.
((composition 'f1 ... 'fn) _ _ _) = (f1 (f2 ... (fn _ _ _)))
If there was no significant change from February 2010, you should be able to cut and paste whole post in your editor and it should work.
((composition 'f1 ... 'fn) _ _ _) = (f1 (f2 ... (fn _ _ _)))
If there was no significant change from February 2010, you should be able to cut and paste whole post in your editor and it should work.
- Tue Dec 13, 2011 5:05 am
- Forum: newLISP and the O.S.
- Topic: Will Newlisp run on Win 7 64 bit?
- Replies: 3
- Views: 3755
Re: Will Newlisp run on Win 7 64 bit?
Yes, it does.
- Tue Nov 15, 2011 11:35 pm
- Forum: newLISP in the real world
- Topic: variable capture?
- Replies: 14
- Views: 36360
Re: variable capture?
My experience is that dynamic scope almost never causes the problems. I think it happened to me something like two times in last four years, and then I fixed it easily. I have two functions in my library, protect1 and protect2 I'm using to check whether that is the case. I write something like (defi...
- Thu Sep 29, 2011 10:33 am
- Forum: So, what can you actually DO with newLISP?
- Topic: LMF, "Why do I still Use Newlisp" and other posts
- Replies: 1
- Views: 5507
LMF, "Why do I still Use Newlisp" and other posts
-
Few posts on http://lmf-ramblings.blogspot.com
Why do I still use Newlisp
I am not afraid to admit that I've used Lisp for real work
Well, that was fast
Talk about proving my point
Who is LMF? I didn't know for this blog until today.
Few posts on http://lmf-ramblings.blogspot.com
Why do I still use Newlisp
I am not afraid to admit that I've used Lisp for real work
Well, that was fast
Talk about proving my point
Who is LMF? I didn't know for this blog until today.
- Thu Sep 01, 2011 8:56 am
- Forum: Whither newLISP?
- Topic: Proposal: forever & doforever
- Replies: 0
- Views: 4889
Proposal: forever & doforever
(forever ...) := (while true ...)
(doforever(i) ...) := (begin (setf i 0)(while true (++ i) ...)).
Probably (dotimes(i 9223372036854775807)...) is good enough for doforever.
(doforever(i) ...) := (begin (setf i 0)(while true (++ i) ...)).
Probably (dotimes(i 9223372036854775807)...) is good enough for doforever.
- Thu Aug 18, 2011 7:11 am
- Forum: newLISP newS
- Topic: blog post about newLISP
- Replies: 2
- Views: 3358
Re: blog post about newLISP
Newlisp is recently mentioned in positive context in following blog posts as well:
http://blog.fogus.me/2011/08/14/perlis-languages/
http://dorophone.blogspot.com/2011/08/s ... nsion.html
http://blog.fogus.me/2011/08/14/perlis-languages/
http://dorophone.blogspot.com/2011/08/s ... nsion.html
- Mon Jul 04, 2011 12:17 am
- Forum: Whither newLISP?
- Topic: Why do you use sym?
- Replies: 1
- Views: 4588
Why do you use sym?
I'm trying to make review of situations where sym is useful. I use it for generation of expressions processed by programs. For example, here: http://kazimirmajorinc.blogspot.com/2011/01/enumeration-of-lambda-expressions.html for alpha-conversion, i.e. prevention of symbol clashes when calling macros...
- Wed Jun 22, 2011 3:24 pm
- Forum: Whither newLISP?
- Topic: Tail call optimization
- Replies: 3
- Views: 5717