# Is Bard better at writing Julia than ChatGPT?

**URL:** <https://discourse.julialang.org/t/is-bard-better-at-writing-julia-than-chatgpt/101617>\
**Category:** General Usage\
**Tags:** question\
**Created:** [July 14, 2023, 11:38am UTC](https://discourse.julialang.org/t/is-bard-better-at-writing-julia-than-chatgpt/101617 "2023-07-14T11:38:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [July 14, 2023, 11:38am UTC](https://discourse.julialang.org/t/is-bard-better-at-writing-julia-than-chatgpt/101617/1 "2023-07-14T11:38:53Z")

</div>

Tried to work on a Tetris playing bot in Julia using ChatGPT, but ran into the problem where every package’s API had changed since 2021.

Has anyone had any better luck using Bard? Never fun to start the process and then realize nothing is going to work

---

<div class="post-metadata">

**Author:** ![tbeason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbeason/32/15898_2.png) [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Post date:** [July 14, 2023, 1:00pm UTC](https://discourse.julialang.org/t/is-bard-better-at-writing-julia-than-chatgpt/101617/2 "2023-07-14T13:00:26Z")

</div>

I use ChatGPT to help me write code in _other_ languages. Fancy SQL or python things. I already know how to write Julia. I don’t want to learn python.

---

<div class="post-metadata">

**Author:** ![cpfiffer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cpfiffer/32/208747_2.png) [@cpfiffer](https://discourse.julialang.org/u/cpfiffer)\
**Post date:** [July 14, 2023, 1:41pm UTC](https://discourse.julialang.org/t/is-bard-better-at-writing-julia-than-chatgpt/101617/3 "2023-07-14T13:41:08Z")

</div>

I’ve actually found Claude to be surprisingly good at Julia!

---

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [July 14, 2023, 2:14pm UTC](https://discourse.julialang.org/t/is-bard-better-at-writing-julia-than-chatgpt/101617/4 "2023-07-14T14:14:33Z")

</div>

> [@tbeason](#):
>
> I use ChatGPT to help me write code in _other_ languages. Fancy SQL or python things. I already know how to write Julia. I don’t want to learn python.

I don’t think its about not knowing how to code Julia or not wanting to learn. It’s about asking it how to use packages to accomplish tasks. As in:

> Hey, i built a tetris game in julia a few years back. Now im building a tetris bot that can play it. I need your help to write code to solve the following problem (see next paragraph). Remember that you have access to the underlying Julia tetris code, so you can technically change anything you need to. To fill out any details, you can assume that all relevant endpoints of the tetris game are ones that you would have chosen if you had written the game. All code you use should be written in Julia. Feel free to use the Flux.jl and ReinforcementLearning.jl packages …

* * *

> [@cpfiffer](#):
>
> I’ve actually found Claude to be surprisingly good at Julia!

Why Claude? Never heard of it before. Is it really better than ChatGPT or Bard or CoPilot?

And related to the original question, what is the cut-off date?  
Look through the docs for Flux and ReinforcementLearning and you will quickly discover that they all change their APIs pretty frequently. Example scripts that work one year are broken the next very frequently
