Better HN
topnewbestaskshowjobs
Log inSign up

josephsweeney

6 karma · joined Dec 16, 2017 (8y ago) · 8 submissions

https://bhavana.io
Submissions

1.

How I Made My SIMD Code 1700x Faster Without Writing Any Intrinsics(bhavana.io ↗)

2 points · by josephsweeney · 1y ago · discuss

2.

Hate Being a SWE? Why It's Probably Your Fault(bhavana.io ↗)

2 points · by josephsweeney · 2y ago · discuss

comment 8y ago · link · parent

You're definitely correct. This project is still in its early stages so no one is really using it yet, so its easy in the sense that I just have to change the hashing algorithm. No need to worry about backwards compatibility.

comment 8y ago · link · parent

Mainly because SHA1 was convenient, but also Git uses SHA1. See this Linus rant:

https://marc.info/?l=git&m=148787047422954

Most of that argument applies, but if it ever becomes a problem, we should be able to move to something like SHA256 fairly easily.

comment 8y ago · link · parent

There actually isn't any database outside of a directory of files. The version control is done the same way that Git works under the hood but written from scratch in C.

Essentially, we have a database directory with two sub-directories, refs and objects. In refs we have a file for the id of each piece of data stored. The id file contains the hash of the latest commit for this id. A commit is just another file that contains a time, a hash of the previous commit, and the hash of the data.

The objects directory stores all the data and the commits, with each entry's filename being the hash of its data and its contents as the data stored.

So all we're doing is making a linked list where each entry points to a different version of that data. No external database or version control needed.

comment 8y ago · link · parent

It actually doesn't use another database. Just uses plain old files for storage.

It takes after Git where it stores each piece of data in a file with the name of the file as the hash of the data.

comment 8y ago · link · parent

Creator here, this project is still in an early state, but if anybody has any questions I'd be happy to answer.

8.

Show HN: VersionDB – A key, value store inspired by Git(github.com ↗)

9 points · by josephsweeney · 8y ago · 9 comments