ld
roaring
Our great sponsors
ld | roaring | |
---|---|---|
6 | 5 | |
20 | 2,349 | |
- | 1.8% | |
0.0 | 7.6 | |
over 1 year ago | 10 days ago | |
Go | Go | |
The Unlicense | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ld
-
Using a httputil reverse proxy to host gRPC REST & static web content (eg HTML) on a single port
I slammed together a database based on this wire protocol feature: MikkelHJuul/ld the database serve bytes, the client can deserialize those by replacing the bytes with a message (in the proto-file)
-
A dead simple Key-value Storage API
Hell, I even built a kv-database myself that I just announced some weeks ago, based on badgerDB: ld. It's API is the api I would say qualifies as a simple actual kv database api. KeyRange { String prefix, from, to, pattern (pattern may be a bit over the top) } The database is value agnostic
-
Protobuf Database: ld & ld-client: interactive client
[ld:0.1.3](https://github.com/MikkelHJuul/ld) is out
-
ld - 0.1.1: protocol buffers database
Just after pushing 'Post'; I thought to my self: I haven't done nearly enough testing! This is release [0.1.1](https://github.com/MikkelHJuul/ld/pull/2) focusing on testing, I fixed some bugfixes with the `Iterator` in `impl/iterator.go`, but mostly I added 50-some tests spanning 900 lines of test code.
-
Protocol buffers database, a Key-Value database on the wire
I got my database into a release candidate: ld - a protocol buffers database
-
gRPC bytes
The obvious use case is the one of a key value database: I have an older personal project I wanted to do this for, ld (yes I know there is a c linker called ld) basically the client implements their proto file saving whatever they wanted at a given key and the database never touch the bytes, it servers back those bytes which should be re-serialisable to the same object. (The project is semi abandoned, I hope to use badger or boltdb to implement it some time)
roaring
-
I have some questions about defining a series of bits in Golang
For (3), and if you’re interested in checking if specific bits are set or not, take a look at https://github.com/bits-and-blooms/bitset and https://github.com/RoaringBitmap/roaring.
- Bitmasks - how and why to use?
-
Skipfilter
Each topic has a roaring bitmap. Each bit corresponds to a subscriber in the skip list. For each topic, head and tail cursors are also maintained to ensure that newly added subscriptions are always tested and deleted subscriptions are always evicted. Roaring bitmaps are compressed and discontinuous so memory usage again remains bounded as subscribers come and go.
-
Bit shifting blew my mind
Definitely take a look at a roaring bitmap. https://github.com/RoaringBitmap/roaring
-
Protocol buffers database, a Key-Value database on the wire
Roaring bitmaps + btrees are a rock solid indexing approach. Alternatively, bleve has a lot out of the box but that's introducing a new datastore, basically.
What are some alternatives?
protoc-gen-star - protoc plugin library for efficient proto-based code generation
skiplist - skiplist for golang
social - social network in GRPC, Go, mysql, and vuejs,
boomfilters - Probabilistic data structures for processing continuous, unbounded streams.
sled - the champagne of beta embedded databases
bit - Bitset data structure
Jet - A key-value db api with multiple storage engines and key generation
bitset - Go package implementing bitsets
s2geometry - Computational geometry and spatial indexing on the sphere
hyperloglog - HyperLogLog with lots of sugar (Sparse, LogLog-Beta bias correction and TailCut space reduction) brought to you by Axiom
S2 geometry - S2 geometry library in Go
golang-set - A simple, battle-tested and generic set type for the Go language. Trusted by Docker, 1Password, Ethereum and Hashicorp.