continue-custom/docs/docs/languages/solidity.md
2023-11-06 18:04:57 -08:00

3.8 KiB
Raw Blame History

Solidity

Solidity is the #35 most popular language according to the 2023 Stack Overflow Developer Survey.

Benchmarks

❌ Solidity is not one of the 19 languages in the MultiPL-E benchmark

❌ Solidity is not one of the 16 languages in the BabelCode / TP3 benchmark

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

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

Datasets

❌ Solidity is not included in The Stack dataset

❌ Solidity is not included in the CodeParrot dataset

❌ Solidity is not included in the AlphaCode dataset

❌ Solidity is not included in the CodeGen dataset

❌ Solidity is not included in the PolyCoder dataset

Stack Overflow & GitHub presence

Solidity has 6,669 tagged questions on Stack Overflow

Solidity projects have had 0 PRs on GitHub since 2014

Solidity projects have had 0 issues on GitHub since 2014

Solidity projects have had 0 pushes on GitHub since 2014

Solidity projects have had 350 stars on GitHub since 2014

Anecdotes from developers

u/Adrewmc

ChatGPT is awful at smart contract, the data is years out of date, and it tend to override and make functions that are unnecessary. Even worse it overrides safe good functions for unsafe inefficient functions. Speaking of inefficiency it will seriously de-optimize optimized code, even when asked to gas optimize it.

Lorenzo Sicilia

Despite the mixed results, ChatGPT, aka GPT-3.5, is a step forward in the direction of writing code with an AI assistant. I actually enjoyed doing these little experiments. However, compared to other experiments I did with JavaScript and other languages, a clear takeaway from my efforts is that when it comes to the Web3 space, GPT doesn’t yet have enough accuracy. In fairness, there is far less available Solidity and Web3-related JavaScript code in the wild than there is general-purpose JavaScript code. Plus, the web3 industry is constantly changing, which makes the problems of ChatGPT relying on an old dataset much worse. . On the positive side, generating an ABI from Solidity is something it did well, which shows it can learn from the available snippets the general rules to create something new.

u/thatdudeiknew

Can someone please make an open coder model trained on Solidity