Hacker News new | past | comments | ask | show | jobs | submit | more harrid's comments login

C++ is a memory safe language if not abused.


Just don't write bugs!


It's impossible to memory leak even with bugs if you don't use antique parts of the language that won't pass any static analysis anyways.


Considering that Chromium, being one of the most heavily statically analyzed code bases, is full of commits which fix memory leaks, your comment makes absolutely no sense.

https://github.com/search?q=repo%3Achromium%2Fchromium+memor...


Chromium is a massive project spanning decades of intense active development that intricately connects just about every domain of programming.

A few leaks fixed per month is nothing. Further there is no major language promising no leaks once you include things like retained references to garbage and reference cycles. Leaks are one thing modern C++ solves pretty well.


Anything written by Google is absolute bottom of the barrel shit.

It's not indicative of anything average in the real world.


It's a bit hard to get an overview. But I did spot several uses of owning raw pointers and switching from those to managed ones. I'd say that's exactly the point I was trying to make.


What antique part of the language am I using in this bugged code?

    class A {};
    std::unique_ptr<A> array(new A[256]);
It's very easy to produce innocuous-looking code that contains leaks. (And yes, I know that make_unique solves the problem here.)


At this point I'd rather just write assembly language.


new


I don't watch movies and I block ads online. So help me out: were there many or few ads?


60fps on a 4090 are framerate issues


It also uses 10+k drawcalls per frame. It's amateur hour over there, bordering on fraud. Even more frustrating to see how successful that model is. And how feverish people defend them online.


this is what happens when you focus on content before performance. they'll get that number way down over time.

games are data problems, like every other computer program. you must know your data before you can optimize how it is moved around efficiently. draw calls are a very good benchmark for this. as they optimize, it will go way down, if it hasn't already.


I'd love to learn more about your methodology. Are you using in game tools or OS tools?


RenderDoc is the standard industry tool for this kind of stuff.


Nvidia nsight


software optimization as a practice is dead


No it's not, there's plenty of amazingly optimized pieces of software.


That's fraud.


It's unfortunately as simple as: Germany does not have internet access. Just from the top of my head I could name three other sites that are blocked here. All of them from completely different backgrounds (porn, piracy, government criticism)


More accurate would be: German courts and legislators are in the pockets of some major wealthy corporations/interest groups, who can and do act like IP trolls, because they can lobby their way high up so that that laws are always in their flavor, because Germany actually is, to the surprise of many foreigners, a highly corrupt country at the top.

Whenever I hear "Hamburg Regional Court" or "Axel Springer" in a sentence, I know what's coming.

I just wish there would be some better EU wide rules that could overrule those in Germany, but AFIK those interest groups are also infiltrated at EU level since when the EU decided not to publicly publish their study proving that piracy doesn't actually harm sales[1].

[1] https://www.engadget.com/2017-09-22-eu-suppressed-study-pira...


Maybe. On the other hand as a German I was unpleasantly surprised how many sites (that were accessible at home) are blocked in Italy when I spent my holiday there.


_the_ havoc? That's awesome. I was toying around with tribes modding too but only trivial stuff. Havoc was always the ultimate thing you could do and an inspiration for me. Thanks!


I didn't really expect anyone who played HaVoC to see my post. It's cool you guys are out there!

Like you I was just tinkering, though I stuck with it for a long time. At that point I was 19 and literally living in my mom's basement.

It's all server side so there wasn't a huge amount you could do. The flame thrower was just the grenade launcher rotated upside down. The shotgun was my best invention, IIRC made up of two ELF guns rotated 90. Deadly up close with a delay before firing, only useful from afar to take off a sliver. Cloaking and hitting someone in the back with it was great -- click-click BANG dead. Good times!


This isn't the first unprofessional message from that Twitter account during the lk99 saga. Their biased tone makes them untrustworthy. Even more than anime girl et al


They're citing a study from the International Center for Quantum Materials at Peking University in Beijing (which has several Alumni from the Condensed Matter Theory Center at U of Maryland which is the twitter account) which goes into the matter in some depth and finds that chunks of the material are ferromagnetic and some chunks are diamagnetic and the whole thing is a semiconductor. They also replicate the half-levitation effect from the original video and which some people have replicated:

https://arxiv.org/pdf/2308.03110.pdf

The twitter account may have had a biased tone because they're actual experts and qualified to have a strong opinion.


Strong language doesn't usually correlate with qualification. They sprouted the same harsh tone badmouthing video streaming a couple of days ago.


> Strong language doesn't usually correlate with qualification.

I never asserted the converse.

Pointing out that strong, biased language can be associated with expertise and therefore in isolation has no bearing on truth, isn't the same as saying that strong, biased language is always associated with expertise.

In fact I just argued that strong, biased language associated with ignorance is generally bad, and is much worse than biased language coming from experts.

> They sprouted the same harsh tone badmouthing video streaming a couple of days ago.

Depending on what they were saying, I might agree with them that they have a point, that statement is rather vague. The video streaming of LK-99 synthesis turned out to be not very useful or enlightening in the end. It settled nothing and created a spectacle--people felt more informed that they could watch it, but at the end of the day they weren't better informed. The preprint from ICQM looks fairly definitive.

But do they claim to be an expert in video streaming? Probably not. Which means how you view their opinions on the two different subjects -- video streaming and superconductivity -- can and should be different.


Imho being an expert doesn't allow you to be biased. I would say that the more expert you are in a topic the less biased your voice should be.


That is sort of nonsensical. Being ignorant and biased is a lot worse than actually knowing what you're talking about.


Being an expert and being biased on purpose implies acting in bad faith.

Being biased due to ignorance is not a big deal since in principle no one is going to pay you attention anyway.


> Being an expert and being biased on purpose implies acting in bad faith.

That doesn't even make any sense to me. Like I don't know what to say because I can't understand what you could possibly be trying to say.

It sounds like you're struggling hard to create a world where experts need to just shut up while ignorant people get to post whatever hottakes they like. That seems to obviously result in a dystopia of information to me.

> Being biased due to ignorance is not a big deal since in principle no one is going to pay you attention anyway.

Well that's clearly false, since we just watched in real time all kinds of strong hottakes from people who had spent the weekend researching superconductors on wikipedia getting wildly upvoted here and on twitter because people wanted to believe.

IMO that is actually bad because that is how you can delude people and how propaganda can manipulate a population.


AWS requires a credit card, which is not really a thing in Europe


It does not...


Are you sure? It requires me to enter one upon registration.


A debit card works fine, and even Germans got that far in finance tech.


Available but still far from common. I don't have one and most of my peers don't either.


Also only for commercial use, not private use


Free plan allows 1000 emails a month, which I'm using for personal server and script alerts.


It explicitly asks for a work mail at signup, blocking Gmail etc


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: