On May 14, 2009, at 10:34 AM, Abdulaziz Ghuloum wrote:
On May 14, 2009, at 2:24 AM, Eduardo Cavazos wrote:
...
You could do stuff like this:
(http-resolver "http://crop-circles.info/libraries")
and the implementation would treat the remote list of files
as a source of libraries, downloading them as necessary.
I'd give you that if you write a good and robust http library
first. :-)
Actually, this is already pretty much doable in Ikarus. :-)
One can define a library that exports an "http-import" keyword.
Using
(http-import "http://crop-circles.info/libraries/foo.ss")
can, at macro expansion time, download the library if it doesn't
exist, store it on the file system where appropriate, fetch
the library name from the downloaded file, and expand to
(import/lexical-context <library-name> <kwd>)
I still need to add import/lexical-context but that's pretty
straightforward. Just added a reminder:
https://bugs.launchpad.net/ikarus/+bug/376386
Aziz,,,