[racket-dev] haskell's 'hell of a lot of libraries', planet

From: YC (yinso.chen at gmail.com)
Date: Wed Jul 28 00:38:29 EDT 2010

On Tue, Jul 27, 2010 at 7:06 PM, Robby Findler
<robby at eecs.northwestern.edu>wrote:

>
> I guess the idea is that you'd eliminate the syntactic difference
> between a planet-located library and one in the distribution and then
> require on some external source to know where the package is located?
> Something like that? How would that work?
>

Hi Robby - there are a lot of ways to go about doing this; Jay pointed to
some ideas.

Here's one KISS approach without major changes (assuming the syntax have
been unified):

Modify the module path resolver so that it does the following lookup for
non-versioned require specs:

   1. try lookup the package in COLLECTS
   2. if #1 fails, lookup the package in planet cache
   3. if #2 fails, lookup the package in planet repo

For the versioned specs, you can skip the collects step above since it is
currently not versioned.  But of course you can also change collects to
become versionable in the future if you wish to re-architect the system.

Cheers,
yc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20100727/1136cc94/attachment.html>

Posted on the dev mailing list.