Search found 17 matches
- Sun Dec 13, 2015 3:12 am
- Forum: Common Lisp
- Topic: handling standard errors
- Replies: 3
- Views: 10500
Re: handling standard errors
pjstirling: thanks for the heads-up! The instance that the user interacts is on another machine. I need a way to notify him about the error and give details. Possibly raise a similar error there. What is your opinion about this one: (defun func3 (param) (handler-case (eval (read-from-string param)) ...
- Sat Dec 12, 2015 1:09 am
- Forum: Common Lisp
- Topic: handling standard errors
- Replies: 3
- Views: 10500
handling standard errors
I have the following piece of code: (defun func1 (param) (eval (read-from-string param))) param is arbitrary. If there is any error, it ends up in debugger. I wanted to avoid this by adding an error handler: (defun func2 (param) (handler-case (eval (read-from-string param)) (error () "error&quo...
- Mon Sep 28, 2015 4:29 am
- Forum: Common Lisp
- Topic: Clcon - new Common Lisp IDE under construction
- Replies: 7
- Views: 19985
Re: Clcon - new Common Lisp IDE under construction
Cool! Can I try it?
- Fri Jul 03, 2015 1:43 am
- Forum: Emacs
- Topic: SBCL - print to another Emacs buffer
- Replies: 0
- Views: 26438
SBCL - print to another Emacs buffer
My thought is that I could have SBCL threads to monitor folders, schedule things, etc. then when an event is triggered, they would print something to a specific Emacs buffer. Is it possible somehow?
- Thu Jul 02, 2015 6:40 am
- Forum: Common Lisp
- Topic: Creating a hash of hashes
- Replies: 6
- Views: 17556
Re: Creating a hash of hashes
Setting the value of a sub-hashtable: (setf (gethash sub-key (gethash master-key master-table)) sub-value) Using multi-dimensional hashtables leads to code that nobody understands. How can I create a string from a symbol (how can I get its "name"...) ? By using SYMBOL-NAME ... - edgar Edg...
- Thu Jul 02, 2015 6:26 am
- Forum: Common Lisp
- Topic: Storing a Sequence of Number Pairs
- Replies: 2
- Views: 9225
Re: Storing a Sequence of Number Pairs
If the first numbers are unique, I may use a hashtable, which is usually a very efficient data type. I'm not sure about the purpose of your data, though.
- Tue May 12, 2015 12:38 am
- Forum: Common Lisp
- Topic: SBCL sockets
- Replies: 6
- Views: 22483
Re: SBCL sockets
Or better yet, have an additional chapter based on Hunchentoot.pjstirling wrote:IMO land of lisp should just have used hunchentoot for its web server chapter. It's portable and a fully functional, unlike the toy that it presents
- Tue May 28, 2013 3:14 am
- Forum: Emacs
- Topic: Auto-indenting lisp expressions in Emacs
- Replies: 1
- Views: 21823
Re: Auto-indenting lisp expressions in Emacs
OK I got this one: M-x lisp-interaction-mode and M-x auto-indent-mode.
I think I will bind these to a key.
Thanks for helping
I think I will bind these to a key.
Thanks for helping
- Mon May 27, 2013 11:58 pm
- Forum: Emacs
- Topic: Auto-indenting lisp expressions in Emacs
- Replies: 1
- Views: 21823
Auto-indenting lisp expressions in Emacs
How can I get Emacs to properly auto-indent Lisp expressions typed into any buffer? My idea was that I open SLIME in a buffer, then a new file in another buffer and I write code in that another buffer and compile it and use SLIME buffer as REPL. But while there is good auto-indenting in SLIME buffer...
- Mon Apr 22, 2013 7:33 am
- Forum: Common Lisp
- Topic: AllegroCache object binding
- Replies: 0
- Views: 7441
AllegroCache object binding
I have an AllegroCache database which I use to persistently store some data: (defclass test () ((id :index :any-unique :reader id) (text :accessor text)) (:metaclass persistent-class)) now, consider the following: (setf *my-instance* (make-instance 'test :id 0 :text "Blabla")) (commit) thi...