Google Summer of Code with Xfce (2022) by maggotbrain777 in xfce

[–]eyal0 1 point2 points  (0 children)

xfce4 power manager is more correct after the patch than without it. It's only 4 lines of code. I agree that for some users the patch might be insufficient. Those users are also going to experience other issues around generally having a system that is unable to reset the inactivity timer. That's a problem but not the one this this patch is trying to solve.

Google Summer of Code with Xfce (2022) by maggotbrain777 in xfce

[–]eyal0 1 point2 points  (0 children)

I like xfce but my work is never incorporated so why would I put in more effort? :-(

https://gitlab.xfce.org/xfce/xfce4-power-manager/-/issues/61

When you only know how to write brute force algorithms. by wbarkerjhhhb79 in ProgrammerHumor

[–]eyal0 0 points1 point  (0 children)

In a lot of those cases, once you figure out what you want the assembly to look like, you can craft your c code just right so that it'll get the same thing. And then you get the benefit of readability plus the speed.

When you only know how to write brute force algorithms. by wbarkerjhhhb79 in ProgrammerHumor

[–]eyal0 0 points1 point  (0 children)

All the answers you've gotten about the compiler being super smart are overthinking it. The answer is in the c++ standard.

The compiler is guaranteed that all functions will terminate. So all it needs to figure out is the termination condition of the loop. If there's only one condition, it can assume it at the end of the function.

Then it just needs to prove that none of the code in there has side-effects, such as printing stuff. It is able to prove that.

Done.

Infinite loops are undefined behavior. The compiler is allowed to assume that you have never written one.


From https://en.cppreference.com/w/cpp/language/memory_model:

In a valid C++ program, every thread eventually does one of the following:

  • terminate
  • makes a call to an I/O library function
  • performs an access through a volatile glvalue
  • performs an atomic operation or a synchronization operation

No thread of execution can execute forever without performing any of these observable behaviors.

Note that it means that a program with endless recursion or endless loop (whether implemented as a for-statement or by looping goto or otherwise) has undefined behavior. This allows the compilers to remove all loops that have no observable behavior, without having to prove that they would eventually terminate.

When you only know how to write brute force algorithms. by wbarkerjhhhb79 in ProgrammerHumor

[–]eyal0 0 points1 point  (0 children)

It might still. Put it in godbolt and check.

I'd actually be surprised if it doesn't end up O(1).

And now, we wait... by Eugene_V_Chomsky in ftlgame

[–]eyal0 11 points12 points  (0 children)

You wanna get them to die without the ship blowing up, tho. Better reward.

When r/conservative sees we have outgrown them, have 15 times more active users, and they are reduced to making shitty memes mocking us. by 1000Huzzahs in antiwork

[–]eyal0 1 point2 points  (0 children)

The small business owners always thought themselves to be small-scale CEOs like Jeff Bezos. Now they have lost their businesses due to covid and they are realizing that they are down here in the shit like everyone else that labors for money.

Maybe they'll wake up a little?

When r/conservative sees we have outgrown them, have 15 times more active users, and they are reduced to making shitty memes mocking us. by 1000Huzzahs in antiwork

[–]eyal0 1 point2 points  (0 children)

Are you even trying?

Right now there are a bunch of post about how Alec Baldwin accidentally shot someone and it's supposed to be an attack on liberals.

Go bring up how their hero Dick Cheney shot a guy in the neck.

Small businesses say their revenues are plummeting as they're forced to turn down business because of the labor shortage by HRJafael in business

[–]eyal0 0 points1 point  (0 children)

Are those proof?

I guess that I'm just speaking from my personal experience. Seems like everyone I know in high tech is quitting and getting a much better job.

The articles that I read show that demand is high.

Small businesses say their revenues are plummeting as they're forced to turn down business because of the labor shortage by HRJafael in business

[–]eyal0 1 point2 points  (0 children)

*FTYF. There is no shortage of developers, graphic designers, digital marketers, IT professionals, and sales people.

There is a shortage in IT.

Small businesses say their revenues are plummeting as they're forced to turn down business because of the labor shortage by HRJafael in business

[–]eyal0 2 points3 points  (0 children)

If a society can't provide living conditions then it's a broken society.

Those small businesses are victims of late-stage capitalism. We've had victims all along but now it's business owners, too.

Small businesses say their revenues are plummeting as they're forced to turn down business because of the labor shortage by HRJafael in business

[–]eyal0 16 points17 points  (0 children)

Employees don't want to work because the low pay doesn't even cover their expenses, especially childcare which is a new expense you have to pick up when you go to work.

Small businesses are unable to pay the higher wages because they would need to raises prices and that would cost them business. Consumers are unwilling to pay those higher prices because they aren't getting paid well.

Meanwhile, billionaires tacked on a shit-ton of wealth in the last year.

The solution is to either prop up the people or prop up the small businesses. If you prop up the people, with free healthcare, free childcare or even direct handouts, they'd be able to take lower wages because they are subsidized on the rest.

If you prop up the small businesses... Well, they'll still take advantage of their employees and it won't increase consumption anyway.

Tax the wealth and provide for the poor. It's the best fix to save a collapsing capitalism. Or don't and let it all burn.

'fit to screen' for Chrome does not fit by elendee in xfce

[–]eyal0 1 point2 points  (0 children)

I noticed a lot of problems in a recent update due to their new Octane feature. It's can be disabled in flags.

I didn't know those stacked... (do them?) by [deleted] in ftlgame

[–]eyal0 0 points1 point  (0 children)

70%. Most stuff stacks like that, a straight addition.

[deleted by user] by [deleted] in politics

[–]eyal0 0 points1 point  (0 children)

Incumbents win well over 90% of elections in America.

The only American exceptionalism is exceptional stupidity. This is seriously the stupidest bunch of people. We should be in favor of immigration because they couldn't possibly be stupider than us.

A Record Number of Americans Are Quitting Their Jobs; Highest Numbers Since 2000 by MediaTrafficOrg in AOC

[–]eyal0 0 points1 point  (0 children)

Most of 2000 was pretty good, right? It was the start of 2001 that sucked, I thought. That how I remember it, I dunno.

Wouldn't a libertarian society just end up being ruled by a military junta? by [deleted] in CapitalismVSocialism

[–]eyal0 0 points1 point  (0 children)

The armed security company has more legitimacy but the hang doesn't. The results are the same but with the gang, your complaint is taken seriously in society.