# References about Julia internals when embedding in C/C++

**URL:** <https://discourse.julialang.org/t/references-about-julia-internals-when-embedding-in-c-c/18767>\
**Category:** New to Julia\
**Created:** [December 17, 2018, 8:54pm UTC](https://discourse.julialang.org/t/references-about-julia-internals-when-embedding-in-c-c/18767 "2018-12-17T20:54:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [December 17, 2018, 8:54pm UTC](https://discourse.julialang.org/t/references-about-julia-internals-when-embedding-in-c-c/18767/1 "2018-12-17T20:54:42Z")

</div>

Hi guys!

I opened a PR to improve a little bit the documentation about how we should handle garbage collection when embedding Julia into C/C++ software ([https://github.com/JuliaLang/julia/pull/30399](https://github.com/JuliaLang/julia/pull/30399)).

After a very productive discussion with @yuyichao, in which a learned a lot!, I realize that I am lacking basic concepts about this part. Unfortunately, the documentation, as it is, is not very friendly for beginners. Hence, I would like to know where can I find information about Julia internals so that I can truly understand the process of embedding Julia into C/C++.

My motivation to study is related to a project I want to start soon. I would like to propose a project to build a CubeSat here in Brazil in which all the attitude and control subsystem will be written in Julia. To do so, I have to make a proof-of-concept by embedding Julia inside a C++ software. That’s why I need to fully understand this process.

---

<div class="post-metadata">

**Author:** ![viralbshah](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/viralbshah/32/54_2.png) [@viralbshah](https://discourse.julialang.org/u/viralbshah)\
**Post date:** [December 19, 2018, 3:15pm UTC](https://discourse.julialang.org/t/references-about-julia-internals-when-embedding-in-c-c/18767/2 "2018-12-19T15:15:00Z")

</div>

I am sure you have seen the embedding docs:  
[https://docs.julialang.org/en/v1/manual/embedding/](https://docs.julialang.org/en/v1/manual/embedding/)

It would be great if you can help improve that. You are already half way there extracting information from Yichao’s brain. 🙂

-viral

---

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [December 19, 2018, 3:17pm UTC](https://discourse.julialang.org/t/references-about-julia-internals-when-embedding-in-c-c/18767/3 "2018-12-19T15:17:05Z")

</div>

Thanks @viralbshah ! Yes, indeed I saw those docs and I tried to improve a little bit on that PR by precisely extracting information from Yichao’s brain 😃 Well, I will keep reading the source code and every time I find something that is worth to document, I submit a PR.
