Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
PKGS: A very rough proposal: dorodango
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Andreas Rottmann  
View profile  
 More options Aug 27 2009, 11:09 am
From: Andreas Rottmann <a.rottm...@gmx.at>
Date: Thu, 27 Aug 2009 17:09:57 +0200
Local: Thurs, Aug 27 2009 11:09 am
Subject: [ikarus-users] PKGS: A very rough proposal: dorodango
Hi!

I've started working on a package manager implementation, dubbed
"dorodango"[0]. I post this as a feedback request, not because there's
working code to show yet.

dorodango is/will (ATM) be based upon these concepts, which I hereby put
up for discussion:

- Bundles: A bundle is a ZIP file, containing the actual files (Scheme
  libraries, documentation, data, ...) as well as one or more
  "sys-def.scm" files containing metadata (see the next point).

  There may either be a single such file in the toplevel directory, or
  one or more in subdirectories (of depth 1). If a sys-def.scm file is
  found in the toplevel, all other potentially considered sys-def.scm
  files are ignored.

  A bundle may as well be represented by a directory on disk, which is
  treated the same way.

- Systems: A system is the "unit of software" dorodango works with. It
  has a name (a symbol, possibly along with a namespace tag), and a
  version, which may be used to form dependency relationships among
  packages.

  A system's files are grouped into categories (e.g. (R6RS) libraries,
  documentation). Each category contains a set of (relative)
  filenames. The actual filenames need not directly correspond to the
  filenames of the bundle they are contained in; A system definition may
  specify a mapping (see below).

- sys-def.scm files: They contain the name, version, dependencies, file
  mapping, etc. for one or more systems, each described by a
  `define-system' form, for example:

  % cat dorodango/sys-def.scm
  (define-system dorodango
    (version 0)
    (depends spells srfi)
    (documentation "doc" ("Readme.txt" -> "README")))

  % cat spells/sys-def.scm
  (define-system spells
    (version 0)
    (depends srfi)
    (documentation "doc")
    (libraries "spells"))

- Destinations: This is where systems get installed to. Each destination
  has a root directory and associated rules that map the files from each
  category of a system to a certain (sub)directory. For example, for a
  per-user configuration, the rules might say:

  - Put documentation under "doc/<system-name>-<version>/"
  - Put scheme libraries under "libraries"

  For distribution packaging, the rules would be different to comply
  with the Distribution's policy (and/or FHS):

  - Put documentation under
    "share/doc/libr6rs-<system-name>-<version>/"
  - Put scheme libraries under
    "lib/r6rs-libraries"

- Repositories: A directory containing:

  - A file describing all available systems (name, version), each along
    with the path to the bundle it is contained in.

  - The bundle files (or directories) referred to by the above
    "inventory".

Commonly, a repository will served via HTTP, but it might as well just
be on a local filesystem.

[0] From Wikipedia <http://en.wikipedia.org/wiki/Dorodango>:

      Dorodango is a Japanese art form in which earth and water are
      molded to create a delicate shiny sphere, resembling a marble or
      billiard ball.

    I think the fact that the result of excercising Dorodango is
    essentially a "polished mudball", makes this quite suitable a name
    for a Package manager ;-)

Start the flames!

Cheers, Rotty
--
Andreas Rottmann -- <http://rotty.yi.org/>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andreas Rottmann  
View profile  
 More options Aug 27 2009, 11:06 pm
From: Andreas Rottmann <a.rottm...@gmx.at>
Date: Fri, 28 Aug 2009 05:06:30 +0200
Local: Thurs, Aug 27 2009 11:06 pm
Subject: Re: [ikarus-users] PKGS: A very rough proposal: dorodango

I've slighly changed my mind on this: to be more in-line with R6RS's
`library' form, the syntax should probably be more like:

(system (<name> . <version>)
  <other-stuff> ...)

This also makes apparent the possibility of hierarchical names, but I'm
not gonna worry about that for now.

The file name is now also not fitting any more (not that I was that
happy about it before), how about "systems.doro"?

Regards, Rotty
--
Andreas Rottmann -- <http://rotty.yi.org/>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tfgordon  
View profile  
 More options Aug 28 2009, 2:43 am
From: tfgordon <thomas.gor...@fokus.fraunhofer.de>
Date: Thu, 27 Aug 2009 23:43:54 -0700 (PDT)
Local: Fri, Aug 28 2009 2:43 am
Subject: Re: [ikarus-users] PKGS: A very rough proposal: dorodango
Why not call these things "packages" instead of "systems"?   The term
"system" seems too generic to me.  And wouldn't it be confusing to
speak of a "package manager" when the things being managed aren't
packages?

As for file name suffixes, how about some more mnemonic, such as
".scmp" or ".spkg" for "Scheme Package".

-Tom Gordon


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andreas Rottmann  
View profile  
 More options Aug 28 2009, 7:20 am
From: Andreas Rottmann <a.rottm...@gmx.at>
Date: Fri, 28 Aug 2009 13:20:17 +0200
Local: Fri, Aug 28 2009 7:20 am
Subject: Re: [ikarus-users] PKGS: A very rough proposal: dorodango

tfgordon <thomas.gor...@fokus.fraunhofer.de> writes:
> Why not call these things "packages" instead of "systems"?  

For historical reasons[0], which don't apply here.

> The term "system" seems too generic to me.  And wouldn't it be
> confusing to speak of a "package manager" when the things being
> managed aren't packages?

Good point -- I will change the terminology to "package".

> As for file name suffixes, how about some more mnemonic, such as
> ".scmp" or ".spkg" for "Scheme Package".

[0] I've taken some of the concepts from my extensions to Scheme 48 (I
    did a simple "package manager" for it). In Scheme 48, there's
    already the term "package" referring to an entity of its module
    system, so after some discussion on #scheme I chose "system" (which
    is used by Common Lisp).

--Rotty


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »