Search found 78 matches

by David Mullen
Tue Aug 25, 2015 3:57 pm
Forum: Common Lisp
Topic: Saving and loading objects that reference of objects?
Replies: 2
Views: 8281

Re: Saving and loading objects that reference of objects?

There isn't any way that's typical. Various approaches have been taken in real-world systems. An initial consideration is whether or not you need to deal with multiple references to the same object. If the objects are restricted to hierarchical relationships or can be seen as a hierarchy then that m...
by David Mullen
Fri Jul 03, 2015 3:56 pm
Forum: Common Lisp
Topic: Paul Graham's Hackers And Painters
Replies: 1
Views: 7728

Re: Paul Graham's Hackers And Painters

Common Lisp historically tried to be operating-system-agnostic, whereas the Open Source culture has tended to be aggressively Unix-centric. From that perspective it probably makes sense to relegate Common Lisp to some kind of academic "enlightenment" ideal. And if you're doing your program...
by David Mullen
Fri May 29, 2015 12:42 pm
Forum: Common Lisp
Topic: Exercise Problem
Replies: 1
Views: 7552

Re: Exercise Problem

Would it be acceptable to use the Common Lisp READ function here? Are the height measurements intended as floating-point numbers? Fixed-point? If the numbers are fixed-width—one digit before the decimal point, and two digits after it—then I'll just go ahead and use string-wise comparisons on the...
by David Mullen
Mon Feb 09, 2015 2:05 pm
Forum: Common Lisp
Topic: Save data structures directly (not as pointer)
Replies: 2
Views: 8941

Re: Save data structures directly (not as pointer)

C++ templates are type-safe and Common Lisp is dynamically typed, so there's no direct comparison to be made here. If you want to work with C-style data structures then your best bet is to use the Foreign Function Interface of your Common Lisp implementation.
by David Mullen
Mon Feb 09, 2015 12:16 pm
Forum: Common Lisp
Topic: Macros multiple return values
Replies: 3
Views: 10567

Re: Macros multiple return values

If you want to return values at runtime then you can't do it by using VALUES at macroexpansion time. You'd need to do this—if what you want to do is return the values from all three parts consecutively: (defmacro special-procedure (&body body) `(values-list (append (multiple-value-list (do-som...
by David Mullen
Sun Dec 14, 2014 12:01 pm
Forum: Common Lisp
Topic: ,. vs ,@
Replies: 2
Views: 6602

Re: ,. vs ,@

Common Lisp has non-destructive and destructive versions of some functions—REVERSE and NREVERSE, for example. So the backquote syntax has ",." (destructive) and ",@" (non-destructive). Some simple examples of how the backquote syntax expands to regular call forms: ? '`(foo ,@ba...
by David Mullen
Wed Dec 10, 2014 2:10 pm
Forum: Common Lisp
Topic: problems with read macros
Replies: 2
Views: 6235

Re: problems with read macros

I can't see the exact problem here without seeing the other read-macro, but it might be clearer to set up a specific readtable for each use of the comma character that's different from the standard readtable.
by David Mullen
Mon Dec 01, 2014 12:37 pm
Forum: Other Tools
Topic: Hemlock editor
Replies: 4
Views: 21184

Re: Hemlock editor

This discussion may be relevant. It mentions "ccl-ide-init.lisp" which isn't documented.