Better HN
topnewbestaskshowjobs
Log inSign up

consteval

1,210 karma · joined Jul 19, 2024 (2y ago) · 1,613 submissions

Submissions

comment 2y ago · link · parent

The "diamond problem" isn't a C++ problem. C++ solved it with virtual inheritance.

Also C++ has exactly what you want. No interfaces, multiple inheritance. People don't utilize it unless it's a GUI lib.

comment 2y ago · link · parent

The harms, in my opinion, is that hyper-consumerism is an addiction. These methods are intended as a way to get impressionable and vulnerable groups hooked on various products, for the benefit of the manufacturer.

Children cannot make good decisions (generally) and they often have poor impulse control. Building the habit of spending money on random sparkly shit they don't need ensure that, as adults, they will be good consumers. And by that I mean materialistic and poorer than they have to be.

It's no surprise that these ads play into the most intrinsic human emotions for manipulation. They target social status, perception of self, pleasure. I see it as no different than sparkling lights on a slot machine. A way to manipulate the mind and build a money-burning addiction.

comment 2y ago · link · parent

> lifestyle PrEP seems to be counterproductive as a public health measure

No. Preventing HIV is not "counterproductive" because maybe some people got chlamydia when they shouldn't have.

First off, PrEP is more effective at preventing HIV than condoms. Doing away with PrEP to "improve public health" WILL give more people HIV.

Second off, people don't always use condoms. We can sit here all day and argue about what people should do or morality or discipline or whatever. None of that matters. What matters is what people ACTUALLY do. We have not yet unlocked mind control so we have to work within the constraints of humanity.

Third, people who do use condoms don't actually use them right, generally. Syphilis, chlamydia, and gonorrhea are all transmitted through oral sex. Nobody, even heterosexuals, uses a condom for oral sex.

Lastly, other STIs are actually very treatable. While they sound big bad and scary, they're nothing like HIV. 5 days of antibiotics and a runny nose is not equivalent to a lifetime of being HIV positive. People treat other STIs as less serious because they are, especially if you get tested regularly. Gay men and especially gay men on PrEP get tested very, very regularly. The odds of long-term syphilis side effects or whatnot is basically 0.

comment 2y ago · link · parent

The difference here is that:

1. Pharmaceuticals actually don't do all their own research. Universities find the drugs and what they can treat, pharmaceuticals research the product viability. They make medicinal products, they're not research labs

2. The research is often majority funded by the government, i.e. your taxpayer dollars. So the costs are often socialized, but of course the revenue is not.

IntelliJ actually develops they're stuff, they don't just take existing code, test it a bit, and then make a product. And IntelliJ is a truly private company, pharmaceuticals are not because they get huge sums of money from the gov.

comment 2y ago · link · parent

The reality is social sciences are inherently more complex because they are higher-level problem spaces. Biology in merely a stepping stone to psychology, like assembly to modern Java. Assembly is simple, understanding how the JVM works is hard.

Psychology intertwines just about every field you can imagine. Anthropology, neurology, biology, chemistry, you name it. They're fundamentally working on a level much, much higher than the hard sciences. So the sheer amount of variables is absurd, but also how they work together.

comment 2y ago · link · parent

Interestingly, this is exactly what Bayer pharmaceutical did with hemophilia medication during the AIDS crisis. They figured out their drug was contaminated with HIV so they stopped selling it to Americans. Instead, they sold it to developing countries.

comment 2y ago · link · parent

> Standard C++ compilers don't fundamentally do anything beyond what other systems languages do.

C++ is an incredibly difficult to parse and complex language. This is by design, because the language has evolved over time and compatibility was preserved.

Also templates are incredibly expensive because of: 1. How compilation units work (modules fix this, but its taken decades to get here) 2. How complex they are, i.e. they're turing complete and recursively defined 3. Platform compatibility (read some STL code to see what I mean)

These things ARE fundamentally different from other systems languages. C doesn't have templates, and macros are glorified find replace. Go barely has generics, let alone higher-kinded types. Rust doesn't even have higher-kinded types (template templates).

And rust and Go are NEW, so they can go willy nilly with whatever syntax they want.

comment 2y ago · link · parent

I think the biggest problem that can come of it is lack of standards.

Each dev has their own way of writing things, their own little language. To them it is perfect. And it all works, passes tests. But, if you let them do this then your code becomes sloppy. Styles go in and out. Like reading a book where every other paragraph is written by a different person, and none of them talked to each other. Sometimes you get PascalCase, sometimes camel_case, sometimes snakeCase. Sometimes booleans are real bools, sometimes they're "Y" "N" (yes, real) or sometimes they're ints. Sometimes functions take in a lot of arguments, sometimes they take in a struct with options. Sometimes missing data is nullable, other times it's an empty string, othertimes its "N/A". And on and on.

You can enforce a lot of this through automatic linters, but not all. You require a set standard and the PR procedure can enforce the standard.

comment 2y ago · link · parent

Tests only test functionality, they don't test business context. Comments explain business context.

For example, "we have this conditional here because Business needs this requirement (...) satisfied for this customer"

Your comment can test the logic works correctly. But someone coming in, without the comment, will say "why are we doing this? Is this a bug or intentional? Is the test bugged, too?"

Now, they'll see it's intentional and understand what constraints the code was written under. Your test can't send a slack message to a business analyst and ask them if your understanding is correct. The original dev does that, and then leaves a comment explaining the "why".

comment 2y ago · link · parent

I don't think it's about better off or worse off, it's about PR and perception.

The wider consumer base is practically itching for a reason to avoid this tech. If it gets out, that could be a problem.

It was the same issue with Geminis image gen. Sure, the problem Google had was bad. But could you even imagine what it would've been if they did nothing? Meaning, the model could generate horrendously racist images? That 100% would've been a worse PR outcome. Imagine someone gens a mistral image and accredits it to Google's model. Like... that's bad for Google. Really bad.

comment 2y ago · link · parent

> consciously choosing

This is remarkably hard to prove and also ignore that many people can play a role in suicide.

If you, say, bully someone every day and they take their life sure they made a decision, but you influenced it and you're partially responsible. People don't take their life for no reason. If you look at the reasons, it's incredibly complex and actually not mutually exclusive to gun violence. Meaning, their reasons may include there's a gun present.

comment 2y ago · link · parent

This is debatable. From what I've seen, increase of tough-on-crime policies and police presence does not make anything safer.

Also no, the rate of gun violence in the US is much higher than any developed country (and even a few undeveloped ones). Again, unavoidable and obvious.

I also think it's a bit hilarious when this talk of increased policies and tough-on-crime policies doesn't include... making it harder to obtain a firearm. Requiring ID checks, requiring registration, only allowing certified shops to sell. Apparently those policies are too tough and too much of a burden for law enforcement, somehow.

comment 2y ago · link · parent

> continue to be transmitted from generation to generation

Yes, and no. Because the baseline moves. Progressives are ahead of the baseline, and conservatives behind it.

Conservatives of my day were anti-marriage equality. The ones before them were anti-gay in general. Before them, they were anti-integration. Before them anti-women's rights. Before them anti-suffrage. Before them anti-abolition.

The conservative stance gets pushed more and more forever with each passing generation. The overall idea stays - "maintain the status quo and conserve the days of old". But the days of old have changed.

In 100 years, conservatives of that day will be wildly different than the ones right now.

comment 2y ago · link · parent

> political marketing that will mean nothing if they get into office

Just not true. As the person you replied to pointed out there are hundreds of bills restricting rights for Trans people, all from the right.

In my experience, the average republican is almost allergic to accountability. Yes, these things are happening. Yes, these policies DO represent you. And yes if you vote right you contributed to it.

If that bothers you, or others, it might be time to analyze your affiliations. But you should not simply lie or live in a delusion that nothing happens. No no... things happen. The culture war politics the right cherishes do come to fruition.

comment 2y ago · link · parent

Right, but I'm saying there's a disconnect between perception and reality. The reputation cities have is based on their perception and not necessarily reality.

You can only make some place so safe in a country like the US. It's trivial to obtain a firearm, so naturally gun violence will always be a problem for us.

To be fair, cities do also generally have MUCH more public services available. They have shelters, food banks, and free mental health facilities out the wazoo as compared to rural areas. But there's only so much you can do.

comment 2y ago · link · parent

There is a gun, and it's violent. And keep in mind suicide isn't always clear-cut.

What about a 13 year old boy who grabs the gun from the safe? This could have been prevented, and it's also suicide. This is a rather common scenario, too.

comment 2y ago · link · parent

> The term “tone policing” was used here as a pejorative, discussion-terminating label

Again, not a label, but an action. And it's not up for debate whether this was tone policing or not - it was, by the definition of tone policing. You could argue that it "ended the conversation" but I disagree. If you, or others, crumble and fold at even the slightest hint of critic I don't know what to tell you. I don't have that problem so maybe it's something you're doing, I don't know.

> Any association... is irrelevant

I was explaining the context, because yes that does matter.

> I don't fit that label

As I've said, it's not all inclusive or perfect. I don't even know why I bother writing careful if people are just gonna ignore it and lie about my intentions anyway.

> My position is so obviously right and self-evident

Again, if you actually read what I wrote I never said, implied, or even kind of implied this. What I said is that there's no argument to be had because these are just emotions.

I can't tell someone they aren't sad, or tell someone they aren't happy. That's not an argument, that's nothing. If you say you're some emotion about something then that's that, that's not a position that can be argued for or against.

I would receive this comment much easier if you were more honest. It's frustrating when I go through the effort to plainly explain my position and then someone like you can roll in and just... make things up. If you want to argue with made-up arguments then talk to a chatbot. I'm a person, you can't force an argument I didn't make on me because I don't accept it.

comment 2y ago · link · parent

Because in reality, as in statistically, SF is actually not that dangerous.

People say this about any vaguely blue city, which is almost all of them. But they forget Urban areas are very dense. You're actually more likely, per capita, to die to gun violence in rural America. It's just very hard to see that because the coverage isn't there and the actual amount of deaths is lower.

comment 2y ago · link · parent

> Revenue sources are not necessarily the be all

True, but in addition to the revenue Google ALSO tailors all their products to facilitate their advertising products. It's sort of like a singer who sells merch. The merch makes money but it also props up the singers singing career and funds tours.

Chrome revolves around ads, android revolves around ads, maps revolves around ads, gmail revolves around ads. If you take a hard look at all their products their all linked to Google's advertisement offerings in one way or another. That, to me, means adtech is their main line of business.

comment 2y ago · link · parent

A few problems:

1. Tone policing is not a pejorative, it's just what they're doing. Saying "please sound nicer" IS tone-policing. If people don't like being told they're tone policing (lol), they should stop tone policing. Problem solved.

2. Association to racism and anti-feminism. Whether you choose to admit it or not, there IS a strong association between all of these. They didn't claim the original commentator was one, but they pointed out their argument is used by them, which is true.

And, the association is real and well understood. That doesn't mean it's a perfect association, like everyone who denies climate change hates women or something, but certainly the odds are higher. Because, generally, those beliefs stem from the same place. Conservative beliefs. Again, not all, but there ARE strings tying those together and they're not made up.

3. Lack of substantive commentary. Sorry, there isn't any to be provided. "Climate denier sounds bad" isn't really an argument, you can't disprove that. They're just noting that bending over backwards is ONLY really awarded to the most privileged. Meaning, nobody asks a climate denier to "sound nicer" when talking about the government. Just like nobody asks a racist to sound nicer in their racism, but if you call out a racist you could very well be told to sound nicer as to not scare them off. As if they're on the cusp of realization (lol).

comment 2y ago · link · parent

Probably help, as that's the nicest thing I've seen someone call them.

comment 2y ago · link · parent

Yeah but that parts not up for debate either, and is settled science.

comment 2y ago · link · parent

Well, why not?

I don't understand this prevailing perspective in highly individualistic societies that pain is good. If you can achieve the same result without the pain why is that so bad? When does it become progress?

If I can be healthy just by taking a pill a day as opposed to dying, what's the harm? Lives are saved and that's... bad... somehow?

If I can get my nick nacks without going to the store what's the harm?

Sometimes things are too good to be true. But most of the time, things really are just good. They are just better. You do just progress forward. That's why I can write you this comment instead of writing a letter and waiting weeks for a response. Why did we give that up? Isn't waiting painful, and therefore good? I don't think so.

comment 2y ago · link · parent

Au contraire, there's a difference between social skills and introversion.

You can be introverted and have strong social skills. In fact, if you want to be successful, you will need strong social skills. Development is one of the few areas in which this is not the case, although the people who move up will have the strongest social skills.

Some will view it as playing politics, being manipulative, what have you. But ultimately these aren't personality traits, they're skills.

It's possible to be an extrovert with bad social skills, i.e. you're obnoxious. Or an introvert with fantastic social skills, i.e. you're the next CTO. Some, maybe even most, introverts don't know this. So they don't develop their skills and wonder why they don't succeed.

All to say, the recruiter is 100% right. How CAN you be 40 with such poor social skills? Well, you're an introvert and everyone has told you your whole life that's not for you. So you purposefully ignore those skills.

comment 2y ago · link · parent

I don't understand how it's clickbait when the title perfectly and completely describes a real problem.

Sure you could argue the problem isn't a big deal or doesn't matter (tough argument btw). But you can't say stuff is clickbait when it's not.

Clickbait is like "The best brownie recipe that'll make your family stop hating you!" And then you click and it's 1% brownie recipe and 99% filler story and ads. Oh and also they're box brownies.

Clickbait is NOT "the grass is green and tree bark is usually brown" and then you click and it tells you about the color of grass. No, you knew what you were getting into when you clicked and it's all true.

comment 2y ago · link · parent

but that's... not what he said. He did say "apple=bad". I mean it's obvious you didn't even try to read his comment. Are we sure this isn't a bot?

comment 2y ago · link · parent

Right but you can pull domain names with a regular expression. You don't need an LLM for this purpose, and when you introduce one you're opening the door for non-determination. It's not a traditional algorithm, it can just lie accidentally. It can tell you 2 + 2 is 5, or the sky is red.

Point being, that behavior is fine in many problem domains. But, if the problem CAN be solved by an algorithm it SHOULD be solved by an algorithm.

comment 2y ago · link · parent

I agree. I think as soon as you refer to AIs as what they are, computer programs, a lot of problems and solutions prevent themselves.

For example, why are some people trying to give rights to computer programs? Since when have computer programs had rights? Fair use doctrine, for example, is a right for human beings.

comment 2y ago · link · parent

Apple charges money on a license for lighting cables. And it's not cheap. Surprise, their competitors don't want to pay out millions to Apple for some crappy charging cables.

People have this idea lightning stuck around because it was good. No, it was a money printing machine that required no lubrication from Apple. Even the dumbest of the dumb MBAs wouldn't have killed lightning. From a business perspective it's gold.

1
5051525354