[-] [email protected] 7 points 4 months ago* (last edited 4 months ago)

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.

[-] [email protected] 4 points 4 months ago* (last edited 4 months ago)

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

[-] [email protected] 5 points 4 months ago

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.

[-] [email protected] 6 points 5 months ago

std::chrono::neutronstar_clock

[-] [email protected] 4 points 6 months ago

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"

[-] [email protected] 6 points 6 months ago

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.

[-] [email protected] 6 points 6 months ago

This cannot be an coincidence. I may actually finished something this time.

[-] [email protected] 3 points 7 months ago

I had a similar debacle, when I managed to corrupt a btrfs file system to point it wouldn't mount again...

I was preparing it to have as my main system on bare hardware. I had accidentally mounted the same block device simultaneously in the host and guest: kablamo silent corruption and all 5 hours of progress lost.^*^ :(

*shred the guest VM, host was ok.

[-] [email protected] 5 points 8 months ago

X Y problems are absolutely crud when you have to ask first the stupid version to be able to ask the actual question about X.

[-] [email protected] 4 points 10 months ago

If you clicked, please purge YT history and apply amnestics to your ears and eyes.

  • SCP staff probably
[-] [email protected] 5 points 10 months ago

The video link was surprisingly SFW. My expectation was piercing a nail through my skull make me UwU.

[-] [email protected] 5 points 1 year ago

Vielä tällä hetkellä teoreettinen "akku" jolla olisi jotain vaikutusta kantaverkon tasolla:

  • Tee vetyä aina kun halpaa nollahinta sähköä saatavilla
  • Sähkö halpaa + vetyä + hiilidioksidia: Syntetisoi jotain hiilivetyä (mm. metaani, metanoli) hiilidioksidista ja (hankalasti) varastoidusta vedystä. Tarvittaessa polta ylijäämä vetyä prosessi lämmöksi.
  • Kun sähkö on kallista ala polttamaan varastoituja hiilivetyjä voimalaitoksessa tuottaen sähköä. Tuotettu hiilidioksidi otetaan talteen ja käytetän uudestaan hiilivetysynteesissä.
  • Jos varastoituja eli. "vihreää" hiilivetyä, tai edes vetyä ei ole saatavilla: Paniikki. ^Jatka kuolleiden dinosauruksien ja tähtien lapioimista voimalaitoksiin.^

Energian kierrättäminen näin hiilivetyjen kautta tietty sisältää isoja häviöitä. Hiilivetyjä tosin pystyy varastoimaan loputtomasti mitättömillä häviöillä, toisin kun vetyä joka karkaa lopulta paksuimmakin metalliseinän läpi. On siis avoin kysymys tulisiko tämä koskaan olemaan taloudellisesti kanttavaa, ennen kuin ensimmäistäkään barrelia vihreää hiilivetyä saadaan varastoitua.

Ainoat käytettävissä olevat primääri energian lähteet ovat tosin:

  • Fissio-reaktio suoraan (mm. OL3) ja epäsuorasti. (geoterminen lämpö on osin perua radionuklidien hajoamisesta)
  • Fuusio-reaktio ainoastaan epäsuorasti: aurinko. (aurinkohan siis tarjoaa vesi ja tuulivoiman sekä fotonit aurinkopaneeleille)
  • Varastoidut auringon fotonit: fossiiliset polttoaineet. (hyödyntäminen uhkaa tuhota ihmiskunnan)
view more: ‹ prev next ›

JATtho

joined 1 year ago