Comment

Comment by sudhirj

At the risk of sounding stupid, I have no idea how bit-shifting and bitwise operators work, though I've worked in the field for over a decade and am now a Staff Engineer or whatever. There, I said it.

It's just something I haven't gotten around to reading yet. I suspect some code would be made clearer by it, but even when doing something similar I wound up using the math textbook was to do it even though I suspect the bit operators would be much faster.

https://github.com/sudhirj/shortuuid.rb/blob/master/lib/shor...

https://github.com/sudhirj/shortuuid.go/blob/master/shortuui...

parent sudhirj 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton