On Oct 27, 2010, at 9:54 AM, Matthew Flatt wrote:

> I think Robby recently changed DrRacket so that user programs don't
> share `ffi/unsafe' with DrRacket. That would lead to multiple
> `s16vector' structure types (which didn't occur to me when Robby asked
> if it would be ok to not share), and that might be what you're seeing.

Okay, that makes sense.  

I talked to Robby a bit, and it sounds like the issue here is that unsafe pulls 
in all kinds of other stuff that makes DrRacket big. 

If I read the source correctly, then it would be possible to pull out the 
one-liner 

(define-struct cvector (ptr type length))

... from unsafe/cvector.rkt and put it somewhere where it can be shared between 
DrRacket and user programs. It would appear to me that this would produce a 
single representation for cvectors, and perhaps by extension for the derived 
s16vector, etc. 

Am I understanding this correctly?

John

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev

Reply via email to