Skip Navigation
In a bathroom stall, a simple message: Vote Harris. No one will know.
  • Jesse Waters knows a lot about affairs.

    He cheated on his wife, they divorced, he married the woman he was cheating with.

  • Python Overtakes JavaScript as Most Popular Language on GitHub
  • Deno looks interesting.

    But Bun choosing Zig makes me think their priorities are not my priorities. As of now, you choose Zig (a not-yet-stable language) because you want to learn Zig and make a neat side-project. Those are not my priorities. Zig offers no unique advantages other than neat new syntax.

    Deno chose Rust, which, like Zig, is new, but Rust has reached 1.0 and offers a unique advantage with its safety features. I'm not saying anything about the greatness of Rust here, only that Rust does offer unique advantages, and Rust could be chosen because of general priorities.

    Bun chose Zig and then worked backwards and formed their priorities around Zig. Deno formed their priorities and their priorities lead them to Rust.

    That's how I feel anyway.

  • Python Overtakes JavaScript as Most Popular Language on GitHub
  • Were just waiting on WASM to be able to access the DOM APIs directly, and then all languages will be first class citizens on the web, and then RIP JavaScript.

  • Arnold Schwarzenegger endorses Kamala Harris: ‘I will always be an American before I am a Republican’
  • Nothing wrong with changing the constitution, as long as people do what's required.

  • Why Major Newspapers Won’t Endorse Kamala Harris: Democracy dies in broad daylight
  • The journalists and the culture at the newspaper wanted to endorse Harris, but the billionaire owner swooped in and overrode all of that. This is obvious.

    I realized there's another layer to how messed up this is though. A newspaper changed it's journalistic practices to benefit an aerospace company (Blue Origin). Why is a newspaper connected to an aerospace company?

    More and more companies are being owned by fewer and fewer people. The American dream is dead, the free market is a myth at this point.

  • Please ban data caps, Internet users tell FCC
  • Throttling everyone equally during times of congestion is also fair in its own way. I'd be okay with that.

  • The Guardrails Are Already Crumpling
  • I like this term, "billionaire media", because right-wing media likes to use "mainstream media" as a slur to dismiss any other media source that disagrees with them. It's a term that shuts down thinking and gets people to automatically dismiss any claim from "mainstream media".

    "Billionaire media" doesn't really work this way, because if Fox News starts criticizing "billionaire media", eventually some viewers are going to wake up and realize, "wait, isn't Fox News owned by a billionaire too?"

  • The Guardrails Are Already Crumpling
  • People, especially Republicans, love to talk about the "mainstream media". That term needs to die.

    There is only "billionaire media" and "independent media".

    You're billionaire media if your owned or funded by a billionaire; I don't care if you're only on YouTube, if you're getting hundreds of thousands of dollars from sponsors, you're part of the billionaire media.

    If you're funded by a bunch of small donations or have no funding at all, then you are independent media.

    Today my trust for billionaire media sank even lower.

  • Please ban data caps, Internet users tell FCC
  • When limiting is required, because many people are using the same network, limiting those who have already used the most seems fair.

  • Chatbot that caused teen’s suicide is now more dangerous for kids, lawsuit says
  • Your comment might cause me to do something. You're responsible. I don't care what the legal definitions say.

    If we don't care about legal definitions, then how do we know you didn't cause all this?

  • The empire of C++ strikes back with Safe C++ proposal
  • Fortran is still a good language for some purposes I think.

    And I feel the same way, C++ tries to solve the problem of having too many features by adding more features.

  • What are some mind blowing Rust tricks?
  • What if I specify the wrong type? let retrieved = storage.get::<SomeOtherType>();?

    Is it a runtime error or a compile time error?

  • Machine vision moment
  • I'd rather believe it's a bunny than acknowledge snails that large exist.

  • Google must crack open Android for third-party stores, rules Epic judge
  • Epic vs Google turned out a lot different than Epic vs Apple.

    Also, Epic vs Google was decided by jury.

  • Featured
    Python 3.13.0 (final) has been released
  • I abandoned poetry after it was unable to install a specific version of pytorch I was using.

    In pip I would do something like pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118, but IIRC poetry didn't support the --index-url option.

  • What are your favorite statically typed, compiled, memory safe programming languages?
  • I wouldn't consider Julia statically-typed; am I wrong?

  • What are your favorite statically typed, compiled, memory safe programming languages?
  • The question mine as well be "what is your favorite compiled language?". There is a lot of overlap between the possible answers.

  • Godot staff are facing a huge reactionary backlash on Xitter for being "woke"
  • I hear you. It's no good to just cede ownership of a word and allow others to define it however suits them. But... it's Twitter, getting into a good faith philosophical discussion about the definitions of words ain't going to happen, so in many cases it's better to just not bring up the controversial words at all. Guess there's pros and cons to each.

  • Godot staff are facing a huge reactionary backlash on Xitter for being "woke"
  • I agree. That's why I suggest (or more like implied) that when we know we have different definitions of a word, we avoid using that word. It's a good thing to at least try if two people really care about understanding.

  • Can I remove a git repo without resorting to `rm -rf` ?

    Git repos have lots of write protected files in the .git directory, sometimes hundreds, and the default rm my_project_managed_by_git will prompt before deleting each write protected file. So, to actually delete my project I have to do rm -rf my_project_managed_by_git.

    Using rm -rf scares me. Is there a reasonable way to delete git repos without it?

    45
    Godot looks great, but I want to separate game logic and display.

    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.

    0
    Does Lemmy really benefit from Rust? Is code execution speed the bottleneck?

    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?

    17
    Buttons Buttons @programming.dev
    Posts 9
    Comments 375