Better HN
topnewbestaskshowjobs
Log inSign up

simplotek

1,581 karma · joined Oct 22, 2022 (4y ago) · 796 submissions

Submissions

comment 4y ago · link · parent

> Showing someone the door" is just indicating that you would like them to leave. How much authority do you need to do this?

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

> It's surprising people are arguing about this. That fact alone shows that lots of developers don't understand the relationship between L1/L2 cache, data access patterns, and how prefetching works.

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

> Many of the STL containers in MSVC are incredibly cursed. Even std::vector is implemented in such a weird way, that you can't debug it easily with any debugger other than Visual Studio. And it's incredibly slow on Debug mode, up to the point that it's unusable... (Because of these reasons I just switched to using my own Vector<T> class recently)

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

Thanks for referring to the article. Great read!

comment 4y ago · link · parent

> Too bad that they went all political.

Since when have RATM ever been anything other than highly political?

Have you ever paid attention to their lyrics from back in the day?

comment 4y ago · link · parent

> In this scenario, since your input energy is basically free, more storage capacity = more money, and switching to clay could triple your effective capacity.

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

> It didn't end in 1976, though.. it's creation continues to this day.

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

> Programming languages aren't just for machines to execute. There are for humans to communicate and collaborate. There are technical concerns of course, but these are secondary to social, economical and aesthetic factors or simply luck.

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

> High-speed Data cap Pick one

Only if you've been scammed by your service provider, which advertised services that they are not able to provide.

I don't recall the last ISP I subscribed to in the past decade which was not high-speed or imposed a data cap.

comment 4y ago · link · parent

> Not sure about the math here, but it is surely cheaper to build a bigger tank with crappy sand than a smaller one with more expensive clay.

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

> Those outside of the US who subscribe to this ideal seem heavily influenced by US culture in my experience. I'm not aware of non-US sources of the idea.

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

> (...) not being able to apply consequences to speech is itself curtailing your speech,(...)

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

> When you are as rich and powerful as Elon Musk, you usually get away with your own stupidity and it will ultimately turn to your benefits no matter what.

I'm yet to see how that idiotic "pedo guy" episode turns out to benefit Elon Musk.

comment 4y ago · link · parent

> Apparently, at Twitter, you don't.

Twitter is itching to shed people any way they can, so the problem lies elsewhere.

comment 4y ago · link · parent

> No one is saying you can't be critical of your own employer. They are saying there are repercussions to being critical and loss of employment is a common one which should be expected.

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's not "Zig spam" to ask (...)

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

> Instead of being petulant about it, you could ignore it and move o

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

Cargo cult programming has zero to do with religion or what features ship and do not ship with a standard library. Please read the wiki page you're trying to quote before quoting it.

comment 4y ago · link · parent

> In a conversation about languages with this kind of C interop

It's not. It's a discussion about "the C compiler built into the Digital Mars D compiler".

Please stop with all the Zig spam.

comment 4y ago · link · parent

Thank you for putting in the effort to benchmark and quantify performance. There is nothing like verifiable numbers to drive a discussion on performance improvements and marketing.

comment 4y ago · link · parent

> Do you plan on giving Zig a try? (They seem to be doing a lot right.)

All this Zig spam is getting very tiring.

comment 4y ago · link · parent

> C++ is famous for being bloated.

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

> I think in 10-20 years the C++ community will regret enshrining "modern" into so much of the literature.

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

> Long build times

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

> Back in 2010, I read the c++faq religiously, tried to warp my projects to it in college, and in the end produced nothing because i was too busy trying to be a big boy.

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

> If the language spec is such that operator -> can’t have a sensible signature, (...)

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

> Ah, "make C++ better by adding more features", we meet again

What's your plan to improve something that does not involve adding improvements?

comment 4y ago · link · parent

> How are you going to work on long term plans with elections every 2 or 4 years?

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

> The problem with Brazil is that the country is just too big. It will never happen, but I'm confident that the solution to Brazil's rampant corruption and violence is to break up the country.

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.

1
2324252627