Skip to content
0:00 / 0:00

#c23#compoundliterals#flexiblearraymembers

Programming in Modern C with a Sneak Peek into C23 - Dawid Zalewski - ACCU 2023

ACCU Conference

20K subscribers • 32 videos on Hallway • Conference channel

YouTube
  • Recommended by 2 people: 2 in engineering communities.

Intermediate. Assumes working knowledge.

174K views3 years ago2 recommendations

Programming languagesCLanguage design and type systems

Dawid Zalewski explores modern C features like compound literals, flexible array members, and designated initializers, with a preview of C23.

ACCU Membership: tinyurl.com/ydnfkcyn accu.org accuconference.org/ C Is Great, Long Live C! Programming in Modern C with a Sneak Peek into C23 - Dawid Zalewski - ACCU 2023 Slides: accu.org/conf-previous/accu2023/ If you are a seasoned C++ programmer you might think about C as a prehistoric language stuck in the times of K&R. But have you ever heard about compound literals and about how they can be used to enable default function arguments in C? Or have you ever used flexible array members to simplify dynamic data structures creation? What about anonymous unions, designated initialisers or static array arguments? Never heard of those? C is a living language that has much to offer to those who care about performance, who program close to hardware or whose daily routine involves interfacing C++ with C code. If you are such a person, or you are just curious and would like to learn about the older, little brother of C++, this is a talk for you. We will (re-)discover the perks and perils of modern C. Step by step, we’ll see how leveraging the latest language features helps readability, improves safety and leads to better runtime performance. Who knows, maybe you’ll find writing C enjoyable (again)? --- Dawid Zalewski Dawid is a computer engineer with a heart for teaching. He's been programming for over 20 years evolving through Basic, Turbo Pascal and many other languages to finally find his home in the land of C++ (with occasional visits to Python). His interests focus on the design and evolution of programming languages and paradigms. In his free time he explores the forming landscape of data-driven education or reads books. --- YouTube Videos Filmed, Edited & Optimised by Digital Medium: events.digital-medium.co.uk #accuconf #programming #cprogramming

Why it's here

2 people recommend this

Moments people linked to

u/chrs_in r/C_Programming • Recommends

Programming in Modern C with a Sneak Peek into C23

u/Lime_Dragonfruit4244in r/C_Programming • Recommends

Programming in modern C and the C23 standard

u/onecable5781in r/C_Programming • Mentions

"There is no runtime in C, there is assembly" -- what is the inside joke regarding this? In this video at this spot: [video an audience member asks a question regarding void accept(char const strstatic 1); for which the author says: "there is no runtime in C, there is assembly" leading to laughs from the audience. What is the inside joke on this and what does presence or lack of runtime in C imply as compared to other languages?
84View on Reddit

u/cantor8in r/C_Programming • Mentions

On “Passing arguments by struct using compound literals”

Out of this video link to this video

u/Ak4n0in r/C_Programming • Mentions

On “Why did C23 add both typeof and auto?”

Here a smart case of use of typeof in C: link to this video
1View on Reddit