Skip to content
Streamlining systemd's code and safety (asg2017) episode artwork

EPISODE · Oct 20, 2017 · 26 MIN

Streamlining systemd's code and safety (asg2017)

from Chaos Computer Club - archive feed (high quality) · host David Strauss

Today, the systemd project uses a non-standard superset of C to get destructor-like functionality. But, we pay a heavy price for doing it this way: we lose compiler portability, use hundreds of boilerplate macros, and confuse static analysis tools (which don't always realize why we're not leaking memory). At compilation, the cleanup functionality gets mapped to the same facilities that handle C++ destructors. So, essentially, we're already using a non-standard version of C++ as well as a non-standard version of C. We can end this charade by following in GCC's footsteps and explicitly using a subset of C++. By doing so, we can shed thousands of lines of C-trying-to-be-C++. We can also improve memory safety and code readability -- all while keeping the feel of C. about this event: https://c3voc.de

Episode metadata supplied by the publisher feed · Published Oct 20, 2017

Embed this episode

Ready to play

Streamlining systemd's code and safety (asg2017)

0:00 26:54

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of Chaos Computer Club - archive feed (high quality)?

This episode is 26 minutes long.

When was this Chaos Computer Club - archive feed (high quality) episode published?

This episode was published on October 20, 2017.

Can I download this Chaos Computer Club - archive feed (high quality) episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!