Better HN
topnewbestaskshowjobs
Log inSign up

CodeMage

6,801 karma · joined Feb 26, 2009 (17y ago) · 1,367 submissions

Submissions

comment 5y ago · link · parent

> pthread_join is a blocking call, and therefore against the spirit of lockless programing. pthread_join will block until the child-thread exists, which means there's a lock in there somewhere. I personally think the first example they show is a terrible example as a result.

But they didn't use it as an example of lockless programming, did they? They were explaining what "acquire" and "release" mean, and they wanted to explain it in terms the reader should already be familiar with.

In fact, they explicitly say it's not lockless:

    In the previous paragraph we have seen how the acquire and release semantics of pthread_create() and pthread_join() allow the creator of a thread to exchange information with that thread and vice versa. We will now see how this kind of communication can happen in a lockless manner while threads run.

comment 5y ago · link · parent

I'm not saying you shouldn't use the word. I'm saying you shouldn't ignore its very specific and specialized context. Taking things out of their context often leads to problems, just like in this case.

comment 5y ago · link · parent

Let's not take the word "lie" out of its context and then get hung up on it. We're not actually lying to children by simplifying the explanation down to what they can comprehend with the tools they have at that stage.

comment 5y ago · link · parent

> Well, if you'll allow everybody to review everybody PRs then eventually that's what you'll get.

If you allow everybody to review every PR, it doesn't imply that you'll allow everybody to approve every PR.

comment 5y ago · link · parent

Yeah, I remember the rules about "botting", too. I don't know if they changed a lot since I played, but back then they basically amounted to "don't automate your character to farm while idle". In light of the pay-to-avoid-grind system, it didn't take me too long to conclude that the rules were pretty much "don't affect our bottom line, anything else goes".

comment 5y ago · link · parent

I tried Achaea after I got too frustrated with MUME. What turned me off wasn't the way people could pay to avoid grind, but rather how you absolutely needed a client script for combat. If you didn't have some kind of script that provided automated reactions, PVE was really hard and you couldn't even consider PVP. And, of course, people who made the best scripts were charging for them.

comment 5y ago · link · parent

St. Peter don't you call me 'cause I can't go, I owe my soul to the company store.

comment 5y ago · link · parent

> That is the meaning of "should", isn't it?

Not really. It's a difference between "should have" and "nice to have".

If you go in with the expectation that your job and your vocation should align, then you're setting yourself up for a negative experience. Maybe not immediately, but definitely down the road, because that alignment won't last forever.

I prefer to go in with the idea that it's a desirable, but entirely optional bonus.

I guess it depends on how "risk averse" you are in this context. It's kinda like salary negotiations. I prefer to put most of the weight on the base salary. Equity and bonuses are nice, but if the base salary isn't enough to live comfortably, then you're setting yourself up for a big risk: you're one management decision away from coming up short. Yes, I know that most US employers can fire you at will in theory, but in practice getting laid off doesn't happen as often as the myriad of stuff that can adversely affect your bonus or equity.

Different people have different outlooks. Mine puts the "job-passion balance" in the same category as "bonus" and "equity". It comes from my own, personal experience. YMMV.

comment 5y ago · link · parent

I'm honestly curious: are you talking about unsubscribing from a newsletter you explicitly subscribed to?

The vast majority of "newsletters" I get today are from companies that assume that I want to keep hearing from them just because I once did a one-time transaction with them. And no, it's not because I forgot to uncheck the "I want to receive blah blah blah" checkbox. I'm careful to opt out whenever there's an option for that.

I don't know about other people, but I call that stuff spam. Just because it isn't an e-mail from someone who got my address from a dump and decided to cold-mail me with their crap (or phishing or other scams), doesn't mean it's not unsolicited e-mail, i.e. spam.

Maybe things have changed over the years and I just wasn't paying attention, but I've trained myself not to press "unsubscribe" on something I didn't explicitly opt in to receive.

comment 5y ago · link · parent

> I think his derision of entitled ladder-climbing employees is valid from the perspective of someone who sees "building something valuable" as the point of employment.

Call me cynical and jaded, but I don't believe "building something valuable" is the point of employment.

"Building something valuable" is the point of my vocation. I used to believe that the employment and vocation should align. Over the course of more than 20 years of my professional career, the vast majority of the employers I've had have done their best to disabuse me of that notion.

The way I see it, the point of employment is to ensure you have the money and the benefits you need to live comfortably. If your employment and your vocation align, it's a nice bonus. If they don't, do what you're passionate about in your free time.

> Many hackers want to both provide the best possible life for their families and participate in a grand adventure of changing the world by creating something people want.

If you can get that, it's awesome. But if you can't, then you have to choose. And I know what I'm choosing.

comment 5y ago · link · parent

> You will be forced to use so many different app stores and won't have a choice to NOT use their app store "IF" it progresses like it has on the desktop.

You're only forced to use stuff when you're in the small minority that cares about not using stuff. Moxie Marlinspike explained it perfectly in his DEF CON 18 keynote.

Thing is, I don't think there's any conclusive proof that the majority of customer would be okay with what you're describing.

Most of us on PC are getting along just fine with one or two game launchers. I'm using GOG and Steam. My kid uses Steam and Epic.

When Funcom tried adding their own launcher for Conan Exiles, the vast majority of players berated them so hard on their forums that they removed it.

comment 5y ago · link · parent

I wish I could say the same. Unfortunately, my experience with Android Auto has been abysmal. Before the pandemic, I used to use it on my commute every day. At least once a week, it just wouldn't work and I would have to go through the ritual of trying the following things, until it started working again: * turn the car off and on again * turn the phone off and on again * forget and then re-create the Bluetooth pairing * delete the car from Android Auto and add it again

Also, it would randomly decide to stop heeding voice commands.

On top of that, any time there's an update to either Android Auto or Spotify, I had to pray things would keep working. If they didn't, sometimes The Ritual would fix things. Other times, it stayed broken until the next update.

comment 5y ago · link · parent

I know we're not supposed to discuss downvotes, but can anyone explain why this is downvoted so much? I want to know if there's some kind of misinformation here that I missed, so I'll spot it in the future.

comment 5y ago · link · parent

> Apple/Google are utility level companies and effectively control almost all of the apps/phones OS in a majority of US citizens smart phones.

And finally we arrive to the crux of the problem. Sounds like they should be regulated, yes?

There's no need to drag the 1st amendment into the discussion at all, because this really has nothing to do with it.

comment 5y ago · link · parent

Did the Kavanaugh protesters break windows, climb walls, steal stuff, and plant explosives? If they did, can you please point me to a source that shows that, because I haven't been able to find one?

comment 5y ago · link · parent

I've been looking at several different sources, and I can't find a single mention of Kavanaugh protestors committing any vandalism at all. The result of Kavanaugh protests? 128 people arrested.

You're comparing that with a mob of people who violently clashed with the police outside the Capitol, then stormed inside, broke windows, climbed the walls, sat inside offices with their feet up on desks, walked away with "souvenirs", and planted IEDs. The result of that? 13 arrests.

Can you please explain why your comparison is not disingenuous?

comment 5y ago · link · parent

Have you tried looking for them yourself? It's not really that hard. Here's the video, judge for yourself: https://www.youtube.com/watch?v=TBa5b1Xri8w

comment 5y ago · link · parent

Thanks, I didn't know that. I'm still learning about American history.

comment 5y ago · link · parent

Thanks! As an immigrant, I'm still not very well versed in American history.

comment 5y ago · link · parent

Thanks, I should've been more explicit about what I was doubting. I'll go edit my comment so I don't have to repeat the explanation to everyone who decides to reply :)

comment 5y ago · link · parent

I'm curious: what's the line between Terms of Service and editorial authority?

I don't know the exact wording of section 230. Even if I knew it, it wouldn't help, because I'm not a lawyer.

That's why I don't understand where the line is drawn and why. If the idea is to "protect open platforms from liability from user content", why is it okay to have policies that remove child porn, but not those that remove incitement to hate crimes?

comment 5y ago · link · parent

IANAL, but I somehow doubt that's how pardons work.

EDIT: What I specifically doubt is that Trump can just write out a pardon for "anyone on Parler". Doesn't it have to be a pardon for someone specific? Or can it be as generic and vague as he wants?

comment 5y ago · link · parent

You're right that it's technically democracy. You're wrong that there's simply no other way. I don't know what that other way is, but the society needs to keep evolving.

The current state of democracy in countries like UK and US brings to mind that famous Churchill quote:

"No one pretends that democracy is perfect or all-wise. Indeed, it has been said that democracy is the worst form of government except all those other forms that have been tried from time to time."

The common conclusion seems to be "oh, okay, guess that's it, then" rather than "maybe it's time to try something we haven't yet".

comment 6y ago · link · parent

You hit the nail on the head there. And it's not just K-12 math, either. I don't know about Australia, but I can see what it's like here in the US.

I moved here 7 years ago, and my son has gone through a public elementary school and is currently in the last year of a public middle school. If it was just one year or just one teacher or even just one school (or one district), I could write it off to bad luck. Unfortunately, it's pretty clear that the whole system is abysmal.

comment 6y ago · link · parent

Yes, I've looked at all the pictures in the author's story. And it never occurred to me to assume those are pictures of a ghetto the author lives in, as implied by the words "the real solution to the author's angst is to go study the field more broadly and get out of whatever ghetto they are living in" (emphasis mine).

But after I read your comment, I went back to the story and did a Google image search for a few (but not all) of those pictures. And guess what? They all come from other sources.

¯\_(ツ)_/¯

It's not like I was looking for hostility. I was reading the comment and nodding along and then the hostility came out of nowhere and smacked me in the face.

comment 6y ago · link · parent

Software development is a field with a lot of breadth and depth, and a lot of engineers do not regularly come into contact with things that are "far away" from them.

The other day I saw a comment on a forum about a videogame saying something along the lines of "an experienced programmer would wonder why there are two different compilers at work here".

The industry has expanded enough that we can have people with a decent amount of time spent programming without ever encountering things that other people with the same amount of time consider normal.

comment 6y ago · link · parent

This isn't about whether @madhadron's point in that paragraph was wrong, it's about civility. The usage of "ghetto" was gratuitous.

comment 6y ago · link · parent

At least you can find all your languages in the list. I'm in that funny position where I can see Dothraki and Klingon, but not one of the real world languages I care about ;)

FWIW, there is another one that I can use, that is almost identical to the one I'm looking for.

comment 6y ago · link · parent

That's a very interesting question! I think it shifts the goalposts a bit from what I've originally replied to, but I say that as a good thing, because it makes the discussion even more interesting and it allows me to better explain what I believe.

I believe that we should live in a society with much better education. An essential ingredient of that education -- much more important than the mere learning of facts -- is the understanding of how to approach a discussion, how to think logically, how to question things, etc. A crucial element of that "essential ingredient" is the understanding of the importance of context and of being informed.

I certainly didn't mean to imply that someone in Brazil should be taught, as part of their standard education, about the US constitution. But that puts the onus on them to get informed about the topic of the discussion before jumping into a discussion of it. And when participating in such a discussion, they should also probably indicate that they might not have the same understanding of the context that everyone else might have.

In short, I believe that we should all receive the education that teaches us not only the relevant context of the things we are expected to be dealing with in the future, but also that it's our responsibility to be informed when participating in discussions.

comment 6y ago · link · parent

We shouldn't have to, no. Ask yourself why you think it should be necessary to always explicitly talk about slavery whenever we discuss the US constitution.

Think about it this way: you don't rehash the rules of football (or "soccer", if you're from the US) every time you talk about a match. You don't go into the history of how those rules came to be what they are now. It's all part of the context and you only revisit that context when there's a reason to do so.

The relationship of slavery and the US constitution should be part of the context everyone is aware of. That means it should be part of education everyone receives. Thinking that it needs explicit mention in every discussion of the constitution implies a belief that most people aren't aware of the context, and that is a problem that needs a proper solution.

1
8910
46