Re: Rebuilding functions at run-time



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__
.



Relevant Pages

  • Re: Rebuilding functions at run-time
    ... itself (and also would prove the power of Lisp, I'm trying to push mi ... limits a bit here and learn something valuable) ...
    (comp.lang.lisp)
  • Re: McGuffins (was Re: Meltdown imminent at DC?
    ...  Even if you set limits on ... Green Lanterns by their will power and creativity is all that any ... go beyond the limits (at the cost of exhaustion, disorientation, some ... Besides yellow and the 24-hour charge, the ring could do whatever the ...
    (rec.arts.comics.dc.universe)
  • Re: Building Unification Table - tranforming prolog like notation into lisp notation
    ... |> problem comes from tranlating prolog notation into lisp notation. ... ;; Here is a quickly done stack based solution for the problem Slobodan ... (defstruct composite-term str indices) ... (push (cons (composite-term-str item) ...
    (comp.lang.lisp)
  • Re: McGuffins (was Re: Meltdown imminent at DC?
    ... Green Lanterns by their will power and creativity is all that any good ... go beyond the limits (at the cost of exhaustion, disorientation, some ... Let's just say that a GL wills his opponent into a Scienticell. ... Danger Room! ...
    (rec.arts.comics.dc.universe)
  • Re: Serious, moderate discussion about Wesley Snipes
    ... The constitution is a concoction dreamed up by a bunch of guys who are ... It set limits on federal ... Here's what it says to me: 1) "Congress shall have power to lay and ... No shit. ...
    (misc.taxes)