[racket] require url?

From: Eric Tanter (etanter at dcc.uchile.cl)
Date: Fri Apr 8 12:49:47 EDT 2011

oups, to do these kinds of thing I'd need quite some input on where to look for, etc.
I naively opened collects/racket/require.rkt but that's clearly insufficient to get the big picture and understand where and how to extend...

-- Éric


On Apr 8, 2011, at 9:05 AM, Noel Welsh wrote:

> It has been talked about a lot, but no-one has implemented this
> feature AFAIK. Should be possible, as require is extensible.
> 
> Go for it, tiger ;-)
> 
> N.
> 
> On Thu, Apr 7, 2011 at 4:01 PM, Eric Tanter <etanter at dcc.uchile.cl> wrote:
>> Hi all,
>> 
>> In the same way that it is possible to require a file given a local path:
>> eg.
>> (require (file "/home/..../foo.rkt"))
>> 
>> I'm looking for a way to require a file given a URL:
>> eg.
>> (require (url "http://tmp.barzilay.org/defmac.ss"))
>> 
>> The above does not work because url is not a require sub-form. file doesn't work either because it seems to convert the URL to a local path
>> ("/http:/tmp.barzilay.org/defmac.rkt")
>> 
>> Is there a way to do that?
>> I know that the best option is a planet package, but that's a bit heavyweight for my current needs.
>> 
>> Thanks,
>> 
>> -- Éric
> 




Posted on the users mailing list.