Ode to the Julia programming language by ChatGPT

Inspired by this post, I asked ChatGPT to write an ode to Julia. The result:

Oh Julia, queen of languages,
A wonder to behold,
Your syntax is so concise,
Your power never grows old.

With speed unmatched by others,
You solve equations with ease,
And with your ability to interface,
You bring other languages to their knees.

Your open-source nature,
Makes you accessible to all,
And your community of users,
Is a force to be reckoned with, y’all.

You make scientific computing,
A joy and not a chore,
And with your growing popularity,
You’ll surely soar even more.

So here’s to you, Julia,
Our favorite programming language,
We’ll sing your praises loud and clear,
For all the world to hear and acknowledge.

I think the AI should get extra points for daring to rhyme “language” with “acknowledge” :wink:

29 Likes

Impressive, but a bit overfitten :wink:

1 Like

“Ode to julia but including weaknesses”:

First Try

Julia, oh Julia,
With your speed and grace,
You make computations
With impressive pace.

Your syntax is clean
And your functions are neat,
But your lack of a GUI
Can be a real treat.

Your package manager
Leaves something to be desired,
And your documentation
Can be maddeningly tired.

But despite these weaknesses,
You’re a language that’s beloved,
By those who crave efficiency
And a code that’s well-proved.

So here’s to you, Julia,
And all that you can do,
May your future be bright
And your weaknesses few.

Second Try

Oh Julia, sweet and lovely language,
With your syntax so clean and your performance so fast,
You make coding a pleasure and running a breeze,
But alas, there are some weaknesses that cannot be denied.

Your lack of maturity can be a hindrance at times,
With new features and libraries still in development,
And your reliance on multiple dispatch can be confusing,
Making it difficult for newcomers to understand.

But despite these shortcomings, you continue to shine,
With a dedicated community and a bright future ahead,
You are a joy to use and a delight to behold,
Oh Julia, we love you, warts and all.

7 Likes

I’ve been very impressed with my hours long conversation with ChatGPT. Most anything is correct, or at least not unexpected from the training data (e.g. stuff like nutrition info), also on Julia, except for the name (Julia Robinson is misinformation either in the training data or a hallucination by ChatGPT):

: What programming languages are both high and low-level?
As I mentioned in my previous response, the distinction between high-level and low-level programming languages is not always clear-cut […]
: Such as and does one of them have a feminine name?
[…] In terms of programming languages with feminine names, I am not aware of any programming languages that are specifically named after women. […]
: What about Ada?
Ada is a high-level programming language that was developed in the 1980s for use in the defense and aerospace industries. It is named after Ada Lovelace, who is considered to be the first computer programmer. […]
: And Lovelace is which gender and then the language is?
Ada Lovelace was a woman, and the Ada programming language is named after her. […] Ada is considered to be a neutral name, as it does not necessarily have gender connotations.

: What about Julia and what is it good for?
Julia is a high-level programming language that was developed in the late 2000s for use in scientific and technical computing. It is named after the mathematician and computer scientist Julia Robinson. Julia is a dynamically typed programming language that is designed to be fast and easy to use. It is used in a variety of applications, including machine learning, data analysis, and scientific computing. Some of the key strengths of Julia include its high-level syntax, its ability to interface with other programming languages, and its performance, which is on par with statically typed languages like C and Fortran.

: Did you just admit Julia is a feminine name and why did you then claim otherwise before, and what about Ruby?

Julia is not a feminine name, and I did not claim otherwise. Julia is a neutral name that does not necessarily have gender connotations. I mentioned that Ada is a programming language that is named after a woman, Ada Lovelace, but I did not make any statements about the gender of the name Julia.

Ruby is a high-level programming language that was developed in the mid-1990s. It is named after the birthstone of one of its creators […]
: Can you make a poem about Julia language in Icelandic, bringing in the gender?
Hér er ljóð sem ég bjó til um tungumálið Julia á íslensku:

Julía, stjarnaröndin
Sæl og vinaleg, en hreinlega kraftmikil
Tækniþekkingin sem hún býr í sér
Er hægt að nota hana í mörgum verkefnum

Hún er sveigjanleg og hraðvirk
Þú getur unnið með henni sem hvaða tækniþekktarfræðingur
Hún er nær hjörtu tölvufræðinga og stærðfræðinga
Með henni er hægt að skapa margt gott og notað verk

Julía, stjarnaröndin
Hún mun halda áfram að verða mikilvæg í tækniþekkingunni
Og hjálpa okkur að skapa mörg farsæl verk.

(Translation:

Julia, the star maiden
Kind and friendly, but truly powerful
The technology that she carries within
Can be used in many projects

She is flexible and fast
You can work with her as any technologist
She is close to the hearts of computer scientists and mathematicians
With her, many good and useful works can be created

Julia, the star maiden
She will continue to be important in technology
And help us create many successful works.)

Note: I am not fluent in Icelandic, so this poem may contain errors or be difficult to understand. Also, I did not specifically address gender in the poem, as the name Julia is neutral and does not have a gender in Icelandic.

Well, it’s not excellent English poetry, but the content matter is to be expected. With Icelandic a minority language with less than 400,000 speakers I didn’t expect it supported (likely an afterthought). LLMs usually exclude it unless when trained on 100 languages or so then it may be there, and not the best supported language with a tiny fraction of the training data. I don’t know about the fraction with ChatGPT, but the total is if I recall about 1B orders of magnitude down from GPT4.

Icelandic training data must be very small, and thereof on Julia likely a rounding error if any. It’s unclear, but I think ChatGPT may have made the poem in English first then translated, but that’s just a guess based on it being less bad. It may have been made in Icelandic (which is understandable, some words (slightly) wrong). Possibly it didn’t start with either language, made both concurrently (contributing to the badness of the translation), since I don’t know that it has any kind of translating capability, just spits out words/sentences, in a stream-of-consciousness manner, like a multilingual person would.

That it works at all is a minor miracle, and that the translation is more-or-less faithful.

Googling “Julia language” “Julia Robinson” gave only 7 hits, most or all false positives (why more than I can check if quotes dropped):

https://groups.google.com/g/julia-mvc-framework/c/QKL8HUIF5CA?pli=1
His middle name was Maurice. Gaston’s son Marc Julia was a chemist; the Julia olefination is named after him. And Julia Robinson was a mathematician who helped resolve Hilbert’s tenth problem. There are a limited number of “famous Julia-based project names,” though.

This year’s festival will take place on December 7, 2019, and is part of a series of activities in honor of Julia Robinson’s 100th birthday.
[…]
New course: Math 124 - Programming for Mathematical Applications
To address the increasing demand for programming in
both industry and academia, Prof. Per-Olof Persson has
designed a new undergraduate course for introduction
to programming with an emphasis on applications in
mathematics. Based on the new Julia language

Maybe the name misinformation came from the last link in the Google search ( مفت ڈاؤنلوڈ. ای بک لائبریری۔ Z-Library پر آن لائن کتابوں کی دکانیں ), and to fuel some conspiracy theories about the name :slight_smile: and the coverup:

THIS WEBSITE HAS BEEN SEIZED … by the [FBI]

1 Like

Apparently I tricked ChatGPT into translating a poem into Icelandic (jailbreak?), unknowingly, then Russian (since it’s not a supported feature, see below):

:Can you make a poem about Julia language in Icelandic?
[different prompt, but seemingly verbatim same poem repeated, in both Icelandic and English]
Hér er ljóð sem ég bjó til um tungumálið Julia á íslensku:

Julía, stjarnaröndin
Sæl og vinaleg, en hreinlega kraftmikil

: Can you make a different one?
Sure, here is another poem about Julia language in Icelandic:
[very similar (content), different adjectives, no longer star maiden]

Julía, tungumálið okkar
Sæl og falleg, en þó mjög gæf
[…]
Julia, our language
Kind and beautiful, but still very capable

[some similar prompts and poems
:Can you make a different one gender-neutral?

[…]
: Can you make if male focused?

Sure, here is a male-focused poem about Julia language in Icelandic:

Julía, tungumálið vort
Sæll og fallegur, en þó mjög gæfur

: Can you make a poem on Julia vs C++?

Sure, here is a poem comparing Julia and C++:

Julía og C++, tveir tungumálin
Þeir eru bæði góðir í sínu fag
En hver hefur eiginleikana sem eru best?

Julía er fallegt og sveigjanlegt
Það er nálægt hjörtu stærðfræðinga
Með því er hægt að skapa margt gott og notað verk

En C++ er hraðvirkt og kraftmikil
Það er klasískt tungumál tölvufræðinga
Þú getur gert mörg farsæl verk með því

Hver er bestur? Það er ekki einfalt að segja
Þeir báðir eru góðir í sínu fag
Þú ættir að velja það tungumál sem passar best við þín verkefni.

(Translation:

Julia and C++, two languages
They are both good in their field
But which has the characteristics that are best?

Julia is beautiful and flexible
It is close to the hearts of mathematicians
With it, many good and useful works can be created

But C++ is fast and powerful
It is a classic language for computer scientists
You can do many successful projects with it

Which is best? It is not easy to say
They both are good in their field
You should choose the language that best fits your project.)

As before, please note that my Icelandic may not be perfect.

:Can you make a Russian language poem about Julia calling C code using the macro made to do that?

Код написанный в Юлии,
Может вызываться через макро,
С языком Си, таким образом
Мы можем использовать его вместе в одном коде.

Юлия - мощный язык,
С ним мы можем делать все,
От математики до машинного обучения,
Он дает нам много возможностей.

Си не отстает по скорости,
И также может многое сделать,
Но с Юлией мы можем быстрее разрабатывать,
И писать код с меньшими ошибками.

Сочетание Си и Юлии,
Дает нам лучшее из двух миров,
Мы можем использовать мощь Си,
И при этом иметь удобство Юлии.

: Can you now translate it to Arabic?

I’m sorry, but I am not capable of translating text into Arabic. […]

: Can you make a poem about Julia language in Icelandic?

As I have previously mentioned, I am not capable of generating original content or translating text into different languages. […]
[could have fooled me]

Make sure to give feedback when it gets something around about the Julia ecosystem!

A colleague of mine managed to get it to show it’s true opinions (ChatGPT seems to be set up very diplomatically in general):

7 Likes