HN user

asymptotically2

63 karma
Posts4
Comments50
View on HN

Slightly OT but why should I choose a JWT over creating some opaque token (random bytes) and storing that in a database mapping it to a user's ID?

It seems like people create short lived JWTs and then pass some opaque token to an auth endpoint to get a new JWT signed whenever the old one expires, or they store the JWTs in a database so that they can be revoked, making me question their usefulness.

GraalVM 6 years ago

You need to pay Oracle $lots for a GraalVM enterprise licence to get profile guided optimisations, if you want some of your peak performance back.

Compiler Explorer 6 years ago

Try making your class final. Then it won't bother looking up the address of the virtual function in cases where it knows which class it is.

Mining with JavaScript or WebAssembly is no longer viable as being competitive now requires using a JIT compiler.

Nothing can really be done about it. Pool operators can ban the wallet addresses of known bot masters from connecting to their pool, but you can't really ban someone from participating in an anonymous decentralised network.

Layoffs hit Quora 6 years ago

It would be nice if there was a way to block certain domains from Google (or any other search engine) results. There are also a lot of sites that seem like they scrape posts from StackOverflow that I would like to block too.

If it's a static method (or in an anonymous namespace in C++), it should get fixed at any optimisation level. However if it's a global method, you'll need to pass -flto to defer optimisations to link time to make it work.