3 ms·
Copilot is trending and I thought I'd make something for fun. Captain Stack is a VSCode extension that mimics Copilot's code suggestion feature. But instead of
by hieu229 5y ago
Copilot is trending and I thought I'd make something for fun.
Captain Stack is a VSCode extension that mimics Copilot's code suggestion feature. But instead of using AI, it filter search results on Google and return a list of code suggestion option
It was meant for fun. Though I realized this method is quite effective since that's just what devs usually do
Feedback and question are welcome
- svantana 5y agoNice work! I would assume something like this would quickly run into rate limiting on google, does that happen or did you do something to mitigate?
- hieu229 5y agoI'm not entirely sure, I had a look but didn't find anywhere mentioned about it. The extension run in nodejs environment, and use fetch-node to get page content. I assume it's similar to how someone use google on broswer
- GistNoesis 5y agoThere is always the option of downloading a data dump from https://archive.org/details/stackexchange https://archive.org/details/stackexchange indexing it and querying it. You can even make your tool offline and private :) Add a few transformers on top, and you can have it generate dubious code. Though if you want to be competitive you'll probably need a few phd and M$ of computing resources or use some free tpu like https://colab.research.google.com/ https://colab.research.google.com/ and hope to not get rate limited :)
- deleted 5y ago[deleted]
- hieu229 5y agoGood suggestions. Another one to consider is Google and Stackoverflow offical API