Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(393)

Issue 4257042: code review 4257042: hash: new FNV-1a implementation (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 1 month ago by pascal
Modified:
14 years ago
Reviewers:
CC:
agl1, rsc, golang-dev
Visibility:
Public.

Description

hash: new FNV-1a implementation

Patch Set 1 #

Patch Set 2 : diff -r b2be017f9134 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 3 : diff -r 5ca1e6b0cbe7 https://go.googlecode.com/hg/ #

Total comments: 7

Patch Set 4 : diff -r 5ca1e6b0cbe7 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 5 : diff -r 5ca1e6b0cbe7 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 6 : diff -r 5ca1e6b0cbe7 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 8dc63eaded36 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+312 lines, -0 lines) Patch
M src/pkg/Makefile View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A src/pkg/hash/fnv/Makefile View 1 1 chunk +11 lines, -0 lines 0 comments Download
A src/pkg/hash/fnv/fnv.go View 1 2 3 4 5 6 1 chunk +133 lines, -0 lines 0 comments Download
A src/pkg/hash/fnv/fnv_test.go View 1 2 3 4 1 chunk +167 lines, -0 lines 0 comments Download

Messages

Total messages: 21
pascal
Hello golang-dev@googlegroups.com (cc: fnv-mail@asthe.com, golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years, 1 month ago (2011-02-26 15:14:11 UTC) #1
agl1
On Sat, Feb 26, 2011 at 10:14 AM, <pascal@quies.net> wrote: > Description: > hash: new ...
14 years, 1 month ago (2011-02-26 21:40:21 UTC) #2
rsc
I don't know. If we had any hash functions yet then it might be out ...
14 years, 1 month ago (2011-02-26 22:13:05 UTC) #3
agl1
LGTM http://codereview.appspot.com/4257042/diff/2001/src/pkg/hash/fnv/fnv.go File src/pkg/hash/fnv/fnv.go (right): http://codereview.appspot.com/4257042/diff/2001/src/pkg/hash/fnv/fnv.go#newcode5 src/pkg/hash/fnv/fnv.go:5: // Fowler-Noll-Vo is a non-cryptographic hash function // ...
14 years, 1 month ago (2011-02-28 14:04:09 UTC) #4
rsc
I'd be just as happy without the double newlines. // Constructs a 32-bit FNV-1a implementation ...
14 years, 1 month ago (2011-02-28 15:30:34 UTC) #5
pascal
Hello agl1, rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 1 month ago (2011-02-28 21:13:54 UTC) #6
rsc
http://codereview.appspot.com/4257042/diff/4004/src/pkg/hash/fnv/fnv_test.go File src/pkg/hash/fnv/fnv_test.go (right): http://codereview.appspot.com/4257042/diff/4004/src/pkg/hash/fnv/fnv_test.go#newcode16 src/pkg/hash/fnv/fnv_test.go:16: var golden32 = map[uint32]string{ more typical is var golden32 ...
14 years, 1 month ago (2011-02-28 21:24:12 UTC) #7
pascal
Hi Russ, Thanks for the feedback. Why would the order matter for the golden tests? ...
14 years, 1 month ago (2011-02-28 22:49:37 UTC) #8
rsc
> Why would the order matter for the golden tests? It's often useful to have ...
14 years, 1 month ago (2011-03-01 15:19:02 UTC) #9
rsc
I looked again at the FNV web page. There's no indication there that the FNV-1a ...
14 years, 1 month ago (2011-03-01 16:41:11 UTC) #10
pascal
Hi Russ, It's better to reflect the algorithm in the API indeed. How about fnv1a.New32 ...
14 years, 1 month ago (2011-03-01 19:48:33 UTC) #11
rsc
> It's better to reflect the algorithm in the API indeed. How about fnv1a.New32 > ...
14 years, 1 month ago (2011-03-01 21:21:54 UTC) #12
pascal
Hello agl1, rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 1 month ago (2011-03-01 22:19:51 UTC) #13
rsc
please add FNV-1 (non-a) http://codereview.appspot.com/4257042/diff/15001/src/pkg/hash/fnv/fnv.go File src/pkg/hash/fnv/fnv.go (right): http://codereview.appspot.com/4257042/diff/15001/src/pkg/hash/fnv/fnv.go#newcode7 src/pkg/hash/fnv/fnv.go:7: // Noll, and Phong Vo. ...
14 years, 1 month ago (2011-03-02 18:44:55 UTC) #14
pascal
Hello agl1, rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 1 month ago (2011-03-03 02:50:32 UTC) #15
rsc
Please complete a CLA as described at http://golang.org/doc/contribute.html#copyright Thanks. Russ
14 years, 1 month ago (2011-03-03 03:21:34 UTC) #16
rsc
LGTM Please make the minor comment fix below and I will submit. http://codereview.appspot.com/4257042/diff/10003/src/pkg/hash/fnv/fnv.go File src/pkg/hash/fnv/fnv.go ...
14 years ago (2011-03-03 16:49:15 UTC) #17
pascal
Hello agl1, rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years ago (2011-03-03 23:39:22 UTC) #18
pascal
Hello agl1, rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years ago (2011-03-04 02:13:31 UTC) #19
rsc
LGTM
14 years ago (2011-03-07 15:25:43 UTC) #20
rsc
14 years ago (2011-03-07 16:11:25 UTC) #21
*** Submitted as 50bc23b43d82 ***

hash: new FNV-1a implementation

R=agl1, rsc
CC=golang-dev
http://codereview.appspot.com/4257042

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b