Search found 253 matches

by Tim Johnson
Wed Mar 04, 2015 4:20 pm
Forum: Whither newLISP?
Topic: Eric Raymond Blog - Small community scripting languages
Replies: 8
Views: 10098

Re: Eric Raymond Blog - Small community scripting languages

Ryon wrote:Mail is sent from newlispfanclub at alh dot net, to the address in your Control Panel > Profile > Edit Account Settings page.
Understood. Apparently it was not my filter, just Saveing the default settings has resulted my receipt of notifications .... thanks
by Tim Johnson
Tue Mar 03, 2015 7:01 pm
Forum: Whither newLISP?
Topic: Eric Raymond Blog - Small community scripting languages
Replies: 8
Views: 10098

Re: Eric Raymond Blog - Small community scripting languages

Thanks Ryon, I'll follow your instructions. Also, could you tell me what the exact email address of the notification is? I may very well have a filter that is catching it in error and rerouting it. Edited : I checked the default settings for Edit Posting Results and replies were enabled by default. ...
by Tim Johnson
Tue Mar 03, 2015 12:59 am
Forum: Whither newLISP?
Topic: Eric Raymond Blog - Small community scripting languages
Replies: 8
Views: 10098

Re: Eric Raymond Blog - Small community scripting languages

Good to hear from everyone. Surprising tidbit about autolisp! Bye the way, I have not got any notifications about replies to this thread. I have checked "Notify me when a reply is posted" under options. Email address as stored in my User Control Panel is current. Is there anything else that I need t...
by Tim Johnson
Sat Feb 28, 2015 11:43 pm
Forum: Whither newLISP?
Topic: Eric Raymond Blog - Small community scripting languages
Replies: 8
Views: 10098

Eric Raymond Blog - Small community scripting languages

I just came across the thread about the Eric Raymond blog. Since it dates back to June 2014 - I thought I would start another one. I found blog very interesting, with the some smug pushback, but not nearly as virulent as pushback I've seen on Common Lisp venues years past. I would note that at one t...
by Tim Johnson
Wed Dec 14, 2011 11:01 pm
Forum: Anything else we might add?
Topic: Off topic: What web hosting do you like/recommend?
Replies: 23
Views: 17367

Re: Off topic: What web hosting do you like/recommend?

Since it has been several years since I last posted regarding Hostmonster, I want to say that I have
moved all of my domains to hostmonster and I haven't been able to think of anything bad about them at all. Their tech support is spot on and they have turned out to be very reliable.
by Tim Johnson
Sat Jul 17, 2010 5:48 pm
Forum: newLISP in the real world
Topic: REPL and newline
Replies: 10
Views: 3312

Re: REPL and newline

Time didn't permit me to read this thread thoroughly, but I use both vim and emacs and have done considerable scripting for each. If you use linux (and I presume that you may do the same on OS X), in vim you can 1)Grab some text in visual mode 2)Feed it to a temporary file 3)Evaluate the temporary f...
by Tim Johnson
Thu Jul 01, 2010 4:13 pm
Forum: newLISP in the real world
Topic: SBCL to newLISP
Replies: 19
Views: 6569

Re: SBCL to newLISP

Michael, I've never used setf like that. The docs say
setf is used when setting list or array references
but I see from my own console:

Code: Select all

> (setf a 1)
1
> a
1
Curiouser and curiouser
by Tim Johnson
Wed Jun 30, 2010 8:00 pm
Forum: newLISP in the real world
Topic: SBCL to newLISP
Replies: 19
Views: 6569

Re: SBCL to newLISP

I don't understand, why "but"? His test code shows it's better to use one call.
Oh for Pete's Sake, you're right, my brain has been AWOL these couple of days!
I misread the results.
thanks
tim
by Tim Johnson
Wed Jun 30, 2010 7:15 pm
Forum: newLISP in the real world
Topic: SBCL to newLISP
Replies: 19
Views: 6569

Re: SBCL to newLISP

The idea of using one call to set with multiple symbol/value pairs versus multiple calls to set with just one symbol/value pair for each call appeals to my aversion to redundancy. but michael makes a compelling case in the test code that he posted. I should have some time in the next few days to run...
by Tim Johnson
Tue Jun 29, 2010 6:45 pm
Forum: newLISP in the real world
Topic: SBCL to newLISP
Replies: 19
Views: 6569

Re: SBCL to newLISP

I'll buy that one. I wonder if differences would change with more complex data types?
thanks
tim
by Tim Johnson
Tue Jun 29, 2010 5:44 pm
Forum: newLISP in the real world
Topic: SBCL to newLISP
Replies: 19
Views: 6569

Re: SBCL to newLISP

Also, why use multiple calls to 'set when one will do?
cheers
tim
by Tim Johnson
Sat May 22, 2010 3:58 pm
Forum: newLISP newS
Topic: newlisp.vim 1.31
Replies: 10
Views: 6513

Re: newlisp.vim 1.31

I have the following " .vimrc autocmd BufNewFile,BufRead *.lsp set filetype=newlisp autocmd BufRead,BufNewFile *.lsp setlocal shiftwidth=2 tabstop=2 I put newlisp.vim in my ~/.vim/syntax directory I also put my own auxiliary newlisp.vim in ~/.vim/after/syntax In there I put stuff like highlighting f...
by Tim Johnson
Tue May 04, 2010 3:34 pm
Forum: newLISP in the real world
Topic: accessing a list number by a symbol for a list
Replies: 3
Views: 1976

Re: accessing a list number by a symbol for a list

And we use 'slice as in

Code: Select all

(slice (map eval ndxs) 1)
Implicit indexing is great feature. I might add to the documentation of
this subject something of the subject here.

I.E. use of symbols, etc.

:)But then, I'm a real noob when it comes to the functional programming paradigm.
by Tim Johnson
Tue May 04, 2010 2:13 am
Forum: newLISP in the real world
Topic: accessing a list number by a symbol for a list
Replies: 3
Views: 1976

Re: accessing a list number by a symbol for a list

Code: Select all

> (record (map eval ndxs))
Sure does. 'map threw me for a bit of a loop because

Code: Select all

(record (map (eval ndxs)))
generates an error.
thanks.
by Tim Johnson
Mon May 03, 2010 9:56 pm
Forum: newLISP in the real world
Topic: accessing a list number by a symbol for a list
Replies: 3
Views: 1976

accessing a list number by a symbol for a list

> (set 'record '(("name" "Tim")(age 61))) (("name" "Tim") (age 61)) > (set 'indices '(1 0)) (1 0) > (record indices) age ;; correct > (set 'ndxs '(a b)) (a b) > (record ndxs) ERR: value expected : ;; duh! So how may I 'bind' the values in 'ndxs to the implicit indexing of 'record? I'm hoping there ...
by Tim Johnson
Wed Apr 28, 2010 3:22 pm
Forum: newLISP in the real world
Topic: Stitching lists together
Replies: 5
Views: 2346

Re: Stitching lists together

I use this function

Code: Select all

(define (merge)(transpose (args)))
Lutz is a man of few words ...
by Tim Johnson
Tue Apr 27, 2010 5:58 pm
Forum: newLISP newS
Topic: Development release newLISP v.10.2.3
Replies: 4
Views: 3667

Re: Development release newLISP v.10.2.3

- bug fixes and additional syntax patterns for 'net-connect' and 'net-service' for CHANGES notes and source package see here: http://www.newlisp.org/downloads/development/ this is is a source-only release Not to quibble, but it is v. 10.2.4 at the link above. Another successful compile and install ...
by Tim Johnson
Sat Apr 03, 2010 3:33 pm
Forum: Anything else we might add?
Topic: newlisp as a General Purpose java front end.
Replies: 7
Views: 5805

Re: newlisp as a General Purpose java front end.

Of the two other members of my family that are programmers, they are both java programmers. One of them full-time, the other splits her time about 60-40 between java and php. I don't like java, and it is as verbose as C, which I used for 12 years, even for CGI programming. I would hate to have to le...
by Tim Johnson
Thu Mar 25, 2010 3:40 pm
Forum: newLISP in the real world
Topic: Hash functions within a context do not see context members
Replies: 2
Views: 1494

Re: Hash functions within a context do not see context members

No sure what you mean. In the following smaller example you can see 'outer-var' recognized: Note that I placed the define for 'typeHander inside of the context. I moved the define outside of the context and now the hash functions have context scope. I.E. It appears that the context members are now ...
by Tim Johnson
Thu Mar 25, 2010 1:34 am
Forum: newLISP in the real world
Topic: Hash functions within a context do not see context members
Replies: 2
Views: 1494

Hash functions within a context do not see context members

I have a solution, but don't fully understand the issue: I've set up a typehandler/callback using a hash with functions as in (define typeHandler:typeHandler) (typeHandler "text" (fn (fl val ndxs DS DSndx) (letn((ndx (ndxs 0))(ele (fl ndx)) (attrs(set-attr (list "value" val)(ele 2 1)))) (setf (DS DS...
by Tim Johnson
Wed Mar 24, 2010 1:04 am
Forum: newLISP in the real world
Topic: Function dispatch or callback list
Replies: 5
Views: 2622

Re: Function dispatch or callback list

I think that your method will make modification easier also.
Thanks very much Lutz.
I hadn't even considered hashes.
by Tim Johnson
Tue Mar 23, 2010 11:11 pm
Forum: newLISP in the real world
Topic: Function dispatch or callback list
Replies: 5
Views: 2622

Re: Function dispatch or callback list

And one more step, factoring out 'list calls by using eval in the dispatcher: (set 'callback-list '(("int" (fn(arg1 arg2) (println "heellllooo from the 'int handler") (println arg1 " " arg2))) ("text" (fn(arg1 arg2) (println "heellllooo from the 'text handler") (println arg1 " " arg2))))) (define (d...
by Tim Johnson
Tue Mar 23, 2010 6:20 pm
Forum: Anything else we might add?
Topic: newlisp as a General Purpose java front end.
Replies: 7
Views: 5805

Re: newlisp as a General Purpose java front end.

I suspect that part of the silence is to do with the fact that topics in this forum don't appear in the RSS feed or the Active topics list. I only noticed it because I happened to look at the Dragonfly section after seeing a tweet... Why is that? Is there something in my settings configuration that...
by Tim Johnson
Mon Mar 22, 2010 11:58 pm
Forum: newLISP in the real world
Topic: Function dispatch or callback list
Replies: 5
Views: 2622

Re: Function dispatch or callback list

Hey, I like your approach. And taking it one step further using 'fn : (set 'funcs (list (list "int" (fn(arg1 arg2)(println "DO-INT - arg1: " arg1 " arg2: " arg2))) (list "text" (fn(arg1 arg2)(println "DO-TEXT - arg1: " arg1 " arg2: " arg2))))) (define (f key) (lookup key funcs)) ((f "text") "one" "t...
by Tim Johnson
Mon Mar 22, 2010 10:52 pm
Forum: newLISP in the real world
Topic: Function dispatch or callback list
Replies: 5
Views: 2622

Function dispatch or callback list

In python I'm used to doing something like this: funcs = {"one":func1,"two":func2} ## etc ## Called as: funcs[task](arg1 arg2) I did this in newlisp: (set 'funcs '(("int" do-int)("text" do-text))) (define (do-int arg1 arg2) (println "DO-INT - arg1: " arg1 " arg2: " arg2) ) (define (do-text arg1 arg2...