Better HN
topnewbestaskshowjobs
Log inSign up

rtpg

21,276 karma · joined Nov 23, 2012 (14y ago) · 6,746 submissions

real name: Raphael

blog: https://rtpg.co

email: raphael at above domain

Submissions

comment 1y ago · link · parent

huhm the ars review makes it seem like this thing does worse on benchmarks than stuff like the mac but the test suite in DHH's example goes way faster. Bursty perf perhaps?

comment 1y ago · link · parent

My impression is that in Erlang land each process handler is really cheap so you can just keep on showing up with process handlers and not reach exhaustion like you do with other systems (at least in pre-async worlds...)

comment 1y ago · link · parent

So people say that they reverse engineer the system to get the system prompt by asking the machine, but like... is that actually a guarantee of anything? Would a system with "no" prompt just spit out some random prompt?

comment 1y ago · link · parent

Feel like if you're doing something like this you should just basically maximalize your definition. The fun here is seeing all the nodes, obviously!

Maybe then you get into arguments about whether the dependencies were "required", but there it's more or less resolvable by relying on what "actually" happened rather than the minimal tree (which is its own exercise)

comment 1y ago · link · parent

maintainers just having to assume every behavior is needed for backwards compatibility... and you still have the absolute mess which was pydantic 1 -> 2 (or django-ninja 0.x -> 1.0)

Everyone talks about moving fast and being dynamic but everyone I know deep in this has lost like actual years to churning from this kind of behavior.

comment 1y ago · link · parent

I am really disappointed at the new generation of Python frameworks' documentation, which seem to have the same "docs are tutorials + chatty blog posts which imprecisely describe the APIs" attitude of Javascript libs.

Two words: API Reference.

Have the clinical explanation of methods exposed, with actual breakdowns of what method parameters do. List them all, don't surround it by prose. List out the options! Don't make me dive into the source to find out what I can or can't pass into a parameter!

Having to play this game of "alright I want to know how to use this API, so first I need to figure out what tutorial page _might_ use this" to find the tiny examples that should just be next to the methods I care about in the reference is really frustrating.

comment 1y ago · link · parent

that form state persistence looks soooo gnarly. Really have a hard time arguing that's better than a client side header

comment 1y ago · link · parent

I think you could describe a part of it as COVID-related, though not that much. The trends predate COVID and continued beyond 2020-2021 (really the peak of activity being pulled back in Japan).

2013 saw 4.4k fatalities. 2019 saw 3.2k fatalities. 2020 saw 2.8k fatalities.

In 1970 there were 16.7k fatalities.

I think it would be very hard to argue that COVID explains both the Japan drops while seeing increases in other countries to that extent. In the comparative analysis one can argue that COVID affected some places more than others, of course. But the improvement gap between, say, Japan and New Zealand is pretty huge!

comment 1y ago · link · parent

> What's worse? A not in use bed, or a not in use back seat?

It's more "what's worse? A huge truck with worse visibility, alone, or a car that has better visibility, safety features, and less likely to kill someone in an accident, driven alone".

Obviously if the bed or the back set were the only swap, none of it matters.

And like... yeah there's the calculus of how often you use it etc.

comment 1y ago · link · parent

I think we do in practice apply 0mph (i.e. banning cars) in some major cities, turning roads into pedestrian areas! 0mph happens!

It's obviously a trade between various participants, who have their own interests. 30km/h limits have had good success. If people think the number of fatalities is a problem, there's a solution waiting for you.

comment 1y ago · link · parent

If you look at this 2023 report[0] you can see the following sort of stats (page 34):

between 2012-2023 there were the following evolution in the number of road deaths per year:

- 60% drop in Lithuania

- 50% drop in Poland

- ~38% drop in Japan

- 20% drop in Germany

- 20% increase(!) in Israel, New Zealand and the US

so abstractly, looking at what those countries did in the past 10 years and considering whether changes would work or be applicable for you (and maybe not doing whatever NZ or the US is doing)

For Japan's case, they applied a lot of traffic calming[0]. In particular, in 2011 Japan changed up rules to allow for traffic calming through a simple and cheap method: setting the speed limit to 30km/h in various spots. [1] has a summary of the report.

Now, one thing I do know about Japan is that their qualification of road deaths is ... dishonest is strong but it's technical. If someone is in a car accident and survives a couple of days, but dies later from complications, that is not counted as a road fataility (IIRC it's a 24 hour window thing).

I would like to point something out though. Between 2003 and 2016 car accidents nearly halved (from 940k to 540k). Between 2013 and 2023 fatalities according to their metrics dropped 40 percent.

Things can be done

[0]: https://en.wikipedia.org/wiki/Traffic_calming

[1]: https://pmc.ncbi.nlm.nih.gov/articles/PMC6951391/ [0]: https://www.oecd.org/content/dam/oecd/en/publications/report...

comment 1y ago · link · parent

MacOS has a "apps using significant battery" thing that is quite useful. I think here there's a similar argument for an in your face thing.

That way when the battery goes from 60% to 30% you get told about it, instead of when you go from 30% to 5% and then have other problems as well.

Not so certain about the actual knowability here though

comment 1y ago · link · parent

sometimes you want a cutpoint for a refactor and only that refactor. And turns out that there is no nice abstraction that is useful beyond that refactor.

comment 1y ago · link · parent

> For most people that number is likely north of $500k, if not single digit millions

I think if your kind of comfortable is needing to clear 500k or million in comp a year then you aren’t not in scrappy startup mode! This is fine but money out the door is money that then needs to get raised in early rounds

I dunno, I do think oxide for basically everyone who joins is asking for them to get pay cuts but I would really hope that people would still at least putting some stuff into savings.

And like … even if the equity is variable if people are getting even a bit of equity, that might end up as something in the end.

Saying this I think with the recent raise the comp could be made higher just to make the buffer even better. There’s definitely an opportunity cost

comment 1y ago · link · parent

Yeah my point is that it’s comfortable enough.

If you are growing your emergency fund then you aren’t really living paycheck to paycheck right? You’re putting money off to the side. Tho perhaps you’re not putting aside much for, like, travel.

Plenty of smaller startups not hitting that level, especially when they’re lean. And I think up until this raise Oxide was lean!

(To be honest given this finding raise I could see a salary increase for oxide across the board, to help with that)

comment 1y ago · link · parent

Back when my salary was shitty I cared about the money a lot.

I still like the money and the number going up. But now that it’s above a certain multiple of what I consider a “comfortable” life, I’m not worrying as much.

Would for change your job for an extra 500k a year? Surely right? An extra 50k? An extra 5k? An extra 500 dollars a year?

Theres some mental calculus that includes everything. Some people will just take “offer with most money” every time. Hell of a lot of people don’t.

I do think that C suite folks might not have the right vision of what “normal/comfortable” is for employees though. So they might offer a low number thinking it’s actually a “comfortable to live with at this stage of life” number and then get confused why they can’t recruit good talent and think people are obsessed with money.

First offer has gotta be within the ballpark of the right number if you don’t want your interviewee to immediately come back to you with a much higher number!

comment 1y ago · link · parent

200k a year. In US dollars. American dollars.

Now you have families, debt, etc. There are things. Minimum expectations for family etc. But come on! It’s not poverty wages!

“I am willing to take a pay cut for a thing that I’m passionate about” is such a normal thing that everyone serious I know in this industry says. Or like… even just ethical choices to leave money on the table (there’s a reason online casinos pay their software engineers so much!). Not everyone makes the choice (and I get people saying no) and but in a sense I gotta imagine it’s part of the calculus for making it work. “We won’t have to pay people half a mil in total comp like meta has to, because the mission is more straightforward”. I feel like an O&F ep mentioning someone from intel expecting _triple_ the comp. 600k!

And like… people saying it’s not enough and talking about equity. You’re not paying rent with equity!

Signed: a guy who was at a small startup and who would have been very happy with the inflation/CoL equivalent of 200k instead of what I had those early leaner years

At one point “joining the scrappy startup” does involve some scrappiness. Otherwise you’re just working in a division of Google that hasn’t been integrated into the borg yet.

comment 1y ago · link · parent

I just disagree with the article's premise of:

> Adding non-primitive props you get passed into your component to internal dependency arrays is rarely right, because this component has no control over the referential stability of those props.

Expecting referential transparency is a fine constraint. Inversely, the useRef technique might lead to its own weirdness where your UI is using some stale composite object that your event handler doesn't see anymore (and I prefer slow perf to chasing down correctness issues because you have a ref _and_ you have some accidental mutability somewhere in the stack _and_ you have stale UIs)

comment 1y ago · link · parent

Japan uses a scale that measures the movement[0]. Of course depending on where you are the result changes, but it's a lot more usable for the practical "how much shaking will be involved here/was involved here".

[0]: https://en.wikipedia.org/wiki/Japan_Meteorological_Agency_se...

comment 1y ago · link · parent

People say "don't just blindly use React.memo, fix slow renders first." But like... with referential identity being so cheap, blindly applying React.memo should be a huge win?

CostPostCache = CostOfCache + CacheHitPercentage * CostWhenHittingCache + CacheMissPercentage * CostPreCache

CostOfCache is pretty cheap compared to the CostPreCache IMO... CostWhenHittingCache is very low... and CacheMissPercentage is also probably pretty low in your typical React component that has more than 2 children node involved. Mathematically it feels like a no-brainer!

"Fix your slow renders first" just feels off. Yes you want to fix slow first renders! You also want to avoid wasting render cycles. These are distinct issues from my view. What am I missing? Why shouldn't React "just" do useMemo by default?

comment 1y ago · link · parent

They could thought right? because if you login to a website (that's passed along an ID) then you would have that bit set.

I don't need to know for certain the account on the receiving side exists, just that I have signed in before with it. Facebook does this at least!

Like "has an account" isn't possible without leakage, but "has logged in through this flow before" (hell, stick timestamps in there too!) does.

One thought though: your SSO provider has that account list, but often prompts a re-login. So it could be that your SSO provider account picker _doesn't have access to your account information fully either_.

comment 1y ago · link · parent

Kinda related to this: I _really_ wish that SSO providers would be better about telling me when my account was already used to log into a service. When I hit "sign in with Google", see my 4 accounts, and have to guess which one I used to sign into the service...

Maybe I'm missing some security detail here

comment 1y ago · link · parent

Maybe it's changed recently, but I knew a lot of locals just using the VPN stuff to use the outside internet (though, like a couple other countries, they have a big enough homegrown market to where for most people not having fb or whatever is a no-op)

My experiences in the country using VPN stuff was pretty interesting though... it _really_ felt like depending on where you were physically in the country that you were going through completely different censorship pipes. And things like Apple push notifications would just get through no problem so you could at least receive stuff via push from banned apps.

I wonder what kind of detailed explanations of the mechanics there are, because I don't have a mental model of it that works beyond "censors just tell each regional office of national operaors to do stuff and they all do it slightly differently"

comment 1y ago · link · parent

You can plug an ethernet cable in between machines and send files over it! So that period where this would be useful already had a pretty good solution (I vividly remember doing this like 3 times in the same day with some family members for some reason (probably nobody having a USB drive at the moment!))

comment 1y ago · link · parent

I really want to see some operational setups be available as a sort of playground for observability tooling.

A decent sized SaaS-like with usage simulation, and a postgres/rabbit setup that is merely fine. A place to check if your debugging tooling/strategy is upt to snuff.

1
212223
225