Re: Rebuilding functions at run-time
- From: pjb@xxxxxxxxxxxxxxxxx (Pascal J. Bourguignon)
- Date: Thu, 16 Apr 2009 16:31:09 +0200
Francisco Vides =??B?RmVybsOhbmRleg==?= <fvides@xxxxxxxxxxxxxxxxxxxx> writes:
Yes, that works, but it would be more nice and dynamic if the function do
itself (and also would prove the power of Lisp, I'm trying to push mi
limits a bit here and learn something valuable)
What I have not explained in the solution I proposed is that it means
a change of point of view. The idea is that the function goes reading
the file everytime it needs to output its contents. This is the basic
functionally you've described. Then you may want to cache that data
to avoid rereading it when the file didn't change. For this however,
we don't have a lot of features to rely on in CL. We can use
FILE-WRITE-DATE, but an implementation may return NIL, in which case
we're at the same point and we have to read the whole file again to
see if it changed.
In anycase, caching and processing are orthogonal concerns that you
should consider separately.
--
__Pascal Bourguignon__
.
- Follow-Ups:
- Re: Rebuilding functions at run-time
- From: Francisco Vides =??B?RmVybsOhbmRleg==?=
- Re: Rebuilding functions at run-time
- References:
- Rebuilding functions at run-time
- From: Francisco Vides =??B?RmVybsOhbmRleg==?=
- Re: Rebuilding functions at run-time
- From: Tamas K Papp
- Re: Rebuilding functions at run-time
- From: Francisco Vides =??B?RmVybsOhbmRleg==?=
- Re: Rebuilding functions at run-time
- From: Alessio Stalla
- Re: Rebuilding functions at run-time
- From: Francisco Vides =??B?RmVybsOhbmRleg==?=
- Rebuilding functions at run-time
- Prev by Date: Re: compiling (Qi to) Lisp to Python: some observations
- Next by Date: Re: Rebuilding functions at run-time
- Previous by thread: Re: Rebuilding functions at run-time
- Next by thread: Re: Rebuilding functions at run-time
- Index(es):
Relevant Pages
|