Re:Show HN: voidDB – A transactional key-value DB written in...
by seanw444 on Friday January 31, 2025 @02:17PM
(#42890745)
A lot of it is indirect dependencies, and most of the direct dependencies in the go.mod are just for benchmarks, as far as I can tell.
Re:Show HN: voidDB – A transactional key-value DB written in...
by joel-ling on Friday January 31, 2025 @07:04PM
(#42894028)
That is correct. Remove directories "test/" and "cursor/test/", then run "go mod tidy"; you should see only one dependency in go.mod:
require golang.org/x/sys v0.29.0
Could have used "syscall" in the standard library instead of "golang.org/x/sys/unix" if not for these: https://pkg.go.dev/golang.org/x/sys/unix#F_OFD_GETLK... and this: https://go.googlesource.com/proposal/+/refs/heads/master/des...
Re:Show HN: voidDB – A transactional key-value DB written in...
by maxmcd on Friday January 31, 2025 @02:23PM
(#42890812)
Only "x/sys/unix" outside of tests/benchmarks
~/go/src/github.com/voidDB/voidDB git:(master)
$ go run github.com/tailscale/depaware@latest
github.com/voidDB/voidDB dependencies: (generated by github.com/tailscale/depaware)
github.com/voidDB/voidDB/common from github.com/voidDB/voidDB+
github.com/voidDB/voidDB/cursor from github.com/voidDB/voidDB
github.com/voidDB/voidDB/free from github.com/voidDB/voidDB
github.com/voidDB/voidDB/node from github.com/voidDB/voidDB+
github.com/voidDB/voidDB/reader from github.com/voidDB/voidDB
golang.org/x/sys/unix from github.com/voidDB/voidDB+
bytes from github.com/voidDB/voidDB+
cmp from internal/fmtsort+
encoding/binary from github.com/voidDB/voidDB/common+
errors from bytes+
D fmt from golang.org/x/sys/unix
hash from github.com/voidDB/voidDB+
hash/fnv from github.com/voidDB/voidDB
io from bytes+
io/fs from internal/filepathlite+
iter from reflect+
math from encoding/binary+
math/bits from golang.org/x/sys/unix+
os from fmt+
path from io/fs
reflect from encoding/binary+
slices from encoding/binary+
LD sort from golang.org/x/sys/unix
strconv from fmt+
LD strings from golang.org/x/sys/unix
sync from encoding/binary+
sync/atomic from internal/bisect+
syscall from github.com/voidDB/voidDB/cursor+
time from github.com/voidDB/voidDB+
unicode from bytes+
W unicode/utf16 from internal/poll+
unicode/utf8 from bytes+
Re:Show HN: voidDB – A transactional key-value DB written in...
by joel-ling on Friday January 31, 2025 @07:08PM
(#42894064)
Thank you for showing substantive evidence in defence of voidDB; it is very vindicating.
Re:Show HN: voidDB – A transactional key-value DB written in...
by ncruces on Saturday February 01, 2025 @01:12AM
(#42896132)
It doesn't take much to split your go.mod file require blocks into needed dependencies, and test dependencies, with a few comments explaining the why of each dependency.
Go tooling will preserve your go.mod comments and structure.
You can also consider moving integration tests and benchmarks to another module in the same repo.
Re:Show HN: voidDB – A transactional key-value DB written in...
by joel-ling on Sunday February 02, 2025 @04:47AM
(#42907545)
Great ideas. I have broken out the tests into their own modules within the same repository. Thanks!
Re:Show HN: voidDB – A transactional key-value DB written in...
by joel-ling on Sunday February 02, 2025 @04:50AM
(#42907562)
Look ma, no more dependencies! https://github.com/voidDB/voidDB/blob/v0.1.4/go.sum
https://github.com/voidDB/voidDB/blob/master/go.sum