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: 3950

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: 3452

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 programming at th...
by David Mullen
Fri May 29, 2015 12:42 pm
Forum: Common Lisp
Topic: Exercise Problem
Replies: 1
Views: 3660

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: 4205

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: 4932

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-somethi...
by David Mullen
Sun Dec 14, 2014 12:01 pm
Forum: Common Lisp
Topic: ,. vs ,@
Replies: 2
Views: 3526

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 ,@bar) (LIST* 'FOO BAR) ...
by David Mullen
Wed Dec 10, 2014 2:10 pm
Forum: Common Lisp
Topic: problems with read macros
Replies: 2
Views: 3370

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: 8614

Re: Hemlock editor

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