Avatar for the biscuit-auth user
biscuit-auth
biscuit-rust
BlogDocsChangelog

disambiguate empty sets from empty maps

#252Closed
Comparing
empty-set-literals
(
60bf915
) with
v5
(
fc0d069
)
CodSpeed Performance Gauge
0%
Improvements
0
Regressions
0
Untouched
12
New
0
Dropped
0
Ignored
0

Benchmarks

Passed

verify_block_2
biscuit-auth/benches/token.rs::verify_block_2
CodSpeed Performance Gauge
+1%
610.7 µs
607 µs
checks_block_2
biscuit-auth/benches/token.rs::checks_block_2
CodSpeed Performance Gauge
0%
118.7 µs
118.5 µs
append_block_5
biscuit-auth/benches/token.rs::append_block_5
CodSpeed Performance Gauge
0%
2.6 ms
2.6 ms
verify_block_5
biscuit-auth/benches/token.rs::verify_block_5
CodSpeed Performance Gauge
0%
1.2 ms
1.2 ms
unverified_append_block_5
biscuit-auth/benches/token.rs::unverified_append_block_5
CodSpeed Performance Gauge
0%
934.7 µs
934.6 µs
create_block_1
biscuit-auth/benches/token.rs::create_block_1
CodSpeed Performance Gauge
0%
247.7 µs
247.7 µs
unverified_append_block_2
biscuit-auth/benches/token.rs::unverified_append_block_2
CodSpeed Performance Gauge
0%
300.9 µs
300.9 µs
append_block_2
biscuit-auth/benches/token.rs::append_block_2
CodSpeed Performance Gauge
0%
549.6 µs
550.3 µs
checks_block_create_verifier2
biscuit-auth/benches/token.rs::checks_block_create_verifier2
CodSpeed Performance Gauge
0%
66.3 µs
66.4 µs
check_signature_5
biscuit-auth/benches/token.rs::check_signature_5
CodSpeed Performance Gauge
0%
1 ms
1 ms
checks_block_verify_only2
biscuit-auth/benches/token.rs::checks_block_verify_only2
CodSpeed Performance Gauge
0%
119.3 µs
119.8 µs
check_signature_2
biscuit-auth/benches/token.rs::check_signature_2
CodSpeed Performance Gauge
-1%
498.8 µs
501.3 µs

Commits

Click on a commit to change the comparison range
Base
v5
fc0d069
0%
disambiguate empty sets from empty maps according to the grammar, `{}` could either mean *empty set* or *empty map*. Due to how the parser was written, it was always an empty set, and there was no way to have an empty map literal. This is an issue because empty maps would still be displayed as `{}`, and maps have a different api than sets, resulting in evaluation errors. This commit introduces `{,}` as the empty set literal, while `{}` is the empty map. The goal here is to be consistent with JSON, the reason why we chose the current syntax for arrays and maps.
b852ee0
1 month ago
by divarvel
0%
bump runtime limits due to slow github actions workers
a1cdb6b
1 month ago
by divarvel
0%
remove dead code, uncomment tests
cd5d154
1 month ago
by divarvel
0%
REMOVEME: bump default duration during tests
60bf915
1 month ago
by divarvel
Home Terms PrivacyDocs