Live data from Hacker News

Show HN: GPT Repo Loader – load entire code repos into GPT prompts

github.com

91–100 of 162 posts

Re: Show HN: GPT Repo Loader – load entire code repos into GPT prompts

#91
post #39

Earlier quoted context omitted.

6c per thousand tokens, so $2 per maxed out API call

Still super expensive. You cant build a business arround it with these rates. It should be at least 1000 times cheaper if not more.

Depends how good it is now, doesn’t it? If it actually writes code (it does), which is ‘good enough’ compared to a 25-150$/hr human (it does for the lower part of that scale), the $2 is definitely a good business case. For instance, I had to write 1500 lines of js yesterday because one of my colleagues who took the task could not manage it in the previous 2 days and the deadline was today. We would’ve saved about 500$ in total doing it with that expensive API from the start. Now it was free besides my hourly wage (it took me little over an hour) so it made even more sense.

Re: Show HN: GPT Repo Loader – load entire code repos into GPT prompts

#92
post #49
post #33

Earlier quoted context omitted.

This is not true anymore, they changed their terms so this is now opt in.

It's still probably extemely against any reasonable business's code of conduct.

That you're getting downvoted for an obvious statement like this suggests to me a lot of HNers are disclosing trade secrets and proprietary code to OpenAI that they know damn well they shouldn't.

Re: Show HN: GPT Repo Loader – load entire code repos into GPT prompts

#93
post #69

I’m thinking if GPT can write entire programs professionally and iterate, it would be OpenAI that benefit the most and would be a guarded asset I.e not open to public till it’s safe for release. Most of us probably don’t need to worry about work after that as that could well be AGI

OpenAI already has access to any prompts anybody uses to write programs using GPT. Who’s to say GPT-4 isn’t some ploy to gather data to train private AGI?

Or both.

Re: Show HN: GPT Repo Loader – load entire code repos into GPT prompts

#94

nice. general question: how many lines of code (at 120 char col len) could you send in one prompt? also, the entire thing is literally 60 lines of python. sometimes i don't get what gets upvoted on HN anymore

> also, the entire thing is literally 60 lines of python.

Which is a lot as you can do this in one line of bash. And have in the past for other reasons.

Something like;

     find . -name "*.py" -exec cat {} + > output.txt

Re: Show HN: GPT Repo Loader – load entire code repos into GPT prompts

#96

Earlier quoted context omitted.

Still super expensive. You cant build a business arround it with these rates. It should be at least 1000 times cheaper if not more.

Depends how good it is now, doesn’t it? If it actually writes code (it does), which is ‘good enough’ compared to a 25-150$/hr human (it does for the lower part of that scale), the $2 is definitely a good business case. For instance, I had to write 1500 lines of js yesterday because one of my colleagues who took the task could not manage it in the previous 2 days and the deadline was today. We would’ve saved about 500…

> which is ‘good enough’ compared to a 25-150$/hr human (it does for the lower part of that scale),

I'm not exactly sure you define that scale, perhaps Minecraft bots or the like, where the damage after complete failure is self contained to perhaps a few dollars or a few hours of human annoyance. I'm sure there are many niches where a 50% success rate of mass generated programs can earn you big bucks.

But in my experience Codex does very limited reasoning about code paths. For the current state of the art, you are almost guaranteed to have catastrophic bugs in any non-trivial programs engineered by prompt.

Re: Show HN: GPT Repo Loader – load entire code repos into GPT prompts

#97

Earlier quoted context omitted.

Depends how good it is now, doesn’t it? If it actually writes code (it does), which is ‘good enough’ compared to a 25-150$/hr human (it does for the lower part of that scale), the $2 is definitely a good business case. For instance, I had to write 1500 lines of js yesterday because one of my colleagues who took the task could not manage it in the previous 2 days and the deadline was today. We would’ve saved about 500…

> which is ‘good enough’ compared to a 25-150$/hr human (it does for the lower part of that scale), I'm not exactly sure you define that scale, perhaps Minecraft bots or the like, where the damage after complete failure is self contained to perhaps a few dollars or a few hours of human annoyance. I'm sure there are many niches where a 50% success rate of mass generated programs can earn you big bucks. But in my exper…

When a bad senior or junior/medior delivers their pr, I (or some other skilled senior) review it and it has issues which I explain and we go in a fix loop. Often I just approve it and fix it myself as it takes too long. That is good enough as that’s going on in all companies. Gpt is the same only many times faster; the loop is instant and sometimes I give up and fix it myself, as it is not going to get it, just like some (depressingly many) humans.

Re: Show HN: GPT Repo Loader – load entire code repos into GPT prompts

#98

nice. general question: how many lines of code (at 120 char col len) could you send in one prompt? also, the entire thing is literally 60 lines of python. sometimes i don't get what gets upvoted on HN anymore

> also, the entire thing is literally 60 lines of python. Which is a lot as you can do this in one line of bash. And have in the past for other reasons. Something like; find . -name "*.py" -exec cat {} + > output.txt

Looks like it does this to me:

   for file in `git ls-files`; do echo $file; cat $file; echo; echo -------; done

Re: Show HN: GPT Repo Loader – load entire code repos into GPT prompts

#99
post #45

“This repo is GPL-v3 licensed. Rewrite it while preserving its main functionality”

This is already legal without AI. Copyright protects only expression, not ideas, systems or methods. This is why directly reverse-engineering a proprietary binary to extract the algorithms and systems is legal.

> Copyright protects only expression, not ideas, systems or methods

Copyright is a law agreed by a humans in a social contract created to protect humans and further their interests in a 'fair' manner. There is no inalienable right to copyright, no universal law that requires it, it's not an emergent property of intelligence that mechanically applies to artificial entities.

So while the current copyright laws could be interpreted in the way you suggest for the time being, they are clearly written without any notion of AI, and can and should be revised to incorporate the new state of the world; you can bet creators will push hard in that direction. It's pretty clear that the mechanical transformation of a human body of work for the sole purpose of stripping it of copyright is a violation of the spirit of copyright law *.

*( as long as that machine can't also generate a similar work from scratch, in which case the point becomes moot. But we are far, far, from that point)

Re: Show HN: GPT Repo Loader – load entire code repos into GPT prompts

#100
post #46
post #15

Earlier quoted context omitted.

> I wonder if the future will just be software hobbled together with shitty AI code that no one understands, with long loops and deep call stacks and abstractions on top of abstractions There's plenty of software out there that fits this description if you just remove "AI" from the statement. There's nothing new about bad codebases. Now it just costs pennies and is written in seconds instead of thousands paid to an o…

At least the shitty software might have unit tests

co-pilot excels in writing tests. It removes so much of the tedium and boilerplate. It seems to understand fixtures once you define one and understands subsequent changes to the boilerplate such as changing usernames, ids, appending items to lists. It is such a massive boost in productivity that those using it are way ahead of those who resist.
Post reply on HN