@fasterthanlime@hachyderm.io titelbild
@fasterthanlime@hachyderm.io avatar

fasterthanlime

@fasterthanlime@hachyderm.io

hi, I'm amos! 🦀 I make articles & videos about how computers work 🐻‍❄ cool bear's less cool counterpart ✨ be kind

Dieses Profil is von einem föderierten Server und möglicherweise unvollständig. Auf der Original-Instanz anzeigen

fasterthanlime , an Random 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.

fasterthanlime OP ,
@fasterthanlime@hachyderm.io avatar

@tuvok @nicolas17 I’m not trying to change C++. I was just making sure that it is exactly as bad as I discovered it is! Thanks for your input though.

bb010g ,
@bb010g@pony.social avatar

@fasterthanlime The C++ standard still doesn't have basic lifetime semantics, correct. However, you can look to the C++ Core Guidelines, which does provide lifetime semantics through types like gsl::owner<T>, in conjunction with toolchain support (compilers, linters). You'd be particularly interested in P1179 from Herb Sutter, “Lifetime safety: Preventing common dangling” (in repo, v1.0 release blog post (2018-09-20)), a.k.a. the C++ Core Guidelines Lifetime Profile. Here's a short overview blog post (2020-01-22) from Daniel Martín.

MSVC implements a decent amount, including the Lifetime Profile (release blog post (2019-01-24), follow-up blog post (2022-12-13)), and Microsoft provides the Microsoft GSL (licensed MIT) implementation of the Guideline Support Library.

Clang 18.1.0 implements -Wdangling-gsl and clang-tidy 18.1.0 implements a set of cppcoreguidelines-* checks, including cppcoreguidelines-owning-memory, but Clang itself has not implemented P1179. Matthias Gehre and Gábor Horváth did implement P1179 in a Clang downstream (EuroLLVM 2019 talk (2019-04-08–09) (video, slides, blog post from Herb Sutter (2019-05-03), cfe-dev RFC) as -Wlifetime (note that the README there contains some useful links), but it hasn't been upstreamed and development is inactive. For some newer discussion, see LLVM forum thread “[RFC] Lifetime annotations for C++” (2022-04-01) from Martin Brænne, Rosica Dejanovska, Gábor Horváth, Dmitri Gribenko, & Luca Versari. I'd personally recommend using gsl-lite (licensed MIT) for your GSL implementation when using compilers other than MSVC.

GCC doesn't implement the Core Guidelines AFAICT.

cppfront plans to implement Lifetime Profile–style static analysis AFAICT (e.g. discussion (2023-08-20), but I don't believe that's happened yet.

You may additionally find “C++ safety, in context” (2024-03-11) from Herb Sutter useful.

fasterthanlime , an Random Englisch
@fasterthanlime@hachyderm.io avatar

me: okay, no code in slides this time
also me:

kinnison ,
@kinnison@fosstodon.org avatar

@fasterthanlime I love the warning squiggles on only one of the label names :D

sheldonyoung ,

@fasterthanlime "No, alloc shim is unstable" or "No alloc shim is unstable"

fasterthanlime , (Bearbeitet ) an Random Englisch
@fasterthanlime@hachyderm.io avatar

Well, I'm curious now — macOS users, are you a "developer" and do you have Finder set to "show hidden files"?

shooboo ,
@shooboo@hachyderm.io avatar

@fasterthanlime do file save/open dialogs count as Finder? Desktop? Because if not than I don’t even know what it’s supposed to be useful for when you have a shell?

fasterthanlime OP ,
@fasterthanlime@hachyderm.io avatar

@shooboo they do, but you can always do Cmd+Shift+. to show them temporarily, or just Cmd+Shift+G to go to the thing directly if you know its path

fasterthanlime , an Random Englisch
@fasterthanlime@hachyderm.io avatar

Rare Apple naming L

julia ,
@julia@mathstodon.xyz avatar
bjorn3 ,
@bjorn3@hachyderm.io avatar

@fasterthanlime The first screenshot is a binary plist (magic bytes "bplist"): https://en.m.wikipedia.org/wiki/Property_list and https://en.m.wikipedia.org/wiki/Webarchive

fasterthanlime , an Random Englisch
@fasterthanlime@hachyderm.io avatar

Sometimes when I get pissed at my iPhone dictation for not understanding what the hell I’m on about, I start speaking to it with a heavy Scottish accent — just to give it an actual reason to be confused

WolvericCatkin ,
@WolvericCatkin@mastodonapp.uk avatar

@fasterthanlime Try Yorkshire next time... 😹

acsawdey ,
@acsawdey@fosstodon.org avatar
fasterthanlime , an Random Englisch
@fasterthanlime@hachyderm.io avatar

THIS IS NOT A DRILL:

The Zed code editor has an official Linux build now:

🐧 https://zed.dev/linux

kescher ,
@kescher@catcatnya.com avatar

@fasterthanlime ok but why do they suggest piping curl output into sh

kimmakesgames ,
@kimmakesgames@mastodon.social avatar

@fasterthanlime oooo been waiting for this :)

fasterthanlime , an Random Englisch
@fasterthanlime@hachyderm.io avatar

Is the main Rust yaml parser still unmaintained? If so… that’s not great

urschrei ,
@urschrei@mastodon.social avatar

@fasterthanlime It’s pretty nightmarish:

sjb ,

@fasterthanlime Indeed and even worse many prominent crates force dependency without the option to override, including kube-rs, the best crate we have found for writing operators.

fasterthanlime , an Random Englisch
@fasterthanlime@hachyderm.io avatar

guys you're not gonna believe this but

when you work on something, that makes it better

dmerej ,
@dmerej@mamot.fr avatar

@fasterthanlime

Also, sharing good news is good for your mental health ;)

ChaosSpectre ,
@ChaosSpectre@corteximplant.com avatar

@fasterthanlime discord does not believe your lies in this post. The product can only improve by shoving in more microtransactions

fasterthanlime , an Random Englisch
@fasterthanlime@hachyderm.io avatar

Dictation models have gotten much better, but most of them have this weird quirk where they insist on ending sentences with "Thanks for watching!"

fasterthanlime OP ,
@fasterthanlime@hachyderm.io avatar

@dysfun sometimes they do!

WolvericCatkin ,
@WolvericCatkin@mastodonapp.uk avatar
fasterthanlime , an Random Englisch
@fasterthanlime@hachyderm.io avatar
syphdias ,
@syphdias@social.linux.pizza avatar

@fasterthanlime I don’t think calling "someone" out on their lies counts as bullying

christmastree ,
@christmastree@mastodon.social avatar
fasterthanlime , an Random Englisch
@fasterthanlime@hachyderm.io avatar

I'm not that grumpy about the whole Chrome situation usually but that should trigger large antitrust penalties immediately, lol

When are we breaking up Alphabet again?

https://fedi.simonwillison.net/@simon/112757810519145581

fasterthanlime , an Random Englisch
@fasterthanlime@hachyderm.io avatar

the worst part about asking for feedback is that now you have feedback to deal with

unlambda ,
@unlambda@hachyderm.io avatar

@fasterthanlime Are you writing an article in lojban?

fasterthanlime OP ,
@fasterthanlime@hachyderm.io avatar

@unlambda I'm not! If I was, it would've been relevant!

fasterthanlime , an Random Englisch
@fasterthanlime@hachyderm.io avatar

oohhh beta GitHub task lists are pretty

(from https://github.com/rust-lang/rust/issues/87121)

fasterthanlime , an Random Englisch
@fasterthanlime@hachyderm.io avatar

French government website excellence 😤

(I'm using Safari, I guess that's suspicious)

AcidePoulain ,
@AcidePoulain@mstdn.social avatar

@fasterthanlime generic.witty.humorous.response

agnew_hawk ,
@agnew_hawk@mastodon.social avatar

@fasterthanlime Suspicious activity of "not succumbing to Chrome"

fasterthanlime , an Random Englisch
@fasterthanlime@hachyderm.io avatar

👀

minkiu ,
@minkiu@mastodon.social avatar

@fasterthanlime I've been building it from develop, and it works quite well, they've been mostly bogged down on the CSD side of things, but it's almost there! 🥳

fluke ,
@fluke@hachyderm.io avatar

@fasterthanlime been using it for well over a month and it's damned good. I really really can not go back to vscode or jetbreins after this.

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