Random

fasterthanlime , Englisch
@fasterthanlime@hachyderm.io avatar

I'm reading up about C++ move semantics and I don't understand why anybody in the history of humankind has ever tried defending this language.

tuvok ,

@fasterthanlime why would it be a compile time error? The idea with moving is that you move out the resources from the handle, the move has to leave the moved-from object in a clean enough state (so that the destructor can succeed) - you are free to reuse the handle for other things after that, you only can't expect it to have any reasonable value just after the move, until you repopulate it with something.

raph ,
@raph@mastodon.online avatar

@fasterthanlime @cliffle Ok, I think I have an authoritative source for this: it's @graydon 's 2012 Rust slide deck (https://d22yoqkt46k26p.cloudfront.net/graydon/talks/rust-2012.pdf). It cites Clean, C++, Linear Lisp, Linear ML, and Mercury. Linear Lisp is from 1992, Henry Baker, quite an interesting read (https://dl.acm.org/doi/pdf/10.1145/142137.142162). In Clean, the "uniqueness type" was mostly to deal with side effects in an otherwise pure functional language, but could also support mutation in place.

fasterthanlime , Englisch
@fasterthanlime@hachyderm.io avatar

nods

groxx ,
@groxx@hachyderm.io avatar

@fasterthanlime I've been having fun dealing with time travel in Go lately. It has monotonic time, but MANY things do not retain that monotonic guarantee through their processing :blobfoxcofe_w_:

dluz ,
@dluz@hachyderm.io avatar

@fasterthanlime You laugh, but it happens daily on my dev phone, causing assertion errors in Flutter debug builds. (My unverified hypothesis is that the internal clock runs slightly fast, and NTP rewinds it by a few microseconds)

fasterthanlime , Englisch
@fasterthanlime@hachyderm.io avatar

I know you all probably have questions, and I uhhhh runs away

gfaster ,
@gfaster@tilde.zone avatar

@fasterthanlime @Cyborus wow that's horrible why would you do that please tell me more

fasterthanlime OP ,
@fasterthanlime@hachyderm.io avatar

@gfaster @Cyborus So I could build parts of my app independently as dynamic libraries. I don’t really want to ship and copies of Tokyo, but monomorphization is kind of forcing my hand here.

It’s that or having the entire crate graph when building tokio, which ruins the purpose of segmenting my app in completely separate crates like that.

derpostillon ,
@derpostillon@mastodon.social avatar

Bilder des Tages – beeindruckende Fotos aus Deutschland und aller Welt https://www.der-postillon.com/p/bilder-des-tages-beeindruckende-fotos.html

18+ plabberpapp ,
@plabberpapp@social.tchncs.de avatar
llutz ,
@llutz@norden.social avatar

@derpostillon
Stück aus dem eisernen Thron heraus gebrochen?

ralphruthe ,
@ralphruthe@troet.cafe avatar

Schönen Abend noch!

finche ,
@finche@nrw.social avatar

@ralphruthe

Keine bösen Witze über Schweine, bitte.

Ich meine es halbernst; man sollte sich nicht wirklich darüber lustig machen, daß manche von uns tatsächlich Schweine essen und alles davor billigend inkauf nehmen.

xuxxux ,

@ralphruthe sehr gut! Aber vertan die Chance allen zu zeigen, wo der Frosch die Locken hat.

tjf , Englisch
@tjf@social.ndlug.org avatar

Was trying to print an iPhone photo, but couldn’t find a way to scale it down in the iOS print menu (I don’t want a full 8.5x11” page of color ink). @kde to the rescue! KDE Connect sent the photo to my desktop and Gwenview got the print settings just right.

Is the fabled year of the Linux desktop already upon us?

kde ,
@kde@floss.social avatar

@tjf

Don't know about you, but we've been living it for literally decades now.

ptesarik ,
@ptesarik@fosstodon.org avatar

@kde @tjf You bet! Linux wins the desktop when industry has moved to smartphones. 😆

derpostillon ,
@derpostillon@mastodon.social avatar

Vater merkt, dass er immer noch Benjamin Blümchen hört, obwohl er sein Kind schon vor 20 Minuten in der Kita abgegeben hat https://www.der-postillon.com/2020/07/toeroeoeoeoe.html

mirabella44 ,
@mirabella44@mastodon.social avatar

@derpostillon vor 20 Jahren. Törööö!

oarnd ,

@derpostillon das ist keine Satire! Hat das der kinderlose Praktikant geschrieben?

tazgetroete ,
@tazgetroete@mastodon.social avatar

Auf Instagram informieren einige Influencer_innen über medizinische Inhalte. Doch nicht nur die Infos sind teilweise falsch. https://taz.de/!6019613

YoMamaYoMama ,
@YoMamaYoMama@mastodon.social avatar

@tazgetroete warum das nicht endlich mit zivilstrafrechtlichen Maßnahmen unterbunden wird, ist uns allen ein Rätsel.

fasterthanlime , Englisch
@fasterthanlime@hachyderm.io avatar

I love the web platform because you can ask for the "clipboard-read" permissions nicely and the browser can throw a TypeError?

like... we couldn't afford one more string to tell me to go fuck myself nicely? we had to rely on the type of the exception here, really? like it's C and all we have to go on is a register's worth of integer values?

fasterthanlime OP ,
@fasterthanlime@hachyderm.io avatar

also, can we talk about the gall of an interpreted, dynamically-typed language throwing a "TypeError" at me? a type error, really?

jail! jail for a thousand years

tazgetroete ,
@tazgetroete@mastodon.social avatar

Staatspräsident Emmanuel Macron wendet sich in einem offenen Brief an die Französ:innen. Er wünscht sich eine breite, gemäßigte Koalition. https://taz.de/!6019771

Stricki ,
@Stricki@dresden.network avatar

@tazgetroete
Da fällt mir dies ein
@GuidoKuehn

heiseonline ,
@heiseonline@social.heise.de avatar

Oberlandesgericht Köln: Google haftet in Europa für Suchergebnisse​

Betroffene können laut dem OLG Köln von der irischen Google-Tochter die Löschung rechtswidriger Suchergebnisse verlangen. Ein Gang in die USA ist nicht nötig.​

https://www.heise.de/news/Oberlandesgericht-Koeln-Google-haftet-in-Europa-fuer-Suchergebnisse-9798738.html?wt_mc=sm.red.ho.mastodon.mastodon.md_beitraege.md_beitraege&utm_source=mastodon

maexchen1 ,
@maexchen1@nrw.social avatar

@heiseonline

Das ist ja toll, aber werden die auch auf das Urteil reagieren?

tazgetroete ,
@tazgetroete@mastodon.social avatar

Ganz plötzlich wurde die wichtige Hörspielförderung der Film- und Medien­stiftung NRW abgeschafft. Dabei ist die Kunstform immer noch beliebt. https://taz.de/!6019639

heiseonline ,
@heiseonline@social.heise.de avatar

Experte: KI kann im Kampf gegen seltene Krebserkrankungen helfen

Dank KI und mehr Gesundheitsdaten machen Diagnostik und Therapie von Krebskrankheiten laut Technikfolgen-Abschätzern Fortschritte. Aber die Regulierung bremse.

https://www.heise.de/news/Experte-KI-kann-im-Kampf-gegen-seltene-Krebserkrankungen-helfen-9798756.html?wt_mc=sm.red.ho.mastodon.mastodon.md_beitraege.md_beitraege&utm_source=mastodon

heiseonline ,
@heiseonline@social.heise.de avatar

heise+ | VanMoof S5 im Test: Smartes E-Bike mit Hollandrad-Feeling

Das VanMoof S5 tritt als entspanntes E-Bike mit starkem Motor und gemütlichem Fahrgefühl an. Wir haben die überarbeitete Version des Cruisers getestet.

https://www.heise.de/tests/VanMoof-S5-im-Test-Smartes-E-Bike-mit-Hollandrad-Feeling-9798014.html?wt_mc=sm.red.ho.mastodon.mastodon.md_beitraege.md_beitraege&utm_source=mastodon

tazgetroete ,
@tazgetroete@mastodon.social avatar

Auch unter Präsident Lula brennt es in dem brasilianischen Naturreservat. Kann er die Brandrodungen der Großgrundbesitzer stoppen? https://taz.de/!6019744

  • Alle
  • Abonniert
  • Moderiert
  • Favoriten
  • random
  • haupteingang
  • Alle Magazine