[-] Buttons@programming.dev 7 points 2 days ago* (last edited 2 days ago)

We often make laws without a way to enforce them 100% effectively. For example, my road has a 25 MPH speed limit even though we haven't yet installed speed limiting chips on every single car in the nation, we still went ahead and put a speed limit on our road though, and it mostly works, but sometimes someone drives 30 MPH.

[-] Buttons@programming.dev 11 points 2 days ago

Yeah... There's a lot of people complaining about politicizing the legal system tonight, and those same people said nothing when Trump's most popular campaign promise was to put his political rival in jail.

[-] Buttons@programming.dev 33 points 3 days ago* (last edited 3 days ago)

It seems the people who are the most staunch defenders of capitalism and free markets are the most resistant to the capitalist and free market solution.

Clean air (or rather, air with normal levels of carbon) belongs to the public, and anyone who wants to take it away should pay the public.

[-] Buttons@programming.dev 2 points 3 days ago

Two-chubby-chubby

[-] Buttons@programming.dev 12 points 4 days ago

“And you know, you go back through history, this is like just before the Holocaust. I swear. If you look, it’s the same thing,” Trump said. “You had a weak president or head of the country. And it just built and built. And then, all of a sudden, you ended up with Hitler. You ended up with a problem like nobody knew.”

So Trump is claiming that Biden is a weak leader, and that after the weak leader comes somebody like Hitler. Trump hopes to be the person that comes after Biden...

[-] Buttons@programming.dev 38 points 1 week ago

Senior developer here, it looks like they are helping to me.

[-] Buttons@programming.dev 5 points 1 week ago

They are doing extra work to change the product in ways that customers don't want.

Can someone explain to me again how "free markets" and "competition" are supposed to work?

[-] Buttons@programming.dev 3 points 2 weeks ago* (last edited 2 weeks ago)

I'm okay with algorithms not recommending certain posts. I just don't like shadowbans because the platform is lying to the user, the user interface is essentially telling the user "your post is available for viewing and is being treated like any other post" when it really isn't.

There's a balance between the free speech of individuals and the free speech of the company. I think a fair balance between the two is, once a company is big enough to control a significant percentage of the entire nation's discourse, the company at least has to be up front and avoid deceptive practices like shadow-banning. (This should only apply to large companies, once a company is large enough it has a responsibility to society.)

[-] Buttons@programming.dev 1 points 2 weeks ago

Speaking of Valve games, why did I ever stop playing Left 4 Dead? I need to play that again.

[-] Buttons@programming.dev 9 points 2 weeks ago

I don't appreciate being called out like that!

[-] Buttons@programming.dev 15 points 2 weeks ago* (last edited 2 weeks ago)

Yet another tool that uses “freedom of speech” incorrectly

Often freedom of speech is a moral ideal, a moral aspiration, and dismissing it on legal grounds is missing the point.

If I say "people should have a right to healthcare", and you respond "people do not have a legal right to healthcare", you are correct, but you have missed the point. If I say people should have freedom of speech and you respond that the first amendment doesn't apply to Facebook, you are right, but have again missed the point.

In general, when people advocate for any change, they can be countered with "well, the law doesn't require that". Yes, society currently works the way the law says it should. But what we're talking about is how society should work and how the law should change.

[-] Buttons@programming.dev 7 points 2 weeks ago

Somehow Trump returned... 🫠

17
384
submitted 3 months ago by Buttons@programming.dev to c/memes@lemmy.ml
60
Can anyone relate? (programming.dev)
8
submitted 11 months ago* (last edited 11 months ago) by Buttons@programming.dev to c/godot@programming.dev

I like most things I see about Godot, and I'm going to try making some games with it.

Whenever I imagine programming a game though, I imagine the game logic and simulation being separate from the display. For instance, if I was to make a game like FTL, I would plan to simulate all the ship interactions and the movement of the characters purely in code, and then write a separate module to render that simulation. The simulation could be rendered with graphics, or with text, or whatever (of course, a text render wouldn't be human friendly, but could act as a dedicated server for some games, or I could use it for machine learning, etc).

I'm not an expert at Godot, but it seems this mindset is not going to fit well into Godot. Is this correct? It seems like the same object that is responsible for tracking the players health is going to also be responsible for drawing that player on the screen and tracking their location on the screen, etc. Will my player class have to end up being a subclass of some complicated Godot class? (Also, I'm a fan of functional programming and don't always use a lot of classes if given the choice.)

What are your thoughts about this. Would you recommend another engine? No other engine seem to be in the same sweet spot that Godot is currently in.

163
submitted 11 months ago* (last edited 11 months ago) by Buttons@programming.dev to c/programming@programming.dev

My first experience with Lemmy was thinking that the UI was beautiful, and lemmy.ml (the first instance I looked at) was asking people not to join because they already had 1500 users and were struggling to scale.

1500 users just doesn't seem like much, it seems like the type of load you could handle with a Raspberry Pi in a dusty corner.

Are the Lemmy servers struggling to scale because of the federation process / protocols?

Maybe I underestimate how much compute goes into hosting user generated content? Users generate very little text, but uploading pictures takes more space. Users are generating millions of bytes of content and it's overloading computers that can handle billions of bytes with ease, what happened? Am I missing something here?

Or maybe the code is just inefficient?

Which brings me to the title's question: Does Lemmy benefit from using Rust? None of the problems I can imagine are related to code execution speed.

If the federation process and protocols are inefficient, then everything is being built on sand. Popular protocols are hard to change. How often does the HTTP protocol change? Never. The language used for the code doesn't matter in this case.

If the code is just inefficient, well, inefficient Rust is probably slower than efficient Python or JavaScript. Could the complexity of Rust have pushed the devs towards a simpler but less efficient solution that ends up being slower than garbage collected languages? I'm sure this has happened before, but I don't know anything about the Lemmy code.

Or, again, maybe I'm just underestimating the amount of compute required to support 1500 users sharing a little bit of text and a few images?

82
7
view more: next ›

Buttons

joined 11 months ago