1,581 karma · joined Oct 22, 2022 (4y ago) · 796 submissions
comment 4y ago · link · parent
Not really.
I have no right to show you the door at the local library or cinema or car wash or local cafe, or at your own home. At most, that lies in the right to property,which only applies to things I personally own. Consequently, in a free and open society "showing someone the door" is a right that's only at the reach of private property owners or people mandated by said owners to manage some aspect of it.
Even then, that right to "show someone the door" because you don't like their opinions is not all powerful and is limited in some jurisdictions which also recognize the right to equality and non-discrimination. Think about it for a second: how can you have a free and open society if you do not have tolerance?
comment 4y ago · link · parent
Your misconception lies in the assumption that the only conceivable use case is iterating over a preallocated data structure to do read-only operations.
Once you add real world usages, with CRUD operations involving memory allocations/reallocations then your misconception about cache crumbles, and you start to understand why "people are arguing over this".
comment 4y ago · link · parent
Here's a link to an old HN discussion that offers some insight on the performance of MSVC's STL in debug.
https://news.ycombinator.com/item?id=18939260
The "cursed" keyword hand-waves over the problem and suggests it originates in the acritical propagation of ignorant beliefs. Sometimes clarifying these is just a Google search away.
comment 4y ago · link · parent
That's all fine and dandy, but the whole point is that projects are evaluated in terms of money and not joules. This means that if a material like clay is , as you claim, 3 times more efficient but ends up costing twice or more to replace and more to maintain, you are in reality looking at a prospective best-case scenario that lies somewhere significant losses or irrelevant gains.
Meanwhile, building the exact same sand-based prototype right next to the original one would literally double the capacity at a far smaller cost.
People want to get warm, not discuss whether clay or sand pack as much heat. Half the world could not care less about what goes into AA batteries.
Projects are evaluated in financial and economical terms. It matters nothing if there's a theoretical possibility that some other material or design is more efficient, if it's savings are irrelevant. The world rides Volkswagens, not Formula 1 cars.
comment 4y ago · link · parent
Legacy projects tend to reflect the state of the art of the time they started, which reflects on aspects such as software architecture, technologies, and more importantly the overall technical commitment and technical debt which makes it hard or practically impossible to fix past wrongs or replace subpar technologies with better options.
Emacs started out in a time when Lisp was the only game in town in terms of dynamic interpreted languages. That's perfectly fine. Would the same people stick with Lisp in a time when, say, the likes of Python and JavaScript and Node.js and Ruby and .NET exist?
comment 4y ago · link · parent
You're missing the whole point. These non-technical aspects rear their heads in real-world projects, and perhaps are more critical than technical ones. If a language is subpart in its non-technical aspects, developers are very quick to replace them with languages that are better.
And as the OP pointed out, Lisp is rarely seen or showcased in real-world projects.
Why is that?
comment 4y ago · link · parent
It's also interesting that the sand is heated with energy generated from wind turbines and solar panels, which means that as long as enough energy is being thrown into the thermal capacitor, it will heat up with little cost. From this point onward, it's an economics problem. Either money is thrown at the efficiency of these heating capacitors, which brings at most small gains, or money is thrown in building additional storage capacity for cheap along with increasing how much energy is fed into the system. Would it be more cost effective in replacing sand with more efficient materials, or spend the money in, say, another cheap thermal energy source?
comment 4y ago · link · parent
No, not at all. There are plenty of countries who go to greater lengths to protect their individual rights without the US even registering as a suggested influence. Most countries which managed to transition away from authoritarian oppressive regimes did grew political antibodies to ensure the right to freely express your ideas without being subjected to persecution as it happened in the not so distant past.
comment 4y ago · link · parent
No, not really.
Your right to speech isn't infringed if someone does not share your personal opinion. You're always able to express your mind about how profoundly you disagree or how wrong you feel everyone around you is.
What you cannot do is go around strong-arming people to shut up or stop expressing ideas you don't share. That is not a way to protect your right to free speech. That's just fascism 101.
comment 4y ago · link · parent
Why do you feel that the expected outcome of being critical is being punished instead of addressing the root causes of these issues? I mean how do you expect problems to be pointed out and addressed?
comment 4y ago · link · parent
It is Zig spam, not because of the discussion or the question or the topic of the time of day. It's Zig spam because it's yet another Zig post among the barrage of Zig posts desperately shoe-horning offtopic gratuitous references to Zig. It's tiring and adds nothing to any discussion.
If you feel that strongly about the need to promote Zig, submit discussions. Please don't spam each and any top submission with these gratuitous references.
comment 4y ago · link · parent
Not wanting to see gratuitous self-promoting spam degrading the signal/noise ratio of an otherwise interesting discussion is hardly petulance. Replace any Zig reference shoe-horned into this discussion with, say, Java, and see if you have any point.
comment 4y ago · link · parent
No, it isn't. If anything, it's famous for its spartan standard library. It only received smart pointers in C++11 and a file system library in C++17.
> It desperately needs to be able to remove stuff but it can't because of its desire to maintain ABI compatibility with binaries compiled on older versions.
This is outright wrong. Some standards already deprecate and remove features, like std::auto_ptr going away in C++17 or volatile in C++20.
You're trying to pass off too many baseless assertions as undisputed facts.
comment 4y ago · link · parent
In other circumstances I would agree, but cmake coined the term "modern cmake" when they released cmake 3.0 and with it their support for target-based projects, and after a couple of decades of "modern cmake" a sizeable portion of the cmake community still failed to update their code.
comment 4y ago · link · parent
Build times in C++ projects nowadays are mainly the result of naive approaches to project structure and total lack of care towards modularity. On top of that we also have helpers such as ccache and the like to further reduce build times by not having to build at all.
comment 4y ago · link · parent
You're just admitting to having created your own problem, and suffering consequences for it. Nothing in your comment pertains any issue with reading coding guidelines in general or specifically the C++ ones, let alone any comment in particular.
> Now, the c++faq is obsolete.
That's your personal assertion, and one that does not sound informed at all.
I keep track of the C++ coding guidelines. In general they are nice rules of thumb. No one wants to build a religion around them.
comment 4y ago · link · parent
The language spec has zero to do with this. You're commenting on a discussion on static code analyzers. The specific gotcha you're commenting on mentions that the overloaded operator -> from smart pointers returns a raw pointer to the object being managed, which apparently causes static code analyzers to lose context (it's a raw pointer). The gotcha just mentions a way to help out static code analyzers to not lose context. There's nothing wrong with the spec. At most there's a tip to help out current static code analyzers keep track of semantics.
The worst part of people criticizing C++ is that 9 times out of 10 they base their criticism on ignorance or misconceptions.
comment 4y ago · link · parent
The executive and legislative branch make decisions, supposedly seeking consensus as part of their decision-making process.
If you're arguing that consensus are not important or a basic requirement of a democracy, and long term plans can only be implemented if they are dictated by an autocratic government then the problem is another one.
comment 4y ago · link · parent
What leads you to believe that your proposal is effective? You're just arguing in favour or removing layers of accountability as a solution to rampant corruption.