String Formatting with a Variadic Template | C++ | Compiler Hacking

preview_player
Показать описание
Let's git rid of our error-prone sprintf function in favor of a compile-time checked string formatting function using a variadic template.

About the Project: Natalie is a very early-stage work-in-progress Ruby implementation that compiles Ruby to an executable. It does so by transpiling Ruby to C++ and feeding it to gcc or clang to produce a binary.

#programming #compiler #templates #cpp
Рекомендации по теме
Комментарии
Автор

6:27 welcome to the wonderful world of touching a single file and having to rebuild the entire codebase!

cxboog
Автор

Definitely more than two! Definitely a great example of "fearless sed refactoring thanks to git" :)

herrgahr
Автор

Regarding the compile speed, try `make -j4` or something. You can also use `-j8` if you have 8 cores. It means it's going to use more cores, so it's going to be way faster

unsafecast
Автор

What is your editor color scheme? I love the colors.

Adam_Lyskawa
visit shbcf.ru