this post was submitted on 22 Jun 2023
15 points (100.0% liked)

Programming

13376 readers
2 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
 

Copilot is great, but a hundred bucks for what is basically a smart autocomplete seems a bit much - mostly, I hate the fact that the code is constantly transmitted to github (my repos are mostly local) - are there any reasonably convenient options for doing this without github looking over my shoulder all the time? I'm using VSCode but not wedded to it.

top 22 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 1 year ago (2 children)

The alternative is... YOU!

Invest in yourself, get training/practice, and eventually you will become strong enough you realize you don't need any autocomplete! :)

[–] [email protected] 4 points 1 year ago

Thanks! Respectfully, I think I'm OK on that side of the equation. But you're right - you should invest in your own learning and self-directed growth - this applies to all facets of life, not just writing python modules.

I like using copilot. Now that we aren't using punch cards to write monolithic BASIC and we have an internet to work with, most of the brain work in programming is component-based integration. AI makes typing out code a LOT faster, so I won't be ditching it to resume writing out for-loops end-to-end. I just don't want every line of code available to github and definitely don't want to fund the walled AI model if I can find a way around it.

[–] [email protected] 2 points 1 year ago (1 children)

Copilot isn't really about needing autocomplete, it's about not wasting time writing predictable long lines of code. One example I use is MPI calls, they take tons of parameters and doesn't really require much brainwork, instead of writing it all, you let copilot do it and just quickly read it to check.

[–] [email protected] 2 points 1 year ago

IMO consistent repeated "writing predictable long lines" means the code smells of abstractions that can be improved, i.e. if autocomplete is really saving someone that much time, there are likely even worse problems.

[–] [email protected] 5 points 1 year ago

https://github.com/fauxpilot/fauxpilot is an OSS alternative, don't know how viable it is. https://codeium.com is commercial, but has a free tier that seems to offer most of what CoPilot offers.

[–] loren 3 points 1 year ago

I tried a few and Codeium is the best

[–] [email protected] 2 points 1 year ago (1 children)

Tabnine is pretty good and has a free tier.

[–] [email protected] 1 points 1 year ago

thanks, yes - looks like a free entry point for autocomplete - the 'pro' tier is probably similar to copilot, by the looks of things - about the same price too.

This project seemed promising from the initial description:

https://github.com/CodedotAl/gpt-code-clippy/

but looking at the issues and history, it doesn't seem to be all that promising practically, so presumably avoiding corporate AI is not easy (yet).

[–] [email protected] 1 points 1 year ago (2 children)

Jetbrains Fleet is about to roll out their own AI assistant and it looks very promising.

[–] [email protected] 1 points 1 year ago (1 children)

Fairly skeptical about Jetbrains' Model, so it's basically a wait and see.

[–] [email protected] 1 points 1 year ago (1 children)

from the FAQ:

How much will AI Assistant cost in JetBrains IDEs? The AI assistant is currently free to use during the preview phase. We’ll be providing the licensing and pricing model at a later date.

It looks as though it would be similar to github - they host the model and you pay a subscription for real time access while you're coding.

Still, I'd feel ideologically more at peace paying Jetbrains for IDE-as-a-service than I do slinging github a hundred smackers just to use their model from somebody else's IDE.

A public / open source solution would be ideal.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

I know, just not sure the quality it offers

[–] [email protected] 1 points 1 year ago (1 children)

For a research project, I'm currently looking into open-source GitHub Copilot alternatives and monitoring options. As someone else already said, you can use the FauxPilot self-hosted backend. It works pretty well, but you have to host it yourself. You can use this backend with a frontend extension, such as the official GitHub Copilot plugin (with telemetry disabled) or with the FauxPilot VSCode extension. However, I found that the FauxPilot extension is very lackluster in terms of features compared to the official extension (On top of my head, it does not have any caching mechanism, nor does it cancels the requests already made if you continue typing (they just pile up), and does not have any sort of filter for the completions. All of these lead to way too many generations being requested from the model.

TL;DR : If you want to use the GitHub Copilot extension, without GitHub looking over your shoulder, you can use the FauxPilot backend and opt-out of the telemetry from VSCode/Copilot (I don't know which one needs to be disabled) (or do as I did for research purposes, and change the telemetry url in the source code to a localhost one).

[–] [email protected] 3 points 1 year ago

Thanks for taking the time to respond - it sounds like an interesting research project. This indeed looks like the ideal long-term solution, where the model is hosted locally and no code is sent to the internet while it's under development. I'll take a closer look at this - thanks again.

[–] [email protected] 1 points 1 year ago (2 children)
[–] [email protected] 4 points 1 year ago

Of course that does not fix the fact that the code is not transmitted and a company cannot look over your shoulder :p

[–] [email protected] 2 points 1 year ago

Thanks! Codewhisperer looks pretty good - especially the price - It looks similar to copilot functionally but it's free for individual use.

for anyone interested, there's a pretty decent demo here https://www.youtube.com/watch?v=CxRhACSZsJU

It also integrates with VSCode, so it looks like I can just register with AWS and replace copilot immediately. Still transmitting everything in the IDE to Amazon real time, but production systems are in EC2, so it feels slightly less intrusive than github.

[–] [email protected] 1 points 1 year ago (1 children)

You could try HF Code Autocomplete VSCode extension. That would allow you to use open-source LLMs like https://github.com/bigcode-project/starcoder.

[–] [email protected] 2 points 1 year ago

thanks - that looks like full independence and would be good to try. I've been using codeium, which was suggested here and it seems as good, if not better than github copilot and it's free for solo developers.

I appreciate you taking the time to make the suggestion - I've learned quite a lot about open source software options in a few weeks here on Lemmy and find it's been an excellent resource for technical info and suggestions.

[–] [email protected] 1 points 1 year ago

I use VS Codium, which seems to have a lot of home-phoning disabled although I really don't trust Microsoft code still somehow doing its thing now and then