Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Kazimir Majorinc

#1
Whither newLISP? / Is true symbol?
June 24, 2014, 10:34:12 PM
> (symbol? 'true)

true

> (symbol? (eval 'true))

nil


> (= 'true (eval 'true))

true




Is it bug or feature? I'd expect that true is always symbol.
#2
So, what can you actually DO with newLISP? / Pentaquine
January 19, 2014, 01:55:37 AM
https://github.com/rvantonder/pentaquine">https://github.com/rvantonder/pentaquine
#3
http://newlispfanclub.alh.net/forum/memberlist.php?mode=viewprofile&u=804">Wendal's https://github.com/wendal/lua-newlisp">Lua-Newlisp github project and http://wendal.net/">blog with http://wendal.net/category/lisp">few related posts.
#4
Partrick Lerner recently published http://dmtg.me.uk/category/programming/lisp/">two posts related to http://www.newlisp.org/">Newlisp on http://dmtg.me.uk/">Do mind the gap blog.



(I posted it in wrong subforum few hours ago.)
#5
More details at:



http://ozk.unizd.hr/els2012/">http://ozk.unizd.hr/els2012/
#6
-

Few posts on http://lmf-ramblings.blogspot.com">http://lmf-ramblings.blogspot.com



http://lmf-ramblings.blogspot.com/2011/09/why-do-i-still-use-newlisp.html">Why do I still use Newlisp

http://lmf-ramblings.blogspot.com/2011/08/i-am-not-afraid-to-admit-that-ive-used.html">I am not afraid to admit that I've used Lisp for real work

http://lmf-ramblings.blogspot.com/2011/09/well-that-was-fast.html">Well, that was fast

http://lmf-ramblings.blogspot.com/2011/08/talk-about-proving-my-point.html">Talk about proving my point



Who is LMF? I didn't know for this blog until today.
#7
Whither newLISP? / Proposal: forever & doforever
September 01, 2011, 01:56:04 AM
(forever ...) := (while true ...)

(doforever(i) ...) := (begin (setf i 0)(while true (++ i) ...)).



Probably (dotimes(i 9223372036854775807)...) is good enough for doforever.
#8
Whither newLISP? / Why do you use sym?
July 03, 2011, 05:17:19 PM
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">http://kazimirmajorinc.blogspot.com/201 ... sions.html">http://kazimirmajorinc.blogspot.com/2011/01/enumeration-of-lambda-expressions.html


  • [*]for alpha-conversion, i.e. prevention of symbol clashes when calling macros. It is equivalent of use of (gensym) in other Lisp dialects in macro definition. For example, here

    http://kazimirmajorinc.blogspot.com/2009/12/symbols-as-sexprs.html">http://kazimirmajorinc.blogspot.com/200 ... exprs.html">http://kazimirmajorinc.blogspot.com/2009/12/symbols-as-sexprs.html



  • [*]for bulk definitions of functions or macros using same algorithm, for example, defining operators setq+, setq-, setq* ... such that (setq+ a b) <=> (setq a (+ a b)),  (setq- a b) <=> (setq a (- a b)) ... For example, here

    http://kazimirmajorinc.blogspot.com/2008/06/assignment-macro-beast-unleashed.html">http://kazimirmajorinc.blogspot.com/200 ... ashed.html">http://kazimirmajorinc.blogspot.com/2008/06/assignment-macro-beast-unleashed.html



  • [*]for simulation of hash tables - in some other language, I'd use B["011101"], in Newlisp I just use symbol B011101.  For example, here

    http://kazimirmajorinc.blogspot.com/2009/11/relatively-short-propositional-formulas.html">http://kazimirmajorinc.blogspot.com/200 ... mulas.html">http://kazimirmajorinc.blogspot.com/2009/11/relatively-short-propositional-formulas.html
  • [/list]


    Do you have some other example of use of sym?
    #9
    I announce my presentation at Sunday, 5. June 2011, 18h, http://hackerspaces.org/wiki/Hacklab_in_mama">Hacklab "mama", Preradoviceva 18, Zagreb.

    with topic



    [size=110]The program that calculates the tangent on the graph of the function in Newlisp as example of "code is data" approach in Lisp. [/size]



    Very elementary, classical Lisp example with few Newlisp specificities, suitable for those who want to familiarize with or rethink basic Lisp ideas.
    #10
    John Shutt is author of Kernel, experimental Lisp dialect that attempts to combine fexprs with lexical scope.



    http://fexpr.blogspot.com/">http://fexpr.blogspot.com/
    #11
    http://blog.fogus.me/2011/05/03/the-german-school-of-lisp-2/">http://blog.fogus.me/2011/05/03/the-ger ... of-lisp-2/">http://blog.fogus.me/2011/05/03/the-german-school-of-lisp-2/
    #12
    Whither newLISP? / (setf)
    April 21, 2011, 07:35:06 PM
    Currently:


    > (setf)

    ERR: missing argument in function setf

    It would be consistent with existing possibility of (setf x 1 y 2 ...) and analogous to (let()...) and (expand '(x y) '()) to allow (setf) as legal. I didn't seen implementation of setf, but I guess that it might result in very small size and speed improvement as well. Same for (set) and (setq).
    #13
    Whither newLISP? / Two small design issues
    March 23, 2011, 01:42:05 PM
    I see two possibilities for small design improvement, worth only if implementation is simple and there is little loss of speed.



    First - extending constant so it works on local bindings as well. It is less probable that one need it, however, it is not completely impossible (especially because local binding is dynamic as well) and it would make the feature more orthogonal. Constant already works in form (constant '<variable name>).



    Second - extending set so it can be applied on "implicit indexing". If



    (set 'X 5) = (setf X 5)



    then why not



    (set '(L 1) 5) = (setf (L 1) 5)?
    #14
    Whither newLISP? / Least common multiple?
    March 11, 2011, 12:15:21 PM
    It appears that Newlisp doesn't have least common multiple, right? If not, I propose the addition (with name lcm), at least because of symmetry: its "pair", gcd is already here - alone.



    Btw, support for real numbers is impressive: beta, gamma, erf, Fourier's transformation. How these functions found their way to Newlisp?
    #15
    I remember that Ted once proposed it, but I do not remember if it was implemented on any way.
    #16
    Currently, user defined eval is limited on explicit occurences:


    (setf original-eval eval)
    (constant 'eval (lambda(x)(inc eval-counter)
                         (print eval-counter ": " x "=>")
                         (println (original-eval x))))
    (eval '((lambda(x)(+ x 2)) 3)); works OK

    ; main program

    (setf f (lambda(x)(+ x 2)))
    (f 4)                         ; used original-eval, not eval


    Although this example only show need for such eval on top level, it is simplified example; redefined eval should replace all implicit calls of eval. Why not using explicit eval everywhere where it is needed? Because code would explode to something like


    ((eval 'setf) (eval 'f) (eval '(lambda(x)((eval '+) (eval 'x) (eval '2))))
    ((eval 'f) (eval '4)).


    Not impossible, but troublesome.
    #17
    http://newlisper.files.wordpress.com/2011/02/cordulegaster-obliqua-2002.png">

    Good news: http://newlisper.wordpress.com/">http://newlisper.wordpress.com/
    #18
    Anything else we might add? / Newlisp 10.3 cracked!
    February 09, 2011, 12:14:07 AM
    At least that's what they said:



    http://casacheliz.com/newlisp-10-3-0-key-serial-crack.html">http://casacheliz.com/newlisp-10-3-0-key-serial-crack.html

    http://crowlee.com/newlisp-for-mac-os-x-10-3-0-patch-rapidshare-serial-hotfile-free.html">http://crowlee.com/newlisp-for-mac-os-x-10-3-0-patch-rapidshare-serial-hotfile-free.html



    [Just in case that someone does not understand this post, I must warn] http://www.newlisp.org">http://www.newlisp.org   -KM.]
    #19
    John "Kanen" Flowers started new project, 52 lessons in Lisp, once weekly. http://www.lifezero.org/journal/2011/1/17/52-lessons-in-lisp-lesson-one.html">The first lesson is already published.
    #20
    Starting from last week, Cormullion does not publish his "Unbalanced parentheses" site any more. I am bit sad about that, because it was certainly one of the best Newlisp sites out there; and I hope that he'll republish his materials again in some future. His http://newlisper.blogspot.com">old blog is still available.



    Any case, thanx, Cormullion.