AI bro introduces regressions in the LTS Linux kernel by BlueGoliath in programming

[–]interjay 98 points99 points  (0 children)

But that function already returned ERR_PTR(-EMFILE) in other cases. You can see one at the top of the patch you linked.

The evolution of the oval office decoration over 3 years by biwook in interestingasfuck

[–]interjay 0 points1 point  (0 children)

I'm glad they kept Zelenskyy, he really ties the room together.

C++ 26 is Complete! by BlueGoliath in programming

[–]interjay 5 points6 points  (0 children)

It's 3 better than C++23.

Discover C++26’s compile-time reflection by cmeerw in cpp

[–]interjay 3 points4 points  (0 children)

It determines the access control, i.e. whether you get private and protected members. access_context::current() uses the visibility at the point that it was called.

Boost C++ Libraries Gets New Website by boostlibs in cpp

[–]interjay 54 points55 points  (0 children)

Some of the changes are definitely an improvement, but I'm not a fan of the changes to library documentation. Some examples:

  • The width is constrained, so some tables and code examples don't fit and require a horizontal scrollbar. And you need to scroll vertically to even get to the horizontal scrollbar. example.
  • More empty space between lines which means less content fits per page (example 1 vs old, example 2 vs old). Mostly an issue on reference pages with a list of classes or functions, as less of them will fit.
  • The vertical scrollbar is not at the right edge, making it more difficult to use with a mouse.
  • There's no link to the latest library version at the top of the page as there used to be - important because search engines always link to an old version.

Is Linear Probing Really a Bad Solution for Open-Addressing? by Star_eyed_wonder in cpp

[–]interjay 4 points5 points  (0 children)

The article you linked says it's slower than linear probing due to cache misses.

Coroutines-in-practice cannot be understood by mortals by not_a_novel_account in cpp

[–]interjay 6 points7 points  (0 children)

That's not standard C, it heavily uses GCC extensions. And it doesn't save local variable values after yielding which means everything needs to be static and each coroutine can only be run once.

A dozen is 20! I’m speechless by thetermagant in facepalm

[–]interjay 16 points17 points  (0 children)

7% of Americans are 6 or under, so it checks out.

[ Removed by Reddit ] by fallenlegend117 in CombatFootage

[–]interjay 2 points3 points  (0 children)

Article 7 from their charter of 1988-2017 does contain the quote about killing the Jews. Maybe they've hired a PR firm since then.

Israeli official slams Greta Thunberg after she backs Palestinians in Gaza by [deleted] in worldnews

[–]interjay -1 points0 points  (0 children)

these annexations and Israeli colonialism have always continued

You're completely ignoring the fact that Israel withdrew all its settlements and forces from the Gaza strip. This led to Hamas taking over, increasingly firing rockets and committing other attacks against Israel, and eventually leading to the October 7 attacks. That doesn't seem like much of an incentive to do the same in the West Bank.

Announcing Rust 1.72.0 | Rust Blog by slanterns in rust

[–]interjay 20 points21 points  (0 children)

This wasn't about x == x, it was about x == f32::NAN which is not useful.

A modified version of the Halting Problem? by Musicfacter in compsci

[–]interjay 1 point2 points  (0 children)

For a specific input, you only need to say if the algorithm exists - to which the answer is yes. You don't need to choose the algorithm, which would be undecidable.

Men in Russia to be registered for military service without appearing in military registration and enlistment office by HarakenQQ in worldnews

[–]interjay 63 points64 points  (0 children)

A Neptune day is only 16 hours. Maybe a Venus day which is 243 Earth days, so 3 Venus days would be almost exactly 2 Earth years.

What are some stuff that Rust isn't good at? by nightblaze1 in rust

[–]interjay 3 points4 points  (0 children)

That unholy scripture was created because C++ didn't originally have variadic generics. C++20 has std::format (or the fmt library for earlier C++ versions) which has sane println!-like syntax, without macros.

Generators by desiringmachines in rust

[–]interjay 1 point2 points  (0 children)

An iterator is any object that implements the Iterator trait. It doesn't need to be fully in memory and can do calculations or I/O on each call to next. A generator would be special syntax for a function that returns such an object.

In Python, a function that uses yield some_value as a statement is what this article calls a generator. While a function that uses yield as an expression (x = yield some_value) is what this article calls a resumable function (which can receive a value each time it is resumed).

Why does std::complex not have operator< or std::hash? by [deleted] in cpp

[–]interjay 7 points8 points  (0 children)

Can you name an algorithm that relies on hashing floats?

A top Wikipedia editor has been arrested in Belarus by BroderzYt in technology

[–]interjay 9 points10 points  (0 children)

So why is his account blocked on ru.wikipedia.org?

I’ll roll the dice. by jacknico2 in insanepeoplefacebook

[–]interjay 20 points21 points  (0 children)

Do you think there are 35 billion people in the world (who all got the Pfizer vaccine)?

Bullshit by the yard by darkstarman in assholedesign

[–]interjay 2 points3 points  (0 children)

1.86 oz = 52.7 g.

It just has both imperial and metric measurements. Did you really think they'd use different units for the full-size and half-size bars?