Re: [racket-users] Re: appending files

2016-01-29 Thread Brandon Thomas
(floor (/ n 8))). Then you get the bit out of it, which would be something (untested) like (modulo (arithmetic-shift (bytes-ref data (floor (/ n 8))) (* -1 (modulo n 8))) 2). This is easy enough to modify for elements that are a divisor of 8 in size. Regards, Brandon Thomas -- You received this me

Re: [racket-users] Re: appending files

2016-01-28 Thread Brandon Thomas
as you need, which is what you have done. The issue with that is that bignum's have extra overhead thats neccessary for it to do arithmetic. Obviously, there needs to be a way to match or beat bignums with primitive structures, since bignums are implemented with primitive structures. So, if y

Re: [racket-users] Re: appending files

2016-01-27 Thread Brandon Thomas
On Wed, 2016-01-27 at 17:49 -0500, George Neuner wrote: > On 1/27/2016 10:50 AM, Brandon Thomas wrote: > > On Wed, 2016-01-27 at 04:01 -0500, George Neuner wrote: > > > On Tue, 26 Jan 2016 23:00:01 -0500, Brandon Thomas > > > wrote: > > > > > > > I

Re: [racket-users] Re: appending files

2016-01-27 Thread Brandon Thomas
On Wed, 2016-01-27 at 04:01 -0500, George Neuner wrote: > On Tue, 26 Jan 2016 23:00:01 -0500, Brandon Thomas > wrote: > > > Is there anything stopping you from restructuring > > the data on disk and using the hash directly from there > > Scotty's hash table is

Re: [racket-users] Re: appending files

2016-01-27 Thread Brandon Thomas
ough the source/docs of other (key,value) storage solutions. Or if you wanted to cut down on work, you can just use one of the other (key,value) storage solutions and use it via libffi. Regards, Brandon Thomas -- You received this message because you are subscribed to the Google Groups &

Re: [racket-users] Re: appending files

2016-01-26 Thread Brandon Thomas
g no auxillary memory (unless your caching, which can just be a smaller ram hash table). Unless of course I'm just missing something completly. Regards, Brandon Thomas -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe