Sudo2ACA program to convert your pseudocode into real working code!About:Sudo2AC is a program that can convert pseudocode in your editor, using a local AI model. I got the idea after working on my other project, my C++ Browser Engine. I had problems figuring out things like networking and wished there was a way that I could write out my code still, but it did not have to be perfect, so I made this (though it was NOT used for the browser project.) It converts it by running your highlighted section through Ollama, and using the context from the rest of the file, writes out the proper code without overwriting other code. How To Use/Demo:Click here to open the demo vid.Requirements:You need to have Ollama downloaded and also need a model downloaded to work. I would recommend You also need Visual Studio Code to use this extension, which you can download here. Best Settings:I've found that sometimes you need to change around the prompt, depending on your model. If the model isn't getting the performance that you want, click the settings button at the top:
And you can change the system prompt using the same button. I've also found that sometimes the model may need to be changed, depending on how complex the sudo instructions are (as bigger is better); you can again click the settings button at the top and change the Ollama model. Ollama is always getting new cloud models, but I would suggest Settings List
Tips:It will only change your highlighted section or add more lines, so it won't touch any other code you don't want it to.Because the model uses the rest of the file as context, the more lines/data you have in your file, the better. If you want to run it on your own hardware, there are a few things to note: the smaller the model, the faster it's going to be, but the dumber it's going to be, but if you run a very smart model, the slower it's going to be. Support the ProjectIf you find Sudo2AC interesting, please consider giving it a ⭐! It helps more people discover the project! |

