Better HN
topnewbestaskshowjobs
Log inSign up

nmilo

1,205 karma · joined Jan 2, 2022 (4y ago) · 235 submissions

Submissions

comment 3y ago · link · parent

It being creepy is the harm/negative consequence. We feel innately creeped out about something like that because we're raised to value privacy the same way we value safety and security. A violation of privacy doesn't need some negative consequence to be harmful, it's harmful in and of itself.

comment 3y ago · link · parent

> Google quietly planned to put a lid on Apple’s search ambitions. The company looked for ways to undercut Spotlight by producing its own version for iPhones and to persuade more iPhone users to use Google’s Chrome web browser instead of Apple’s Safari browser, according to internal Google documents reviewed by The New York Times.

So their top secret plan is to.. make a competing product? AKA what all companies always do with their competition?

comment 3y ago · link · parent

Sounds like FUD

comment 3y ago · link · parent

Wow that is annoying, especially since any malloc is going to give you 8-byte aligned allocations anyways.

comment 3y ago · link · parent

There should be a from_raw_parts-like interface for Arc that can construct one out of a pointer to a T + control block. That way you can shift the string data over and stick the control block inline (which is how I assume it's laid out in memory) and convert String to Arc<str> for free (well not free, shifting takes O(n), but so does the copying in Arc::new, so in the end you do end up avoiding an allocation for free)

comment 3y ago · link · parent

So then memory safety isn't the end-all be-all for security anyways. What do you suggest we use instead?

comment 3y ago · link · parent

The fact that YAML is so bad is why being "understandable by a human" shouldn't be the ultimate goal of any configuration language. I would gladly make concessions like quoted strings or bracketed lists to avoid the hell of trying to figure out if my string/number/list actually parsed as a string/number/list.

comment 3y ago · link · parent

Okay, I was being a bit hyperbolic and I'd rather not go back and forth, but I do really hate the newtype pattern. I'm not sure why they don't introduce something like what Go has, like `type UserID = uint32`.

comment 3y ago · link · parent

I didn't mean any offence when I called the change simple, though I do now see how it can be interpreted that way. When I call it simple it's because I am ignorant about programming language design changes, because, well, I don't really care. I'm not a PL designer. The change is simple to me because it: (a) seems arbitrary and easily changed, (b) solves a class of problem that I've never run into in other languages nor can ever really envision happening in a realistic scenario, and (c) if there are complex sets of tradeoffs involved in enabling this feature then they haven't been communicated well to the end-user at all. Especially with how bad the current state of affairs is, my calling the change simple should be a sign to the Rust team that if this really is the best possible decision for the language, they should put a clear statement in the compiler saying why. Because as it stands, from my end-user perspective, I still haven't seen a great reason why this shouldn't be implemented.

comment 3y ago · link · parent

The no-foreign-traits-on-foreign-types rule and the terrible ergonomics behind the newtype "pattern" combine to make one of the worst development experiences I've ever seen in a language. It basically means you can only use one large library, ever. (With caveats.) For example, if I'm writing a game, I include a math library and pull in a Vec3 type, then add Vec3 as a member to all my objects, and then later I want to pull in a serialization library that defines, for ex, a Serializable trait, I can't, unless:

1. I write my own Vec3 class, not fun.

2. I write my own serialization library, could be fun depending on who you are but surely a waste of time.

3. I make a newtype, implement Serializable on it, find-and-replace all Vec3s with my own SerializableVec3, fix about 500 errors one by one by adding .0 everywhere, implement wrappers for all the Vec3 methods I want to use, rinse and repeat for every other foreign type I want to serialize.

4. Hope the math library and the serialization library know each other and the math library implements all the traits you need. In practice this is what happens, but this makes a weird situation where serde is the de facto standard/monopoly because it is literally impossible to use anything else. Which may be fine for now, serde is the standard precisely because it's so extensible, but if you ever want to use another library with traits, well you're SOL and it's back to step 3.

How they managed to ship a language with dev ergonomics this bad is beyond me. Especially when the solution is so simple. Allow foreign traits on foreign types for executable projects only. Put it behind a compiler flag for all I care. -fallow-foreign-traits-I-dont-care-if-this-breaks-things. Just let me implement my damn traits, the current state is ridiculous.

comment 3y ago · link · parent

Each of those arcs do have a meaning, they're called 'degrees' and any human being whose not being obtuse for the sake of argument would tell you that they're 'real'. The point of calling nautical miles 'real' is that you can do easy mental math with them to express a distance in terms of latitude and longitude.

comment 3y ago · link · parent

Example?

comment 3y ago · link · parent

Curious because I've never done it, how do people buy used cars off classifieds other than with cash? Checks can bounce, e-transfers can be reversed, etc. Seems any method other than cash is very susceptible to scams.

comment 3y ago · link · parent

Why not right-shift all the pointers and set the int's top bit to one instead? That way arithmetic stays mostly the same and to dereference pointers you just left-shift before.

comment 3y ago · link · parent

> Look at you trying to change my beliefs via rational debate. What a hypocrite.

LOL this is only proving my point. You're digging your heels and getting angrier without changing. You're right, I'm wasting my time.

comment 3y ago · link · parent

Slavery wasn't abolished by changing people's minds via rational debate. Did you forget we had to literally send people with guns to shoot and kill the people that held that belief. They only changed their beliefs after decades under new laws and culture.

The research is out on changing people's beliefs, for most it usually causes them to dig their heels in and hate the other side even more. If you encounter a racist person or a Nazi in real life, you will not change their beliefs with rational debate, so don't even try. Just avoid them because they are unpleasant people. You will be happier if you stop fighting this futile moral crusade.

comment 3y ago · link · parent

There comes times that you need to put your own principles aside for the good of yourself and for the other person, and forget trying to be "correct" all the time. Life gets a lot better when you realize that you probably can't, and shouldn't, try to change people's minds.

comment 3y ago · link · parent

That's why it was proposed iCloud or whatever big tech provider does the key distribution, just like they do for iMessage. It would be a big win for Apple if they actually cared about privacy. But maybe it's just a pipe dream.

comment 3y ago · link · parent

I don't follow. Simple single-sender-single-receiver would still be 100% secure so use that if it's life or death. Forwarding and multiple recipients can come with a warning that it will be unsecure. Same with the headers. Anyone actually relying on it to be secure would understand the opsec necessary to maintain this, just like any other platform.

comment 3y ago · link · parent

Why are you letting perfect be the enemy of the good? Regular email doesn't preserve sender identity when forwarding, and why should that even matter for encrypted mail? Encrypted clients can disable including the original email in a reply, which is totally unnecessary nowadays. And it's okay if headers are unencrypted as long as the client knows it's unsecure. All I'm seeing is a strictly better system than cleartext mail which might have holes around the edges but none that can break the integrity of single-recipient encrypted mail, which is what most people use encrypted email for anyways.

comment 3y ago · link · parent

People smoke from 15-20 years old but still don't die in their 30s. It doesn't mean it's not bad for your health. This is the same thing, it's bad for the health of the company. High dev turnover, poor working conditions, and productivity issues can all lead to a death from a thousand cuts, and even if the company doesn't actually go under, you can't say that a company didn't suffer because of it.

comment 3y ago · link · parent

HN readers massively overestimate the willingness of the average person to "fight the power" or whatever. When Netflix cracked down on password sharing, I was fully expecting people to realize how bad Netflix has become and to move on to other platforms. Everyone here thought they were shooting themselves in the foot. But no, the password sharing fix did exactly what they wanted it to do, and subscriptions actually increased. The truth is that no one but a couple of techies know or care what NewPipe or yt-dl are. This move by YouTube will work and there's not really anything we can do about it.

comment 3y ago · link · parent

What are you talking about? It's the engineering definition of "works" because engineers live in the real world and incorporate economic factors into their decision making to make something that works better under real-world conditions. If a solution merely mitigates the frequency or severity of a problem, the solution is obviously not better than doing nothing at all, since you just admitted it mitigates the severity or frequency of a problem. Would you rather have 100 0-days or one? Would you rather have a high-impact 0-day or a low-impact one?

comment 3y ago · link · parent

Security by obscurity very obviously works, in the sense that it raises the bar of effort required by potential attackers. You can't rely on it to be your only security, but there's no reason why it wouldn't help.

comment 3y ago · link · parent

I'm sick of this weird HN trend where readers pick out a single sentence only tangentially related to the rest of the article and then try to prove how smart they are by rebutting it.

comment 3y ago · link · parent

I've always read comments like this and just assume it's confirmation bias on two levels:

1. Out of the 1000s of ads you see every day, at least one of them might coincidentally relate to something you talked about. You don't notice all the ads that are wildly irrelevant.

2. Even if you personally didn't have a hyper-relevant ad experience, out of the 1000s of HN readers that might comment a reply, one of them surely did. You just might be the one lucky guy that got your hyper-relevant ad of the day.

comment 3y ago · link · parent

That's the whole point. Consciousness is a fuzzy concept and shouldn't be used as an ethical basis as to what is OK to harm and not harm.

comment 3y ago · link · parent

Plants, bugs, and fish are all "beings" despite having varying degrees of consciousness and ethical allowability-of-harm. But fine. Whatever, my bad. Replace "being" with "entity" and my question still stands.
12345
8