Welcome to the new forums!
Started by HPW, September 20, 2004, 06:52:40 AM
QuoteWell, I love it.Since version 2.0 I know this nice softpile. It was my first lispexperience on dos5.0-386/33er box. The turn around version 6.3 (the lastversion before win98 gets old) runs also as one *.exe with wine underlinux. The file is only 463kb ... and can move the smile.bmp around thescreen. :)There is more to say, but test it. The code is Scheme oriented and thereare not very much specials, but it shows, what 'portable can be. You canlook at nuvatec.com, maybe they had the older versions still online.Worth learning it? Hmmm... when you are tired with all that high levelstuff you will have lots of fun with it. Pscht, this is a secret hint:there is not much to learn, just copy and paste and modify from thedocus and you can cross high mountains. The designers seem to know howto spell intuition.Something other strange I know is plisp, but don't know whether it issupported.stefan
Quote> Well, I love it.I find it amusing 'cause it's good for WTF! style yucks. I would never trust it for serious work.For example:raffaelc$ newlispnewLISP v.8.1.7 Copyright (c) 2004 Lutz Mueller. All rights reserved.> (defun factorial (x) (if (< x 2) 1 (* x (factorial (- x 1)))))(lambda (x) (if (< x 2) 1 (* x (factorial (- x 1)))))> (factorial 5) 120> (dotimes (n 50) (begin (print (factorial n)) (print "n")))1126241207205040403203628803628800399168004790016001932053504127894528020043100162004189184-288522240-898433024109641728-2102132736-1195114496-522715136862453760-7759462402076180480-18538823681484783616-1375731712-12415139841409286144738197504-2147483648-21474836480000000000000000"n"> Hmmm...So I consulted the manual:"Calculations which result in values bigger than 2,147,483,647 or smaller than |2,147,483,648 wraps around from positive to negative or negative to positive numbers."I fail to see how this is a step forward for lisp. Though I think it is appropriately named - sort of like Orwell's newspeak...
Quote from: "Lutz"He could have just defined it using floating point arithmetik:
Quote from: "Lutz"
Quote from: "mrd"(...) Floating point has its uses, but none of them include representing arbitrary precision exact integers. The correct solution is to implement proper bignum support just like every other Lisp. While you're at it, do polymorphic arithmetic operations. Having +, -, *, and / only work on machine-sized integers (and no rational type) is lame.
Quote from: "mrd"
Quotelisp.email@example.com (HPW) writes:> Reposted from newlisp forum.Is this for real or are you making this up?> He could have just defined it using floating point arithmetik: >>> (define (factorial x) (if (< x 2) 1 (mul x (factorial (sub x 1))))) >> and then it will work just fine. >> If he dosn't like the possibility of Integer Arithmetik in a scripting> language, he can do:>> (constant '+ add) > etc >> LutzThis is so absurd it is (almost) no longer funny.Think bignum, man!