Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
slashdev
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
481.
▲
by
slashdev
3y ago
I used to supplement with potassium salt powder. A teaspoon was like 5000-10000mg if I’m remembering right. I was very uncomfortable having it in the house, I think a couple tablespoons would likely stop the heart of an adult. I think it’d
482.
▲
by
slashdev
3y ago
This is a nice example of the terrible decision making that goes on in the Canadian government. Canada is a lovely country, filled with hard working, friendly people, that kind of chug along in spite of the disastrous leadership by those in
483.
▲
by
slashdev
3y ago
The client doesn’t know anything about your request implementation, so sending that via a header doesn’t make sense, unless it’s added by some middleware that does. The load balancer could keep track of how long requests for a specific path
484.
▲
by
slashdev
3y ago
Then you’re doing it wrong! I joke, but a lot of people just want to show up and do the bare minimal until quitting time. Disturbingly, many seem employed in customer facing positions. To be fair, if they’re paying minimum wage, the employe
485.
▲
by
slashdev
3y ago
I love this idea!
486.
▲
by
slashdev
3y ago
See the concept of generational starships.
487.
▲
by
slashdev
3y ago
Big difference!
488.
▲
by
slashdev
3y ago
I don’t see the point of that. Your code won’t look like that anyway, change your example to a typical web application backend to see the problem. All you have is requests and responses. They don’t come in a predictable order. Whether you u
489.
▲
by
slashdev
3y ago
I work with AI daily in the form of Github Copilot and ChatGPT. It's not a parlour trick, it's become an indispensable tool. I feel handicapped when my internet goes down and I don't get Copilot suggestions as I type. I'
490.
▲
by
slashdev
3y ago
This exists, as I mentioned before, in Cloudflare's Durable Objects. You have serverless JavaScript and WebAssembly with consistent, durable, per user state. You could emulate this in your language and framework of choice by loading us
491.
▲
by
slashdev
3y ago
Bicycles are not a replacement for cars in all situations, uses, or weather. You could make lighter vehicles, but that’s equally true for combustion vehicles.
492.
▲
by
slashdev
3y ago
How’s that worse than continuous fossil fuel extraction, refining, and combustion over the lifetime of the vehicle?
493.
▲
by
slashdev
3y ago
> embodied CO2 from manufacturing, indirect impacts from increased demand for parking, demand for larger parking spaces Why would electric cars be any worse than combustion cars for these?
494.
▲
by
slashdev
3y ago
I'm not sure I understand what you're imagining here. It sounds like you're talking about having in-memory per-user state that persists between requests on the server side. Each time a request comes in, it's handled in t
495.
▲
by
slashdev
3y ago
I think I’d support items 1 and 4. 1. Prisoners owe a debt to society, that’s certainly one way to repay it, provided it’s voluntary. Same reason I’d support voluntary prison labor. 4. You could argue being a sex worker is far more exploiti
496.
▲
by
slashdev
3y ago
Sure, that’s the MVP. But we all know where it’s going. I’m not saying that’s a good or bad thing, just pointing out the technology won’t stop there.
497.
▲
by
slashdev
3y ago
I’ve programmed in both assembly and C, among other things. I stand by it, C is much closer to the machine than most languages.
498.
▲
by
slashdev
3y ago
The steelman argument is that it makes financial markets more efficient and decreases spreads, hence giving you better prices when you buy and sell. I think the reality is usually more complex and nuanced. Does it help your average retail i
499.
▲
by
slashdev
3y ago
C is like a high level assembly language. It maps very closely to how the computer actually runs programs. That, and it’s simplicity, make it a great way to learn. It’s not usually a great idea for production code anymore, but for learning
500.
▲
by
slashdev
3y ago
It’s not necessarily harmless. If that traffic jam blocks an emergency vehicle, people can die.
501.
▲
by
slashdev
3y ago
The parent is not making that argument. If you read carefully you’ll notice they recommend teaching your kids your alternate view yourself and exposing them to multiple view points.
502.
▲
by
slashdev
3y ago
I think it also depends on the kids. After about grade 4 my parents were mostly hands off with our schooling. We followed the program and phoned or emailed the teacher when we had questions. Our parents just made sure we were working. My mo
503.
▲
by
slashdev
3y ago
My brother and I were homeschooled after a point, but it had nothing to do with this. We followed the same curriculum and wrote the same exams at the end of grade 12. We scored well above average and had no trouble getting into university.
504.
▲
by
slashdev
3y ago
You can’t do that without a mutex. This provides a way to read a consistent snapshot of multiple atomic values without a mutex. Obviously you could just use a mutex. This may perform better under some workloads, especially if writes are ver
505.
▲
by
slashdev
3y ago
So your data store was still multi AZ? I’m a little confused how you’d serve the same user’s data consistently from multiple silos. Do you pin users to one AZ?
506.
▲
by
slashdev
3y ago
I could say the same to you.
507.
▲
by
slashdev
3y ago
I think we’re talking past each other. What I mean is that if you only need a load fence, that’s a lot cheaper (free on x64 if memory serves, just a compiler barrier) than lock cmpxchg. A mutex uses lock cmpxchg, so you’re arguably worse of
508.
▲
by
slashdev
3y ago
You answered it yourself, I would think it’s because Java doesn’t have that. Using the stronger form emits stronger instructions that have a bigger performance impact. No point paying for that if you don’t need it. If you’re using this kind
509.
▲
by
slashdev
3y ago
Has it been answered in the negative?
510.
▲
by
slashdev
3y ago
I see your “first do no harm” but I’ll counter that it is probably better than the alternative, which is to do nothing. And it may lead to people seeking professional help. It’s something for the unfilled gap in between, it’s not a replacem
More ›