Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lost22git/nim_xid
xid for nim lang
https://github.com/lost22git/nim_xid
nim nim-lang xid
Last synced: 13 days ago
JSON representation
xid for nim lang
- Host: GitHub
- URL: https://github.com/lost22git/nim_xid
- Owner: lost22git
- Created: 2024-04-28T21:01:57.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-07-10T09:39:54.000Z (7 months ago)
- Last Synced: 2024-11-23T17:43:15.740Z (2 months ago)
- Topics: nim, nim-lang, xid
- Language: Nim
- Homepage:
- Size: 74.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Xid for Nim lang
> NOTE:
> Would be disordered in a second when counter overflow 3bytes.
> Not applicable to scenarios where ordered data is imported in batches.
> A simple solution:
> Compare the id generated each time with the last one. If it is less than the last generated id, wait for a while and try again.[API DOC](https://lost22git.github.io/nim_xid/xid.html)
## Resources
- [xid go](https://github.com/rs/xid)
- [xid rust](https://github.com/kazk/xid-rs)## Run tests
```sh
nimble test
```## Run bench
```sh
nimble bench
```