Search found 19 matches
- Tue Jan 02, 2018 11:20 am
- Forum: Common Lisp
- Topic: Read Text File In Current Directory
- Replies: 6
- Views: 52757
Re: Read Text File In Current Directory
I've tried using *default-pathname-defaults* before, but it always comes up as an empty string because it seems I'm not able to practically "control the directory I start Lisp in." It should be a pathname, actually, rather than a string. However, it's weird that it's empty. How do you acc...
- Tue Dec 19, 2017 6:35 pm
- Forum: Common Lisp
- Topic: Read Text File In Current Directory
- Replies: 6
- Views: 52757
Re: Read Text File In Current Directory
In the Lisp universe, the counterpart of the current working directory is the *default-pathname-defaults* variable. It's similar, but better. When Lisp starts, typically it bounds *default-pathname-defaults* to the current directory. Suppose I've got directories ~/test/a & ~/test/b & a file ...
- Sat Nov 22, 2014 3:34 pm
- Forum: Common Lisp
- Topic: Optimizing Common Lisp Speed and executable Size
- Replies: 4
- Views: 10502
Re: Optimizing Common Lisp Speed and executable Size
Unfortunately, this is not possible, at least not with free implementations.porky11 wrote: How can I only load functions, I will need in the program?
- Sat Nov 22, 2014 3:32 pm
- Forum: Common Lisp
- Topic: Optimizing Common Lisp Speed and executable Size
- Replies: 4
- Views: 10502
Re: Optimizing Common Lisp Speed and executable Size
Most likely, the bottleneck is the loading of external libraries, i. e. trivial-shell and cl-json. You could time your function in the REPL using the TIME function and time your script in the shell, I guess the former must take much less time than the latter. Personally, for small script-like progra...
- Thu Nov 20, 2014 10:02 am
- Forum: Common Lisp
- Topic: CLISP ext:execute
- Replies: 1
- Views: 5937
Re: CLISP ext:execute
Actually you should try and use UIOP, a portable wrapper for OS-related functionality. It is a part of ASDF3 and should be available out of the box (you could also check if your *features* have ASDF3). The command would be then (uiop:run-program "unzip zipfile.zip -d destinationdir/") UIOP...
- Fri Nov 07, 2014 1:41 pm
- Forum: Common Lisp
- Topic: define self-biulding function library with lispworks
- Replies: 3
- Views: 8472
Re: define self-biulding function library with lispworks
SBCL is the most active free implementation, and a very efficient one. You could also try CLISP or CCL. As an IDE I use vim + slimv, but the vast majority chooses Emacs + Slime. The way you put it, your library should work with any implementation. The function LOAD loads specified lisp file executin...
- Thu Dec 12, 2013 3:12 pm
- Forum: VI and VIM
- Topic: slimv: indentation
- Replies: 0
- Views: 70782
slimv: indentation
I wonder if there's a way to customize indentation in slimv. First of all, it doesn't handle DO properly (the second pair of parentheses must be indented as the first one). Another issue: although I can do :set lispwords-=if and thus properly indent IF, I don't know how to obtain the same effect wit...
- Thu Oct 10, 2013 8:36 am
- Forum: Common Lisp
- Topic: GNU CLISP on Windows7
- Replies: 5
- Views: 12178
Re: GNU CLISP on Windows7
It has been ported to Windows. One can even install LispBox and not care about Emacs settings or Lisp implementations (since one is included).roboticist wrote:I may actually implement emacs on Windows
Other options are vim + slimv and perhaps able.
- Sat Oct 05, 2013 3:06 pm
- Forum: Common Lisp
- Topic: GNU CLISP on Windows7
- Replies: 5
- Views: 12178
Re: GNU CLISP on Windows7
Why not use Emacs with CLISP?
What do you mean by `producing result'? You could try to build any open source project...
What do you mean by `producing result'? You could try to build any open source project...
- Mon Jul 08, 2013 4:13 pm
- Forum: Common Lisp
- Topic: LTK: listbox
- Replies: 3
- Views: 8385
Re: LTK: listbox
As for the listvariable, there's obviously no way to use it: http://permalink.gmane.org/gmane.lisp.ltk.user/494 However, it's not hard to implement mutatis mutandis : (defclass tklistvariable ()) (defmethod initialize-instance :around ((v tklistvariable) &key) (call-next-method) (format-wish &qu...