Better HN
topnewbestaskshowjobs
Log inSign up

slashdev

17,491 karma · joined May 14, 2013 (13y ago) · 5,495 submissions

Founder of revscope.co

Revenue focused web analytics to help you quickly identify where to focus your effort to best increase revenue.

And embersofvictory.com

Retro turn-based strategy game.

Submissions

comment 3y ago · link · parent

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. I was on the Dean’s list at university and my brother scored in the 97th percentile on the SATs.

comment 3y ago · link · parent

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 very rare.

comment 3y ago · link · parent

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?

comment 3y ago · link · parent

I could say the same to you.

comment 3y ago · link · parent

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 off than just using a mutex (or a reader writer mutex, which has similar performance characteristics for seldom write workloads.)

About C++ using the same instruction for both, that’s up to their implementation. There’s no requirement that the more relaxed atomics actually be more relaxed. Only that the stronger atomics don’t permit more relaxed behavior.

There may also be other requirements in the spec, that I’m not aware of, that require using the strong compare exchange.

It’s been years since I’ve done any substantial lock free programming, I may be remembering incorrectly.

comment 3y ago · link · parent

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 of thing, it’s specifically because performance really matters and you want to avoid that synchronized compare and exchange that a mutex uses. Otherwise why wouldn’t you just use a mutex or reader writer mutex.

comment 3y ago · link · parent

Has it been answered in the negative?

comment 3y ago · link · parent

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 replacement for professional help.

comment 3y ago · link · parent

I disagree that they’re the same.

When you have motivation, you don’t need discipline. The work comes naturally because you want to do it. When that fades, and it will, discipline is the only thing keeping you from quiting.

comment 3y ago · link · parent

That’s the ultimate nimby. Don’t even think of living or working in my city.

May cities that pursue that strategy suffer the exodus of people, wealth, and jobs that they deserve.

comment 3y ago · link · parent

Yet it’s my MacBook with the stupid Touch Bar that died while my “cheap crap” Alienware (Dell) laptop is going strong. It also cost half as much and has more than twice the compute.

comment 3y ago · link · parent

Yep, exactly this. All the barriers to entry are decreasing the supply. The only way to fix it is get rid of them in a dramatically big way.

Politicians like to point at foreign investment, empty houses, immigration, anything except acknowledge and fix the real problem.

comment 3y ago · link · parent

Motivation is fickle, discipline is about doing the action when you’re not motivated and don’t want to.

Motivation comes and goes. Discipline shows up for work every day, rain or shine.

I’ve worked on long term projects, and it’s the discipline that lets you power through those tasks you don’t want to do. It’s required to finish anything of substance.

One thing that’s really helped me build discipline is the gym. It’s hard, I usually don’t want to go. But even on the days I don’t feel it, I go and get a workout in, even if it’s not a great workout. Even if I just go for a walk in the park or on a treadmill some days.

Once you do something consistently enough, it becomes habit, and develops its own inertia, to the point where it can become harder not to do it. I think habit and consistency are important in maintaining discipline.

comment 3y ago · link · parent

Yeah, there is no world where Nvidia grows into this valuation. It would have to be bigger than the entire semiconductor business today by itself. If you think AI can bring that much growth, well then it could happen, but it seems extremely unlikely to me.

comment 3y ago · link · parent

I think their hardware is comparable with nvidia. The problem is the software is awful by comparison. It’s hard to run any of the AI workloads with AMD, and even when you can the performance is poor. The software investment just hasn’t been made. Until then they are not even in the game.

comment 3y ago · link · parent

I’m a fan of the death penalty for really egregious cases, given a hypothetical perfect Justice system. Some people are not worth trying to rehabilitate. However, the Justice system is flawed and a decent percentage of people who get the death penalty are innocent. So what do you do? I’d rather they be locked up for the rest of their natural lives, barring a change in evidence or technology that leads to a change in sentence. But I don’t want some remorseless psychopath back in society because they’ve reached the limit on how long we can hold them.

comment 3y ago · link · parent

Nobody wants to sell right now. Partly because the demand isn’t there, partly because the prices are down a little, but mostly because they don’t want to swap a 3% mortgage for a 7% mortgage. I wouldn’t want to sell either in that scenario.

If you want a comparable place, your monthly payments are going to nearly double. Not many families can absorb that. You could sell and rent, but most people don’t want to do that, it feels like going backwards.

Ironically this means new construction is doing pretty good. They’re offering discounted mortgages and it’s basically the only option for someone wanting to go from renting to buying.

comment 3y ago · link · parent

I feel a lot more comfortable wiring the money or using checks or so on than traveling across a border with that kind of cash.

comment 3y ago · link · parent

What happens if you declare it? Could they confiscate it without due process, like the police can in many states?

comment 3y ago · link · parent

I think it’s actually beneficial to both parties, which is why it’s become the standard. It doesn’t tell you anything about the company.

comment 3y ago · link · parent

They don’t resubmit your data, but they’ll stop actively removing it from websites where it gets published.

comment 3y ago · link · parent

It’s more complex than just that, there’s also tax implications for both investor and company. The liquidation preferences also apply in case of successful exit. If you have 2x preferences on this 1.2B note, if the company is acquired for less than 2.4B, the investor takes everything and the founder gets a gift basket, if the investor has a thoughtful secretary. If the investor has a board seat, they may even be able to force the sale over the founder’s objections.

Don’t ever give your investors board seats. They are not your friends or advisors.

comment 3y ago · link · parent

There’s conversion rights to covert into equity, that’s why it’s called a convertible note. Otherwise it’s just called a bond.

comment 3y ago · link · parent

The author is a French Canadian academic at Université du Québec à Montréal. He is one of the more famous figures in computer science in all of Canada, with over 5000 citations (which is stretching the meaning of famous, but still.) This is not closed source work optimizing for some company product, this is research for publication on his blog or in computer science journals.

comment 3y ago · link · parent

It wasn’t all his money. Not that I think that’s what he’s doing.

comment 3y ago · link · parent

> But yes, the whole American idea of "race" is weird as a European. Americans tend to mean "White" or "Black", but there's a lot of difference between a white Irish man, a white Scottish man, a white Italian man, and a white Bosnian man.

Precisely my point.

comment 3y ago · link · parent

White is hardly homogeneous. Race is a poor proxy for culture and language.

I’m not going to assume good faith when it’s not the likely explanation.

comment 3y ago · link · parent

Why do you have to bring race into an unrelated discussion?

comment 3y ago · link · parent

Those same engineers will still be there in the microservices world. You can argue that the damage they can do is reduced, but I don’t think that’s always true.

comment 3y ago · link · parent

This is common all over the developing world. I always give them a little something, despite the feel of extortion it has to it. It’s marginally better than begging, and they will really watch the car, and often help with parking and leaving. Fair enough.
1
181920
184