Search found 11 matches
- Sun Oct 12, 2008 8:36 pm
- Forum: Common Lisp
- Topic: Please help my head get around 'deftype'
- Replies: 23
- Views: 56609
Re: Please help my head get around 'deftype'
The above strategy makes sense to me and seems quite robust. That's basically what I'm after. Thanks for all the responses!
- Tue Oct 07, 2008 11:56 am
- Forum: Common Lisp
- Topic: Graphics in SBCL
- Replies: 4
- Views: 13704
Re: Graphics in SBCL
In the past, I've just output to a text file in GNU plot format and refreshed the plot when I wanted to see an update. There's also http://www.cl-user.net/asp/libs/cl-plplot (never used it). If you need something more interactive or beyond text and plots, you can also check into the lisp SDL binding...
- Mon Oct 06, 2008 11:27 am
- Forum: Common Lisp
- Topic: How to turn function into a list?
- Replies: 11
- Views: 27685
Re: How to turn function into a list?
Another facility are the functions 'describe', 'describe-object' and 'inspect'. You could parse their output to get the code for a function in list form. Performance concerns aside, these functions are implementation dependent and therefore not portable; so you probably wouldn't want to use them for...
- Tue Sep 30, 2008 12:10 pm
- Forum: Common Lisp
- Topic: Please help my head get around 'deftype'
- Replies: 23
- Views: 56609
Re: Please help my head get around 'deftype'
You can always roll your own function signature tester. This is Lisp, after all. Ah, I was wondering if something like that was doable. Can you briefly describe how this would be accomplished? I assume this would involve getting the AST representation for the function from the symbol referencing th...
- Mon Sep 29, 2008 8:14 pm
- Forum: Common Lisp
- Topic: Please help my head get around 'deftype'
- Replies: 23
- Views: 56609
Re: Please help my head get around 'deftype'
So, I'm still not sure what you are after, exactly: Documentation API enforcement Performance optimization API enforcement is what I'm after in this case. So I still don't see the benefit. In a C++/COM world, type mismatches cause big problems because operations are not type-checked. In Lisp, you c...
- Mon Sep 29, 2008 4:48 pm
- Forum: Common Lisp
- Topic: Please help my head get around 'deftype'
- Replies: 23
- Views: 56609
Re: Please help my head get around 'deftype'
Hi, have you looked at Qi ? It has a static typing system (and has some nice features like pattern matching). A bit. Qi was mentioned in another thread. Having just got my head around Lisp fundamentals, I'm a bit reluctant to stack another language on top but it may very well be the way to go. Than...
- Mon Sep 29, 2008 1:41 pm
- Forum: Common Lisp
- Topic: Poll: Which Lisp implementations do you use?
- Replies: 32
- Views: 108427
Re: Poll: Which Lisp implementations do you use?
I guess it's worth noting that the reason I use SBCL is that as for a relative newcomer to Lisp it is more accessible than many other implementations. I think many folks like a nice syntax highlighted IDE to work in. It didn't take me long to find the Eclipse/CUSP combination and CUSP uses SBCL by d...
- Mon Sep 29, 2008 10:33 am
- Forum: Common Lisp
- Topic: Please help my head get around 'deftype'
- Replies: 23
- Views: 56609
Re: Please help my head get around 'deftype'
Maybe I'm not following you, but why do you care about typing? From your original posting, it sounds like you just need it for documentation purposes, to communicate with users of your API. If that's true, then I'd suggest that you just use well-written doc strings and be done with it. It is true t...
- Sat Sep 27, 2008 2:29 pm
- Forum: Common Lisp
- Topic: Please help my head get around 'deftype'
- Replies: 23
- Views: 56609
Please help my head get around 'deftype'
Hi all, In general, I'm comfortable with the dynamic typing of CL 'except' in a case where I want to lock down interfaces to a package. That is, beyond exporting only the functions I want exported from the package, I want to specify the types of their arguments in the most precise way possible to ma...
- Fri Sep 26, 2008 3:02 pm
- Forum: Common Lisp
- Topic: Languages implemented on Lisp?
- Replies: 10
- Views: 30171
Re: Languages implemented on Lisp?
Wow, Qi looks really cool in particular. This should give me quite a bit to chew on. Thanks!Paul Donnelly wrote:There's Qi, and several Prologs.
http://www.lambdassociates.org/
http://norvig.com/paip/prolog.lisp