@dgregor79@sfba.social avatar

dgregor79

@[email protected]

Dad, husband, Swift language designer and Swift/C++/ObjC compiler implementor, Author, Generic Programming aficionado. He/him.

This profile is from a federated server and may be incomplete. View on remote instance

@dgregor79@sfba.social avatar dgregor79 , to random

Apple is hosting a Security-focused developer event at the Apple Developer Center in Cupertino on March 5th!

The day will feature a wide range of sessions, including deep dives into Memory Integrity Enforcement and other memory safety mitigations, as well as 's comprehensive solution to memory safety. Plus an in-person mixer with Apple engineers and fellow security-focused developers.

View the agenda and register to attend in-person or online here: https://developer.apple.com/events/view/D4MG4S3PJ7/dashboard

@thephd@pony.social avatar thephd , to random

I didn't know a typical Windows install ships without compiler-rt pieces for the -fblocks extension so I think I need to compile the whole LLVM compiler-rt and then pluck out BlocksRuntime to link against...

dgregor79 ,
@dgregor79@sfba.social avatar

@thephd the swift compiler’s installer on windows should have the blocks runtime

@thephd@pony.social avatar thephd , to random

EMIT_STL_ERROR(STL1000, "Unexpected compiler version, expected Clang 19.0.0 or newer.");

.... That's.... new. It would help if this also made the people who manage the GitHub Actions containers bump their version of clang to 19, too, but what do I know about ecosystems,

dgregor79 ,
@dgregor79@sfba.social avatar

@thephd We ran across this in Swift, because our embedded Clang was version 18 at the time. Turns out there was a single Defect Report (static assert on non dependent values in templates something something) implemented in Clang 19 that was needed to get the MSVC STL work with Clang 18, so we ended up pulling in that tiny change and disabling the version check. Honestly, it felt kinda aggressive to have such a version check for a not-very-old version.

@dgregor79@sfba.social avatar dgregor79 , to random

This document is too light on details for any reasonable person to conclude that Iran posed a real threat to the U.S. Homeland prior to Trump’s attack on Iran. Three of the five bullets are concerns about new retaliatory threats, because the U.S. appears to have started a war without provocation.
https://mastodon.social/@augieray/114727994796886988

dgregor79 OP ,
@dgregor79@sfba.social avatar

@thephd I expected it from the moment Trump got reelected. Fascists need wars as a pretext to curtail civil liberties and consolidate power.

@thephd@pony.social avatar thephd , to random

One of the REAL reasons I like defer (and drop and friends) is because, aesthetically, I don't have to brace/indent my scope AGAIN as I do with use-with-resources/using/with statements.

dgregor79 ,
@dgregor79@sfba.social avatar

@thephd This is The Reason I like Swift’s guard. It lets me avoid having the main flow of the function be nested by peeling off cases that can exit early.

@dgregor79@sfba.social avatar dgregor79 , to random

Called both my Senators and also my house Representative today to ask that they push back forcefully on Musk and Trump’s dismantling of the U.S. government. Both Senators had their voice mail overflowing; I got a real staffer for my house Representative who appreciated the call.

Call your representatives to keep up the pressure! We need Republicans to hear your displeasure, and Democrats to hear your determination to help them push back. Democracy depends on it.

@dgregor79@sfba.social avatar dgregor79 , to random

I just went ahead and emailed the treasury department with a civil liberties complain regarding the theft of our private data. If you’ve ever paid taxes in the US, please consider doing the same.
https://mastodon.social/@QasimRashid/113946220916644935

@holly@hachyderm.io avatar holly , to random

I’m giving a talk in the industry track on bringing static data-race safety to Swift. It’s a story about adapting many years of PL research to improve the lives of programmers at scale. Hope to see you there!

https://pldi24.sigplan.org/details/pldi-2024-pldi-events/1/Data-race-safety-for-the-masses
https://mastodon.acm.org/@pldi/112633285522248050

dgregor79 ,
@dgregor79@sfba.social avatar

@lritter @holly That paper is indeed part of the story.

@dgregor79@sfba.social avatar dgregor79 , to random

It’s been about 15 years since C++0x Concepts were removed from the draft that became C++11. I sat down with Conor and Bryce to talk through the goals and design of C++0x concepts, and some of the similarities and differences with the C++20 feature that bears the same name. https://www.adspthepodcast.com/2024/05/03/Episode-180.html

@dgregor79@sfba.social avatar dgregor79 , to random

Hello C++ folks! I've started a blog series aimed at C++ programmers who are interested in learning . It teaches the breadth of the Swift language, but anchored in the features and idioms of C++. So if you know your Rule Of Fives and your SFINAEs and think you might be interested in Swift, I'd love to hear what you think. Part 1 is something you know of from C++ that Swift takes a bit further: value types. https://www.douggregor.net/posts/swift-for-cxx-practitioners-value-types/