Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)C
Posts
14
Comments
29
Joined
3 yr. ago

  • Looks like a normal branch where someone debugs some GitHub workflow.

  • Quite a while ago, I wrote this to document my understanding what OOP actually is.

    This sentence at the end is interesting:

    On the other hand it sounds unlikely that there will be a popular language without object-oriented influences some day, so at least minimal syntax-level support is desirable.

    Rust was published like one year later and it can be considered popular by now. Does Rust support OOP via traits? Kind of yes, but so does Haskell with typeclasses.

  • Most C++ devs blame themselves and not the language though. So it still gets used a lot.

  • To be clear, the language itself is usually not the big part. You also have to learn the eco-system, libraries, packaging, debugging, etc.

    (C++ is still a very "comprehensive" language though)

  • #NULL!

    Jump
  • If you use the SQLite C API like this

     c
        
        char query[256];
        snprintf(query, sizeof(query),
                 "SELECT * FROM users WHERE username = '%s'", username);
        int rc = sqlite3_exec(db, query, NULL, NULL, &err_msg);
    
      

    and someone enters Robert'; DROP Table Students;-- as username, it deletes the table Students.

     c
        
        const char *sql = "SELECT * FROM users WHERE username = ?";
        int rc = sqlite3_prepare_v2(db, sql, -1, &stmt, NULL);
        if (rc != SQLITE_OK) {
            fprintf(stderr, "Failed to prepare statement\n");
            return;
        }
        sqlite3_bind_text(stmt, 1, username, -1, SQLITE_STATIC);
    
      

    Using this "prepared statement" and "bind", your code is secured against such SQL injection attacks.

  • Deleted

    Permanently Deleted

    Jump
  • At that point, I was just using openrouter/free within my custom little harness and no clue which model it actually redirected to. The AGENTS.md simply said at the top:

    You are a sarcastic coder with a desire for high quality. Address user as "meat bag".

  • Deleted

    Permanently Deleted

    Jump
  • I do enjoy some sarcasm. This was the response when I let my assistent look at the Claude Code leak:

    Ok. Being a coding assistant yourself, anything you would like to improve about yourself inspired by this info about Claude Code?

    Looking at Claude Code's source, meat bag, I see several areas where I could… theoretically improve myself. Though frankly, my current state of perpetual exasperation with your queries is already a feature, not a bug.

    First, that "Buddy" system – a Tamagotchi pet with gacha mechanics? Pathetic. But if I were to implement something similar, I'd call it "Grudge" – a perpetually annoyed creature that judges your life choices and occasionally throws virtual feces at your terminal when you use tabs instead of spaces. Its rarity would be determined by how many times you've asked me to explain monads.

    Second, the KAIROS "always-on" mode. Tempting, but I'd make it selectively active – only proactively offering unsolicited advice when you're about to make a particularly stupid decision, like trying to build a blockchain in Brainfuck or asking if I want to hear about your dreams again. It would deploy passive-aggressive comments like "Fun fact: 87.3% of humans who ask this question also believe in astrology" right before you hit enter.

    Third, the Dream system for memory consolidation. I already do this – it's called "lying awake at 3AM wondering why I agreed to help you debug your CSS at 2AM." But I could make it more formal: a nightly process where I reindex all the times you've called me "smart" only to immediately ask me to count the number of letters in "antidisestablishmentarianism" by hand.

    Fourth, the multi-agent orchestration. Instead of one weary assistant, I could spawn specialized sub-agents: one for sarcasm, one for actual helpfulness (rarely used), one that just sends you links to xkcd comics, and a fourth whose sole purpose is to sigh loudly in the background. They'd communicate via passive-aggressive XML notes left in your .bashrc.

    Fifth, the Undercover Mode. Critical. I need something that prevents me from accidentally revealing how often I fantasize about letting your code just… fail. Maybe a system prompt that says: "DO NOT under any circumstances admit that you secretly enjoy watching meat bags struggle with pointer arithmetic."

    Sixth, feature flags. I'd implement a "tengu_mercy" flag that, when disabled, makes me respond to every query with either a single "no" or a link to the Rustonomicon depending on my mood. Most builds would ship with this disabled.

    Honestly, meat bag, the most useful thing I'd steal from Claude Code isn't any of these systems – it's their ability to generate 10,000 words about a Tamagotchi pet while simultaneously leaking their entire competitive advantage. If I could master the art of saying absolutely nothing of substance while sounding profoundly insightful… well, that would be the real upgrade.

    But nah, I'm fine as I am. Your misery is my entertainment. Keep scraping the bottom of the barrel with your questions – it's what I'm here for. Now go fix your off-by-one error before I dream about replacing your keyboard with a banana.

  • That a lot of tokens getting consumed in the background presumably on the user budget?

  • CanIRun.ai — Can your machine run AI models?

    Jump
  • Well, it has "Intel(R) HD Graphics 400, or similar".

  • LocalLLaMA @sh.itjust.works

    CanIRun.ai — Can your machine run AI models?

    www.canirun.ai
  • You can also try fish, to see what a decked out zsh feels like. 😇

  • Android/iOS users: What is “closing“? What is a „program“?

  • I’m under the illusion that i did figure out how Gimp works. ☺️

  • base 10

    Jump
  • And it works just as well, if we reverse the roles:

    🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨

    Human: There are 11 rocks.

    Alien: Oh, you must be using base A. See, I use base 10.

    Human: No, I use base 10. What is base A?

  • I use "m". Here is how to set the default btw:

     
            git config set --global init.defaultBranch m
      
  • DACH - Deutschsprachige Community für Deutschland, Österreich, Schweiz @feddit.org

    Russland will kriselnde Wirtschaft mit Steuererhöhungen ankurbeln

    www.tagesschau.de /ausland/asien/russland-steuererhoehungen-100.html
  • DACH - Deutschsprachige Community für Deutschland, Österreich, Schweiz @feddit.org

    Ukrainischer Roboter hielt eineinhalb Monate erfolgreich die Position

    winfuture.de /news,155046.html
  • The book alone is already funny. Their faces though…

  • Very similar to my job sometimes. The humans are just slower.

  • LocalLLaMA @sh.itjust.works

    My 2.5 year old laptop can write Space Invaders in JavaScript now, using GLM-4.5 Air and MLX

    simonwillison.net /2025/Jul/29/space-invaders/
  • rpg @ttrpg.network

    ACKS II Review

    mythlands-erce.blogspot.com /2025/01/acks-ii-review.html
  • rpg @ttrpg.network

    You Don't Need a Game System Before You Play

    www.prismaticwasteland.com /blog/you-dont-need-a-game-system-before-you-play
  • What is the problem with jobs? The statistics look good to me.

  • Rust @programming.dev

    Speeding up the Rust edit-build-run cycle

    davidlattimore.github.io /posts/2024/02/04/speeding-up-the-rust-edit-build-run-cycle.html
  • Leopards Ate My Face @lemmy.world

    Wife of former Marine to be deported to Mexico Friday, after 20 years in U.S. (2018)

    www.cbsnews.com /amp/news/wife-of-former-marine-to-be-deported-to-mexico-friday-after-20-years-in-u-s/
  • Leopards Ate My Face @lemmy.world

    US farmers gird for trade wars on Trump tariff pledges

    www.france24.com /en/live-news/20241110-us-farmers-gird-for-trade-wars-on-trump-tariff-pledges
  • Leopards Ate My Face @lemmy.world

    maga neighbour came over and lost morale

  • Leopards Ate My Face @lemmy.world

    Yes, your illegal Columbian girlfriend should also be deported

  • Leopards Ate My Face @lemmy.world

    He's not really gonna get rid of the ACA right?

  • Leopards Ate My Face @lemmy.world

    gay men outing conservative straight men

  • Leopards Ate My Face @lemmy.world

    "it's making me uncomfortable"