From 2b1f9245bd4e7ecf09150389c4c4186143e127d6 Mon Sep 17 00:00:00 2001 From: Ty Dunn Date: Tue, 7 Nov 2023 16:44:57 -0800 Subject: [PATCH] add matlab --- docs/docs/languages/languages.csv | 3 +- docs/docs/languages/matlab.md | 48 +++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 docs/docs/languages/matlab.md diff --git a/docs/docs/languages/languages.csv b/docs/docs/languages/languages.csv index a84022902..a163152a0 100644 --- a/docs/docs/languages/languages.csv +++ b/docs/docs/languages/languages.csv @@ -12,4 +12,5 @@ Perl,✅,N/A,✅,N/A,2.46%,29,"67,938","125,129","634,214","117,426","188,697",5 Scala,✅,N/A,✅,N/A,2.77%,28,"111,969","605,988","1,508,526","271,184","540,327",14.87,3.87,4.1,0,1.8,51.3k,https://www.reddit.com/r/scala/,"Today I decided to test it by asking how one would use Scala 3 macros to get the types of the inputs and outputs of a method. It had some decent suggestions to do that for someone that is new to macros, but a lot of its answer was false, suggesting people use something called QuotesContext, not recognizing properly what extension methods are available for the Symbol type, and worst of all, trying to splice Type values into an Expr. If they can manage to get chatgpt to actually tell the truth consistently (like saying ""I don't know how to do that"" rather than just lying) I think it will be a nice resource for discovering how to do stuff you don't currently know how to do. Sadly, it's still got a nasty habit of making stuff up.",u/markehammons,https://www.reddit.com/r/scala/comments/124ocqh/scala_and_chatgpt/,"Well...this is a very hold thread but I'm using the latest copilot for scala available today of this post. I mostly use the ZIO framework. I was skeptical at first but I'm finding the suggestions get smart quickly and it is generating a lot of code fragments pretty well. I'm not claiming I can live without it, but as of today, I'm thinking it works pretty well for my scenarios. I could easily see not wanting to code without in the near future. I think using a framework like ZIO makes it easier to generate code fragments because the ZIO framework has a fairly predictable surface area, but that's just a guess.",u/agilesteel,https://www.reddit.com/r/scala/comments/ovoc8n/github_copilot_for_scala_does_it_work/,I wanted to start a new Scala project based on Clean Architecture aka dependency inversion. So I asked for a basic example to demo the principles. There was a lot of pretty code but ultimately it had no idea what this was about. The code was bs.,u/k1v1uq,https://www.reddit.com/r/ChatGPTCoding/comments/zpunkt/comment/j25ftsr/?utm_source=share&utm_medium=web2x&context=3 Delphi,N/A,N/A,N/A,N/A,3.23%,27,"51,475",310,552,0,0,0,0,0,0,0,3.8k,reddit.com/r/delphi,PSA: GitHub Copilot works with Delphi,u/EasywayScissors,https://www.reddit.com/r/delphi/comments/wnhk9x/psa_github_copilot_works_with_delphi/?utm_source=share&utm_medium=web2x&context=3,"As you can see, it is possible to use an AI for simple pieces of code to create basic Delphi code quickly. We can now go one step further and implement this in Delphi itself.",Marco Geuze,https://gdksoftware.com/knowledgebase/delphi-and-chatgpt,"I asked a series of Pascal programming questions to an AI chatbot system while testing its abilities, and the following page is a record of its responses.",u/sysrpl,https://www.reddit.com/r/delphi/comments/1006ybh/programming_pascal_using_an_ai_chatbot/?utm_source=share&utm_medium=web2x&context=3 Groovy,N/A,N/A,N/A,N/A,3.40%,26,"30,014","132,381","431,291","108,265","140,122",Unspecified,0,0,0,0,3.0k,https://www.reddit.com/r/groovy/,"And that it was possible to use the code created by the tool to generate some code that could be used to start your programming. This could save quite a bit of time for developers to use this as a starting point, and you don’t need to have a large experience to start coding in UDFs in Groovy. It is also interesting that it has much knowledge about what is going on in an SAP universe, I would have thought it was more difficult to get data about it.",Figaf,https://figaf.com/chatgpt-groovy-code-help-for-sap-cloud-integration/,"Groovy is a great language with a ton of utility, and can scale like crazy! Write code as dynamic as you want, and choose to refactor into a more type-safe manner later. It's totally worth learning and having it in your toolkit. I program in it every day for many projects. All Java (99.9%) is also valid Groovy, so it's almost impossible not to understand and work with any Java code base you may come across once you get familiar with Groovy. ChatGPT and Github Co-pilot also write excellent Groovy code, which can aid you in learning, and just programming with it in general. It's still actively maintained, too! It's not going away an time soon.",u/West_Performance_129,https://www.reddit.com/r/groovy/comments/16kuh6s/comment/k1i0lqn/,"When I was building react-native-colo-loco, I had to write a Gradle script, which is written in Groovy. I know a little Groovy, but not much. So I focused on writing precise, accurate comments, and let Copilot suggest lines of code. I could then lean on my development experience to pick up on patterns and syntax, and go from there.",Jamon Holmgren,https://shift.infinite.red/getting-the-most-from-github-copilot-8f7b32014748 -VBA,N/A,N/A,N/A,N/A,3.55%,25,"212,313","22,482","77,915","17,439","19,273",2.73,1.91,0,0,0,52.3k,https://www.reddit.com/r/vba/,"It depends on how you use ChatGPT though. I started a VBA project using methods I had used in the past. When that didn’t work, I tried the Google approach, and still couldn’t do what I wanted. Then, I remembered that ChatGPT does code, and decided to give it a shot. Honestly, what it gave me was riddled with errors, but I went through error by error and forced the AI to come up with corrections. I would copy-past the code into the prompt and ask it to identify potential errors and explain how they could be fixed. I got a really intimate understanding of the code, the reasons for the errors, and the strategies for correcting them. Even then, the code was flawed and ultimately failed. But I was able to use some of what I picked up throughout the process to build my own foundation for the code that would eventually work and used the AI to help fill in the blanks. I got a lot out of the experience. It’s very important to ask very specific questions and to make sure that you understand the recommendations that it makes so you don’t get lost in later steps. I used Google to supplement some of the information the AI gave me to improve my understanding. I spent a lot of time with this thing, and I think we both came out of it just a little better at what we do.",u/imartnm,https://www.reddit.com/r/vba/comments/108zy8k/comment/j3zcukr/?utm_source=share&utm_medium=web2x&context=3,"I've tried using it for VBA/Power Query code, but it's spotty at the best of times. It sometimes will reference functions that don't exist, or will ignore the carefully worded instructions you give it. At its current state it's most useful as a glorified google /stackoverflow search. It can also be helpful while debugging or just to throw some suggestions your way. Writing out the basic structure of my module and asking for recommendations/alternatives to certain implementations is fun and has taught me some new tricks. So it's cool, but not really reliable. Don't let it write your code for you or you might risk spending more time fixing it than you would have just writing it. I'd say it's VBA capabilities are better than its grasp on PowerQuery (M) .",u/Confuciusz,https://www.reddit.com/r/vba/comments/108zy8k/comment/j3wn54u/?utm_source=share&utm_medium=web2x&context=3,"Lol I just made a comment on another similar post where OP said GPT was incredible for Excel 😂 But yeah, GPT is still awful for VBA or long formulas. I tried giving clear instructions for simple tasks that it couldn’t get right. It’s cool, but long way to go",u/E_Man91,https://www.reddit.com/r/vba/comments/123zuo6/comment/je3ixwy/?utm_source=share&utm_medium=web2x&context=3 \ No newline at end of file +VBA,N/A,N/A,N/A,N/A,3.55%,25,"212,313","22,482","77,915","17,439","19,273",2.73,1.91,0,0,0,52.3k,https://www.reddit.com/r/vba/,"It depends on how you use ChatGPT though. I started a VBA project using methods I had used in the past. When that didn’t work, I tried the Google approach, and still couldn’t do what I wanted. Then, I remembered that ChatGPT does code, and decided to give it a shot. Honestly, what it gave me was riddled with errors, but I went through error by error and forced the AI to come up with corrections. I would copy-past the code into the prompt and ask it to identify potential errors and explain how they could be fixed. I got a really intimate understanding of the code, the reasons for the errors, and the strategies for correcting them. Even then, the code was flawed and ultimately failed. But I was able to use some of what I picked up throughout the process to build my own foundation for the code that would eventually work and used the AI to help fill in the blanks. I got a lot out of the experience. It’s very important to ask very specific questions and to make sure that you understand the recommendations that it makes so you don’t get lost in later steps. I used Google to supplement some of the information the AI gave me to improve my understanding. I spent a lot of time with this thing, and I think we both came out of it just a little better at what we do.",u/imartnm,https://www.reddit.com/r/vba/comments/108zy8k/comment/j3zcukr/?utm_source=share&utm_medium=web2x&context=3,"I've tried using it for VBA/Power Query code, but it's spotty at the best of times. It sometimes will reference functions that don't exist, or will ignore the carefully worded instructions you give it. At its current state it's most useful as a glorified google /stackoverflow search. It can also be helpful while debugging or just to throw some suggestions your way. Writing out the basic structure of my module and asking for recommendations/alternatives to certain implementations is fun and has taught me some new tricks. So it's cool, but not really reliable. Don't let it write your code for you or you might risk spending more time fixing it than you would have just writing it. I'd say it's VBA capabilities are better than its grasp on PowerQuery (M) .",u/Confuciusz,https://www.reddit.com/r/vba/comments/108zy8k/comment/j3wn54u/?utm_source=share&utm_medium=web2x&context=3,"Lol I just made a comment on another similar post where OP said GPT was incredible for Excel 😂 But yeah, GPT is still awful for VBA or long formulas. I tried giving clear instructions for simple tasks that it couldn’t get right. It’s cool, but long way to go",u/E_Man91,https://www.reddit.com/r/vba/comments/123zuo6/comment/je3ixwy/?utm_source=share&utm_medium=web2x&context=3 +MATLAB,N/A,N/A,N/A,N/A,3.81%,24,"94,777","23,655","266,359","33,289","84,982",Unspecified,0,0,0,0,53.2k,reddit.com/r/matlab,"Yep, pretty much all the MATLAB code ChatGPT write for me worked. There was one instance whereby there was a multiplication that went away as it used * instead of .* To multiply two vectors. When I pointed that out, it corrected the code. In this case it was an order of operations issue and it correctly got it sorted by adjusting the parentheses. Pretty impressive so far.",u/worblyhead,https://www.reddit.com/r/matlab/comments/12fwjx5/comment/jficv03/?utm_source=share&utm_medium=web2x&context=3,"Converting the syntax isn't hard for something like chatgpt. But converting the function signatures is much harder to automate, especially third-party ones. I am currently in the process of doing Matlab to python for code relying on third-party packages, and it is certainly time consuming, but there isn't much alternative.",u/TheBlackCat13,https://www.reddit.com/r/matlab/comments/158l86g/comment/jtb1g61/?utm_source=share&utm_medium=web2x&context=3,"Why would you think such a simple plot with callback on click would not work? Now I wonder if it made the callback zoom-safe. I was using update callbacks after only 8 months of college experience with Matlab. And yet, I can’t make chatGPT to give me the correct answer to a function inverse involving rational polynomials (at least the steps it got right, allowed me to remember how to do function inverses)",u/LevelHelicopter9420,https://www.reddit.com/r/matlab/comments/12fwjx5/comment/jfll3tu/?utm_source=share&utm_medium=web2x&context=3 \ No newline at end of file diff --git a/docs/docs/languages/matlab.md b/docs/docs/languages/matlab.md new file mode 100644 index 000000000..af31d51a0 --- /dev/null +++ b/docs/docs/languages/matlab.md @@ -0,0 +1,48 @@ +# MATLAB + +MATLAB is the #24 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 + +❌ MATLAB 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) + +❌ MATLAB 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) + +❌ MATLAB 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) + +❌ MATLAB 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 + +✅ MATLAB is included in [The Stack dataset](https://arxiv.org/abs/2211.15533) + +❌ MATLAB is not included in the [CodeParrot dataset](https://huggingface.co/datasets/codeparrot/github-code) + +❌ MATLAB is not included in the [AlphaCode dataset](https://arxiv.org/abs/2203.07814) + +❌ MATLAB is not included in the [CodeGen dataset](https://arxiv.org/abs/2203.13474) + +❌ MATLAB is not included in the [PolyCoder dataset](https://arxiv.org/abs/2202.13169) + +## Stack Overflow & GitHub presence + +MATLAB has 94,777 [tagged questions on Stack Overflow](https://stackoverflow.com/tags) + +MATLAB projects have had 23,655 [PRs on GitHub since 2014](https://madnight.github.io/githut/#/pull_requests/2023/3) + +MATLAB projects have had 33,289 [issues on GitHub since 2014](https://madnight.github.io/githut/#/issues/2023/3) + +MATLAB projects have had 266,359 [pushes on GitHub since 2014](https://madnight.github.io/githut/#/pushes/2023/3) + +MATLAB projects have had 84,982 [stars on GitHub since 2014](https://madnight.github.io/githut/#/stars/2023/3) + +## Anecdotes from developers + +[u/worblyhead](https://www.reddit.com/r/matlab/comments/12fwjx5/comment/jficv03/?utm_source=share&utm_medium=web2x&context=3) +> Yep, pretty much all the MATLAB code ChatGPT write for me worked. There was one instance whereby there was a multiplication that went away as it used * instead of .* To multiply two vectors. When I pointed that out, it corrected the code. In this case it was an order of operations issue and it correctly got it sorted by adjusting the parentheses. Pretty impressive so far. + +[u/TheBlackCat13](https://www.reddit.com/r/matlab/comments/158l86g/comment/jtb1g61/?utm_source=share&utm_medium=web2x&context=3) +> Converting the syntax isn't hard for something like chatgpt. But converting the function signatures is much harder to automate, especially third-party ones. I am currently in the process of doing Matlab to python for code relying on third-party packages, and it is certainly time consuming, but there isn't much alternative. + +[u/LevelHelicopter9420](https://www.reddit.com/r/matlab/comments/12fwjx5/comment/jfll3tu/?utm_source=share&utm_medium=web2x&context=3) +> Why would you think such a simple plot with callback on click would not work? Now I wonder if it made the callback zoom-safe. I was using update callbacks after only 8 months of college experience with Matlab. And yet, I can’t make chatGPT to give me the correct answer to a function inverse involving rational polynomials (at least the steps it got right, allowed me to remember how to do function inverses) \ No newline at end of file