add elixir

This commit is contained in:
Ty Dunn 2023-11-06 19:47:02 -08:00
parent 9e782999b1
commit d53ce3180f
2 changed files with 50 additions and 1 deletions

View file

@ -0,0 +1,48 @@
# Elixir
Elixir is the #30 most popular language according to the [2023 Stack Overflow Developer Survey](https://survey.stackoverflow.co/2023/#section-most-popular-technologies-programming-scripting-and-markup-languages).
## Benchmarks
❌ Elixir is not one of the 19 languages in the [MultiPL-E benchmark](https://blog.continue.dev/an-introduction-to-code-llm-benchmarks-for-software-engineers/#:~:text=couple%20notable%20mentions-,4.%20MultiPL%2DE,-Creator%3A%20Northeastern)
❌ Elixir is not one of the 16 languages in the [BabelCode / TP3 benchmark](https://blog.continue.dev/an-introduction-to-code-llm-benchmarks-for-software-engineers/#:~:text=amazon%2Dscience/mxeval-,12.%20BabelCode%20/%20TP3,-Creator%3A%20Google)
❌ Elixir is not one of the 13 languages in the [MBXP / Multilingual HumanEval benchmark](https://blog.continue.dev/an-introduction-to-code-llm-benchmarks-for-software-engineers/#:~:text=11.%20MBXP%20/%20Multilingual%20HumanEval)
❌ Elixir is not one of the 5 languages in the [HumanEval-X benchmark](https://blog.continue.dev/an-introduction-to-code-llm-benchmarks-for-software-engineers/#:~:text=Some%20multilingual%C2%A0benchmarks-,10.%20HumanEval%2DX,-Creator%3A%20Tsinghua)
## Datasets
✅ Elixir is included in [The Stack dataset](https://arxiv.org/abs/2211.15533)
❌ Elixir is not included in the [CodeParrot dataset](https://huggingface.co/datasets/codeparrot/github-code)
❌ Elixir is not included in the [AlphaCode dataset](https://arxiv.org/abs/2203.07814)
❌ Elixir is not included in the [CodeGen dataset](https://arxiv.org/abs/2203.13474)
❌ Elixir is not included in the [PolyCoder dataset](https://arxiv.org/abs/2202.13169)
## Stack Overflow & GitHub presence
Elixir has 9,510 [tagged questions on Stack Overflow](https://stackoverflow.com/tags)
Elixir projects have had 113,018 [PRs on GitHub since 2014](https://madnight.github.io/githut/#/pull_requests/2023/3)
Elixir projects have had 65,166 [issues on GitHub since 2014](https://madnight.github.io/githut/#/issues/2023/3)
Elixir projects have had 255,430 [pushes on GitHub since 2014](https://madnight.github.io/githut/#/pushes/2023/3)
Elixir projects have had 210,145 [stars on GitHub since 2014](https://madnight.github.io/githut/#/stars/2023/3)
## Anecdotes from developers
[u/a3th3rus](https://www.reddit.com/r/elixir/comments/16vrhr6/comment/k2xel5z/?utm_source=share&utm_medium=web2x&context=3)
> One day, I needed to implement a priority queue with amortized O(log n) decrease-key operation in Elixir, but I didn't know how, so I consulted Monica (which interfaces GPT-3, I think), and it gave me the code of a whole Elixir module that is absolutely wrong. It was a binary heap implemented using a single list as if it's a mutable array. Furthermore, it won't even compile! I tried to correct the "mistake" GPT made, so I told it more about Elixir, about immutability, about lists in Elixir. I even tried to "inspire" GPT to write other kinds of heaps, like binomial heap and pairing heap, but GPT is so stubborn (though very polite) that it keeps giving me almost the same code over and over again. At last I gave up on GPT and turned to StackOverflow, and just a few words enlightened me (FYI, it's two heaps, one for insertion, one for deletion, and when the top nodes in both heaps have the same key, cancel them out). My conclusion is: AI is useless in some domains when it doesn't have enough learning material in those domains.
[u/erlangsolutions](https://www.reddit.com/r/elixir/comments/13xeh8w/how_chatgpt_improved_my_elixir_code_some_hacks/)
> Using ChatGPT when programming with Elixir can bring several advantages. One of the most significant advantages is that it can provide quick and accurate responses to various programming queries, including syntax and documentation. This can help programmers save time and improve their productivity. Additionally, ChatGPT can offer personalised and adaptive learning experiences based on individual programmers’ skill levels and preferences. This can help programmers learn Elixir more efficiently and effectively.
[D4no0](https://elixirforum.com/t/get-ai-code-generation-tools-to-create-correct-elixir-code-or-else/53931/2)
> The question is: how much boilerplate code do you really write? Elixir compared to other languages has little to none boilerplate, and for moments such as phoenix things, there are configurable generators. I wouldn’t want an AI incapable of problem solving to generate complex code for me, because as tempting as it seems, the productivity decreases a lot if we talk about refactoring generated code compared to creating your own new code.

View file

@ -6,4 +6,5 @@ Solidity,N/A,N/A,N/A,N/A,1.33%,35,"6,669",0,0,0,350,0,0,0,0,0,17.0k,https://redd
Lisp,N/A,N/A,N/A,N/A,1.53%,34,"6,945","8,431","73,903","12,870","47,157",Unspecified,0,0,0,0,37.7k,https://www.reddit.com/r/lisp,"Chat gpt is known to lie and be confident in its incorrectness. Also, try telling it to convert a program from lisp to python that uses advanced features like the condition system.",u/KaranasToll,https://www.reddit.com/r/lisp/comments/138aovs/comment/jixfrkr/,"How do you think the advent of ChatGPT and Copilot would affect the adoption and popularity of Common Lisp, Clojure and Schemes? On one hand, Large Language Models did not have access to these ""niche"" languages for training as much as the more popular alternatives like Python and Typescript so the quality of their output would be worse in comparison. On the other hand, the ""interactive"" aspect of LISP in that you code stuff, test in REPL and code again would not be so unique since the developer can just use the chat system to refine his solution. The other upside that LISPs had over the likes of Rust and C++ is the lack of syntax clutter and cleanness of s-expressions. In this front too, they would hurt from the likes of ChatGPT since the syntactic complexity is handled by the LLM not the developer.",u/friedrichRiemann,https://www.reddit.com/r/lisp/comments/11lwwv1/possible_effects_of_aiassisted_tools_on_lisps/?utm_source=share&utm_medium=web2x&context=3,"I'm an engineer working in the construction field, and I'm currently trying to create a Lisp routine for a project I'm working on. I've been trying to use GPT to generate the code, but I'm having some trouble getting it to work properly. I was wondering if anyone knows of a pre-trained GPT that has been specifically trained on Lisp code. I've been searching online, but I haven't had any luck so far. If anyone knows of a pre-trained GPT with Lisp, or has any tips for training my own GPT on Lisp code, I would really appreciate the help.",/u/Fine_Impression_3171,https://www.reddit.com/r/ChatGPT/comments/12o4k1n/looking_for_pretrained_gpt_with_lisp_autocad/
GDScript,N/A,N/A,N/A,N/A,1.71%,33,906,561,"3,692","1,615","9,953",Unspecified,0,0,0,0,147k,https://www.reddit.com/r/godot/,"Irrational AI hatred aside, none afaik, godot 4 is too new. When trying to figure out some kinks in my code it kept giving me garbage mixed with outdated godot 3 code. Don't bother, it's faster to just do it yourself for now. It's kind of annoying because in my experience for beginner devs, AI can be a huge help in explaining why your code no worky and how to improve it. It allowed me to go much further in my C++ projects that I thought and saved a ton of time spent on research or debugging.",u/Merosian,https://www.reddit.com/r/godot/comments/17nv29g/comment/k7w2nrx/?utm_source=share&utm_medium=web2x&context=3,"I was playing with this yesterday and had some difficulty getting it to produce GDScript instead of Python. It insisted the Python code it generated was GDScript haha. Otherwise it made exactly what I wanted, just in the wrong language.",u/[deleted],https://www.reddit.com/r/godot/comments/zf6tve/comment/izaiw13/?utm_source=share&utm_medium=web2x&context=3,"You can: Fine-tune ChatGPT. If you're willing to pay, I might help setting it up at some point in the near future. Use a different model like Llama-2 (open-source) which has more recent data (which you can also fine-tune), or from companies like Anthropic/Claude etc. Look (and contribute?) to godot-dodo and Godot Copilot. Export the Godot docs to a PDF and use some plugin, I guess? Never tried it. Copy-paste the GDScript reference page, which will likely improve it's zero-shot predictions.",u/kmouratidis,https://www.reddit.com/r/godot/comments/16j7u9k/comment/k0odex1/?utm_source=share&utm_medium=web2x&context=3
Haskell,N/A,14,N/A,N/A,2.09%,32,"50,979","106,539","646,012","146,857","306,235",6.95,1.85,0,0,0,76.1k,https://www.reddit.com/r/haskell/,"I've been generating a ton of Haskell code with it and it's been fantastic. I have a driver for content addressable storage in my side project, it's pretty simple, but it still took me a few hours each to implement local filesystem and MinIO drivers with tests and ChatGPT did the bulk of the work for Redis and LevelDB implementations in minutes. I've also found it much easier to work with on Haskell code than on python or JS. Obviously some of this is the usual reasons why I would find Haskell code easier to deal with than dynamic languages but I think that the effect is amplified with ChatGPT because the ""if it compiles it works"" affect gives me much more confidence that what it generated isn't missing anything important than with the other languages, so I can move much faster.",u/lgastako,https://www.reddit.com/r/haskell/comments/zede58/comment/iz68s9c/?utm_source=share&utm_medium=web2x&context=3,"Personally, I've been using Copilot mostly in Ruby (work...) and Haskell, and it is much better at predicting Haskell code. I think it's because Haskell has so much context (type signatures, purity, only imported modules are in scope) which greatly restrict what you can do in a particular function and thus Copilot's suggestions seem to be much more often in line with what I wanted to write.",u/qqwy,https://www.reddit.com/r/haskell/comments/16o5u8e/comment/k1jc68v/?utm_source=share&utm_medium=web2x&context=3,"Here, I present the (lightly edited) story of using ChatGPT conversationally to solve a non-trivial problem in Haskell. It definitely gets some things wrong, and it’s still unclear whether co-developing this with ChatGPT made anything easier than it would have been otherwise. But in any case, it was definitely a different and less lonely experience than just programming on my own.",Chris Smith,https://cdsmithus.medium.com/pair-programming-with-chatgpt-haskell-1c4490b71da6
Objective-C,N/A,N/A,N/A,N/A,2.31%,31,"292,409","263,146","1,172,307","397,275","3,003,177",Unspecified,0,0,0,0,7.0k,https://www.reddit.com/r/ObjectiveC/,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
Objective-C,N/A,N/A,N/A,N/A,2.31%,31,"292,409","263,146","1,172,307","397,275","3,003,177",Unspecified,0,0,0,0,7.0k,https://www.reddit.com/r/ObjectiveC/,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
Elixir,N/A,N/A,N/A,N/A,2.32%,30,"9,510","113,018","255,430","65,166","210,145",Unspecified,0,0,0,0,27.1k,https://www.reddit.com/r/elixir/,"One day, I needed to implement a priority queue with amortized O(log n) decrease-key operation in Elixir, but I didn't know how, so I consulted Monica (which interfaces GPT-3, I think), and it gave me the code of a whole Elixir module that is absolutely wrong. It was a binary heap implemented using a single list as if it's a mutable array. Furthermore, it won't even compile! I tried to correct the ""mistake"" GPT made, so I told it more about Elixir, about immutability, about lists in Elixir. I even tried to ""inspire"" GPT to write other kinds of heaps, like binomial heap and pairing heap, but GPT is so stubborn (though very polite) that it keeps giving me almost the same code over and over again. At last I gave up on GPT and turned to StackOverflow, and just a few words enlightened me (FYI, it's two heaps, one for insertion, one for deletion, and when the top nodes in both heaps have the same key, cancel them out). My conclusion is: AI is useless in some domains when it doesn't have enough learning material in those domains.",u/a3th3rus,https://www.reddit.com/r/elixir/comments/16vrhr6/comment/k2xel5z/?utm_source=share&utm_medium=web2x&context=3,"Using ChatGPT when programming with Elixir can bring several advantages. One of the most significant advantages is that it can provide quick and accurate responses to various programming queries, including syntax and documentation. This can help programmers save time and improve their productivity. Additionally, ChatGPT can offer personalised and adaptive learning experiences based on individual programmers’ skill levels and preferences. This can help programmers learn Elixir more efficiently and effectively.",u/erlangsolutions,https://www.reddit.com/r/elixir/comments/13xeh8w/how_chatgpt_improved_my_elixir_code_some_hacks/,"The question is: how much boilerplate code do you really write? Elixir compared to other languages has little to none boilerplate, and for moments such as phoenix things, there are configurable generators. I wouldn’t want an AI incapable of problem solving to generate complex code for me, because as tempting as it seems, the productivity decreases a lot if we talk about refactoring generated code compared to creating your own new code.",D4no0,https://elixirforum.com/t/get-ai-code-generation-tools-to-create-correct-elixir-code-or-else/53931/2
1 language multiple babel mbxp humaneval_x so_2023_language_percent so_2023_language_rank so_tags github_prs github_pushes github_issues github_stars stack_gb codeparrot_gb alphacode_gb codegen_gb polycoder_gb subreddit_members subreddit_url anecdote_1_content anecdote_1_author anecdote_1_url anecdote_2_content anecdote_2_author anecdote_2_url anecdote_3_content anecdote_3_author anecdote_3_url
6 Lisp N/A N/A N/A N/A 1.53% 34 6,945 8,431 73,903 12,870 47,157 Unspecified 0 0 0 0 37.7k https://www.reddit.com/r/lisp Chat gpt is known to lie and be confident in its incorrectness. Also, try telling it to convert a program from lisp to python that uses advanced features like the condition system. u/KaranasToll https://www.reddit.com/r/lisp/comments/138aovs/comment/jixfrkr/ How do you think the advent of ChatGPT and Copilot would affect the adoption and popularity of Common Lisp, Clojure and Schemes? On one hand, Large Language Models did not have access to these "niche" languages for training as much as the more popular alternatives like Python and Typescript so the quality of their output would be worse in comparison. On the other hand, the "interactive" aspect of LISP in that you code stuff, test in REPL and code again would not be so unique since the developer can just use the chat system to refine his solution. The other upside that LISPs had over the likes of Rust and C++ is the lack of syntax clutter and cleanness of s-expressions. In this front too, they would hurt from the likes of ChatGPT since the syntactic complexity is handled by the LLM not the developer. u/friedrichRiemann https://www.reddit.com/r/lisp/comments/11lwwv1/possible_effects_of_aiassisted_tools_on_lisps/?utm_source=share&utm_medium=web2x&context=3 I'm an engineer working in the construction field, and I'm currently trying to create a Lisp routine for a project I'm working on. I've been trying to use GPT to generate the code, but I'm having some trouble getting it to work properly. I was wondering if anyone knows of a pre-trained GPT that has been specifically trained on Lisp code. I've been searching online, but I haven't had any luck so far. If anyone knows of a pre-trained GPT with Lisp, or has any tips for training my own GPT on Lisp code, I would really appreciate the help. /u/Fine_Impression_3171 https://www.reddit.com/r/ChatGPT/comments/12o4k1n/looking_for_pretrained_gpt_with_lisp_autocad/
7 GDScript N/A N/A N/A N/A 1.71% 33 906 561 3,692 1,615 9,953 Unspecified 0 0 0 0 147k https://www.reddit.com/r/godot/ Irrational AI hatred aside, none afaik, godot 4 is too new. When trying to figure out some kinks in my code it kept giving me garbage mixed with outdated godot 3 code. Don't bother, it's faster to just do it yourself for now. It's kind of annoying because in my experience for beginner devs, AI can be a huge help in explaining why your code no worky and how to improve it. It allowed me to go much further in my C++ projects that I thought and saved a ton of time spent on research or debugging. u/Merosian https://www.reddit.com/r/godot/comments/17nv29g/comment/k7w2nrx/?utm_source=share&utm_medium=web2x&context=3 I was playing with this yesterday and had some difficulty getting it to produce GDScript instead of Python. It insisted the Python code it generated was GDScript haha. Otherwise it made exactly what I wanted, just in the wrong language. u/[deleted] https://www.reddit.com/r/godot/comments/zf6tve/comment/izaiw13/?utm_source=share&utm_medium=web2x&context=3 You can: Fine-tune ChatGPT. If you're willing to pay, I might help setting it up at some point in the near future. Use a different model like Llama-2 (open-source) which has more recent data (which you can also fine-tune), or from companies like Anthropic/Claude etc. Look (and contribute?) to godot-dodo and Godot Copilot. Export the Godot docs to a PDF and use some plugin, I guess? Never tried it. Copy-paste the GDScript reference page, which will likely improve it's zero-shot predictions. u/kmouratidis https://www.reddit.com/r/godot/comments/16j7u9k/comment/k0odex1/?utm_source=share&utm_medium=web2x&context=3
8 Haskell N/A 14 N/A N/A 2.09% 32 50,979 106,539 646,012 146,857 306,235 6.95 1.85 0 0 0 76.1k https://www.reddit.com/r/haskell/ I've been generating a ton of Haskell code with it and it's been fantastic. I have a driver for content addressable storage in my side project, it's pretty simple, but it still took me a few hours each to implement local filesystem and MinIO drivers with tests and ChatGPT did the bulk of the work for Redis and LevelDB implementations in minutes. I've also found it much easier to work with on Haskell code than on python or JS. Obviously some of this is the usual reasons why I would find Haskell code easier to deal with than dynamic languages but I think that the effect is amplified with ChatGPT because the "if it compiles it works" affect gives me much more confidence that what it generated isn't missing anything important than with the other languages, so I can move much faster. u/lgastako https://www.reddit.com/r/haskell/comments/zede58/comment/iz68s9c/?utm_source=share&utm_medium=web2x&context=3 Personally, I've been using Copilot mostly in Ruby (work...) and Haskell, and it is much better at predicting Haskell code. I think it's because Haskell has so much context (type signatures, purity, only imported modules are in scope) which greatly restrict what you can do in a particular function and thus Copilot's suggestions seem to be much more often in line with what I wanted to write. u/qqwy https://www.reddit.com/r/haskell/comments/16o5u8e/comment/k1jc68v/?utm_source=share&utm_medium=web2x&context=3 Here, I present the (lightly edited) story of using ChatGPT conversationally to solve a non-trivial problem in Haskell. It definitely gets some things wrong, and it’s still unclear whether co-developing this with ChatGPT made anything easier than it would have been otherwise. But in any case, it was definitely a different and less lonely experience than just programming on my own. Chris Smith https://cdsmithus.medium.com/pair-programming-with-chatgpt-haskell-1c4490b71da6
9 Objective-C N/A N/A N/A N/A 2.31% 31 292,409 263,146 1,172,307 397,275 3,003,177 Unspecified 0 0 0 0 7.0k https://www.reddit.com/r/ObjectiveC/ N/A N/A N/A N/A N/A N/A N/A N/A N/A
10 Elixir N/A N/A N/A N/A 2.32% 30 9,510 113,018 255,430 65,166 210,145 Unspecified 0 0 0 0 27.1k https://www.reddit.com/r/elixir/ One day, I needed to implement a priority queue with amortized O(log n) decrease-key operation in Elixir, but I didn't know how, so I consulted Monica (which interfaces GPT-3, I think), and it gave me the code of a whole Elixir module that is absolutely wrong. It was a binary heap implemented using a single list as if it's a mutable array. Furthermore, it won't even compile! I tried to correct the "mistake" GPT made, so I told it more about Elixir, about immutability, about lists in Elixir. I even tried to "inspire" GPT to write other kinds of heaps, like binomial heap and pairing heap, but GPT is so stubborn (though very polite) that it keeps giving me almost the same code over and over again. At last I gave up on GPT and turned to StackOverflow, and just a few words enlightened me (FYI, it's two heaps, one for insertion, one for deletion, and when the top nodes in both heaps have the same key, cancel them out). My conclusion is: AI is useless in some domains when it doesn't have enough learning material in those domains. u/a3th3rus https://www.reddit.com/r/elixir/comments/16vrhr6/comment/k2xel5z/?utm_source=share&utm_medium=web2x&context=3 Using ChatGPT when programming with Elixir can bring several advantages. One of the most significant advantages is that it can provide quick and accurate responses to various programming queries, including syntax and documentation. This can help programmers save time and improve their productivity. Additionally, ChatGPT can offer personalised and adaptive learning experiences based on individual programmers’ skill levels and preferences. This can help programmers learn Elixir more efficiently and effectively. u/erlangsolutions https://www.reddit.com/r/elixir/comments/13xeh8w/how_chatgpt_improved_my_elixir_code_some_hacks/ The question is: how much boilerplate code do you really write? Elixir compared to other languages has little to none boilerplate, and for moments such as phoenix things, there are configurable generators. I wouldn’t want an AI incapable of problem solving to generate complex code for me, because as tempting as it seems, the productivity decreases a lot if we talk about refactoring generated code compared to creating your own new code. D4no0 https://elixirforum.com/t/get-ai-code-generation-tools-to-create-correct-elixir-code-or-else/53931/2