Better HN
topnewbestaskshowjobs
Log inSign up

nmilo

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

Submissions

comment 3y ago · link · parent

You found the wrong form of the word. There's the medical consciousness found in the dictionary, as in, "He is asleep so he has lost consciousness," and there is the metaphysical consciousness as in "does a fish have consciousness?" The latter is what people refer to in ethical debates, the former is more of a medical term.

comment 3y ago · link · parent

What are you talking about? I'm not trying to pull an underhanded argument, I'm genuinely confused about others' views.

comment 3y ago · link · parent

A lot of people have wrote about the ethical considerations and to me they make no sense. Since when did our generally accepted ethics say that imposing suffering onto a conscious being is bad, but non-conscious beings is fine? This is the completely wrong correspondence because there's counter-arguments for both sides. You wouldn't harm a puppy, even though it's (probably?) not conscious, and I personally wouldn't care to cause a computer program to suffer, even if it claims to have some form of consciousness.

comment 3y ago · link · parent

Because pointing out that a slogan is simple and in-nuanced is unhelpful, and in bad faith. They're supposed to be simple. Slogans in a democracy are calls to action towards a general idea, and the more complicated they are the less people they can rally. Obviously the nuance will come when lawmakers actually put the thing into writing.

comment 3y ago · link · parent

So round it, this is engineering, not math. The safety buffer factor accounts for any rounding errors anyways.

comment 3y ago · link · parent

1) Who said a set is supposed to be a "collection of items" or any other kind of set in the CS definition? A set is a mathematical object which can be said to contain, or not contain, an element. The natural numbers fall into this definition of a set.

2) There's no such thing as a "finite symbol." What does that even mean? A symbol is a symbol, it symbolizes something. The symbols themselves are finite; they're just letters. But if that something that it symbolizes is an infinite quantity, why stop it?

You are living too close to reality and numbers and words. Even if sets were rigidly defined as finite objects, why not define some new thing, call it an "infinite collection," and let all the theorems like countability and aleph-null come out of that? It lets us do useful math, after all, so why let the words we use stop us? Clearly set theorists worldwide find nothing* wrong with the current definition.

comment 3y ago · link · parent

I think you're mixing up math and natural language. A "countable set" in math, by definition, means what I said it means, (or more precisely means it is 1-to-1 with the natural numbers). You can argue that the word itself is misleading/unclear, but that's a semantic argument and you should make clear that that's your stance.

comment 3y ago · link · parent

Countable (roughly) means that you can count from one element to any other in a finite amount of time, it doesn't mean you can count the whole set in a finite amount of time.

comment 3y ago · link · parent

Couldn't the police in theory get a warrant for the footage on your SSDs? The problem with Ring is that they give data to police without warrants, but in this case the problem seems to be the over-invasion of privacy of the warrant system.

comment 3y ago · link · parent

> The donated shoes that ended up in Indonesia have added to a flood of illegal second-hand clothing pouring into that developing country, according to a senior government official there, who said such cast-offs pose a public health risk, undercut its local textile industry and often pile more waste into its already bulging landfills.

Do they even understand the words coming out on the page? I'm sorry but if people can't afford to clothe themselves then fuck the "local textile industry," aka forcing people to spend money on clothes they probably cannot afford. Wearing shoes should be a human right (God knows there's probably enough shoes for everyone on Earth) and saying we should stop sending second-hand clothes to places for the purposes of job creation is just breaking windows to make jobs for window repairmen.

comment 3y ago · link · parent

No, your processor can only do n things at a time, where n is the number of cores (probably like 8) (simplifying hugely of course). It's pretty easy to fill out 8 cores with 1000s of threads, the coroutines only become useful when almost all of them are blocking on a socket or something, periodically switching on and off to handle it.

comment 3y ago · link · parent

... that's because it is a duplicate. If you have a SocketAddr, and you want to access the SocketAddrV6 variant, remembering that you may also have a SocketAddrV4, you need an if let:

    if let V6(sock6) = addr {
         // use sock6: SocketAddrV6
    }
The first-linked duplicate answer will answer your question: https://stackoverflow.com/questions/9109872/how-do-you-acces...

comment 3y ago · link · parent

Do I live in a different world than everyone here? Stack Overflow is awesome and I don't think I've ever had a bad experience with it (seriously). The response time is like 10 minutes or less since everyone there is so hungry for karma. The complaints about "closing questions" never really hit me because, when a question is closed, they usually point you towards an answer that helps anyways. They've always answered my stupid questions from years ago like "why does my program crash when I put a 1MB object on the stack" and "please make this CMake setup work for me," and if they didn't, they point me to a duplicate question that does. Just set aside your ego, fuck karma, and you'll be fine. I really don't see how people can find this site toxic.

comment 3y ago · link · parent

How would you even "run the numbers"? How about try the idea and see if it works? All it would take is one hit game for devs to see the potential of web gaming (and they already see it. Why do you think flash games were so popular?) If Fortnite could run in the browser it probably would have instantly become the biggest game in the world.

comment 3y ago · link · parent

It's as good advice as the ABABCB song structure is for writing pop songs. As cliche as they are, you need to understand the rules to know how to break them.

comment 3y ago · link · parent

And yet Dan Harmon still manages to write popular and effective stories based solely on pseudoscientific principles. Storywriting is an art, not a science, after all; vague brush strokes are what you need to get the job done, and if it's possible to get good stories out of Jung's theories then maybe you should rethink how useless pseudoscience really is.

comment 3y ago · link · parent

So allow Tailwind CSS downloads. The site looks broken because you broke the site.

comment 3y ago · link · parent

It doesn't really matter what the compiler people classify as different kinds of optimizations. If the function call is gone, it's inlined. From a user standpoint I don't really care if it's not technically considered an "inline" by the gcc team.

comment 3y ago · link · parent

Funny that "in the style of a Hacker News comment" didn't really work. It's more like "in the style of a 10th-grader's English essay," which is really what all of ChatGPT's outputs sound like. They're weirdly stunted and robotic (haha). One point per paragraph, connected with the most basic of connecting words like "Furthermore", they really sound like a high schooler converting an essay outline to passable text.

Not that I'm saying it's not impressive, but it does come with some implications for the future: first, I don't think there's any way the output can even get better at all. There's too much bad writing out there, and it's too hard to differentiate it from good writing. ChatGPT is trained on I guess the entire Internet, which of course includes terabytes of poorly-written blogspam and bad marketing copy. And if AIs like ChatGPT really have some practical purpose, and if they really are the future of, say, technical writing, or writing on the Internet, are we destined to read shitty blogspam forever? Will everyone's writing become lame and highschoolery and robotic? Or will being able to write in a more interesting way become yet another key indicator of humanity and sincerity that we look out for?

comment 3y ago · link · parent

Yeah, I never said it couldn't, I said the more helpful thing to say is that UB can cause what looks like dead code to not be dead. If that dead code includes, an rm -rf, or, say, a function to enable/disable arbitrary pins on your chip, then yes, that dead code might be called, and with undefined parameters too. But saying UB will wipe your drive is just misleading and almost wrong.

comment 3y ago · link · parent

I thought this was going to be an actually useful post about the details of UB, when it happens, and what it generally looks like, but instead it's just more of the same often repeated "if you write a program with UB your compiler will literally summon dragons and wipe your hard drive and kill you in your sleep."

The truth is that practice diverges from theory, and, in practice, it is actually useful to talk about UB as a thing that happens and not as some mystical aura the compiler can sense or not. Leading to, in practice, almost all of these points being, if not flat-out wrong, at least unhelpful or misleading to the average programmer. For example:

> 14. Okay, but if the line with UB is unreachable (dead) code, then it's as if the UB wasn't there.[1]

The linked post ([1]) doesn't even showcase this phenomenon, it shows something completely different, where ignoring a 3 transmuted into a bool causes more UB. The problem was that you already had UB to begin with when transmuting a 3 into a bool. I want to see a godbolt output where the claimed:

    if (false) {
        run_ub();
    }
actually causes problems.

> 28. At least it won't completely wipe the drive.[2]

This is just unhelpful for anyone trying to learn more about UB. UB can call parts of your code that would otherwise be dead, which is a useful piece of information to know. And if you literally write "rm -rf /" in these dead sections, then yeah, I guess UB is technically wiping your drive, but stating it like that just gets in the way of anyone trying to learn more about UB and just perpetrates this unhelpful theory that UB can literally do anything it wants, such as...

> 30. At least it won't start playing Doom if the program didn't already have the Doom source code in it.

Really?

> 31-32. If a UB-containing program "worked fine" previously, recompiling the program without any code changes will still produce a binary that "works fine." Recompiling without code changes and with the same compiler and flags will produce a binary that still "works fine." Recompiling as above + on the same machine will produce a binary that still "works fine."

In practice, compilers are generally deterministic. I see no reason this should be the case. Don't link me a sadistic compiler that randomizes code output.

Finally,

> The moment your program contains UB, all bets are off.

is blatantly untrue. All guarantees are off, but I can bet what most programs with UB do, and it is still useful to be able to reason about what programs with UB do. For example, I can tell you what:

    int main(int argc, char \*argv) {
        int *p = NULL;
        *p = 4;
    }
does on O0 on my machine, and most linux machines, despite the fact that it is untrue for "Any kind of reasonable or unreasonable behavior happening with any consistency or any guarantee of any sort."

You guys are engineers right? Software engineers? Why don't you do what all engineers are supposed to do and that is use experience and intuition to know when theory applies in practice, and when it doesn't?

[1]: https://www.ralfj.de/blog/2020/07/15/unused-data.html

[2]: https://kristerw.blogspot.com/2017/09/why-undefined-behavior...

comment 4y ago · link · parent

Genuinely curious, what are any advantages of big endian other than "it's how we write numbers in base 10?"

comment 4y ago · link · parent

> Overall, the risk of myocarditis is greater after SARS-CoV-2 infection than after COVID-19 vaccination and remains modest after sequential doses including a booster dose of BNT162b2 mRNA vaccine. However, the risk of myocarditis after vaccination is higher in younger men, particularly after a second dose of the mRNA-1273 vaccine.

comment 4y ago · link · parent

We used to double-space after a period because that looked better on monospaced typewriters. But in French it's simply a part of punctuation, and getting it wrong means you wrote it wrong. It's as wrong as if I'm writing English and put a space before the ':' or '!', or put a comma after a quotation mark. French people shouldn't have to change their language to type in Google Docs. It should be the other way around.

comment 4y ago · link · parent

They're a non-profit.

comment 4y ago · link · parent

A search engine that's just Wikipedia and Reuters sounds like the most boring website on the planet. Sometimes people don't want "just the facts," all the time. Sometimes they just want to have fun. And obviously "metaverse" won't yield many results in a 90s-style-website search engine.

comment 4y ago · link · parent

Why does it kind of suck? Let people believe what they want to believe. It's not like it makes any difference to your life or theirs.

comment 4y ago · link · parent

> Musk hasn’t said all that much since the takeover on Twitter, but he has replied to a couple of users who have complained about platform censorship in the past. One is a user called “catturd2” who claims he’s shadowbanned and who tweets COVID misinformation among other things. The other is Canada Proud, a right-wing propagandist group that also spreads COVID misinfo and focuses on attacking Canadian PM Justin Trudeau.

What a nasty comment from an otherwise fine article. A reply is not an endorsement, and not even linking the tweets in question really lets the author hide the evidence and twist the paragraph into whatever he wants it to mean. Besides, it's not like Justin Trudeau is lacking on things to attack him for.

1
45678