Our great sponsors
-
snowflake
A simple to use Go (golang) package to generate or parse Twitter snowflake IDs (by bwmarrin)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
squashfs
A library to interact with Squashfs archives. Currently only has support for reading, but writing archives will probably come eventually.
I used it for my Chip-8 emulator https://github.com/anthonygedeon/chip8
It doesn't come up very often. There is an id generation library I use github.com/bwmarrin/snowflake that makes pretty good use of bit shifting. Each id is split into 3 parts, a timestamp, a node id, and a sequence number. The idea is that each server has a node id. Each node can make 4096 ids every millisecond for about 70 years. It works by doing the following
Definitely take a look at a roaring bitmap. https://github.com/RoaringBitmap/roaring
Recently had to seriously solidify my knowledge on bitwise operations for my squashfs library. WAIT IT'S BEEN NEARLY A YEAR???? Why is time so weird recently?
Related posts
- How do you go about the lack of built in data structure like stack, queue for LeetCode
- Persistent data with golang
- Cacheme: Asyncio cache framework with multiple storages and thundering herd protection
- Go Structures - Custom made generic data structures for Golang
- Luciano Remes | Golang is πΌπ‘π’π€π¨π© Perfect