• 16 Posts
  • 943 Comments
Joined 5 years ago
cake
Cake day: May 31st, 2020

help-circle

  • I think, people who say that believe that we’re close to actually-intelligent AI (or artificial general intelligence, AGI). And when we get there, it’s possible that we might suddenly be able to automate lots of complex tasks, possibly even shove it onto robots and have it take on physical labor and things like that.

    It’s the wet dream of capitalists, because they don’t need to employ anyone anymore. And I guess, folks are also afraid that such AI could be used for war.







  • Ephera@lemmy.mltoProgrammer Humor@lemmy.mlErrors
    link
    fedilink
    English
    arrow-up
    4
    ·
    6 days ago

    I was kind of thinking that yesterday when looking at a Rust library. Rust is competent with line numbers, so you don’t really have an incentive for splitting files from that angle, but sometimes, folks just seem to keep adding to their files ad infinitum.

    Well, specifically that library has a few files with more than 1k lines. And I hope this one’s the largest at 4k lines: https://docs.rs/git2/latest/src/git2/repo.rs.html

    What also needs to be said, is that this library is actually maintained by the Rust language team. Really makes me want to open an issue to tell them that Rust has a pretty cool module system. 🙃




  • Ephera@lemmy.mltoProgrammer Humor@lemmy.mlProject Lifecycle
    link
    fedilink
    English
    arrow-up
    10
    ·
    edit-2
    7 days ago

    Man, I’m currently in a project which started out with 2 major goals. Pretty early on, we got told that one of the goals is practically impossible, so we decided to ignore that. And we realized the other goal needs to be simplified significantly to be achievable in the slightest, although we still weren’t sure, if it violates the laws of physics.

    Now we’re a year into development, we’ve only figured out that it might be physically possible in certain situations. And yesterday, we talked to a guy with domain knowledge, who told us like ten different bigger challenges we’d still have to solve.



  • Ephera@lemmy.mltoComic Strips@lemmy.worldBad Influence.
    link
    fedilink
    English
    arrow-up
    4
    ·
    9 days ago

    It’s unlikely that insects (or any animals for that matter) are a better use of the land, because ultimately animals need to eat plants, too, and they use up a good chunk of the energy themselves.

    Occasionally, you can grow grass where proper crops won’t and animals can graze there, but to my knowledge, this isn’t particularly relevant in practice, because farmers will typically feed more nutrious food to minimize the time until the animals can be slaughtered.

    You talk about complete protein, by which I assume you mean the amino acid distribution, but I find it hard to believe that the inefficient land use of animals is offset by them converting some of the amino acids to be better suitable for us.
    Because ultimately, if you manage to grow more lentils and whatnot, you can totally just eat more lentils to reach your 100% of each amino acid.
    Wealthy cultures eat significantly more protein than is actually needed, for example.


  • Yeah, Python requires a “runtime” program, which interprets the Python code and then translates it into native machine code to actually execute it. Because Rust is compiled directly to native machine code by the developer, you don’t need a runtime program on your PC to run Rust programs.

    This is also one of the biggest reasons why Rust can be used for kernel development. You cannot rely on a runtime program for developing a kernel, since launching a program requires a kernel to already be up and running.



  • Hmm, I don’t have experience with hosting Forgejo, but my intuition tells me that because it has relatively many features, that its administration is more involved than if you only host a Git Server.

    You could then use a static site generator to turn your MD-files into a webpage. Personally, I have a (still very small) knowledge base webpage using mdBook, mostly because I was already familiar with it, but it’s also pretty simple to setup and has a built-in search.