News for hackers. Stuff that matters.

harrid

Re:Midjourney v6 on Friday December 22, 2023 @11:35AM (#38735802)
I think this is just a copy of the official announcement in discord. So the site might be fishy, the content is not
This could profit a lot from an example button
Re:Ask HN: What do you use to replace incandescent lights? on Friday November 17, 2023 @10:26AM (#38304850)
All light other than incandescent is awful in my opinion. I'm still almost 100% on them
Re:C++: The Most Important Complexities on Thursday November 16, 2023 @04:14AM (#38287274)
Yes, but that's not the point in this case. Naively, a vector should be able to. The trouble lies within the details, in particular allocation.
Re:C++: The Most Important Complexities on Thursday November 16, 2023 @03:38AM (#38287035)
It's very much implementation defined yes. I'm currently using this for something that runs for about 10 seconds, and even music playback and mouse cursor movement gets affected.

(But I'm about to move it to GPU)

Re:C++: The Most Important Complexities on Thursday November 16, 2023 @02:37AM (#38286721)
A tricky question in the context of this: why doesn't vector have a constant time pop_front? By just incrementing the begin pointer
Re:C++: The Most Important Complexities on Thursday November 16, 2023 @02:34AM (#38286701)
You need to be aware that these invocations are going to blast your cores full throttle as you obviously don't have fine grained control. But as long as your data is easily parallelized on a vector with computations that don't depend on each other, it's a game changer. I use it all the time to multithread things with literally a single line of code.
Re:C++: The Most Important Complexities on Thursday November 16, 2023 @01:45AM (#38286429)
Yes... But you don't need to memorize all this, and it leaves out a simple rule: vectors (or arrays) outperform everything else if the dataset is small. Small is usually in the order of 100-300, but can vary wildly.

Also note that all <algorithm>s have built-in fully automatic parallelism via <execution>, a massively underused feature. In typical CPP fashion though, their newer views:: counterparts lack those overloads for the moment.

Circle... I hope he can do it. Sounds too good to be true everyone I read about it.
Reflections alone would be one of the most impactful additions. And in contrast to most others: very difficult to do otherwise. I'm a bit surprised by the sudden push after long phase where it seemed like they would never come.

Contacts: yes please. Variadic indexing is one of those things everyone writes their own helper for. But this standard facility is very welcome indeed.

Some additions seem a bit of of scope for the standard of a language that famously refuses to fix mistakes. So in weary about std::hive, networking, physical units.

And an underrated cherry is at the end: cleaning up those "ill formed, no diagnostic required" clauses in the standard. For those who don't know: there are things forbidden in the standard which the compiler is allowed to not tell you. In particular this is omnipresent in the constexpr world. Leading to silly redundant code that manually assets things to explicitly trigger the compiler to check for errors.

And that's a criticism I can take to a degree on behalf of the language. These relics are still in because mistakes are happening in the governing body. However in practice, they don't matter much. Every CPP dev has a little helper running in the background which immediately flags these mistakes and can auto correct them. It's not an issue, just an annoyance.
I've never read a programming book that was worth it. In the time and the energy it takes to read, I could have always learned more by reading a tldr and trying things myself
Why is that progress? The content didn't age more than other books?

Or did you just use this to push politics?

For some reason, the comparison is always current rust Vs 20 year old c++. Mentioning that "modern" (12 year old) c++ does not have these problems gets downvoted.

Completely unrelated: there are at least two dedicated anti c++ communities.

Re:Why Cities: Skylines 2 performs poorly on Sunday November 05, 2023 @03:42PM (#38155452)
This doesn't fly with a one man team and not with a 1000. It's just badly done, there's no sugarcoating. Those meshes should never end up in the game files.
Re:Toward a TypeScript for C++" on Saturday November 04, 2023 @01:48PM (#38143413)
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.
Re:Toward a TypeScript for C++" on Saturday November 04, 2023 @01:05PM (#38142925)
new
Re:Toward a TypeScript for C++" on Saturday November 04, 2023 @12:42PM (#38142661)
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.
Re:Toward a TypeScript for C++" on Saturday November 04, 2023 @10:58AM (#38141612)
C++ is a memory safe language if not abused.
Re:Cities Skylines 2 runs with 20fps on an Nvidia RTX4090 on Friday October 27, 2023 @05:46AM (#38036481)
Nvidia nsight
Re:Threads has "just under" 100M monthly active users on Friday October 27, 2023 @05:45AM (#38036478)
I don't watch movies and I block ads online. So help me out: were there many or few ads?
Re:Cities Skylines 2 runs with 20fps on an Nvidia RTX4090 on Thursday October 26, 2023 @03:42PM (#38030771)
60fps on a 4090 are framerate issues
Re:Cities Skylines 2 runs with 20fps on an Nvidia RTX4090 on Thursday October 26, 2023 @03:40PM (#38030745)
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.
Re:Covid's Damage Lingers in the Heart on Tuesday October 24, 2023 @11:33AM (#38000591)
And yet again, everyone even hinting at the "forbidden topic" gets [flagged] [dead]ed within minutes. What a sad state of affairs
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)
Re:Source code for Quake 2 rerelease on Friday August 11, 2023 @02:11AM (#37085633)
_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!
Strong language doesn't usually correlate with qualification. They sprouted the same harsh tone badmouthing video streaming a couple of days ago.
When I'm reading correctly, that's a Unix program. That's a pretty tight constraint and not one I can satisfy

Older »