# Cling's internals docs?

**URL:** <https://root-forum.cern.ch/t/clings-internals-docs/43039>\
**Category:** Cling\
**Tags:** documentation\
**Created:** [January 10, 2021, 11:19am UTC](https://root-forum.cern.ch/t/clings-internals-docs/43039 "2021-01-10T11:19:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![blasrodri](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/blasrodri/32/24530_2.png) [@blasrodri](https://root-forum.cern.ch/u/blasrodri)\
**Post date:** [January 10, 2021, 11:19am UTC](https://root-forum.cern.ch/t/clings-internals-docs/43039/1 "2021-01-10T11:19:46Z")

</div>

Hi! First of all, thanks for building and open-sourcing Cling. It’s a brilliant piece of software.  
I’m interested in working on something similar, but for Rust. My goal was to take as much inspiration from this project as I can, and then adapt whatever is necessary.

While I can go through the codebase, and the talks to understand how Cling works, I wondered whether there is a document describing how Cling works. In particular, something like this [https://www.sqlite.org/arch.html](https://www.sqlite.org/arch.html) would be really nice to have.

Thanks for your time,

Blas

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [January 12, 2021, 9:52am UTC](https://root-forum.cern.ch/t/clings-internals-docs/43039/2 "2021-01-12T09:52:01Z")

</div>

Hi Blas,

We don’t - after all, cling is a tiny extension to clang, so I guess we assumed it to be straightforward 😉 But with cling’s code base growing maybe it’s a good idea to write something like this up! @jalopezg would you be up for such a document or even paper?

Axel.

---

<div class="post-metadata">

**Author:** ![jalopezg](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jalopezg/32/25844_2.png) [@jalopezg](https://root-forum.cern.ch/u/jalopezg)\
**Post date:** [January 12, 2021, 9:57am UTC](https://root-forum.cern.ch/t/clings-internals-docs/43039/3 "2021-01-12T09:57:19Z")

</div>

Hello @blasrodri,

Recently, a blog post has been published by Vassil Vassilev on the LLVM project blog; [see here](https://blog.llvm.org/posts/2020-11-30-interactive-cpp-with-cling/). It gives a nice overview on how Cling works. Additionally, you can read the Cling-related published papers; a list can be found at [https://compiler-research.org/publications/](https://compiler-research.org/publications/).

As @Axel said, if something more detailed is needed, I might contribute it (with the help of Vassil and Axel) in the upcoming months :-).

Cheers,  
J.

---

<div class="post-metadata">

**Author:** ![blasrodri](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/blasrodri/32/24530_2.png) [@blasrodri](https://root-forum.cern.ch/u/blasrodri)\
**Post date:** [January 12, 2021, 10:05am UTC](https://root-forum.cern.ch/t/clings-internals-docs/43039/4 "2021-01-12T10:05:01Z")

</div>

Hey guys,

thanks so much for pointing to these resources. I’ll read them up, and come back if I have any questions.

Again, I really appreciate your help and being so quick to respond.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [January 26, 2021, 10:05am UTC](https://root-forum.cern.ch/t/clings-internals-docs/43039/5 "2021-01-26T10:05:03Z")

</div>

Closed on January 26, 2021, 10:05am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
