From 7dc14f8febfd8a9953d8737db069452d62fc6ba6 Mon Sep 17 00:00:00 2001 From: Ty Dunn Date: Wed, 8 Nov 2023 16:59:57 -0800 Subject: [PATCH] add lua and dart --- docs/docs/languages/dart.md | 48 +++++++++++++++++++++++++++++++ docs/docs/languages/languages.csv | 4 ++- docs/docs/languages/lua.md | 48 +++++++++++++++++++++++++++++++ 3 files changed, 99 insertions(+), 1 deletion(-) create mode 100644 docs/docs/languages/dart.md create mode 100644 docs/docs/languages/lua.md diff --git a/docs/docs/languages/dart.md b/docs/docs/languages/dart.md new file mode 100644 index 000000000..58e3542bc --- /dev/null +++ b/docs/docs/languages/dart.md @@ -0,0 +1,48 @@ +# Dart + +Dart is the #19 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 + +❌ Dart 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) + +✅ Dart is 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) + +❌ Dart 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) + +❌ Dart 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 + +✅ Dart is included in [The Stack dataset](https://arxiv.org/abs/2211.15533) + +❌ Dart is not included in the [CodeParrot dataset](https://huggingface.co/datasets/codeparrot/github-code) + +❌ Dart is not included in the [AlphaCode dataset](https://arxiv.org/abs/2203.07814) + +❌ Dart is not included in the [CodeGen dataset](https://arxiv.org/abs/2203.13474) + +❌ Dart is not included in the [PolyCoder dataset](https://arxiv.org/abs/2202.13169) + +## Stack Overflow & GitHub presence + +Dart has 91,732 [tagged questions on Stack Overflow](https://stackoverflow.com/tags) + +Dart projects have had 171,518 [PRs on GitHub since 2014](https://madnight.github.io/githut/#/pull_requests/2023/3) + +Dart projects have had 241,706 [issues on GitHub since 2014](https://madnight.github.io/githut/#/issues/2023/3) + +Dart projects have had 230,340 [pushes on GitHub since 2014](https://madnight.github.io/githut/#/pushes/2023/3) + +Dart projects have had 264,888 [stars on GitHub since 2014](https://madnight.github.io/githut/#/stars/2023/3) + +## Anecdotes from developers + +[u/eibaan](https://www.reddit.com/r/dartlang/comments/142fbkc/comment/jnoc1ph/?utm_source=share&utm_medium=web2x&context=3) +> The amazing thing about LLMs like ChatGPT is that they develop a kind of "language sense" and "know" how to stick together the right tokens to achieve a certain goal. They don't "understand" Dart - or any other programming language. They just emit tokens that I probably want to see :) Also, we cannot fully comprehend the amount of data that has been processed. Billions and billions of lines of code in dozens if not hundreds of languages. + +[u/Rusty-Swashplate](https://www.reddit.com/r/dartlang/comments/10yiu7d/comment/j7yflw0/?utm_source=share&utm_medium=web2x&context=3) +> Please note that ChatGPT is not sure about anything. It communicates that it knows what it says is true, but it's known to make up facts. Luckily the answer to your question is in the Dart docs. Alternatively StackOverflow has a sensible answer: https://stackoverflow.com/questions/57936263/dart-set-from-vs-set-of + +[u/john2046](https://www.reddit.com/r/dartlang/comments/1390c2j/comment/jj0spnc/?utm_source=share&utm_medium=web2x&context=3) +> antastic recommendations. I actually did have ChatGPT help me override toString for a ton of these classes nested within classes in this giant object I'm trying to print so I can mock. Didn't think to tweak the toString method like that. Not sure I understand your quoted getter though with the slashes. I'll play around with it Monday though. \ No newline at end of file diff --git a/docs/docs/languages/languages.csv b/docs/docs/languages/languages.csv index 9db045eac..809736fd2 100644 --- a/docs/docs/languages/languages.csv +++ b/docs/docs/languages/languages.csv @@ -17,4 +17,6 @@ MATLAB,N/A,N/A,N/A,N/A,3.81%,24,"94,777","23,655","266,359","33,289","84,982",Un VB.NET,N/A,N/A,N/A,N/A,4.07%,23,"335,092","15,653","35,848","2,915",0,Unspecified,0,0,0,0,145k,https://www.reddit.com/r/dotnet/,"What I've seen from gpt and copilot is that it's a good junior and sparring partner, but it's no substitute for a senior. It lacks reasoning and analytical capabilities to be a true senior. For example, it can tell you the difference between mediator and nservicebus (dotnet environment), but it cannot explain which one you should use for the project you are working on.",u/KenBonny,https://www.reddit.com/r/dotnet/comments/16j8il5/comment/k0qjb6u/?utm_source=share&utm_medium=web2x&context=3,"I've been using it for a LOT of utility classes, regex expressions, and things like that. It's nowhere near replacing my job yet but it's saved me countless hours on some rather trivial but tedious tasks. Most recent today was a function that converts a string to camel case, worked perfectly right out of the gate. Yea I probably could have found the same function on google in 10 min, but I would have had to comb through ads, and useless posts on stack overflow, before I found one I knew would be performant. It's not laziness, the rest of my job is busy enough, I could have spent an hour or two figuring out the logic from scratch but simply put, this is a far more efficient use of my time.",u/Ch33kyMnk3y,https://www.reddit.com/r/dotnet/comments/10s8eld/comment/j704bu4/?utm_source=share&utm_medium=web2x&context=3,"Yeah, I just use the free version but I'll ask it to do something, it kinda does it, I ask, ""Is this part necessary?"" It then responds with oh you're right and redoes it but in a way that still has questions, like I wanted it to explain why it did something the way it did and it takes that as I'm saying it's not really needed. Then I ask it to explain the new changes and it reverts things to the way it did them before thinking I spotted an error in how it redid the code. 🤦‍♂️ I still think it's a nice option to springboard learning or get quick explanations of things with examples, but the more I've used it the less I'm convinced it'll be stealing my job anytime soon. What I actually fear more are engineers and/or middle managers who don't know any better trusting everything it suggests who then think this makes engineers less needed or useful.",u/ModernTenshi04,https://www.reddit.com/r/dotnet/comments/15od4zx/comment/jvr5vur/?utm_source=share&utm_medium=web2x&context=3 R,✅,✅,N/A,N/A,4.23%,22,"499,872","51,800","506,309","88,649","91,654",Unspecified,0,0,0,0,36.8k,https://www.reddit.com/r/Rlanguage/,It's even helpful for example datasets. If you want to test or play around it will create a dataframe example. Also if you know one programming language it can help translate. It will even rewrite the code to look better. E.g. write this code in python pandas but make it more readable like r dplyr. Anything regex is nice as I don't have to hope a specific example is on stack overflow. Chat cpt from my experience will often favor going things with for loops instead of taking advantage of dplyr or pandas functions. With everything chat gpt tho check the code as it will confidently give you an answer and even print out a fake output. Often pointing out its error gets chatgpt to fix the code.,u/2truthsandalie,https://www.reddit.com/r/Rlanguage/comments/17q56xq/comment/k8b2phr/?utm_source=share&utm_medium=web2x&context=3,"I have found it hit and miss. I was able to knock up simple Shiny apps in a minute (https://youtu.be/8oJ1HtkpDt0) but have had it write non-sense code for some other things I was trying (especially webscraping). GPT Studio is pretty good (demo here https://youtu.be/QQfDTLExoNU) but has someone else mentioned, take a look at Github Copilot",u/DrLyndonWalker,https://www.reddit.com/r/Rlanguage/comments/17q56xq/comment/k8bi6nq/?utm_source=share&utm_medium=web2x&context=3,"I do it constantly, not only for debugging which it is spectacular at, but for especially tedious things like using ggplot. If you can think it, GPT-4 and the other specialized models can code it. The real key is to put thought into the question you want to answer with the code and then to very deliberately tell the GPT what to do. For example, “I have a data frame with x, y, z variables. Please write R code to perform a, b, c statistical analysis. Place the results into a variable called results.” And so on.",u/jrdubbleu,https://www.reddit.com/r/Rlanguage/comments/17q56xq/comment/k89wmhi/?utm_source=share&utm_medium=web2x&context=3 Swift,✅,N/A,✅,N/A,4.65%,21,"331,145","425,921","1,334,455","325,962","2,731,776",Unspecified,0,0,0,0,107k,https://www.reddit.com/r/swift/,"Just a general tip: even though it's a bit out of date, chatgpt will answer these questions much faster and sometimes more accurately than Reddit can. I've pretty much replaced Google with chatgpt and my productivity is up and stress is down. For questions about the newest SwiftUI stuff try Google Bard. The LLMs aren't perfect. There's still a place for Reddit and stack overflow, but I'd check with an LLM first.",u/[deleted],https://www.reddit.com/r/swift/comments/174vuyo/comment/k4eayl9/?utm_source=share&utm_medium=web2x&context=3,"I've tried copilot with SwiftUI and it's good for auto generating some things like specific styles, but not so good for other parts. Sometimes it helps with unit tests,but others it gets stuck in a loop.",u/Zagerer,https://www.reddit.com/r/swift/comments/13929qe/comment/jj0pti9/,"Here is my journey coming from C++: Read through ""A Swift Tour"" and follow along in a Swift Playground. Many times, I feel, ""Huh, this part is so much better than C++."", or ""This is pretty much the same,"" I don't force myself to learn everything though, for example, I skipped protocol entirely. This process took me a few hours. As I dug into SwiftUI, I ran into syntax I didn't understand. Instead of looking up the official document, I just Google or ChatGPT it. When I start doing things in a C++ way that I always hate, I often pause and search if Swift does it better. Oftentimes times, Swift does do it better! Still, I carry some baggage from C++ and later notice if I had done it differently, I would have saved myself a lot of trouble (for example, really thinking about whether things can be null or not). Don't be afraid of re-writing; it is part of the process. Today, I am still learning; however, I started to catch myself speaking in C++ ""accent"" using Swift, and oftentimes, I can Google/ChatGPT my way out of it.",u/AppleHitMyHead,https://www.reddit.com/r/swift/comments/1724gke/comment/k481769/?utm_source=share&utm_medium=web2x&context=3 -Assembly,N/A,N/A,N/A,N/A,5.43%,20,"43,572","14,301","119,341","10,605","50,063",2.36,0.78,0,0,0,16.2k,https://www.reddit.com/r/asm,"Assembly isn't one language, it's a general term for any human-readable representation of a processor's ISA. There are many assembly languages, and there are even different representations of the same ISA. I'm not sure what your book you're using but there are operand order differences between AT&T and Intel x86 (although your example looks like AT&T). You shouldn't be using ChatGPT for any subject you aren't already familiar with though, or you won't be able to recognize when it's hallucinating, or even when it's simply lacking context. Just use a normal, reputable resource like the book you're following. I recommend checking out this wikibook for free online: https://en.wikibooks.org/wiki/X86_Assembly",u/the_Demongod,https://www.reddit.com/r/asm/comments/14q5qi8/comment/jqlmfvn/?utm_source=share&utm_medium=web2x&context=3,"ChatGPT makes a good attempt, but it doesn't actually understand code — ESPECIALLY assembly language, where each instruction exists in a lot of context — and will usually have some kind of bugs in anything it writes.",u/brucehoult,https://www.reddit.com/r/asm/comments/14q5qi8/comment/jqp8rig/,"Idk why all the chatGPT comments are all downvoted, guys it is inevitable that it is going to be a standard part of our lives now. The sooner students start using it the sooner people will realize its limitations. It is a great learning tool and I use it when learning a new subject.",u/dvof,https://www.reddit.com/r/asm/comments/105vl0v/comment/j3hn8xp/?utm_source=share&utm_medium=web2x&context=3 \ No newline at end of file +Assembly,N/A,N/A,N/A,N/A,5.43%,20,"43,572","14,301","119,341","10,605","50,063",2.36,0.78,0,0,0,16.2k,https://www.reddit.com/r/asm,"Assembly isn't one language, it's a general term for any human-readable representation of a processor's ISA. There are many assembly languages, and there are even different representations of the same ISA. I'm not sure what your book you're using but there are operand order differences between AT&T and Intel x86 (although your example looks like AT&T). You shouldn't be using ChatGPT for any subject you aren't already familiar with though, or you won't be able to recognize when it's hallucinating, or even when it's simply lacking context. Just use a normal, reputable resource like the book you're following. I recommend checking out this wikibook for free online: https://en.wikibooks.org/wiki/X86_Assembly",u/the_Demongod,https://www.reddit.com/r/asm/comments/14q5qi8/comment/jqlmfvn/?utm_source=share&utm_medium=web2x&context=3,"ChatGPT makes a good attempt, but it doesn't actually understand code — ESPECIALLY assembly language, where each instruction exists in a lot of context — and will usually have some kind of bugs in anything it writes.",u/brucehoult,https://www.reddit.com/r/asm/comments/14q5qi8/comment/jqp8rig/,"Idk why all the chatGPT comments are all downvoted, guys it is inevitable that it is going to be a standard part of our lives now. The sooner students start using it the sooner people will realize its limitations. It is a great learning tool and I use it when learning a new subject.",u/dvof,https://www.reddit.com/r/asm/comments/105vl0v/comment/j3hn8xp/?utm_source=share&utm_medium=web2x&context=3 +Dart,N/A,✅,N/A,N/A,6.02%,19,"91,732","171,518","230,340","241,706","264,888",Unspecified,0,0,0,0,39.8k,reddit.com/r/dartlang,"The amazing thing about LLMs like ChatGPT is that they develop a kind of ""language sense"" and ""know"" how to stick together the right tokens to achieve a certain goal. They don't ""understand"" Dart - or any other programming language. They just emit tokens that I probably want to see :) Also, we cannot fully comprehend the amount of data that has been processed. Billions and billions of lines of code in dozens if not hundreds of languages.",u/eibaan,https://www.reddit.com/r/dartlang/comments/142fbkc/comment/jnoc1ph/?utm_source=share&utm_medium=web2x&context=3,"Please note that ChatGPT is not sure about anything. It communicates that it knows what it says is true, but it's known to make up facts. Luckily the answer to your question is in the Dart docs. Alternatively StackOverflow has a sensible answer: https://stackoverflow.com/questions/57936263/dart-set-from-vs-set-of",u/Rusty-Swashplate,https://www.reddit.com/r/dartlang/comments/10yiu7d/comment/j7yflw0/?utm_source=share&utm_medium=web2x&context=3,antastic recommendations. I actually did have ChatGPT help me override toString for a ton of these classes nested within classes in this giant object I'm trying to print so I can mock. Didn't think to tweak the toString method like that. Not sure I understand your quoted getter though with the slashes. I'll play around with it Monday though.,u/john2046,https://www.reddit.com/r/dartlang/comments/1390c2j/comment/jj0spnc/?utm_source=share&utm_medium=web2x&context=3 +Lua,✅,✅,N/A,N/A,6.09%,18,"22,413","139,939","717,566","166,471","366,575",6.58,2.81,2.9,0,0,19.0k,https://www.reddit.com/r/lua/,"First of all, don't use ChatGPT if you want to learn Lua. Refer to the well-written resources such as the ""Programming in Lua"" book instead.",u/appgurueu,https://www.reddit.com/r/lua/comments/11dkwdl/comment/jacqn3z/?utm_source=share&utm_medium=web2x&context=3,Ask chatGPT to convert java / concepts into language to Lua... works surprisingly well,u/gluecat,https://www.reddit.com/r/lua/comments/12wj39f/comment/jhhg8qi/?utm_source=share&utm_medium=web2x&context=3,"Do you not find Copilot frustrating? I cannot stand it, it's the worst thing for me. Whenever I've actually needed help with something, it's either: Gave me absolute garbage code. Missed the point entirely. Maybe I'm just bad at giving it instructions, who knows 😅",u/VitexHD,https://www.reddit.com/r/lua/comments/13tfqs2/comment/jlytud8/ \ No newline at end of file diff --git a/docs/docs/languages/lua.md b/docs/docs/languages/lua.md new file mode 100644 index 000000000..d6c42f6ae --- /dev/null +++ b/docs/docs/languages/lua.md @@ -0,0 +1,48 @@ +# Lua + +Lua is the #18 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 + +✅ Lua is 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) + +✅ Lua is 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) + +❌ Lua 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) + +❌ Lua 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 + +✅ Lua makes up 6.58 GB of [The Stack dataset](https://arxiv.org/abs/2211.15533) + +✅ Lua makes up 2.81 GB of the [CodeParrot dataset](https://huggingface.co/datasets/codeparrot/github-code) + +✅ Lua makes up 2.9 GB of the [AlphaCode dataset](https://arxiv.org/abs/2203.07814) + +❌ Lua is not included in the [CodeGen dataset](https://arxiv.org/abs/2203.13474) + +❌ Lua is not included in the [PolyCoder dataset](https://arxiv.org/abs/2202.13169) + +## Stack Overflow & GitHub presence + +Lua has 22,413 [tagged questions on Stack Overflow](https://stackoverflow.com/tags) + +Lua projects have had 139,939 [PRs on GitHub since 2014](https://madnight.github.io/githut/#/pull_requests/2023/3) + +Lua projects have had 166,471 [issues on GitHub since 2014](https://madnight.github.io/githut/#/issues/2023/3) + +Lua projects have had 717,566 [pushes on GitHub since 2014](https://madnight.github.io/githut/#/pushes/2023/3) + +Lua projects have had 366,575 [stars on GitHub since 2014](https://madnight.github.io/githut/#/stars/2023/3) + +## Anecdotes from developers + +[u/appgurueu](https://www.reddit.com/r/lua/comments/11dkwdl/comment/jacqn3z/?utm_source=share&utm_medium=web2x&context=3) +> First of all, don't use ChatGPT if you want to learn Lua. Refer to the well-written resources such as the "Programming in Lua" book instead. + +[u/gluecat](https://www.reddit.com/r/lua/comments/12wj39f/comment/jhhg8qi/?utm_source=share&utm_medium=web2x&context=3) +> Ask chatGPT to convert java / concepts into language to Lua... works surprisingly well + +[u/VitexHD](https://www.reddit.com/r/lua/comments/13tfqs2/comment/jlytud8/) +> Do you not find Copilot frustrating? I cannot stand it, it's the worst thing for me. Whenever I've actually needed help with something, it's either: Gave me absolute garbage code. Missed the point entirely. Maybe I'm just bad at giving it instructions, who knows 😅 \ No newline at end of file