diff --git a/docs/docs/languages/languages.csv b/docs/docs/languages/languages.csv index 2b25b7f82..a45f222e3 100644 --- a/docs/docs/languages/languages.csv +++ b/docs/docs/languages/languages.csv @@ -15,4 +15,5 @@ Groovy,N/A,N/A,N/A,N/A,3.40%,26,"30,014","132,381","431,291","108,265","140,122" 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 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 \ No newline at end of file +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.",y/AppleHitMyHead,https://www.reddit.com/r/swift/comments/1724gke/comment/k481769/?utm_source=share&utm_medium=web2x&context=3 \ No newline at end of file diff --git a/docs/docs/languages/swift.md b/docs/docs/languages/swift.md new file mode 100644 index 000000000..3dc0c45bf --- /dev/null +++ b/docs/docs/languages/swift.md @@ -0,0 +1,48 @@ +# Swift + +Swift is the #21 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 + +✅ Swift 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) + +❌ Swift 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) + +✅ Swift is 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) + +❌ Swift 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 + +✅ Swift is included in [The Stack dataset](https://arxiv.org/abs/2211.15533) + +❌ Swift is not included in the [CodeParrot dataset](https://huggingface.co/datasets/codeparrot/github-code) + +❌ Swift is not included in the [AlphaCode dataset](https://arxiv.org/abs/2203.07814) + +❌ Swift is not included in the [CodeGen dataset](https://arxiv.org/abs/2203.13474) + +❌ Swift is not included in the [PolyCoder dataset](https://arxiv.org/abs/2202.13169) + +## Stack Overflow & GitHub presence + +Swift has 331,145 [tagged questions on Stack Overflow](https://stackoverflow.com/tags) + +Swift projects have had 425,921 [PRs on GitHub since 2014](https://madnight.github.io/githut/#/pull_requests/2023/3) + +Swift projects have had 325,962 [issues on GitHub since 2014](https://madnight.github.io/githut/#/issues/2023/3) + +Swift projects have had 1,334,455 [pushes on GitHub since 2014](https://madnight.github.io/githut/#/pushes/2023/3) + +Swift projects have had 2,731,776 [stars on GitHub since 2014](https://madnight.github.io/githut/#/stars/2023/3) + +## Anecdotes from developers + +[u/[deleted]](https://www.reddit.com/r/swift/comments/174vuyo/comment/k4eayl9/?utm_source=share&utm_medium=web2x&context=3) +> 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/Zagerer](https://www.reddit.com/r/swift/comments/13929qe/comment/jj0pti9/) +> 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. + +[y/AppleHitMyHead](https://www.reddit.com/r/swift/comments/1724gke/comment/k481769/?utm_source=share&utm_medium=web2x&context=3) +> 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. \ No newline at end of file