Search found 52 matches

by conan
Fri Dec 20, 2013 2:36 am
Forum: newLISP in the real world
Topic: if we can see line number in error message
Replies: 11
Views: 5727

Re: if we can see line number in error message

Beautiful. Please don't die.
by conan
Wed Dec 18, 2013 3:18 pm
Forum: newLISP in the real world
Topic: if we can see line number in error message
Replies: 11
Views: 5727

Re: if we can see line number in error message

One could build a better debugger using the current debugging facilities and reflective API offered by newLISP and without changing anything inside newLISP. When you said that, do you mean it is possible to build a debugger which can point to the proper line of code ? I think one of the big problem...
by conan
Wed Dec 18, 2013 2:57 pm
Forum: newLISP in the real world
Topic: if we can see line number in error message
Replies: 11
Views: 5727

Re: if we can see line number in error message

Some time ago Lutz replied here (i searched for it, but couldn't find it) that it wasn't possible without making newLisp go slower. Also that given the nature of the two step parsing newLisp does, source line numbers get lost. I'm quoting from memory so maybe this is not exactly what he said. But th...
by conan
Sun Dec 15, 2013 3:36 pm
Forum: newLISP Graphics & Sound
Topic: HTML Tag functions?
Replies: 10
Views: 11651

Re: HTML Tag functions?

I haven't touched that code in some time now. Furthermore I have some un-pushed changes here in my disc, I changed several things to make it easier to use, for example, to avoid: Every function needs at least one parameter for the inner code, hence the empty strings in the example above. There's no ...
by conan
Fri Nov 01, 2013 4:45 pm
Forum: newLISP in the real world
Topic: Bug of (context Foo)?
Replies: 9
Views: 3817

Re: Bug of (context Foo)?

You forgot to quote Foo on your second example:

Code: Select all

(context 'Foo)
Other than that I don't see anything wrong with that. What error are you seeing?
by conan
Thu Oct 24, 2013 2:22 pm
Forum: newLISP and the O.S.
Topic: Newlisp won't run on 64bit Kubuntu? (13.04)
Replies: 4
Views: 4764

Re: Newlisp won't run on 64bit Kubuntu? (13.04)

What happens if you try running it directly, not through the symbolic link:

/usr/bin/newlisp-10.5.4

What does say 'file' command about that file?

The reported error looks like a shell/file issue, but you show the file there... Strange!
by conan
Fri Oct 11, 2013 7:35 pm
Forum: newLISP newS
Topic: Alternative git repository
Replies: 8
Views: 14318

Re: Alternative git repository

Ah! Beautiful! I didn't knew that about SF. Thanks Kosh. Altough, why not github.com? And... Doesn't have Lutz a git repo somewhere? How does his development? CVS?! :P
by conan
Fri Oct 11, 2013 12:34 pm
Forum: newLISP newS
Topic: Alternative git repository
Replies: 8
Views: 14318

Re: Alternative git repository

Did you do this with a specific purpose or just for replication?
by conan
Wed Oct 09, 2013 9:31 am
Forum: newLISP in the real world
Topic: Newlisp telnet
Replies: 2
Views: 2057

Re: Newlisp telnet

What do you mean by "real terminal"? To have line editing capability?
by conan
Tue Sep 10, 2013 10:21 am
Forum: newLISP in the real world
Topic: Iterator pattern like python?
Replies: 2
Views: 2142

Re: Iterator pattern like python?

Further elaboration on xytroxon reply: (context 'next) (setq seenSymbols '()) (define-macro (next:next aList) (unless (ref (string aList) next:seenSymbols) (push (list (string aList) (copy (eval aList))) next:seenSymbols)) (pop (next:seenSymbols (first (ref (string aList) next:seenSymbols)) 1)) ) Ex...
by conan
Sat Jul 27, 2013 12:25 pm
Forum: newLISP in the real world
Topic: How to implement function overwriting
Replies: 2
Views: 2106

Re: How to implement function overwriting

You define your functions without arguments, like this: (define (foo) (println $args)) ; -> (lambda () (println $args)) (foo 1 2 3) ; -> (1 2 3) I put $args, but you can also use functions args or doargs . Check the manual for them, there're nice examples. You may want to test the arguments' type to...
by conan
Mon Jun 24, 2013 1:06 pm
Forum: newLISP in the real world
Topic: newLISP on Rockets
Replies: 20
Views: 12137

Re: newLISP on Rockets

I was hesitant to join this topic, I didn't want this to become a dry discussion. Just for completeness, I'll reply your questions before: I assume that you didn't visit the page after hitting ^C... Did you try Cmd/Ctrl-Shift-R (or a different browser)? Also, try following these instructions to get ...
by conan
Sun Jun 23, 2013 7:39 am
Forum: newLISP in the real world
Topic: newLISP on Rockets
Replies: 20
Views: 12137

Re: newLISP on Rockets

The exact same thing:
Steps to reproduce
Steps to reproduce
steps.cropped.png (19.69 KiB) Viewed 11499 times
Result
Result
result.png (24 KiB) Viewed 11499 times
by conan
Sun Jun 23, 2013 12:10 am
Forum: newLISP in the real world
Topic: newLISP on Rockets
Replies: 20
Views: 12137

Re: newLISP on Rockets

Well it surely looks like your framework is unmaintained. Now you post there's a new version, so I wanted to give it a try, followed README indications and this is what I got for the example: ERR: invalid function : (load-files-in-dir (string DRAGONFLY_ROOT "/lib") ".lsp$") I don't want to diminish ...
by conan
Fri Jun 21, 2013 2:47 am
Forum: newLISP in the real world
Topic: how to wrap functions from a context without prefixing?
Replies: 2
Views: 2210

Re: how to wrap functions from a context without prefixing?

Thanks for your reply xytroxon. However I'm looking for a different concept. I'm still not there, but my idea is that only proper HTML5 code comes from my DSL, my objective is to produce valid HTML without the need to validate it. Anyway I found a partial answer to my previous question, first I did ...
by conan
Thu Jun 20, 2013 12:50 am
Forum: newLISP in the real world
Topic: how to wrap functions from a context without prefixing?
Replies: 2
Views: 2210

how to wrap functions from a context without prefixing?

This is a mock-up to simplify my question. I got these scheme: hin.lsp (context 'hin) (define (hin-show) (println "from hin.lsp")) wrappers.lsp (load "hin.lsp") (define (wrap-one) (context hin) (hin-show) ; this wont work (context MAIN)) main.lsp (load "wrappers.lsp") (wrap-one) File hin.lsp contain...
by conan
Thu Jun 13, 2013 11:17 pm
Forum: So, what can you actually DO with newLISP?
Topic: gocurcon: Google Currency Converter Scrapper
Replies: 2
Views: 5483

gocurcon: Google Currency Converter Scrapper

Hi all, I wanted to share a tiny script which allows me to query google/finance/converter from the CLI. It's not much of a scrapper really, but I couldn't come up with a better word to describe it. It does scrap! Really! :P Check it here: https://github.com/conan-lugmen/newlisp-webscraps I have two ...
by conan
Sun Jun 02, 2013 10:03 pm
Forum: newLISP newS
Topic: newlisp.vim 1.37
Replies: 5
Views: 12925

Re: newlisp.vim 1.37

Thank-you-very-much-indeed! :)
by conan
Tue May 28, 2013 8:55 pm
Forum: newLISP in the real world
Topic: Parse very big XML file (Openstreetmap)
Replies: 2
Views: 2550

Re: Parse very big XML file (Openstreetmap)

DISCLAIMER: I haven't worked with big XML files. It seems you have to split your XML file but I don't know how that will affect xml-parse. However, from the manual: Using a call back function Normally, xml-parse will not return until all parsing has finished. Using the func-callback option, xml-pars...
by conan
Fri May 24, 2013 10:28 pm
Forum: Anything else we might add?
Topic: Keywords for newLISP in the Clojure style
Replies: 13
Views: 9067

Re: Keywords for newLISP in the Clojure style

The intellectual exercise was meant to make us think if the language would benefit from adding some syntactic sugar. It was never the argument: "This stuff cannot be done in newlisp without keywords". Maybe I'm shortsighted, but I think about contexts as the last frontier which can protect stuff fro...
by conan
Fri May 24, 2013 2:12 pm
Forum: Anything else we might add?
Topic: Keywords for newLISP in the Clojure style
Replies: 13
Views: 9067

Re: Keywords for newLISP in the Clojure style

Relating the side note: I was wrong when I said I made a self-modifying function, I had just modified a function from another one. Interesting use of pop and push, I'll play a little with it later. To the topic at hand: We've said keywords could serve three purposes: 1. as one-time-with-no-previous-...
by conan
Thu May 23, 2013 3:36 am
Forum: Anything else we might add?
Topic: Keywords for newLISP in the Clojure style
Replies: 13
Views: 9067

Re: Keywords for newLISP in the Clojure style

First, so you know we're on the same page: I'm for the inclusion of keywords, like the ones I talked above (which I think are the same you're asking for), in newLisp. However, I'm not quite comfortable with using colon as keyword designator since it already has another uses in newLisp, and even if i...
by conan
Wed May 22, 2013 1:29 am
Forum: Anything else we might add?
Topic: Keywords for newLISP in the Clojure style
Replies: 13
Views: 9067

Re: Keywords for newLISP in the Clojure style

Indeed I was writing my post around the same time Lutz did, so I didn't see his post. That foo macro looks like what I think I saw. Anyway, rickyboy, I don't know about keywords in Clojure, but I think it stole them from CL, I think Ruby did the same. Well it doesn't matter. I thought you were refer...
by conan
Tue May 21, 2013 6:08 pm
Forum: Anything else we might add?
Topic: Keywords for newLISP in the Clojure style
Replies: 13
Views: 9067

Re: Keywords for newLISP in the Clojure style

Title could also be "Keywords for newLISP in the Common Lisp style".

I agree those kind of keywords are useful.

Also, is it possible I've seen some macro-stuff here in the forum to emulate them?
by conan
Sat May 18, 2013 7:05 pm
Forum: Whither newLISP?
Topic: magic numbers
Replies: 10
Views: 11326

Re: magic numbers

Lutz wrote:prefix is a built-in function and should not be redefined without an appropriate reason.
Ooops! I just wanted an innocent constant, not trying to redefine anything.

Didn't want to use uppercase characters to avoid a possible collision with the constants that will be defined. I'll change it.