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
Message from discussion Architecture advice for new project
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
 
Danny Yoo  
View profile  
 More options May 15 2012, 5:45 pm
From: Danny Yoo <d...@hashcollision.org>
Date: Tue, 15 May 2012 17:45:26 -0400
Local: Tues, May 15 2012 5:45 pm
Subject: Re: [racket] Architecture advice for new project

On Tuesday, May 15, 2012, Chad Albers wrote:
> Definitely.  Using Racket's hashes, I can duplicate the same functionality.

> But this hash mechanism bothers me, because I see a informal
> convention developing in Rack middleware, where the middleware starts
> injecting it's own state into the hash, with hacky namespaces on the
> keys to prevent key collisions.  I would like to avoid that.

One of the things I notice about Racket's runtime library design is the use
of opaque values to avoid collisions.  For example, the way that structure
properties work is to create a unique value, a structure type property
descriptor, to be used as the "key".

     http://docs.racket-lang.org/reference/structprops.html

The advantage of this versus using a plain symbol is that the association
doesn't depend on the symbolic representation of the property's name, so
there's no collision potential between properties that are named similarly.
 Maybe you can do something similar?

____________________
  Racket Users list:
  http://lists.racket-lang.org/users


 
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.