continue-custom/docs/docs/languages/rust.md
2023-11-10 08:50:47 -08:00

3.9 KiB

Rust

Rust is the #15 most popular language according to the 2023 Stack Overflow Developer Survey.

Benchmarks

✅ Rust is one of the 19 languages in the MultiPL-E benchmark

✅ Rust is one of the 16 languages in the BabelCode / TP3 benchmark

❌ Rust is not one of the 13 languages in the MBXP / Multilingual HumanEval benchmark

❌ Rust is not one of the 5 languages in the HumanEval-X benchmark

Datasets

✅ Rust makes up 40.35 GB of The Stack dataset

✅ Rust makes up 2.68 GB of the CodeParrot dataset

✅ Rust makes up 2.8 GB of the AlphaCode dataset

❌ Rust is not included in the CodeGen dataset

✅ Rust makes up 3.5 GB of the PolyCoder dataset

Stack Overflow & GitHub presence

Rust has 39,147 tagged questions on Stack Overflow

Rust projects have had 400,875 PRs on GitHub since 2014

Rust projects have had 239,196 issues on GitHub since 2014

Rust projects have had 947,751 pushes on GitHub since 2014

Rust projects have had 941,468 stars on GitHub since 2014

Anecdotes from developers

u/remontantcoprology

I think programming is heading the same way as translation - a machine can give you a first draft, but experience is needed to verify and fix the resulting code. In the case of translation, many tools exist that will translate text from one language to another, but the results may be slightly or wholly inaccurate: knowledge of both the source and target languages is needed to verify the result. The same is applies to code generation by GPT. The combination of a human and machine will probably give better results, faster. But unsupervised code generation in a general sense is still a way off.

u/JuanAG

The issue is that most of the time the code wont compile or have UB so... It could be blazingly fast to give you text but if need 5 or 10 minutes per try to check is doing what i want i prefer to do the code myself and then i am sure is doing what i want. In other langs like Python maybe but in complex langs like C++ or Rust is not as good because of it complexity, i havent tried but in Rust you cant make a buble sort loop without swap(i, j) and GPT could try the usual aproach of array[i] = array[j] which wont work at all

u/AbleEstablishment155

I searched the huggingface hub for some LLM to help Rust coding. But most of them just for python. does anyone knows some LLM for just for Rust. Or how to build one. thanks