Better HN
topnewbestaskshowjobs
Log inSign up

linked_list

19 karma · joined Nov 2, 2025 (1y ago) · 5 submissions

Submissions

comment 1y ago · link · parent

Why would a government use cryptocurrencies though? You only need that if you have no single source of truth. For a government digital banking is enough and way cheaper. Unless by crypto you just mean cryptographically signed transaction logs or something.

comment 1y ago · link · parent

If you base64 encode an ascii string it gets 33% longer

comment 1y ago · link · parent

The URL spec already takes care of a lot of this, for example /shopping/shirts?color=blue&size=M&page=3 or /articles/my-article-title#preface

comment 1y ago · link · parent

JS does have features for editing the history, but it's a trade-off of not polluting the history too much while still letting the user navigate back and forth

comment 1y ago · link · parent

Because a hash is by definition a one-way mapping, so then you'd have to keep a map of the reverse mapping hash -> state, which obviously gets impractical with state such as page index or search terms. Better just make two-way "compression" mapping