Interpreted C++ is that a thing Javier López

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 มิ.ย. 2024
  • C++ is conceived to be a compiled language to build high-performance, low-latency, complex software. Therefore, it is naturally tied to a compile-link-execute cycle. However, under some circumstances it would be desirable to be able to interpret C++, especially during the early prototyping phase. Interactive prototyping, i.e. typing C++ code on a prompt or a Jupyter notebook and having the result of expression evaluation being printed back after the code was JIT'ed and executed is a reality.
    This talk introduces `cling` and `clang-repl`, two C++ interpreters (or more specifically, JIT compilers) based on clang and LLVM infrastructure. `cling` was developed mainly at CERN as part of the bigger ROOT project. `clang-repl` is the result of upstreaming the foundations of `cling` back to the clang project, where it can be more easily maintained in the long term.
    In summary, REPL (Read-Eval-Print-Loop) C++ interpretation is a reality and has been proved to be useful in many contexts. To know more about this topic, come by to this talk!
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น •