On Fri, Jun 22, 2001 at 03:52:06AM +0100, Theodore Hong wrote:
> Oskar Sandberg <oskar at freenetproject.org> wrote:
> > On Thu, Jun 21, 2001 at 09:06:07PM +0100, Theodore Hong wrote:
> > > I've actually started to have some more time now, so I was planning on
> > > coming back into development a bit instead of just writing papers. =)
> > > Which are the main classes to look at where you've started to do work 
> > > on this already?
> > 
> > The stuff I did back then is in Freenet.node.interfaces.http (you'll
> > need to move the experimental branch). I'm not sure that it is useful
> > though, we changed the way the Interfaces are defined since I wrote
> > that, so it won't even compile (the Util class has a multipart splitting
> > method though - and one that doesn't split the data into Strings as to
> > boot! I was told later that the correct way of doing that is with a
> > rolling hash value, so it could be nicer).
> 
> Rolling hash value?  I don't get what that has to do with splitting.

I was told that the correct way to parse a text for a stopper line (like
you do when splitting a mine multipart) is to run a hash value over the
text that works so that you pop in every new value, and then pop out the
value at stopper.length back. When The rolling value matches the hash of
the stopper with the same function, you have found the stop code.

I don't remember who told me this, I sort of thought it was you.

-- 
'DeCSS would be fine. Where is it?'
'Here,' Montag touched his head.
'Ah,' Granger smiled and nodded.

Oskar Sandberg
oskar at freenetproject.org

_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl

Reply via email to