# What is the recommended way to use Mooncake.jl?

**URL:** https://discourse.julialang.org/t/what-is-the-recommended-way-to-use-mooncake-jl/125663
**Category:** Specific Domains
**Tags:** question, package, autodiff
**Created:** [February 7, 2025, 5:09pm UTC](https://discourse.julialang.org/t/what-is-the-recommended-way-to-use-mooncake-jl/125663 "2025-02-07T17:09:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![afleming](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/afleming/32/208443_2.png) [@afleming](https://discourse.julialang.org/u/afleming)
#### Post date: [February 7, 2025, 5:09pm UTC](https://discourse.julialang.org/t/what-is-the-recommended-way-to-use-mooncake-jl/125663/1 "2025-02-07T17:09:35Z")

</div>

See title.

Should I use DifferentiationInterface? The existing (very excellent) documentation for Mooncake doesn’t offer much in the way of usage examples…

---

<div class="post-metadata">

### Author: ![willtebbutt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/willtebbutt/32/6790_2.png) [@willtebbutt](https://discourse.julialang.org/u/willtebbutt)
#### Post date: [February 7, 2025, 5:18pm UTC](https://discourse.julialang.org/t/what-is-the-recommended-way-to-use-mooncake-jl/125663/2 "2025-02-07T17:18:54Z")

</div>

Yup, DI.jl is definitely the way to go.

I discuss this in the README, but you make a very good point that this is not discussed anywhere in the docs. I’ll make a PR to sort this out!
