Killing_Spark

joined 2 years ago
[–] Killing_Spark@feddit.de 14 points 5 months ago

Apply the ones in a star shape to distribute pressure evenly

[–] Killing_Spark@feddit.de 2 points 5 months ago

Not in this specific age group. Overall men are overrepresented, not by 90% but they are, but less so in younger people

[–] Killing_Spark@feddit.de 3 points 5 months ago (1 children)

While I guess that's true and it's often surprising that the AfD is polling that well in the younger cohorts let's not overstate their success. There are also a lot of people in that cohort very vehemently disagreeing with the AfD.

[–] Killing_Spark@feddit.de 17 points 5 months ago (5 children)

That is such a bullshit point. "The youth" doesn't want one homogeneous thing. The youth is just as diverse in opinions as other cohorts, maybe even more so. It is also more likely to be on more radikal Sides of the political spectrum.

[–] Killing_Spark@feddit.de 5 points 5 months ago (1 children)

Make sure it isn't just the Pomeranians. Some Pomeranians are definitely going to be in the mix.

[–] Killing_Spark@feddit.de 3 points 5 months ago (2 children)
[–] Killing_Spark@feddit.de 3 points 5 months ago

You have written tests for your code and now feel safe because your code is tested. But test quality is really hard to measure. The idea seems to be to introduce "vulnerabilities" (whatever that means...) and see if your tests catch them. If they do that's supposed to show that the tests are good and vice versa.

[–] Killing_Spark@feddit.de 4 points 6 months ago* (last edited 6 months ago)

Well ackshually, any such system with a defined maximum precision can be represented by an integer unit that is small enough, the numbers will just get very big.

[–] Killing_Spark@feddit.de 48 points 6 months ago (2 children)

Well ackshually real-time describes a mode of processing data where you have hard requirements on when a computation needs to be finished.

[–] Killing_Spark@feddit.de 6 points 6 months ago

You don't know that.

[–] Killing_Spark@feddit.de 14 points 6 months ago (2 children)

That's not the tone I like to read even as an answer to a statement I don't agree with. No need to get that personal.

[–] Killing_Spark@feddit.de 9 points 6 months ago

I'm not saying nobody should work on this. There is obviously demand or at least big tech is assuming demand. I'm just saying it's not surprising to me a lot of Foss developers don't really care.

 

The context I came upon this question is dbus filedescriptor passing but the question is valid more broadly. Assume you are implementing some service that is supposed to receive some kind of filedescriptor for client processes. You get a message that is in some kind or another malformed but you have already received the filedescriptor.

What do you do with that fd? Is close()ing it guaranteed to be enough?

The question was sparked by a safety comment on rusts abstraction of a OwnedFd, which will run close() in its destructor and binds you by contract to only create it from a filedescriptor if close is all that is needed for cleanup.

This of course made me worry about the possibility of malicious clients sending special filedescriptors that accumulate some kind of ressource on the server process causing some kind of DOS.

I guess a secondary question is: Do you know any example where calling close() is not enough?

view more: next ›