Search found 19 matches

by aidlt
Sun Jul 07, 2013 1:58 am
Forum: Common Lisp
Topic: LTK: listbox
Replies: 3
Views: 7555

Re: LTK: listbox

Thanks, pjstirling, I didn't know that.
by aidlt
Fri Jul 05, 2013 3:36 pm
Forum: Common Lisp
Topic: LTK: listbox
Replies: 3
Views: 7555

LTK: listbox

LTK users here? :) I've come across certain issues concerning the listbox widget. First of all, evidently there's no `activate' method. Suppose I create a listbox with three items and select the second (i. e. the middle) one at the initialization: (with-ltk () (let ((l (make-instance 'listbox))) (li...
by aidlt
Fri Jul 05, 2013 3:07 pm
Forum: Common Lisp
Topic: sed like utility for s-expr
Replies: 5
Views: 9876

Re: sed like utility for s-expr

pjstirling wrote:Won't that a) lose comments and extra whitespace... ?
Surely that will! They are virtually non-existent. :)
by aidlt
Thu Jul 04, 2013 11:30 pm
Forum: Common Lisp
Topic: sed like utility for s-expr
Replies: 5
Views: 9876

Re: sed like utility for s-expr

Why not just READ s-expressions in a loop and process them? A simple example: (defun foo (in out process-sexpr) "Read s-expressions from the stream IN, process them one by one using the function PROCESS-SEXPR and print the results to the steram OUT." (do ((sexpr (read in nil :eof) (read in...
by aidlt
Mon Jul 01, 2013 2:18 am
Forum: Common Lisp
Topic: Using libraries in CLISP scripts
Replies: 3
Views: 6577

Re: Using libraries in CLISP scripts

Thanks, Goheeca, that's great! Both the news and the function, I mean. :) BTW apparently the most speedy approach is to put ltk.fas(l) in the script's directory and load it, then SBCL runs as fast as Python and CLISP is just a little bit slower. However, this is very ad hoc . Perhaps the right thing...
by aidlt
Sun Jun 30, 2013 2:09 pm
Forum: Common Lisp
Topic: Using libraries in CLISP scripts
Replies: 3
Views: 6577

Re: Using libraries in CLISP scripts

So far SBCL wins, both in performance and in outlook. It's a pity it doesn't support shebang. (require 'asdf) (push (merge-pathnames "asdf/" (user-homedir-pathname)) asdf:*central-registry*) (require 'ltk) $ time echo hello world | sbcl --script show-message-sbcl.lisp real 0m1.202s user 0m...
by aidlt
Sun Jun 30, 2013 10:50 am
Forum: Common Lisp
Topic: Using libraries in CLISP scripts
Replies: 3
Views: 6577

Using libraries in CLISP scripts

Hi all. I'm trying to create a simple CLISP script and I'd like to find out what are the most efficient and common ways of loading a library. The script should take a line from stdin and display a message box containing this line. I'm using LTK. This is the Python prototype: #!/usr/bin/env python3 #...
by aidlt
Mon Jun 03, 2013 1:50 pm
Forum: Common Lisp
Topic: File descriptors
Replies: 2
Views: 5417

Re: File descriptors

Thanks, nuntius! I'll check all of those out.
by aidlt
Sun Jun 02, 2013 1:13 pm
Forum: Common Lisp
Topic: File descriptors
Replies: 2
Views: 5417

File descriptors

I'm trying to make a Common Lisp front end to the Asymptote vector graphics language . I'd like to establish communication between a Lisp process and an Asymptote process and I have problems with this. Somehow Asymptote is hard to communicate with. The only working piece of code I have (stripped fro...