CppCon 2018: Viktor Kirilov “Interactive C++ Compilation (REPL) Done in a Tiny and Embeddable Way”

preview_player
Показать описание


Ever wanted to modify some value or execute some statement while your C++ program is running just to test something out - not trivial or possible with a debugger? Scripting languages have a REPL (Read-Eval-Print-Loop). The closest thing C++ has is cling (developed by researchers at CERN) but it is built on top of LLVM and is very cumbersome to set up and integrate.

In this presentation we will go through the inner-workings of a project showcasing an innovative approach to doing runtime C++ compilation in a platform and compiler agnostic way which can be easily embedded. We will see how to use it, how it works and how to modify and integrate it into any application and workflow.

WARNING: 2 live demos !!!

Viktor Kirilov
Bulgaria

With 4 years of professional experience with C++ in the games and VFX industries, Viktor currently spends his time writing open source software (since 01.01.2016). He is the author of doctest - "The fastest feature-rich C++11 single-header testing framework".

His interests are the making of games and game engines, high performance code, data oriented design, blockchains, optimizing workflows and incorporating good practices in the software development process such as testing and the use of modern tools like static analysis or instrumentation.

Viktor is from Sofia, Bulgaria and his profession is his hobby.


*-----*
*--*
*-----*
Рекомендации по теме
Комментарии
Автор

just noticed how red-ish everything looks - I must have left f.lux working on my laptop during the entire presentation...

TheThirdAttractor
Автор

Interesting. Using a REPL for C++ that is minimal setup would be great.

stephenjames
Автор

I watched it for Nim but there was only one sentence about it :)

jabuci
Автор

This is really cool but saying it eliminates the need for a scripting language is kinda silly

noxabellus
Автор

So you skipped "Tiny and Embeddable C" phase straight into C++. That will not work! Until we get workable version of something like TCC, nobody should waste time looking at the direction of C++.C language is few orders of magnitude easier than C++, so until it gets done, spending time on C++ is actually repeating of all mistakes for C again.

yaroslavpanych