▲ 67 ▼ IBM’s generative AI tool aims to refactor ancient COBOL code for its mainframes (arstechnica.com) submitted 2 years ago by pizzaiolo@slrpnk.net to c/programming@programming.dev 18 comments fedilink hide all child comments
[–] andscape@feddit.it 26 points 2 years ago* (last edited 2 years ago) (3 children) Legacy COBOL code is largely used in critical systems like those of banks and airlines. What could go wrong with having that code rewritten by stochastic parrots who get programming answers wrong half of the time? permalink fedilink source hideshow 6 child comments replies: [–] Hector_McG@programming.dev 14 points 2 years ago* (last edited 2 years ago) LLMs produce code that is functionally error prone while looking reasonable (in the same way that it produces answers that are grammatically correct, correctly spelled, but factually incorrect). As we all know, fixing bugs in someone else’s code is generally more difficult than writing the code correctly in the 1st place , and that’s going to apply to a LLMs code output just as much as a humans, if not more. permalink fedilink source parent [–] Lmaydev@programming.dev 5 points 2 years ago* (last edited 2 years ago) (2 children) That's assuming they're using one of the generic models like ChatGPT and not something custom they've created specifically to do this. Edit: they are in fact using their own as per the article permalink fedilink source parent hideshow 4 child comments replies: [–] andscape@feddit.it 4 points 2 years ago (1 child) I'm aware they're not using a generic model, but that's not much better. Current custom-made models still fuck up significantly more than humans, and in less predictable ways. Even if their custom model is slightly incorrect 1% of the time, that's still a major problem in critical systems like those. permalink fedilink source parent hideshow 2 child comments replies: [–] Lmaydev@programming.dev 2 points 2 years ago Which models are those? permalink fedilink source parent [+] ImpossibleRubiksCube@programming.dev 3 points 2 years ago* (last edited 2 years ago) (1 child) [deleted] permalink fedilink source parent hideshow 2 child comments replies: [–] FinancesDrone98@programming.dev 1 point 2 years ago I mostly use A.I. to translate. ChatGPT gets that done it gets it done pretty good, especially when you say “translate this mandarin text into English. I don’t care if it is somewhat inaccurate, just do it as best as you can.“ permalink fedilink source parent [–] crazyminner@sh.itjust.works 1 point 2 years ago (2 children) The AI would likely be trained or fine tuned specifically for COBOL. In these very narrow use cases AI can find some things that humans can miss. Google did this recently on a sorting algorithm and was able to speed it up by 70%: More info here permalink fedilink source parent hideshow 4 child comments replies: [–] Die4Ever@programming.dev 8 points 2 years ago (1 child) It's cool for small and easily testable functions like sorting, but to refactor large amounts of code? No thanks. Would be great if it could leave comments on my pull request though. permalink fedilink source parent hideshow 2 child comments replies: [–] LufyCZ@lemmy.world 1 point 2 years ago (1 child) Try PR-Codex permalink fedilink source parent hideshow 2 child comments replies: [–] Die4Ever@programming.dev 1 point 2 years ago (1 child) I thought it would leave comments on individual lines of code with feedback and code quality, but seems like it just summarizes what the pull request changes the summary stuff would be better if it was per file instead of overall permalink fedilink source parent hideshow 2 child comments replies: [–] LufyCZ@lemmy.world 2 points 2 years ago Hm don't think I can help you with that unfortunately. It's nice for quickly seeing what a PR is about, not much more permalink fedilink source parent [–] gopher_protocol@programming.dev 3 points 2 years ago I suppose I shouldn't be surprised at the negative response here, but personally this seems like the perfect application of LLMs. Yeah, it'll need to be verified by humans, but so would human-translated code. Using an appropriately trained LLM to do the first pass translation has the potential to eliminate a lot of toil. permalink fedilink source parent
[–] Hector_McG@programming.dev 14 points 2 years ago* (last edited 2 years ago) LLMs produce code that is functionally error prone while looking reasonable (in the same way that it produces answers that are grammatically correct, correctly spelled, but factually incorrect). As we all know, fixing bugs in someone else’s code is generally more difficult than writing the code correctly in the 1st place , and that’s going to apply to a LLMs code output just as much as a humans, if not more. permalink fedilink source parent
[–] Lmaydev@programming.dev 5 points 2 years ago* (last edited 2 years ago) (2 children) That's assuming they're using one of the generic models like ChatGPT and not something custom they've created specifically to do this. Edit: they are in fact using their own as per the article permalink fedilink source parent hideshow 4 child comments replies: [–] andscape@feddit.it 4 points 2 years ago (1 child) I'm aware they're not using a generic model, but that's not much better. Current custom-made models still fuck up significantly more than humans, and in less predictable ways. Even if their custom model is slightly incorrect 1% of the time, that's still a major problem in critical systems like those. permalink fedilink source parent hideshow 2 child comments replies: [–] Lmaydev@programming.dev 2 points 2 years ago Which models are those? permalink fedilink source parent [+] ImpossibleRubiksCube@programming.dev 3 points 2 years ago* (last edited 2 years ago) (1 child) [deleted] permalink fedilink source parent hideshow 2 child comments replies: [–] FinancesDrone98@programming.dev 1 point 2 years ago I mostly use A.I. to translate. ChatGPT gets that done it gets it done pretty good, especially when you say “translate this mandarin text into English. I don’t care if it is somewhat inaccurate, just do it as best as you can.“ permalink fedilink source parent
[–] andscape@feddit.it 4 points 2 years ago (1 child) I'm aware they're not using a generic model, but that's not much better. Current custom-made models still fuck up significantly more than humans, and in less predictable ways. Even if their custom model is slightly incorrect 1% of the time, that's still a major problem in critical systems like those. permalink fedilink source parent hideshow 2 child comments replies: [–] Lmaydev@programming.dev 2 points 2 years ago Which models are those? permalink fedilink source parent
[–] Lmaydev@programming.dev 2 points 2 years ago Which models are those? permalink fedilink source parent
[+] ImpossibleRubiksCube@programming.dev 3 points 2 years ago* (last edited 2 years ago) (1 child) [deleted] permalink fedilink source parent hideshow 2 child comments replies: [–] FinancesDrone98@programming.dev 1 point 2 years ago I mostly use A.I. to translate. ChatGPT gets that done it gets it done pretty good, especially when you say “translate this mandarin text into English. I don’t care if it is somewhat inaccurate, just do it as best as you can.“ permalink fedilink source parent
[–] FinancesDrone98@programming.dev 1 point 2 years ago I mostly use A.I. to translate. ChatGPT gets that done it gets it done pretty good, especially when you say “translate this mandarin text into English. I don’t care if it is somewhat inaccurate, just do it as best as you can.“ permalink fedilink source parent
[–] crazyminner@sh.itjust.works 1 point 2 years ago (2 children) The AI would likely be trained or fine tuned specifically for COBOL. In these very narrow use cases AI can find some things that humans can miss. Google did this recently on a sorting algorithm and was able to speed it up by 70%: More info here permalink fedilink source parent hideshow 4 child comments replies: [–] Die4Ever@programming.dev 8 points 2 years ago (1 child) It's cool for small and easily testable functions like sorting, but to refactor large amounts of code? No thanks. Would be great if it could leave comments on my pull request though. permalink fedilink source parent hideshow 2 child comments replies: [–] LufyCZ@lemmy.world 1 point 2 years ago (1 child) Try PR-Codex permalink fedilink source parent hideshow 2 child comments replies: [–] Die4Ever@programming.dev 1 point 2 years ago (1 child) I thought it would leave comments on individual lines of code with feedback and code quality, but seems like it just summarizes what the pull request changes the summary stuff would be better if it was per file instead of overall permalink fedilink source parent hideshow 2 child comments replies: [–] LufyCZ@lemmy.world 2 points 2 years ago Hm don't think I can help you with that unfortunately. It's nice for quickly seeing what a PR is about, not much more permalink fedilink source parent [–] gopher_protocol@programming.dev 3 points 2 years ago I suppose I shouldn't be surprised at the negative response here, but personally this seems like the perfect application of LLMs. Yeah, it'll need to be verified by humans, but so would human-translated code. Using an appropriately trained LLM to do the first pass translation has the potential to eliminate a lot of toil. permalink fedilink source parent
[–] Die4Ever@programming.dev 8 points 2 years ago (1 child) It's cool for small and easily testable functions like sorting, but to refactor large amounts of code? No thanks. Would be great if it could leave comments on my pull request though. permalink fedilink source parent hideshow 2 child comments replies: [–] LufyCZ@lemmy.world 1 point 2 years ago (1 child) Try PR-Codex permalink fedilink source parent hideshow 2 child comments replies: [–] Die4Ever@programming.dev 1 point 2 years ago (1 child) I thought it would leave comments on individual lines of code with feedback and code quality, but seems like it just summarizes what the pull request changes the summary stuff would be better if it was per file instead of overall permalink fedilink source parent hideshow 2 child comments replies: [–] LufyCZ@lemmy.world 2 points 2 years ago Hm don't think I can help you with that unfortunately. It's nice for quickly seeing what a PR is about, not much more permalink fedilink source parent
[–] LufyCZ@lemmy.world 1 point 2 years ago (1 child) Try PR-Codex permalink fedilink source parent hideshow 2 child comments replies: [–] Die4Ever@programming.dev 1 point 2 years ago (1 child) I thought it would leave comments on individual lines of code with feedback and code quality, but seems like it just summarizes what the pull request changes the summary stuff would be better if it was per file instead of overall permalink fedilink source parent hideshow 2 child comments replies: [–] LufyCZ@lemmy.world 2 points 2 years ago Hm don't think I can help you with that unfortunately. It's nice for quickly seeing what a PR is about, not much more permalink fedilink source parent
[–] Die4Ever@programming.dev 1 point 2 years ago (1 child) I thought it would leave comments on individual lines of code with feedback and code quality, but seems like it just summarizes what the pull request changes the summary stuff would be better if it was per file instead of overall permalink fedilink source parent hideshow 2 child comments replies: [–] LufyCZ@lemmy.world 2 points 2 years ago Hm don't think I can help you with that unfortunately. It's nice for quickly seeing what a PR is about, not much more permalink fedilink source parent
[–] LufyCZ@lemmy.world 2 points 2 years ago Hm don't think I can help you with that unfortunately. It's nice for quickly seeing what a PR is about, not much more permalink fedilink source parent
[–] gopher_protocol@programming.dev 3 points 2 years ago I suppose I shouldn't be surprised at the negative response here, but personally this seems like the perfect application of LLMs. Yeah, it'll need to be verified by humans, but so would human-translated code. Using an appropriately trained LLM to do the first pass translation has the potential to eliminate a lot of toil. permalink fedilink source parent