7

So today I was trying to get a java program to run in Linux that needed a bat file to run in Windows. I was looking at the file and didn't know what it would take to do all the commands in Linux. So I said fuck it and had my chatgpt account do the conversion. It actually did it perfectly and replaced Windows specific commands with Linux equivalents. It reworked the data and set environment variables correctly. It also ran the java program.

Unfortunately I think the Java program had made assumptions about the environment and used hard coded Windows style paths. Rather than using some paths in a filesystem generic way. So it just excepted when trying to read files that were there, but had wrong slash in filename.

It was a good test though. I may have chatgpt take a whack at other scripts I don't want to take the time to look up syntax.

Comments
  • 3
    Yeah, Chatgpt is great in that. I use it to convert languages all the time. Works surprisingly good.

    Regarding code generation, great for stuff you don't care about - I needed a html page of all images sorted by created desc with two columns per row. Would take me ten to 15 minutes normally with the few bugs while wring it. Now I had it in one minute perfect doing what it needed to do.

    No, it doesn't create games, but damn it's handy for generating typical one feature scripts that don't require a specific code quality.

    I found so many uses for gpt, it's insane. The current AI gives me really more time to spend on important stuff. The ultimate tool. If it would stay like this, I wouldn't care.
  • 3
    had a AI guy tell me it's so good for converting between languages

    so I had it convert some c++ code to rust

    very disaster
  • 0
    @jestdotty what was the code about?
  • 0
    @retoor simple neural network iirc

    someone had implemented something efficient in c++

    I wanted to code ML ground up at the time
Add Comment