Search found 2037 matches

by cormullion
Thu Aug 06, 2015 8:09 am
Forum: Dragonfly
Topic: Dragonfly 0.73
Replies: 1
Views: 1214

Re: Dragonfly 0.73

Necromancer!
by cormullion
Sat Aug 01, 2015 3:27 pm
Forum: newLISP and the O.S.
Topic: OS : El Capitan (10.11)
Replies: 2
Views: 2920

Re: OS : El Capitan (10.11)

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/e...
by cormullion
Sat Aug 01, 2015 8:42 am
Forum: newLISP and the O.S.
Topic: OS : El Capitan (10.11)
Replies: 2
Views: 2920

OS : El Capitan (10.11)

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!)
by cormullion
Tue May 12, 2015 7:25 pm
Forum: Dragonfly
Topic: How to tell if route_cgi.lsp is running?
Replies: 10
Views: 5224

Re: How to tell if route_cgi.lsp is running?

Cool, thanks! On Github there are a number of other repos too - e.g. https://github.com/marchildmann/Dragonfly (Last updated 6 years ago... ! :)). And there's a four-year old version (https://github.com/taoeffect/dragonfly-newlisp). I've been tinkering with my local copy (I had problems when the hos...
by cormullion
Tue May 12, 2015 12:04 pm
Forum: Dragonfly
Topic: How to tell if route_cgi.lsp is running?
Replies: 10
Views: 5224

Re: How to tell if route_cgi.lsp is running?

Hi Marc - what happened to 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) !
by cormullion
Thu Mar 12, 2015 8:21 am
Forum: newLISP and the O.S.
Topic: Benchmarking newLISP
Replies: 27
Views: 12553

Re: Benchmarking newLISP

Yes, that mistake has been made more than once... :)
by cormullion
Wed Mar 11, 2015 4:54 pm
Forum: newLISP and the O.S.
Topic: Benchmarking newLISP
Replies: 27
Views: 12553

Re: Benchmarking newLISP

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 fairl...
by cormullion
Wed Mar 11, 2015 8:54 am
Forum: newLISP and the O.S.
Topic: Benchmarking newLISP
Replies: 27
Views: 12553

Re: Benchmarking newLISP

Seems a bit slow - presumably that's due to newLISP 10.6.0 rather than OSX 10.9 or the Recycle Bin...?
by cormullion
Wed Aug 06, 2014 11:07 pm
Forum: Anything else we might add?
Topic: Indent version lisp
Replies: 10
Views: 10469

Re: Indent version lisp

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!
by cormullion
Tue Aug 05, 2014 7:21 am
Forum: Anything else we might add?
Topic: Indent version lisp
Replies: 10
Views: 10469

Re: Indent version lisp

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) (print...
by cormullion
Sun Jul 13, 2014 8:50 am
Forum: So, what can you actually DO with newLISP?
Topic: newLISP and my AR.Drone 2.0
Replies: 2
Views: 2919

Re: newLISP and my AR.Drone 2.0

Great - now I want one of those... :)
by cormullion
Fri May 30, 2014 8:41 am
Forum: newLISP in the real world
Topic: List or quoted List
Replies: 2
Views: 1091

Re: List or quoted List

(map inc '(1 2 3 4 5)) but above expression returned a list? or a quoted list? It returns an unevaluated list: (2 3 4 5) As does: '(1 2 3 4) (1 2 3 4) which is why you can do: (map inc (map inc '(1 2 3 4)) ;-> (3 4 5 6) I don't think built-in functions are exactly macros, but many of them have spec...
by cormullion
Wed May 21, 2014 7:02 pm
Forum: newLISP in the real world
Topic: a journey in seek of a new language
Replies: 2
Views: 1115

Re: a journey in seek of a new language

Hi there. The wikibooks was intended as a general and gentle introduction, perhaps for people such as engineers or non-programmers who want to introduce some automation to their work. This mirrors newLISP itself, which is similarly not directed purely towards computer science graduates and experienc...
by cormullion
Fri May 16, 2014 4:00 pm
Forum: newLISP in the real world
Topic: Is there a List comprehensions macro?
Replies: 3
Views: 1220

Re: Is there a List comprehensions macro?

Not sure, I don't think it does. Of course you can easily say: (dolist (x b) (dolist (y a) (push (list x y) results -1))) but presumably this isn't a list comprehension, just a nested list iteration. Although I glanced through the Wikipedia entry and the Rosetta code examples, I didn't get the conce...
by cormullion
Wed May 14, 2014 7:36 am
Forum: Anything else we might add?
Topic: int option of regexp
Replies: 2
Views: 1593

Re: int option of regexp

Also in the manual:

"Several options can be combined using a binary or | (pipe) operator. E.g. (| 1 4) would combine options 1 and 4."
by cormullion
Wed May 07, 2014 7:46 am
Forum: newLISP in the real world
Topic: Installing nL on Rockets gives index.cgi text
Replies: 5
Views: 1382

Re: Installing nL on Rockets gives index.cgi text

I think you've done the right thing by asking Jeremy for help... :) Although it sounds like an Apache/file permissions thing, rather than newLISP.
by cormullion
Sun May 04, 2014 5:46 pm
Forum: Anything else we might add?
Topic: array literal and Tail Call Optimization
Replies: 3
Views: 2433

Re: array literal and Tail Call Optimization

Some previous posts: http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=5&t=4131&hilit=tail+call http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=15&t=2748&hilit=tail+call http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=5&t=4131&hilit=tail+call http://www.newlispfanclub.alh.net/f...
by cormullion
Thu May 01, 2014 8:36 am
Forum: Anything else we might add?
Topic: A strange problem. Quite confusing
Replies: 6
Views: 2851

Re: A strange problem. Quite confusing

Don't forget to use + - * / % rather than add sub mul div mod for integers...

If you find any errors or can add suggestions http://en.wikibooks.org/wiki/Introducti ... th_numbers, please do! :)
by cormullion
Wed Apr 30, 2014 10:46 pm
Forum: Anything else we might add?
Topic: A strange problem. Quite confusing
Replies: 6
Views: 2851

Re: A strange problem. Quite confusing

I don't think pow is big-integer friendly - has (pow 9 17) already exceeded 64-bit integer range and converted to float? The addition of bigint into newLISP is very recent, and at the moment I don't think all arithmetic operations can handle them. newLISP isn't designed to be as maths-aware a langua...
by cormullion
Tue Apr 29, 2014 11:04 am
Forum: newLISP in the real world
Topic: strange result with map and apply
Replies: 7
Views: 1616

Re: strange result with map and apply

How about:

Code: Select all

(set-ref-all '(*) '(("1" "2" "3") ("4")) (map int $it) match)
;-> ((1 2 3) (4))
I admit that match is the one area in newLISP that I always fail to get right in the first few attempts... :)
by cormullion
Mon Apr 14, 2014 7:23 pm
Forum: newLISP in the real world
Topic: Newbie help with Artful-Mysql
Replies: 14
Views: 3338

Re: Newbie help with Artful-Mysql

:) The plan was to get the newLISP syntax into the linguist code, but even with help I can't get my pull request past the "Travis build" phase. I have no idea what Github are doing (busy watching hula-hooping work colleagues?) but they couldn't have made it more difficult .... I think we'll just hav...
by cormullion
Mon Apr 14, 2014 5:41 pm
Forum: newLISP in the real world
Topic: Newbie help with Artful-Mysql
Replies: 14
Views: 3338

Re: Newbie help with Artful-Mysql

Ah, so it was the self-ish additions that were wrong... Good job, mate! (I assume, I can't run the code...)