Every home should have one
  • JATtho JATtho 2w ago 100%

    o ou mean smirk?

    2
  • suomi
    Suomi 3mo ago
    Jump
    Onko internet kuollut vai ei?
  • JATtho JATtho 3mo ago 100%
    2
  • suomi
    Suomi 4mo ago
    Jump
    Kokoomer
  • JATtho JATtho 3mo ago 100%
    2
  • Perpetual Motion finally achieved!
  • JATtho JATtho 5mo ago 100%

    C++: you sure you want to do this? This will either: a) blow your foot off b) be too fast to be measured in micro-benchmarks.

    b. B. B. a. then B.

    You have chosen to simultaneously blow your arm off and be the fastest code thing on the planet. Congrats. Yes.

    7
  • gut pull
  • JATtho JATtho 5mo ago 100%

    I was suspicious as heck of this link, but I thank you for being benign.

    1
  • gut pull
  • JATtho JATtho 5mo ago 100%

    My most common typo is gti <random command> and I'm considering to alias it as rm -rf --no-preserve-root /

    4
  • The easiest problem
  • JATtho JATtho 6mo ago 100%

    name your function as malloc() and see to world burn and generate bugs at factorial rate.

    20
  • That Nim Flashbacks
  • JATtho JATtho 6mo ago 100%

    Lettme introduce you to ackermann's function:

    int ack(int m, int n) {
        if (m == 0) {
            return n+1;
        } else if((m > 0) && (n == 0)){
            return ack(m-1, 1);
        } else if((m > 0) && (n > 0)) {
            return ack(m-1, ack(m, n-1));
        }
    }
    

    You won't run out of stackoverflows any time soon.

    5
  • Anon envies the AVGN's power
  • JATtho JATtho 6mo ago 80%

    A lot. That's the answer.

    3
  • It's time to mentally prepare yourselves for this
  • JATtho JATtho 6mo ago 100%

    std::chrono::neutronstar_clock

    6
  • memes
    Memes 6mo ago
    Jump
    *sweating intensifies*
  • JATtho JATtho 6mo ago 100%

    After 362879 wrong answers you will pass. Or after 2,0922789888×10¹³ tries if it's a fancy 4x4 grid.

    1
  • Rebase Supremacy
  • JATtho JATtho 7mo ago 100%

    To produce 1 commit, I end up rebasing the damm thing at least 3 times. If there is an problem, it's at least 2³ times.

    1
  • You can certainly change it. But should you?
  • JATtho JATtho 7mo ago 100%
    volatile int blackhole;
    blackhole = 1;
    const int X = blackhole;
    const int Y = blackhole;
    

    Compiler is forbidden to assume that X == 1 would be true. It's also forbidden to assume that X == Y. const just means the address and/or the data at the address is read only. const volatile int* const hwreg; -> "read only volatile value at read only address hwreg". Compiler can assume the hwreg address won't magically change, but can't assume the value read from that address won't.

    2
  • Review Please
  • JATtho JATtho 7mo ago 92%

    Please, no, I get flashbacks from my 6-month journey (still ongoing...) of the code review process I caused/did. Keeping PR scope contained and small is hard.

    From this experience, I wish GitLab had a "Draft of Draft" to tell the reviewer what the quality of the pushed code is at: "NAK", "It maybe compiles", "The logic is broken" and "Missing 50% of the code", "This should be split into N PRs". This would allow openly co-develop, discuss, and steer the design, before moving to nitpicking on the naming, formatting, and/or documentation details of the code, which is likely to drastically change. Drafts do work for this, but the discussions can get uncomfortably long and convolute the actual finishing of the review process.

    Once both reviewer(s) and the author agree on the code design, the "DraftDraft" could be collapsed into a link in an normal Draft to be mocked next. The scope of such draft would be limited by the earlier "DraftDraft".

    12
  • Brainfuck is the sixth circle
  • JATtho JATtho 7mo ago 100%

    Holy cow.

    2
  • And don't forget RTFM
  • JATtho JATtho 7mo ago 100%

    And you have bootstrapped an B compiler on that?

    1
  • Yuzu & Citra devs fold to Nintendo's demands | Pay $2.3million to settle, take down github, domains, patreon, discord, with immediate effect.
  • JATtho JATtho 8mo ago 100%

    I think the difference with Dolphin is that it now emulates an extinct system(s), so it cannot possibly compete with the actual thing. They did have a close call last year, if I remember, and they pretty quickly went into "jettison all illegal shit out of the code base NOW." -mode.

    7
  • My Git Knowledge
  • JATtho JATtho 8mo ago 100%

    The day I configured git to use Geany for commit messages with a separate config specifically tuned for this, it improved my life by 300%

    ~$ cat ~/bin/gitedit
    #!/bin/sh
    exec /usr/bin/geany -i -s -t -c ~/.config/gitgeany $@
    

    Then in git config: git config --global core.editor "gitedit"

    4
  • C++ Moment
  • JATtho JATtho 8mo ago 100%
    gdb> break before it crashes
    gdb> record full
    gdb> continue
    (segfault)
    

    gdb> set exec-direction reverse

    2
  • Bugs fixed
  • JATtho JATtho 8mo ago 100%

    Bugs that have existed for +3 years in a component and are nearly immediately visible to the end user. Oldest source line I touched was from before 2010.

    6
  • *Have a good day.*

    386
    12
    finland
    Finland JATtho 8mo ago 83%
    Stubb.

    Haavisto.

    4
    0

    I replaced the equivalent of *floor* in a code base and I was surprised it didn't break. *Yet.*

    135
    3

    I noted that there are 39 lemmy instances hosted in 🇫🇮, as reported by [the federation info](https://the-federation.info/platform/73) so I thought to collect them all here. An surprise to me was that the biggest of them all [lemmy.world](https://lemmy.world/) is also on some 🇫🇮 hosted service. - [lemmy.world 101013 users](https://lemmy.world) - [lemmy.dbzer0.com 9282 users](https://lemmy.dbzer0.com) - [discuss.tchncs.de 3092 users](https://discuss.tchncs.de) - [sopuli.xyz 3375 users](https://sopuli.xyz) - [feddit.uk 2124 users](https://feddit.uk) - [feddit.it 1378 users](https://feddit.it) - [geddit.social 1107 users](https://geddit.social) - [r-sauna.fi 66153 users](https://r-sauna.fi) - [lemmy.cat 394 users](https://lemmy.cat) - [lemmy.services.coupou.fr 17 users](https://lemmy.services.coupou.fr) - [aiparadise.moe 80 users](https://aiparadise.moe) - [wayfarershaven.eu 33 users](https://wayfarershaven.eu) - [lemmy.tebro.fi 9 users](https://lemmy.tebro.fi) - [fediverse.ro 14 users](https://fediverse.ro) - [lemmy.coupou.fr 83 users](https://lemmy.coupou.fr) - [moot.place 2 users](https://moot.place) - [lsmu.schmurian.xyz 2 users](https://lsmu.schmurian.xyz) - [feddi.no 17 users](https://feddi.no) - [lemmy.nerdcore.social 8 users](https://lemmy.nerdcore.social) - [lmmy.net 5 users](https://lmmy.net) - [lemmy.plasmatrap.com 4 users](https://lemmy.plasmatrap.com) - [l.rickebo.com 3 users](https://l.rickebo.com) - [lemmings.basic-domain.com 2 users](https://lemmings.basic-domain.com) - [kek.henlo.fi - users](https://kek.henlo.fi) - [kyu.de 5 users](https://kyu.de) - [lemmy.jpaulus.io 3 users](https://lemmy.jpaulus.io) - [meganice.online 5 users](https://meganice.online) - [lm.rdbt.no 3 users](https://lm.rdbt.no) - [lemmy.lundgrensjostrom.com 3 users](https://lemmy.lundgrensjostrom.com) - [lemmy.seifert.id 2 users](https://lemmy.seifert.id) - [lemmy.fanty.xyz - users](https://lemmy.fanty.xyz) - [demmy.co.uk 1 users](https://demmy.co.uk) - [biglemmowski.win 2 users](https://biglemmowski.win) - [fl0w.cc 2 users](https://fl0w.cc) - [lef.li 2 users](https://lef.li) - [acqrs.co.uk 1 users](https://acqrs.co.uk) - [lemmy.vepta.org 2 users](https://lemmy.vepta.org) - [demotheque.com 69125 users](https://demotheque.com) - [lemmy.thebitpros.com - users](https://lemmy.thebitpros.com) (list was scraped and regexed from paste, so it may be wrong)

    3
    1

    I have nothing to add.

    76
    1