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

Messages - cormullion

#1
newLISP newS / Happy Birthday newLisp
December 06, 2021, 12:00:30 PM
Is newLisp 30 years old? Happy Birthday!
#2
try PEG!



https://github.com/dahu/nlpeg">https://github.com/dahu/nlpeg
#3
Dragonfly / Re: Dragonfly 0.73
August 06, 2015, 01:09:06 AM
Necromancer!
#4
newLISP and the O.S. / Re: OS : El Capitan (10.11)
August 01, 2015, 08:27:56 AM
Cool, I'll delete and re-install newLISP just before  El Capitan is released. I understand ElCap will delete any non-system files from /usr/bin during its installation, but newLISP should be safe once installed in/usr/local. I will have to update a few files (those in which I didn't use "#!/usr/bin/env newlisp"...
#5
newLISP and the O.S. / OS : El Capitan (10.11)
August 01, 2015, 01:42:13 AM
I understand that the next version of OS X won't allow users to install anything into /usr/bin/. Is this going to affect newLISP installations?



(I may have missed any discussion of this - sorry!)
#6
Cool, thanks! On Github there are a number of other repos too - e.g. https://github.com/marchildmann/Dragonfly">https://github.com/marchildmann/Dragonfly (Last updated 6 years ago... ! :)). And there's a four-year old version (https://github.com/taoeffect/dragonfly-newlisp">https://github.com/taoeffect/dragonfly-newlisp).



I've been tinkering with my local copy (I had problems when the host upgraded to 10.6, don't know what they were, though). It's still nice and quick though!



Perhaps sometime you can put the definitive latest version on Github and people can start putting in pull requests...



BTW Google Code is http://google-opensource.blogspot.co.uk/2015/03/farewell-to-google-code.html">shutting down on January 25th, 2016.
#7
Hi Marc - what happened to http://www.rundragonfly.com">//http://www.rundragonfly.com? I went there the other day (problems with Dragonfly and newlisp v10.6) and I didn't understand a thing (although I liked the castle) !
#8
newLISP and the O.S. / Re: Benchmarking newLISP
March 12, 2015, 01:21:30 AM
Yes, that mistake has been made more than once... :)
#9
newLISP and the O.S. / Re: Benchmarking newLISP
March 11, 2015, 09:54:12 AM
newLISP 10.6 looks to be slower than older versions — I'm only getting 0.9 seconds now on 10.6, compared with 0.4 with newLISP 10.3. I was going to investigate, but the benchmark "qa-bench" in the current distribution isn't backwards compatible with earlier versions... Which makes the top post fairly meaningless now, since they're all different version numbers. :)
#10
newLISP and the O.S. / Re: Benchmarking newLISP
March 11, 2015, 01:54:07 AM
Seems a bit slow - presumably that's due to newLISP 10.6.0 rather than OSX 10.9 or the Recycle Bin...?
#11
newLISP in the real world / Re: PEG and template system?
September 17, 2014, 08:16:22 AM
https://github.com/dahu/nlpeg">https://github.com/dahu/nlpeg ?
#12
Anything else we might add? / Re: Indent version lisp
August 06, 2014, 04:07:22 PM
Well I don't test my code very thoroughly .. :) but I remember adding something for bigints earlier, so it kind of works, and it's not too far behind. Pull requests accepted!
#13
Anything else we might add? / Re: Indent version lisp
August 05, 2014, 12:21:04 AM
I tried it, and soon started to miss the parentheses.


#!/usr/bin/newlisp
define D:D
map
fn
x    
D x
inc
D x    
explode
read-file

main-args 2
map
fn
p
println
p 0 "t:t"
p 1
D
exit


or


#!/usr/bin/newlisp

(define D:D)

(map (fn (x)
     (D x (inc (D x))))
     (explode (read-file ((main-args) 2))))

(map (fn (p)
              (println (p 0) "t:t" (p 1)))
         (D))
(exit)




The script I used:


(set 'the-data  (explode (read-file (nth 2 (main-args)))))

(set 'level 0)
(define (start-list)
  (print "n" (dup "t" level))
  (inc level))

(define (close-list)  
  (dec level))
           
(dolist (c the-data)
    (cond
        ((= c "(")    
                (start-list)
                )
        ((= c ")")
                (close-list))
        (true
                (print (trim c "n")))))
(exit)


Of course, it breaks if the strings contains parentheses, so it doesn't run on itself... :)
#14
Great - now I want one of those... :)
#15
http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=16&t=3161&p=17075&hilit=lazy#p17075">some previous discussion