Skip to content

calcit-lang/bisection-key

Repository files navigation

Bisection Keys

Order keys generating algorithm. Similar to fractional indexing.

Also see:

Usage

TODO

bisection-key.core/bisect |a |b

Charset, base65:

+-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz

Development

Install calcit-runner to run demo:

cr -1 # run once

cr # run and watch

For JavaScript:

cr --emit-js -1 # emit-js once
yarn build
node js-out/bundle.js # run code

Special cases

Nothing could be inserted between a and a+ since + is very close to zero. Such a key which ends with + should not be created from current implementation.

Smallest visible value is +, largest visible values would be zzzzz.....(infinitely). They are both tricky.

Workflow

https://github.com/calcit-lang/calcit-workflow

License

MIT