News for hackers. Stuff that matters.
Re:A: A CLI tool to generate code snippets from GPT3 written... by clircle on Thursday March 02, 2023 @04:39PM (#35002459)
* * *
Re:A: A CLI tool to generate code snippets from GPT3 written... by bqmjjx0kac on Thursday March 02, 2023 @04:51PM (#35002588)
Reminiscent of A and AAAA records in DNS.
Re:A: A CLI tool to generate code snippets from GPT3 written... by fire on Thursday March 02, 2023 @04:50PM (#35002584)
I love that the name makes this feel like typing a sentence to your terminal
Re:A: A CLI tool to generate code snippets from GPT3 written... by toyg on Thursday March 02, 2023 @04:59PM (#35002664)
This is the wet dream of "bropreneurs" who already write such descriptions on the various freelance portals...
Re:A: A CLI tool to generate code snippets from GPT3 written... by myaccount80 on Thursday March 02, 2023 @04:59PM (#35002666)
“Written in rust” but it’s just a raw call to ChatGPT.
Re:A: A CLI tool to generate code snippets from GPT3 written... by DoctorOW on Thursday March 02, 2023 @05:09PM (#35002774)
The source is really in the title, that's the prompt given to ChatGPT to output the code /s
Re:A: A CLI tool to generate code snippets from GPT3 written... by contextnavidad on Thursday March 02, 2023 @05:18PM (#35002878)
Someone knows how to get voted to the front page
Re:A: A CLI tool to generate code snippets from GPT3 written... by thunky on Thursday March 02, 2023 @05:00PM (#35002681)
It's interesting, this is where we're at:

1. english -> 2. programming language -> 3. machine language

We need step 2 right now because a human has to manually push text around to actually make it to step 3.

But programming langagues are for humans only; computers don't need them. So why should step 2 even exist in the future? Especially if a computer becomes capable of verifying it's ouput better than a human could.

Re:A: A CLI tool to generate code snippets from GPT3 written... by IdiocyInAction on Thursday March 02, 2023 @05:04PM (#35002723)
Because the computer in this case is relying on a vast repository of human knowledge encoded in these languages to go from 1 to 3. Machine code was probably not in the training set.

Would be interesting if you could train a GPT-N model to be a compiler somehow.

Re:A: A CLI tool to generate code snippets from GPT3 written... by mr_toad on Thursday March 02, 2023 @05:11PM (#35002801)
True of GTP and other LLMs, but an AI trained on machine code could simply output machine code. The difficulty would be that it wouldn’t then understand natural language prompts.
Re:A: A CLI tool to generate code snippets from GPT3 written... by kupopuffs on Friday March 03, 2023 @06:36AM (#35008252)
Why not have it be human readable as well? Good to be redundant. They can automate the compilation, and we can't always rely on the machine
Re:A: A CLI tool to generate code snippets from GPT3 written... by omnicognate on Thursday March 02, 2023 @05:08PM (#35002764)
Because we don't have a system that understands language and generates code. We have a token predictor trained on a huge corpus of code mixed with explanatory language. And the existing huge corpus of code mixed with explanatory language consists, necessarily, almost entirely of code written in human-oriented languages.
Re:A: A CLI tool to generate code snippets from GPT3 written... by pfisherman on Thursday March 02, 2023 @05:07PM (#35002759)
Interesting idea. The verifying correctness kind of seems like the most important part though, and entirely non trivial. Test driven development maybe?
Re:A: A CLI tool to generate code snippets from GPT3 written... by frebord on Thursday March 02, 2023 @05:09PM (#35002781)
It seems like we might look back at writing code in 15-20 years the way we now look back at something like punch card programming
Re:A: A CLI tool to generate code snippets from GPT3 written... by ergonaught on Thursday March 02, 2023 @05:15PM (#35002848)
For auditing the generated instructions, as auditing machine language itself is unrealistic.
Re:A: A CLI tool to generate code snippets from GPT3 written... by smeagull on Thursday March 02, 2023 @06:25PM (#35003532)
Step 2 is more token efficient, I suspect we'll not get rid of it.
Re:A: A CLI tool to generate code snippets from GPT3 written... by mpalmer on Thursday March 02, 2023 @10:19PM (#35005386)
If we eliminated step 2 and achieved equivalency with or even slightly improved upon the state of the art, we would still be at a significant disadvantage.

The problem is that the current best (publicly known) results are nowhere near good enough not to be verified by a human prior to deployment. So if we get to _that_ point having skipped step 2, the verification will have to be done on machine language.

And since there's no human-abstracted code intermediate between the spoken language and the assembly, the algorithmically-searched-out analogies of language to purpose are fairly likely to baffle everyone.

Re:A: A CLI tool to generate code snippets from GPT3 written... by foysauce on Thursday March 02, 2023 @05:09PM (#35002778)
Interesting that the top 2 comments (when reading this) are at opposite ends of the sentiment spectrum over the name. Personally I think it's one of those names that sucks to use in conversation but great to use on the command line. Of course aliasing or abbreviations can also get you there.
Re:A: A CLI tool to generate code snippets from GPT3 written... by JPKab on Thursday March 02, 2023 @05:10PM (#35002787)
Super cool idea, but I really really hate it when I take about 15 minutes out of my day to install something and then have it not work at all.

  ~ a python script that makes a request
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: NotPresent', /Users/some_user/.cargo/registry/src/github.com-1ecc6299db9ec823/a-gpt-0.1.9/src/main.rs:15:51 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Edit: I'm on a Mac x86. Curious if others have same experience.

Re:A: A CLI tool to generate code snippets from GPT3 written... by netfortius on Thursday March 02, 2023 @05:33PM (#35003043)
Same here - also on macos. Thinking about opening an issue on the github repo, but will try to see if I could figure out from the source code what this is about, first
Re:A: A CLI tool to generate code snippets from GPT3 written... by contextnavidad on Thursday March 02, 2023 @05:14PM (#35002836)
Looks like you need an env var `OPENAI_API_KEY` for this to work. Strange that it is not documented at all.

Also they could have provided an actual error rather than letting it panic!

Re:A: A CLI tool to generate code snippets from GPT3 written... by synergy20 on Thursday March 02, 2023 @05:19PM (#35002891)
With a valid key I still get errors.

read the returning message it says I exceeded my daily quota, checked my account, my free API trial period ended a few months back.

Paying for ChatGPI does not mean you can get API access, in short, you need pay for API access separately after a short trial period to use this tool:

"No, the ChatGPT API and ChatGPT Plus subscription are billed separately. The API has its own pricing, which can be found at https://openai.com/pricing. The ChatGPT Plus subscription covers usage on chat.openai.com only and costs $20/month."

Re:A: A CLI tool to generate code snippets from GPT3 written... by pohl on Thursday March 02, 2023 @05:18PM (#35002883)
They could use a to have ChatGPT generate a function for that.
Re:A: A CLI tool to generate code snippets from GPT3 written... by synergy20 on Thursday March 02, 2023 @05:15PM (#35002841)
same here on x86 ubuntu 22.04
Re:A: A CLI tool to generate code snippets from GPT3 written... by akkad33 on Friday March 03, 2023 @07:03AM (#35008434)
What this shows is if it compiles it doesn't just work
Re:A: A CLI tool to generate code snippets from GPT3 written... by drexlspivey on Thursday March 02, 2023 @06:57PM (#35003812)
it’s using the text-davinci-003 model and not ChatGPT (gpt-3.5-turbo) released yesterday
Re:A: A CLI tool to generate code snippets from GPT3 written... by singularity2001 on Thursday March 02, 2023 @10:15PM (#35005358)
unfortunately, this approach fails for basic algorithms:

try to compute the power of X to the Y without a library ...