Re: [racket-dev] can we write these four lines of C in performant racket?

2011-07-25 Thread Matthew Flatt
At Sat, 23 Jul 2011 14:42:15 -0400, John Clements wrote: This C code adds the content of one buffer to another one, with no checking. The corresponding racket code runs about 10x slower. Do you folks think that it should be possible to do better? (One salient fact: these are

[racket-dev] can we write these four lines of C in performant racket?

2011-07-23 Thread John Clements
This C code adds the content of one buffer to another one, with no checking. The corresponding racket code runs about 10x slower. Do you folks think that it should be possible to do better? (One salient fact: these are shorts--16-bit-ints--not 32-bit ints.) John void addOn(short *dst, int

Re: [racket-dev] can we write these four lines of C in performant racket?

2011-07-23 Thread Robby Findler
What is the data you're using to represent the shorts in Racket? Robby On Sat, Jul 23, 2011 at 1:42 PM, John Clements cleme...@brinckerhoff.org wrote: This C code adds the content of one buffer to another one, with no checking.   The corresponding racket code runs about 10x slower. Do you

Re: [racket-dev] can we write these four lines of C in performant racket?

2011-07-23 Thread John Clements
On Jul 23, 2011, at 2:46 PM, Robby Findler wrote: What is the data you're using to represent the shorts in Racket? #s16vectors. John Robby On Sat, Jul 23, 2011 at 1:42 PM, John Clements cleme...@brinckerhoff.org wrote: This C code adds the content of one buffer to another one, with