# C++Now Julia talk and tutorial

**URL:** <https://discourse.julialang.org/t/c-now-julia-talk-and-tutorial/11520>\
**Category:** Community\
**Tags:** announcement\
**Created:** [June 7, 2018, 8:01pm UTC](https://discourse.julialang.org/t/c-now-julia-talk-and-tutorial/11520 "2018-06-07T20:01:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![barche](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/barche/32/79_2.png) [@barche](https://discourse.julialang.org/u/barche)\
**Post date:** [June 7, 2018, 8:01pm UTC](https://discourse.julialang.org/t/c-now-julia-talk-and-tutorial/11520/1 "2018-06-07T20:01:51Z")

</div>

Hi all,

@Keno and I gave a talk about using C++ from Julia at C++Now 2018. The video is now online:

[![](https://global.discourse-cdn.com/julialang/original/3X/1/f/1f3be3943ab3f5bd314b41bcf77e8b92af1a26d8.jpeg "C++Now 2018: Keno Fischer & Bart Janssens “The Julia Language and C++: The Perfect Marriage?”") ](https://www.youtube.com/watch?v=hvnxY3NjHQ4)

Some tutorial files are available here:

> **[GitHub - barche/cppnow2018-julia: Companion files for the C++Now 2018 talk on...](https://github.com/barche/cppnow2018-julia)**
>
> Companion files for the C++Now 2018 talk on Julia and C++ - GitHub - barche/cppnow2018-julia: Companion files for the C++Now 2018 talk on Julia and C++

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [June 7, 2018, 9:13pm UTC](https://discourse.julialang.org/t/c-now-julia-talk-and-tutorial/11520/2 "2018-06-07T21:13:53Z")

</div>

@barche you might want to see

[https://github.com/dyu/ffi-overhead#results-500m-calls](https://github.com/dyu/ffi-overhead#results-500m-calls)

and its explanation:

[https://nullprogram.com/blog/2018/05/27/](https://nullprogram.com/blog/2018/05/27/)

to explain why Julia can actually do C-calls to a shared library faster the C itself. I think something like this is what you’re seeing in your benchmarks and it’s not a fluke.

@Keno, can I get that Quaternion code that you showed there? I wanna throw it into DiffEq and see how many steps it takes for a C+±defined quaternion to work inside of the diffeq solvers. That might be a cool blog post.

---

<div class="post-metadata">

**Author:** ![Keno](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/keno/32/285_2.png) [@Keno](https://discourse.julialang.org/u/Keno)\
**Post date:** [June 7, 2018, 9:16pm UTC](https://discourse.julialang.org/t/c-now-julia-talk-and-tutorial/11520/3 "2018-06-07T21:16:47Z")

</div>

> [@ChrisRackauckas](#):
>
> @Keno, can I get that Quaternion code that you showed there? I wanna throw it into DiffEq and see how many steps it takes for a C+±defined quaternion to work inside of the diffeq solvers. That might be a cool blog post.

I’m pretty sure it was this one: [http://www.ncsa.illinois.edu/People/kindr/emtc/quaternions/quaternion.c++](http://www.ncsa.illinois.edu/People/kindr/emtc/quaternions/quaternion.c++). I haven’t done too much work on using Cxx in tight loops though, so you may be disappointed by the performance.
