Re: [Chicken-users] aliases in the wiki

2008-02-23 Thread Alejandro Forero Cuervo
   $ ln -s 'stream-ext#stream-xcons' stream-xcons
   $ svn add stream-xcons
   $ svn ci -m Creating link for procedure stream-xcons
 
 Could we please remove this? It makes a grep over the working
 copy impossible.

Um, what happens if you append “2/dev/null” at the end of your grep
commands?

I fail to see how it makes anything impossible.

Alejo.
http://azul.freaks-unidos.net/


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] aliases in the wiki

2008-02-23 Thread Felix Winkelmann
From: Alejandro Forero Cuervo [EMAIL PROTECTED]
Subject: Re: [Chicken-users] aliases in the wiki
Date: Sat, 23 Feb 2008 03:27:11 -0800

$ ln -s 'stream-ext#stream-xcons' stream-xcons
$ svn add stream-xcons
$ svn ci -m Creating link for procedure stream-xcons
  
  Could we please remove this? It makes a grep over the working
  copy impossible.
 
 Um, what happens if you append “2/dev/null” at the end of your grep
 commands?
 
 I fail to see how it makes anything impossible.

I need hacks to make basic file-system utilities work. I can not
use standard merging tools, for example.

Please don't do this. Please.


cheers,
felix
___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] aliases in the wiki

2008-02-23 Thread Peter Bex
On Sat, Feb 23, 2008 at 12:34:17PM +0100, Felix Winkelmann wrote:
 From: Alejandro Forero Cuervo [EMAIL PROTECTED]
 Subject: Re: [Chicken-users] aliases in the wiki
 Date: Sat, 23 Feb 2008 03:27:11 -0800
 
 $ ln -s 'stream-ext#stream-xcons' stream-xcons
 $ svn add stream-xcons
 $ svn ci -m Creating link for procedure stream-xcons
   
   Could we please remove this? It makes a grep over the working
   copy impossible.
  
  Um, what happens if you append ???2/dev/null??? at the end of your grep
  commands?
  
  I fail to see how it makes anything impossible.
 
 I need hacks to make basic file-system utilities work. I can not
 use standard merging tools, for example.
 
 Please don't do this. Please.

How about this:
$ echo '[[[stream-ext#stream-xcons]]]'  stream-xcons
$ svn add stream-xcons
$ svn ci -m Creating link for procedure stream-xcons

It's semantically the same, it's just not using the OS to store the
link but it puts the link inside the file.  This also makes it easier to
manage the link from the 'edit' page on the wiki.  The syntax could be
different or the file could have a special svnwiki property set so it
knows that it's not an ordinary page, if needed.

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music.
-- Donald Knuth


pgpBzclx5ZyBH.pgp
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] aliases in the wiki

2008-02-22 Thread felix winkelmann
On Sun, Feb 17, 2008 at 7:11 PM, Alejandro Forero Cuervo
[EMAIL PROTECTED] wrote:
 I have tweaked a bit the code in Svnwiki a bit to support defining
  aliases for functions in the wiki.  My thinking is that (1) for all
  procedures f, http://chicken.wiki.br/f should return something useful,
  regardless of where f is defined and (2) we shouldn't have to
  duplicate information in the wiki.

  Here is how I do it:

  $ ln -s 'stream-ext#stream-xcons' stream-xcons
  $ svn add stream-xcons
  $ svn ci -m Creating link for procedure stream-xcons

  This causes accesses to http://chicken.wiki.br/stream-xcons to be
  redirected to http://chicken.wiki.br/stream-ext#stream-xcons.  Go
  ahead and try it.

  As such, we don't have to split the eggs' documentation wiki files (or
  documents in the manual) and we can still allow people to play with
  URL hacking.

  Feel free to create links such as those.  To make it even easier, you
  can send me mails with the subject 'chicken wiki links' containing
  lines of the form 'source-for-link destination#url' and I will define
  those links.  If Mario or some other hackers can programatically
  extract a list of such functions and their location in the wiki,
  that'd be neat. :-)


Could we please remove this? It makes a grep over the working
copy impossible.


cheers,
felix


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] aliases in the wiki

2008-02-22 Thread Nelson Castillo
  Could we please remove this? It makes a grep over the working
  copy impossible.

Hi Felix.

What about:

find -P . -print0 | xargs -0 grep TEXT

Regards,
N.-

-- 
http://arhuaco.org


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] aliases in the wiki

2008-02-22 Thread Nelson Castillo
On Fri, Feb 22, 2008 at 5:55 PM, Nelson Castillo
[EMAIL PROTECTED] wrote:
   Could we please remove this? It makes a grep over the working
copy impossible.

  Hi Felix.

  What about:

  find -P . -print0 | xargs -0 grep TEXT

Sorry.

It is:

find . -type f  -print0 | xargs -0 grep TEXT


N.-

-- 
http://arhuaco.org


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] aliases in the wiki

2008-02-22 Thread Felix Winkelmann
From: Nelson Castillo [EMAIL PROTECTED]
Subject: Re: [Chicken-users] aliases in the wiki
Date: Fri, 22 Feb 2008 18:04:34 -0500

 On Fri, Feb 22, 2008 at 5:55 PM, Nelson Castillo
 [EMAIL PROTECTED] wrote:
Could we please remove this? It makes a grep over the working
 copy impossible.
 
   Hi Felix.
 
   What about:
 
   find -P . -print0 | xargs -0 grep TEXT
 
 Sorry.
 
 It is:
 
 find . -type f  -print0 | xargs -0 grep TEXT
 

Ugh.

IIRC, azul suggested a different (database based) way of
handling this. Creating thousands of dangling links doesn't
look right to me.


cheers,
felix


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] aliases in the wiki

2008-02-21 Thread Jim Ursetto
Yes please.  Quick procedure lookup is the capability of Info I most miss.
A plain index page would also be just as good for my purposes.

On 2/21/08, Alejandro Forero Cuervo [EMAIL PROTECTED] wrote:
 While this will continue to work, I think what I'll do is, once I have
 the procedure and similar tags in place, use this information to
 populate a database of where in the wiki symbols are documented so
 that any accesses to http://chicken.wiki.br/X, where X does not
 correspond to an existing page (or symlink, as described above) and
 there's a procedure or similar tag describing X in at least one wiki
 page Y, gets redirected to the location in Y where X is rendered.


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] aliases in the wiki

2008-02-19 Thread Alejandro Forero Cuervo
 For the egg pages we would simply prefix them (so format-modular  
 would become egg-format-modular)
 
 This I'm not so sure about, because sometimes you remember the name of  
 a procedure but not its egg, and because usually eggs become part of  
 the domain-specific language you assemble to solve your problem, after  
 which you don't care much anymore which egg the procedures came from.

What do you propose we do if we have a function with the same name as
an egg?  Perhaps it wasn't clear from my message, but I was proposing
the “egg-” prefix only in those cases where there is a clash.

Alejo.
http://azul.freaks-unidos.net/


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] aliases in the wiki

2008-02-19 Thread Tobia Conforto

Alejandro Forero Cuervo wrote:
What do you propose we do if we have a function with the same name  
as an egg?  Perhaps it wasn't clear from my message, but I was  
proposing the “egg-” prefix only in those cases where there is a  
clash.


Yes, I misread that part.  I guess renaming the egg page as egg-* is  
the most sensible thing to do, so that the overloaded name can point  
to a disambiguation page.



Tobia

___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] aliases in the wiki

2008-02-17 Thread Alejandro Forero Cuervo
I have tweaked a bit the code in Svnwiki a bit to support defining
aliases for functions in the wiki.  My thinking is that (1) for all
procedures f, http://chicken.wiki.br/f should return something useful,
regardless of where f is defined and (2) we shouldn't have to
duplicate information in the wiki.

Here is how I do it:

$ ln -s 'stream-ext#stream-xcons' stream-xcons
$ svn add stream-xcons
$ svn ci -m Creating link for procedure stream-xcons

This causes accesses to http://chicken.wiki.br/stream-xcons to be
redirected to http://chicken.wiki.br/stream-ext#stream-xcons.  Go
ahead and try it.

As such, we don't have to split the eggs' documentation wiki files (or
documents in the manual) and we can still allow people to play with
URL hacking.

Feel free to create links such as those.  To make it even easier, you
can send me mails with the subject 'chicken wiki links' containing
lines of the form 'source-for-link destination#url' and I will define
those links.  If Mario or some other hackers can programatically
extract a list of such functions and their location in the wiki,
that'd be neat. :-)

Hopefully, in some time, http://chicken.wiki.br/some-random-function
will work most of the time.  I think that would be a bit useful.

Alejo.
http://azul.freaks-unidos.net/

Ps: I'd like to thank Arhuaco who helped me a bit with the work
required to make this work.


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] aliases in the wiki

2008-02-17 Thread Jim Ursetto
I was wondering if these could be placed in a separate namespace
(e.g. http://chicken.wiki.br/sym/stream-xcons or
http://chicken.wiki.br/sym:stream-xcons).  The reason being that
with an influx of procedure names the potential for collision
goes way up with a flat namespace.

If this could be done in a separate directory in SVN (e.g. wiki/sym/)
then even better, to avoid clogging the main directory with hundreds
of entries.

Just a thought.

On 2/17/08, Alejandro Forero Cuervo [EMAIL PROTECTED] wrote:
 I have tweaked a bit the code in Svnwiki a bit to support defining
 This causes accesses to http://chicken.wiki.br/stream-xcons to be
 redirected to http://chicken.wiki.br/stream-ext#stream-xcons.  Go
 ahead and try it.


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] aliases in the wiki

2008-02-17 Thread Alejandro Forero Cuervo
 I was wondering if these could be placed in a separate namespace
 (e.g. http://chicken.wiki.br/sym/stream-xcons or
 http://chicken.wiki.br/sym:stream-xcons).  The reason being that
 with an influx of procedure names the potential for collision
 goes way up with a flat namespace.

I don't think the potential for collision is too bad: in those cases
in which we have collisions, we can simply create a page listing the
multiple possible meanings, something along the lines of:

 Format

 There are the following pages about this:

 * Eggs:
   - format
   - format-modular
 * Procedures:
   - format at the format-modular egg

For the egg pages we would simply prefix them (so format-modular would
become egg-format-modular).

This is just what wikipedia does.

I think the advantage of not requiring users to type the sym: or
sym/ each time they use this functionality is larger than the
disadvantage of having the clashes.  Basically, think of it as just
one namespace where a user can search for pretty much anything and
expect to find something useful.

Alejo.
http://azul.freaks-unidos.net/


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users