Search found 18 matches

by johnd
Fri Nov 16, 2012 11:17 pm
Forum: newLISP in the real world
Topic: Amazon Module
Replies: 0
Views: 1136

Amazon Module

Has anyone extended the amazon.lsp module to include dynamo, rds, or beanstalk?

Thanks,
John
by johnd
Thu Apr 08, 2010 6:33 pm
Forum: newLISP newS
Topic: Manual Notes 10.2.1
Replies: 37
Views: 8689

Re: Manual Notes 10.2.1

The manual entry for "sync" should not precede "sym". It should follow the entry for "symbols".

John
by johnd
Sun Oct 04, 2009 4:57 am
Forum: Whither newLISP?
Topic: How Saving Works
Replies: 3
Views: 1411

I can reproduce the errors I'm getting with a small script. The problem is that a lone "[/text]" loads fine when the entire string is less than 2048 characters but causes 2 different errors for lengths exceeding 2048. In short, if I save the symbol that evaluates to a long string (> 2048 chars) cont...
by johnd
Sun Oct 04, 2009 4:10 am
Forum: Whither newLISP?
Topic: How Saving Works
Replies: 3
Views: 1411

How Saving Works

I've created a script that generates a large data structure and then writes it out as follows: ...create data... (save "data.lsp" 'data) (exit) When I load data.lsp in a separate newlisp session, however, I get a error and newlisp exits. This isn't a memory limitation. Although I think a long text s...
by johnd
Tue Oct 21, 2008 10:38 pm
Forum: newLISP in the real world
Topic: Module Contexts
Replies: 6
Views: 1318

Much as I would welcome new sets of useful libraries I think attention must also be paid to the framework in which they are loaded and simple ways for new users to create an use libraries within this framework. I've been using newLISP for several years now and there is no doubt it is the first langu...
by johnd
Tue Oct 21, 2008 7:29 am
Forum: newLISP in the real world
Topic: Module Contexts
Replies: 6
Views: 1318

Module Contexts

newLISP installs with several modules that one can load separately, including cgi.lsp and crypto.lsp. See /usr/share/newlisp/modules I'm interested in using these but I want to be sure I avoid potential name clashes. Some of the contexts created by the individual modules are lower case and others ar...
by johnd
Tue Oct 07, 2008 8:09 pm
Forum: newLISP in the real world
Topic: starts-with question
Replies: 3
Views: 979

Lutz, Thank for your quick reply. The ambiguity you mention is a serious one and it would have to be resolved somehow. Perhaps an additional argument to flag one or the other form. However, it's even more serious when you consider the list might contain both the sublist and the element. I'm a little...
by johnd
Tue Oct 07, 2008 5:25 pm
Forum: newLISP in the real world
Topic: starts-with question
Replies: 3
Views: 979

starts-with question

starts-with now takes a list and expression as an argument. For example: > (starts-with '((1 2) 3 4) '(1 2)) --> true What is the logic for limiting this to just the first element? Doing so makes this little more than syntactic sugar for > (= (first '((1 2) 3 4)) '(1 2)) --> true Could this instead ...
by johnd
Thu Sep 04, 2008 6:27 pm
Forum: newLISP in the real world
Topic: Parse Question
Replies: 1
Views: 771

Parse Question

According to the manual when no str-break token is included in parse the function uses "newLISP's internal parsing rules". Are these described somewhere in the manual? I've noticed some odd behavior with parse > (parse {"john d"} " ") ("\"john" "d\"") > (parse {"john d"}) ("john d") > (parse {john d...
by johnd
Fri Aug 22, 2008 6:44 pm
Forum: newLISP in the real world
Topic: Regex Question
Replies: 2
Views: 886

Regex Question

How does newLISP control the value of system variables in regex? It seems they are set only on non-nil regex results. > (regex ".*([aeiou]{2}).*" "Seattle") ("Seattle" 0 7 "ea" 1 2) > $1 "ea" > (regex ".*([aeiou]{2}).*" "San Francisco") nil > $1 "ea" > If this is the intended behavior it should prob...
by johnd
Fri Aug 08, 2008 5:45 pm
Forum: newLISP in the real world
Topic: Command Line Behavior
Replies: 3
Views: 1111

I should clarify. The purpose of my shell script example was to argue that an inconsistency exists in the way newlisp evaluates command line arguments. I believed it treated my shell script differently. Lutz demonstrated that was not the case. Hence no inconsistency. Thank you for that clarification...
by johnd
Thu Aug 07, 2008 11:11 pm
Forum: newLISP in the real world
Topic: Command Line Behavior
Replies: 3
Views: 1111

Command Line Behavior

According to the manual, newLISP will attempt to load files listed on the command line. Is there any way to control this behavior with a flag? I would like to prevent it. I am sure it is often helpful to have this convenience, but when you want to pass a string as an argument that happens to be the ...
by johnd
Tue Apr 29, 2008 8:52 pm
Forum: newLISP newS
Topic: pop-assoc, assoc, and lookup
Replies: 3
Views: 1259

I mistyped in my last reply

Replace <key> with <key|keylist>

John
by johnd
Tue Apr 29, 2008 8:50 pm
Forum: newLISP newS
Topic: pop-assoc, assoc, and lookup
Replies: 3
Views: 1259

One option would be to treat them all the same (<command> <key> <list> [<options>]) assoc simply copies out of string, pop-assoc removes from the string, and lookup works just like assoc except doesn't return the <key>. Roughly translated, do <command> with this <key> on <list> Lookup could even be ...
by johnd
Tue Apr 29, 2008 5:05 pm
Forum: newLISP newS
Topic: pop-assoc, assoc, and lookup
Replies: 3
Views: 1259

pop-assoc, assoc, and lookup

With the introduction in 9.3 of pop-assoc and modifications to assoc, I was wondering why they don't have the same syntax. Why not allow a form of pop-assoc that allows one to pop based on on key, like the first syntax of assoc? What I'm proposing is this. (pop-assoc (<list> <key>)) be equivalent to...
by johnd
Thu May 10, 2007 3:07 am
Forum: Anything else we might add?
Topic: Textmate Bundle
Replies: 11
Views: 3176

Thanks again Jeff. I'm really looking forward to using this.

John
by johnd
Tue Apr 24, 2007 12:46 am
Forum: Anything else we might add?
Topic: Textmate Bundle
Replies: 11
Views: 3176

Textmate Versions

I've just started using Textmate, and I'm thrilled there is a bundle for newlisp. Jeff, thank you for creating it. Has this been tested on the most recent version of Textmate? When I doubleclick on the bundle icon Textmate tells me that the info.plist is either missing or corrupted (it's not missing...
by johnd
Mon Dec 04, 2006 11:01 pm
Forum: newLISP in the real world
Topic: Symbolic Links
Replies: 3
Views: 1783

Symbolic Links

Does anyone know of a way to detect a symbolic link using newlisp functions? I suspect there is a straightforward way. Consider the following: > !ls -l total 6432 lrwxr-xr-x 1 11 Dec 4 16:36 testpic -> testpic.eps -rw-r--r-- 1 2602422 Dec 4 16:32 testpic.eps > (file-info "testpic.eps") (2602422 3318...