Search found 388 matches

by Kazimir Majorinc
Wed Jun 01, 2011 10:46 am
Forum: So, what can you actually DO with newLISP?
Topic: K. Majorinc, Newlisp related presentation in Zagreb, Croatia
Replies: 0
Views: 4519

K. Majorinc, Newlisp related presentation in Zagreb, Croatia

I announce my presentation at Sunday, 5. June 2011, 18h, Hacklab "mama" , Preradoviceva 18, Zagreb. with topic The program that calculates the tangent on the graph of the function in Newlisp as example of " code is data " approach in Lisp. Very elementary, classical Lisp example with few Newlisp spe...
by Kazimir Majorinc
Mon May 30, 2011 5:22 am
Forum: Anything else we might add?
Topic: John Shutt's blog Structural Insight.
Replies: 2
Views: 3878

John Shutt's blog Structural Insight.

John Shutt is author of Kernel, experimental Lisp dialect that attempts to combine fexprs with lexical scope.

http://fexpr.blogspot.com/
by Kazimir Majorinc
Wed May 11, 2011 12:36 am
Forum: Anything else we might add?
Topic: More newLISP beer!
Replies: 1
Views: 2554

Re: More newLISP beer!

Great! If you're in Croatia, you'll probably visit Zagreb, and I'll be glad to drink some beer with colleague. If you'll have free evening and will, we might arrange some (your) lecture or presentation of your work on NL or anything related to computers in Hacklab and then go to some beer ... I'm lo...
by Kazimir Majorinc
Sun May 01, 2011 10:40 am
Forum: newLISP in the real world
Topic: destructive functions & trees
Replies: 5
Views: 2537

Re: destructive functions & trees

Without using contexts, demonstrated by johu, if you want pass by reference , you should really pass the reference of the structure (not the structure itself), and make your function dereference it: (set 'x '(0 1 2 (3 4))) (define (destruct lst) (setf ( (eval lst) 3 0 0) 1)) ; eval is dereference (p...
by Kazimir Majorinc
Sun May 01, 2011 12:48 am
Forum: newLISP in the real world
Topic: destructive functions & trees
Replies: 5
Views: 2537

Re: destructive functions

It works for local variables

> (let((x 1))(setf x 7)(* 2 x))
14

> (local(x)(setf x 8)(+ x 1))
9


What exactly do you dislike?
by Kazimir Majorinc
Sat Apr 30, 2011 10:54 pm
Forum: newLISP in the real world
Topic: Lisp + observation... (unless)
Replies: 2
Views: 2128

Re: Lisp + observation... (unless)

In Common Lisp? Something like that: (defmacro until (test &body body) (let ((start-tag (gensym "START")) (end-tag (gensym "END"))) `(progn (setf $idx 0) (tagbody ,start-tag (when ,test (go ,end-tag)) (progn ,@body) (incf $idx) (go ,start-tag) ,end-tag)))) (until(= (setf x (random 10)) 0) (format t ...
by Kazimir Majorinc
Fri Apr 22, 2011 2:35 am
Forum: Whither newLISP?
Topic: (setf)
Replies: 0
Views: 3995

(setf)

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 a...
by Kazimir Majorinc
Wed Apr 20, 2011 7:57 pm
Forum: newLISP in the real world
Topic: Loop without Loops
Replies: 3
Views: 2091

Re: Loop without Loops

(eval (setf code '(when (< counter 40) (inc counter) (println counter) (eval code)))) or even better, "crawler-tractor" (set 'f (lambda() (if (< counter2 50) (begin (println "Hi for the " (inc counter2) ". time. ") (push (last f) f -1) (if (> (length f) 3) (pop f 1)))))) (f) This last is particular...
by Kazimir Majorinc
Sat Apr 02, 2011 5:46 am
Forum: Anything else we might add?
Topic: (apply music '(while programming))
Replies: 10
Views: 8187

Re: (apply music '(while programming))

I'm enjoying it!
But I have a feeling that my wife will put the veto in few minutes.
by Kazimir Majorinc
Fri Apr 01, 2011 4:53 am
Forum: Whither newLISP?
Topic: Least common multiple?
Replies: 3
Views: 5482

Re: Least common multiple?

Intelligence agency informed me that kosh implemented one lcm : https://gist.github.com/897015
by Kazimir Majorinc
Thu Mar 31, 2011 11:30 pm
Forum: Anything else we might add?
Topic: all? or perhaps predicates that accept multiple args
Replies: 4
Views: 4075

Re: all? or perhaps predicates that accept multiple args

Additionally, if you insist on minimal syntax, you can play with fexprs (macros). (setf [print.supressed] true [println.supressed] true) ; ---- (load "http://instprog.com/Instprog.default-library.lsp") ; only println= used (setf [print.supressed] nil [println.supressed] nil) ; ---- (define-macro (fl...
by Kazimir Majorinc
Sat Mar 26, 2011 6:08 pm
Forum: newLISP newS
Topic: newlisp Documentation, NEW layout proposal
Replies: 6
Views: 5336

Re: newlisp Documentation, NEW layout proposal

Yes it is even better.
I have 1900x1200.
by Kazimir Majorinc
Sat Mar 26, 2011 1:07 pm
Forum: newLISP newS
Topic: newlisp Documentation, NEW layout proposal
Replies: 6
Views: 5336

Re: newlisp Documentation, NEW layout proposal

I like the concept, It seems very practical.
This is how it looks on my computer.
Perhaps you can pack upper part even denser.
by Kazimir Majorinc
Wed Mar 23, 2011 11:15 pm
Forum: Whither newLISP?
Topic: Two small design issues
Replies: 2
Views: 3154

Re: Two small design issues

Yes, it was that.
If it was turned off because of efficiency issues, OK, since it is really minor issue.
by Kazimir Majorinc
Wed Mar 23, 2011 8:42 pm
Forum: Whither newLISP?
Topic: Two small design issues
Replies: 2
Views: 3154

Two small design issues

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 b...
by Kazimir Majorinc
Sat Mar 12, 2011 2:52 am
Forum: newLISP in the real world
Topic: Applying multiple lists?
Replies: 4
Views: 1915

Re: Applying multiple lists?

(eval (extend '(map append) (map quote '(("one" "two")("for" "you")))))
(map (fn(x)(apply append x)) (transpose '(("one" "two")("for" "you"))))
by Kazimir Majorinc
Fri Mar 11, 2011 8:15 pm
Forum: Whither newLISP?
Topic: Least common multiple?
Replies: 3
Views: 5482

Least common multiple?

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 fou...
by Kazimir Majorinc
Fri Mar 04, 2011 2:10 pm
Forum: Whither newLISP?
Topic: Is there anything like reader-macros in Newlisp?
Replies: 6
Views: 5167

Is there anything like reader-macros in Newlisp?

I remember that Ted once proposed it, but I do not remember if it was implemented on any way.
by Kazimir Majorinc
Thu Feb 17, 2011 4:43 am
Forum: Whither newLISP?
Topic: Proposal: extending user defined eval on implicit evaluation
Replies: 1
Views: 2691

Proposal: extending user defined eval on implicit evaluation

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 origi...
by Kazimir Majorinc
Thu Feb 10, 2011 6:48 pm
Forum: newLISP newS
Topic: Promoting my blog.
Replies: 61
Views: 35108

Re: Promoting my blog.

Hi, Michael. Yes, I prefer serifs, although I admit that sans serifs are more readable on screen, but if I need that I use Arial. I also like Art Nouveau fonts. What are your favourite fonts? I abandoned vehement photo because I've read somewhere that readers are less likely to return to site if the...
by Kazimir Majorinc
Wed Feb 09, 2011 8:14 am
Forum: Anything else we might add?
Topic: Newlisp 10.3 cracked!
Replies: 0
Views: 2859

Newlisp 10.3 cracked!

At least that's what they said: 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 [ Just in case that someone does not understand this post, I must warn: don't download anything from two sites above, th...
by Kazimir Majorinc
Tue Feb 08, 2011 10:28 am
Forum: newLISP newS
Topic: Promoting my blog.
Replies: 61
Views: 35108

Re: Promoting my blog.

I published few posts in the meantime. And also stole some elements from Greg's design recently. 098. Short notes on McCarthy's "Recursive Functions ... " 099. And, Why Didn't Dijkstra Like Lisp? 100. Lecture on Newlisp, 6. June 2010. 101. Small But Robust Bug in Gabriel and Steele's "Evolution of L...