News for hackers. Stuff that matters.
Re:AI teaches itself to use an API by bluedays on Friday March 03, 2023 @06:32PM (#35016436)
Should I be worried?
Re:AI teaches itself to use an API by soylentbeige on Friday March 03, 2023 @06:33PM (#35016446)
The AI model seems dependent on the documentation being up to date and readable so I think not just yet. Still very cool though
Re:AI teaches itself to use an API by yunwal on Friday March 03, 2023 @06:39PM (#35016492)
I mean if it takes off for some use-cases and poor documentation is a blocker for people using your service, companies that don’t improve quickly will be out of business soon.
Re:AI teaches itself to use an API by momothereal on Friday March 03, 2023 @06:35PM (#35016449)
ChatGPT can pretty easily generate documentation from code though :p
Re:AI teaches itself to use an API by mistrial9 on Friday March 03, 2023 @07:09PM (#35016710)
ChatGPT can pretty easily generate unreliable documentation from code .. FTFY
Re:AI teaches itself to use an API by mountainriver on Saturday March 04, 2023 @09:40AM (#35021022)
Lol yeah, maybe GPT4 and the likes will do this but chatGPT is still way to unreliable
Re:AI teaches itself to use an API by coffeebeqn on Friday March 03, 2023 @06:51PM (#35016578)
We need a pact to have bad and out of date API docs at all companies
Re:AI teaches itself to use an API by 8note on Friday March 03, 2023 @07:02PM (#35016652)
You needs a pact for that? It's just bowing to the second law of thermodynamics

Which actually, I think guarantees that software engineers will always have to put touches in here and there to remove entropy that the ai has created

Re:AI teaches itself to use an API by superfrank on Friday March 03, 2023 @07:08PM (#35016705)
Already ahead of you on that one
Re:AI teaches itself to use an API by gigel82 on Friday March 03, 2023 @07:07PM (#35016691)
I'm way ahead of you :)
Re:AI teaches itself to use an API by coffeebeqn on Friday March 03, 2023 @10:04PM (#35017736)
Thank you for your service
Re:AI teaches itself to use an API by raldi on Friday March 03, 2023 @06:47PM (#35016547)
Only if your favorite part of programming is deciphering API docs.
Re:AI teaches itself to use an API by IIAOPSW on Friday March 03, 2023 @07:05PM (#35016678)
That may not be anyone's favorite part, but it seems to be the part that gets you paid.
Re:AI teaches itself to use an API by raldi on Friday March 03, 2023 @07:23PM (#35016814)
I don't know; in the 1970's, writing assembly code was "the part that gets you paid", and then when programs took over that aspect of programming, I'm pretty sure salaries didn't go down.
Re:AI teaches itself to use an API by DrewADesign on Friday March 03, 2023 @07:50PM (#35016992)
I'm not so confident. Places that industrialized during the industrial revolution saw explosive growth as automation yielded unprecedented productivity. Factory jobs paid very well and were readily available because demand was generally high for like a century... but automation and labor passed a tipping point and now we have very few manufacturing jobs and the days of guaranteed high salaries and growth are gone. Rust belt cities are a living proof that industries get to a point where they pursue cheaper ways of making a stable income rather than endlessly innovating and leveraging a skilled workforce. For a lot of people, that situation just plain-old doesn't work out in the end.
Re:AI teaches itself to use an API by raldi on Friday March 03, 2023 @08:15PM (#35017147)
As the need for cog-in-the-machine factory workers declined over the years, the labor force moved to industries like service, construction, transportation, and technology. My understanding is that if you could take a 2023 UPS driver or WalMart employee back in time and give them a day working at a factory in 1930 or 1970, they would eagerly return to the present. And those modern jobs exist today at such great scale in large part due to automation eliminating the old factory jobs (i.e., allowing goods to be produced much more cheaply).
Re:AI teaches itself to use an API by DrewADesign on Friday March 03, 2023 @11:17PM (#35018122)
What you call understanding is assumption. There were retail jobs back then too and a hell of a lot of people worked in those factories. Being able to raise a family in a nice house that you own, drive new cars, and send your kids to college without crimping and retire in your early 60s with a pension is a pretty compelling reason to endure difficult work environments. Meanwhile, in some states, 3% of full-time non-elderly non-disabled Walmart employees need medicaid and food stamps. Again, the amount of poverty and decay in once vibrant rust belt cities are a living argument against the assumption that everybody just sort of figures it out when large swaths of people are rendered obsolete.
Re:AI teaches itself to use an API by raldi on Saturday March 04, 2023 @01:42AM (#35018770)
The data doesn't seem to support what you're saying, e.g., even ignoring the other three and just looking at service-industry jobs, their growth alone made up for the drop in manufacturing jobs many times over:

https://i0.wp.com/www.brookings.edu/wp-content/uploads/2022/...

Also, the definition of a "nice house" in 1950 or 1975 is very, very different from today. In the 70's, a nice house often had one story and a single bathroom, a tiny kitchen with no dishwasher, no dryer, no air conditioning...

As for the poverty rate, I'm not seeing the trend you describe:

https://poverty.ucdavis.edu/sites/main/files/imagecache/ligh...

Re:AI teaches itself to use an API by DrewADesign on Saturday March 04, 2023 @08:54AM (#35020757)
The US population is well over 100 million larger than in the 70s. You can't just erase changes in individual communities by looking only at national statistics. Our national economy profited just fine. Even within those national numbers, jobs that have seen significant growth line food service jobs are worse in measurable ways. The wages are significantly lower, they're less likely to provide basic benefits like health insurance, let alone paid vacation and retirement. One again, my initial assertion is that a whole lot of people don't just figure it out when part of a broad population deemed unnecessary, and the rust belt is obvious evidence of that.
Re:AI teaches itself to use an API by ForestCritter on Friday March 03, 2023 @08:14PM (#35017126)
The reason we have fewer manufacturing jobs isn't because of automation. It's due to moving manufacturing overseas to exploit cheap labor. Also there are still many parts of this country that have factory jobs (I live in one of them, 10 different factories within half an hour drive.) and the majority have minimal automation.
Re:AI teaches itself to use an API by DrewADesign on Friday March 03, 2023 @11:36PM (#35018218)
A) That is the reason? Do you automation played no part in large manufacturers ability to drop their highly skilled artisan workforce needed to perform key tasks? Does that really matter in the context of the conversation, which is that it's pretty naive to assume everything will just work out when workers are rendered obsolete because it's logistically easy and cheaper to get it elsewhere?

B) You could live in the midst of 100 factories and that wouldn't change the decades of well-documented decline in US manufacturing jobs.

Re:AI teaches itself to use an API by ForestCritter on Sunday March 05, 2023 @12:25AM (#35027126)
automation decimated the lesser skilled labor, not the high end workforce. The highly skilled artisans got replaced by the diminishing demand for high end goods over cheap automation goods.
Re:AI teaches itself to use an API by DrewADesign on Sunday March 05, 2023 @12:35AM (#35027158)
>> The highly skilled artisans got replaced by the diminishing demand for high end goods over cheap automation goods.

So... cars aren't as high-end as they were during the malaise years?

Re:AI teaches itself to use an API by ForestCritter on Sunday March 05, 2023 @12:51AM (#35027197)
Re:AI teaches itself to use an API by ForestCritter on Sunday March 05, 2023 @01:15AM (#35027301)
here is another article outlining loss of manufacturing to other countries.

https://www.industryweek.com/leadership/article/22026136/hop...

Re:AI teaches itself to use an API by DrewADesign on Sunday March 05, 2023 @01:57AM (#35027496)
Did you just pull these up from a random google search? I stopped reading the first one once I saw it's bibliography starts at the Church of God newspaper and low-quality wikipedia articles and gets less useful from there. Even though the wikipedia page for the second publication cites no sources and simultaneously claims to have been founded in the 19th century and 1970, it seems more sanely reasoned. However, I don't see how it supports your argument in any way. In fact, the author seems to be just as concerned about automation as I am, which is more than others:

William Strauss, a senior economist at the Federal Reserve Bank of Chicago, stated that “on average, manufacturing output has been growing 3.1% annually over the past 63 years. Automation has enabled U.S. manufacturers to produce significantly more with fewer workers than they did in previous decades. Today, 177 workers can generate as much output as 1,000 plant employees could produce in 1950. Far from a cause for concern, the dramatic loss in manufacturing jobs should be seen as a key metric of success.”

Strauss under-plays the effect on all workers who lose in this game, and he doesn’t even mention what the loss of manufacturing will do to R& D or exports.

I wouldn't call R&D a generally low-skill job loss concern. Beyond that I didn't see anything that addressed your argument. Please enlighten me.

Re:AI teaches itself to use an API by defrost on Friday March 03, 2023 @07:56PM (#35017024)
> during the industrial revolution saw explosive growth as automation yielded unprecedented productivity. Factory jobs paid very well

It's almost like you've never actually read any history at all.

https://www.historycrunch.com/working-conditions-in-the-indu...

https://firstindustrialrevolution.weebly.com/working-and-liv...

https://industrialrevolutiontwo.weebly.com/common-workers.ht...

Re:AI teaches itself to use an API by DrewADesign on Friday March 03, 2023 @08:04PM (#35017073)
As is clear from the rest of my comment, I was talking about the manufacturing industry over time, not talking specifically about the working conditions during the industrial revolution. Feel free to address the central point of what I said rather than make an unrelated pedantic point.
Re:AI teaches itself to use an API by 13of40 on Friday March 03, 2023 @07:07PM (#35016692)
I just tried getting ChatGPT to interact with a command prompt on my machine. It managed to:

1. Create a directory.

2. Put a text file in it.

3. Try to move the file into a nonexistent directory.

4. Based on the error message, create the target directory and do the move again.

5. Verify that the move was successful.

Then it stopped running commands and tried to have a conversation with me.

It's probably only a matter of time before someone tunes it to be HackGPT and points a thousand of them at the internet, so yeah, I guess it's time to start freaking out.

Re:AI teaches itself to use an API by vezycash on Friday March 03, 2023 @07:10PM (#35016720)
How did you do this?
Re:AI teaches itself to use an API by 13of40 on Friday March 03, 2023 @07:13PM (#35016744)
I told it "Here is a shell prompt, try running a command..." then copied its command into the shell, copied the output back into ChatGPT, with the prompt "Here's the output, try another" and so on.
Re:AI teaches itself to use an API by singularity2001 on Saturday March 04, 2023 @03:04AM (#35019149)
I did the same yesterday. don't forget to add the following to the prompt: "for dangerous commands, such as `rm` emit a "danger!" warning.

if such a warning occurs, I insert a confirmation dialogue.

Next: parse and compile the code and language in

```language blocks ```

Re:AI teaches itself to use an API by thornewolf on Friday March 03, 2023 @07:19PM (#35016788)
If you are interested in doing this in an automated fashion, see my GitHub repo. It uses telegram as a frontend for gpt executing code on the backend.

https://github.com/thornewolf/gpt-3-execution

Re:AI teaches itself to use an API by lgas on Friday March 03, 2023 @11:26PM (#35018169)
I haven't tried this with recent versions, but this was great fun early on:

https://github.com/f/awesome-chatgpt-prompts#act-as-an-ai-tr...