u/tjpalmerin r/ProgrammingLanguages • Recommends
C++17 vs C string interop, plus some Zig
#string_view#strings#null-terminatedstrings
24K subscribers • 25 videos on Hallway
Intermediate. Assumes working knowledge.
8.1K views6 years ago1 recommendation
Programming languagesSystems programmingC++ZigC
How C++17 string_view conflicts with null-terminated C strings and how Zig handles string literals and interop.
Demo of C++17 string_view conflicting with null-terminated C strings, and how that relates to language design, including some discussion of Zig. Links: stroustrup.com/SELLrationale.pdf ("Library design is language design" on page 6) ziglang.org/documentation/0.5.0/#String-Literals-and-Charact… ziglang.org/documentation/master/#String-Literals-and-Charac… en.cppreference.com/w/cpp/string/basic_string_view developer.gnome.org/gtk3/stable/GtkLabel.html#gtk-label-set-… wiki.libsdl.org/SDL_CreateWindow?highlight=%28%5CbCategoryVi… freetype.org/freetype2/docs/reference/ft2-base_interface.htm… harfbuzz.github.io/harfbuzz-hb-buffer.html#hb-buffer-add-utf… sqlite.org/c3ref/prepare.htmlu/tjpalmerin r/ProgrammingLanguages • Recommends