4,892 karma · joined Jul 7, 2014 (12y ago) · 1,430 submissions
comment 10mo ago · link · parent
200 years ago, being a blacksmith was a viable career path. Now it's not. The use of hand tools, hand knitting, and hand forging is limited to niche, exotic, or hobbyist areas. The same could be said of making clothes by hand or developing film photographs. Coding will be relegated to the same purgatory: not completely forgotten, but considered an obsolete eccentricity. Effectively all software will be made by AI. Students will not study coding, the knowledge of our generation will be lost.
comment 10mo ago · link · parent
1. Microsoft doesn't make their money from Windows anymore. They make their money from services, like Azure and whatever they are calling their web-based Office this week. Windows is now mostly a telemetry-collection system for them, not a product.
2. People who hate Windows don't have a choice. Regular people are issued a PC and its OS from their employer, and can't change it. Consumers who buy low-end laptops for school or hobbies aren't going to pay twice as much for a Mac. And outside of HN, a vanishingly small number of people are even aware of Linux or other FOSS alternatives, much less have the ability to install and use it.
comment 10mo ago · link · parent
Have you read the standard? It says: "The result of sizeof applied to any of the narrow character types is 1." Here, "narrow character types" means char and char8_t. So technically they aren't guaranteed to be 8 bits, but they are guaranteed to be one byte.
comment 10mo ago · link · parent
True, but sizeof(char) is defined to be 1. In section 7.6.2.5:
"The result of sizeof applied to any of the narrow character types is 1"
In fact, char and associated types are the only types in the standard where the size is not implementation-defined.
So the only way that a C++ implementation can conform to the standard and have a char type that is not 8 bits is if the size of a byte is not 8 bits. There are historical systems that meet that constraint but no modern systems that I am aware of.
[1] https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/n49...
comment 10mo ago · link · parent
Sure there is. ID checks make it impossible for people who don't have government-issued ID to vote, which is a lot of people; and furthermore ID checks don't actually improve election security. Same-day counting is impossible if you are going to count all mail-in votes that were sent before the deadline.
To be clear, I'm not saying that politicians aren't agitating for conditions that benefit them. That's there job. But I also believe in supporting access to voting and fair elections, and at least some of the politicians' arguments help achieve those ends.
comment 10mo ago · link · parent
This characterization is reductive and basically a straw-man.
The principle underlying opposition to "counting in one day" is basically that every vote that is correctly placed in time should be counted, and as many people as possible should have access to voting. Mail-in voting, for example, has been shown to increase voter turnout by making voting more convenient, but you have the question of what to do with ballots that are received late. There are pretty good arguments for counting all mail-in ballots that are postmarked before the election, and I don't think "xenophobia" is among them.
In America specifically, all decisions relating to access to voting are considered against a backdrop of our widespread and systematic attempt to restrict voting. A modern example of this is related to wide disparity in the number of polling places, and therefore the amount of time required to vote, in "urban" regions of some southern states as compared to rural regions.
I have never heard of a racism-based opposition to paper ballots. I think you just made that up.
comment 10mo ago · link · parent
Given the large number of unmaintained or non-recent software out there, I think being worried is the right approach.
The only guaranteed winner is the LLM companies, who get to sell tokens to both sides.
comment 10mo ago · link · parent
Of course it was an obituary. It did recall facts of his life. There is no rule requiring obituaries to be positive or published in mainstream, dead-tree newspapers. There is a long historical tradition of heavily opinionated obituaries. Here's a great example about Margaret Thatcher [1].
If we can set aside your nit-picking about the word "obituary," I still don't understand your position that it's somehow "cowardly" to criticize dead people. As I've already pointed out, Adams got lots of criticism while alive and the timing of Alexander's article certainly isn't motivated by cowardice. To say only kind things of the dead is to be dishonest. We owe it to ourselves to not sugarcoat the past. Or do you think that a history book that accurately recounts Joseph Stalin's rule of the Soviet Union is "cowardly"?
[1] https://socialistworker.co.uk/news/margaret-thatcher-a-bruta...
comment 10mo ago · link · parent
Why? Must every obituary be a hagiography?
Adams got plenty of criticism while alive and had plenty of chance to defend himself. He doesn't get a heckler's veto on the living. We are entitled to tell the truth about the dead to ensure the accuracy of their memory.
comment 10mo ago · link · parent
I see your point, but I disagree. You consider part of the "weirdness" of being how it's done; and yes, it is indeed "weird" to learn several languages, consisting mostly of punctuation, in order to create an online self-promotion. But I think for most people, the "weirdness" (or its absence) is to be found in the end result. To that end, if a person wants a personal web page with animated tentacles around the edges and flying bananas in the background and pictures of demonic teddy bears, that is something that an AI can easily do when asked.
comment 10mo ago · link · parent
Sure, but this is very new technology. It will take some time for the idea of building software easily to seep into the public consciousness. In that time, AI will get better and the barrier to entry will get even lower.
For comparison, the internet has been around in some form since the 1960s (more-or-less: depending on the exact technology that you consider to represent its beginning), but it took until the late 1990s or even early 2000s before most people were aware of it, and longer than that before it became central to their lives. I would expect the development of AI-coding-for-the-masses to happen much faster, but not instantaneously.
comment 10mo ago · link · parent
No it does not. Please read the words that you are citing, not the words that you imagine. I honestly can't tell if you are unable to parse that sentence or if you a cynically lying about your interpretation in order to "win" an internet argument.
All programming languages are restricted, at least, to a "Turing complete subset of first-order predicate logic." There is absolutely no implication or suggestion of automatically solving any, much less most, first order logic queries.
comment 10mo ago · link · parent
Does this sound to you like an attempt to deceive the reader into believing, as the GP comment stated, that the user can
> just write your first-order predicate logic and we'll solve it.
comment 10mo ago · link · parent
Fair enough. I believe this is a variation of Cunningham's Law, which states "the best way to get the right answer on the internet is not to ask a question; it's to post the wrong answer."
Everything you wrote about backtracking is completely correct. If I may paraphrase, it boils down to: cut can be used to avoid executing unnecessary code, but using it the wrong place will avoid executing necessary code, and that would be bad. My point is: the same could be said about the "break" keyword in C++: it can avoid unnecessary iterations in a loop, or it can exit a loop prematurely. Cut and break are both control structures which make sense in the context of their respective languages, but neither would be accurately described as "for optimization."
comment 10mo ago · link · parent
Prolog is a logic-flavored programming language. I don't recall Prolog ever being "sold" as pure logic. More likely, an uninformed person simply assumed that Prolog used pure logic.
Complaining that Prolog logic doesn't match mathematical logic is like complaining that C++ objects don't accurately model real-life objects.
comment 10mo ago · link · parent
It's perfectly fine to not like Prolog, but I do feel that if you're going to write an article about why you don't like it, you should at least spend some time figuring it out first.
He says of the cut operator "This is necessary for optimization but can lead to invalid programs." Imagine if a programmer new to C++ said the same thing of the "break" keyword. That's how ridiculous it sounds. Yes, cut can be used to prune backtracking and eliminate unneeded work, but that's hardly it's purpose. It leads to "invalid" programs (by which I assume he means, programs that do something other than what he wants) only in cases where you are using it wrong. Cut is no more "necessary for optimization" than break is. It's a control structure that you don't understand
Negation (\+) is confusing, and the author correctly provides examples where its meaning is unintuitive when applied to unbound variables. That's because it's not strictly speaking a negation predicate, but rather a "not provable" predicate. In that light, the examples in the article make perfect sense. Yes, Prolog is a programming language, so the order of terms matter, even if the order wouldn't matter in pure logic.
Look, Prolog is a weird language. It has a learning curve. It's not "just another language" in the Java, C++, Pascal, Python mold. I get it. But this article has the flavor of an impatient newbie getting frustrated because he can't be bothered to read the documentation.
comment 10mo ago · link · parent
If we had a good "test for merit" then we could directly assign people to their roles and ignore their actual performance.
comment 10mo ago · link · parent
I'm not going to descend into a "my OS's API is worse than yours" pissing match with you, because it's pointless and tangential. The issue is not "is the Windows framework situation worse than Linux" but rather "is the Windows framework situation worse than it used to be" and the answer is emphatically yes, and due mostly to Ballmer's obsession with chasing shiny things, such as that brief period when he decided that all Windows must look like a phone.