KazimirMajorinc
KazimirMajorinc on Hacker News
If you feel empathy with snails please, flag these.
Nokolisp (1976-)
He really understood fexprs well. Or John Shutt's disertation. Or, this part of Alan Kay's interview: http://kazimirmajorinc.blogspot.com/2010/02/alan-kay-on-fexp...
Criticism of Newlisp? Well, yes and no - but, the point of every Lisp is, and particularly NL is - if something is missing, add it for yourself.
Picolisp is similar to Newlips, it is really minimal, very fast interpreter, written in assembler.
Other dialects have other advantages. But I'll stop here.
C# vs C++: more jobs and better weekends?
http://kazimirmajorinc.blogspot.com/2010/03/another-difference-between-c-and-c.html
One interesting trend graph.
http://kazimirmajorinc.blogspot.com/2009/12/symbols-as-sexpr...
This post describes implementation of hygienic (even recursive hygienic) fexprs in Newlisp.
Global warming? Check for yourself
But - if one wants source -> source transformation that works in ALL contexts, whatever the reason, he can limit his own use of fexprs - and hence, allow various degrees of such source transformations. For example, he can use fexprs under same limitation macros are used, and in that case, fexprs can be "compiled away" just like macros can. But - he can do it on his own, in some or all of his projects, or even only in some parts of the projects. There is no need to make collective decisions of that kind. Again, it is consistent with idea of Lisp, in which borderline between language designer and programmer is blurred, or at least, it was imagined that way initially.
Shutt has interesting and novel approach, and his approach is independent of the severity of overshadowing of the variables problem he addressed. And how severe is that problem? Not really. It is actually the same problem that exists with macros, and techniques used in CL or Scheme (gensyms, hygiene) for macros can work as well with fexprs.
So, macros really slow down all or practically all programs containing eval. One can avoid evals, but from my point of view that means avoiding the most powerful, the most fun code=data feature in Lisp. It doesn't look good to me. So, why should one avoid eval?
"Eval is to be avoided because most of the time there are are a lot of more structured ways to do exactly the same thing." I miss the point here.
* ORO is something in between "manual" memory management like in assembler in C and real GC. It is "more automatized" than former, and less automatized than later. Basically, i agree with you, GC has some important advantages, but ORO is - adequate - and I'd say, not completely without advantages in practice as well. (Theoretically, GC is not excluded in the form of libraries. In past there was little interest for that, but Greg's recent "Objective Newlisp" library provides simple, reference counting-based GC algorithm.)
* Dynamic scope - it gives more expressive power: the functions in dynamic scope are about equally expressive as macros, and they are the first class values. The problem with dynamic scope is - accidental name clashes, or "overshadowing." That is where static scope helps and I understand it is reasonable choice for languages like Ada, Eiffel and many others: safety over expressiveness. However, it was not original design goal of Lisp, supposed to be very adventurous language - and it is still visible: CL, Scheme and Clojure programmers have to face exactly the same problem if they write macros. The solutions: namespaces, gensyms and "hygiene" work on the same or similar way for Newlisp dynamic scope. So, it is not really consistent to complain against dynamic scope as unsafe, and to believe that macros are (or can be) "safe enough."
On the other side, with dynamic scope, functions are as expressive (or almost) as macros and they are the first class values. For example, one can implement "if" as a function. http://kazimirmajorinc.blogspot.com/2009/01/two-definitions-...
1. use of "contexts" i.e. Newlisp namespaces
2. use of same approach as in CL or Scheme macros. In CL it is automatic generation of unusual names, gensyms, in Scheme it is even more automatic "hygiene". Both of these approaches are available in Newlisp as well. One can check my blog post at: http://kazimirmajorinc.blogspot.com/2009/12/symbols-as-sexpr... It is not simple reading if one didn't used dynamic scope, but essentially it is how one can write hygienic fexprs (Newlisp macros are actually fexprs).
3. use of some "OO" additions. I am bit of OO sceptic, but for those who are not, there are at least two OO systems for Newlisp.
3.1. Official FOOP system, still in development http://newlispfanclub.alh.net/forum/viewtopic.php?f=2&t=...
3.2. Greg's OO system http://www.taoeffect.com/blog/2009/12/introducing-objective-...
I can see how dynamic scope - just like dynamic typing, eval or macros - could be seen as problem for people who want language like, say, Ada that puts safety on the first place. It is legitimate position. But it is not design goal or tradition of Lisp. Lisp is designed for AI, exploratory programming, hacking, expressive power, adventure. Owner of this site, Paul Graham, frequently wrote in that vein. It is simply not consistent to brag about expressive power of Lisp, and then turn into safety freak when one mentions dynamic scope.
OK safety freak is maybe too strong, but you get the point.
It is also specifically noted that Lisp programmers who use Lisp part time have right to write why they do not use Lisp - when they do not use it.
There is a huge variety of reasons and ways people think.