HNHacker News
TopNewBestAskShowJobs

sudhirb

41 karma · joined June 19, 2025

submissionscomments
sudhirb··on Show HN: Generate 'Cooking For Engineers' style recipe cards
I really like the design of this!

This is perhaps a bit more of a philosophical point but I think that I find the separation of quantity and ingredient perhaps a little arbitrary - in many cases they're coupled tightly e.g. I've only ever found 'cloves' as a quantity to refer to garlic.

I've personally always wanted recipes to be prefixed with a mise en place section of steps - e.g. instruct the reader explicitly to dice onions, etc. in the main body of the recipe rather than imply the step in the ingredient description - what do you reckon?

sudhirb··on Jujutsu v0.31.0 Released
It saddens me to think that the rise of LLMs means cool new(ish) tools like this may never get widespread adoption.

I find myself personally a little unwilling to engage with jj as I expect LLMs to be much more fluent with git, though I notice there's an option to use git and jj interchangeably in the same local repo which might finally be enough to tip me over the edge.

sudhirb··on The probability of a hash collision (2022)
A more naive but less complex way to avoid overflows would be to use the original factorial expression but work with logs - in a rough experiment with python for k=10^8 and N=10^17 (numbers plucked out of thin air), the calculation takes ~20s on an M1 MacBook Pro.

This didn't feel too egregious until I looked at the space of inputs and outputs for SHA-256, which is 2^256 out and an absolutely stonking 2^(2^64) - 1 possible inputs.

It feels obvious but I'm still surprised by the efficiency of approximations.

← PreviousPage 2 of 2