Live data from Hacker News

AI teaches itself to use an API

twitter.com

151–160 of 162 posts

Re: AI teaches itself to use an API

#151
post #83
post #46

Earlier quoted context omitted.

I wouldn't say so. The 'Learning by mistakes' step in the demo shows that the AI can work through these issues, presumably this can be done more efficiently than a human.

The learning from mistakes part of the example is – you tried /port_wines but the path is /wines/port instead. But what about if the path is actually /beer and you have to pass a hidden undocumented query parameter called ?wine=1 for it to give you wines. But then the response is still of Beer objects (because that's the only thing the API validator would allow), so you have to map all the Beer fields to their equiva…

The problems you describe are working around problems that humans have created.

If you let the AI both create the API and use it, you can avoid the problems humans create.

Re: AI teaches itself to use an API

#152
post #36

So the AI can learn to use APIs that follow perfect RESTful semantics, are fully documented and intuitively behave exactly like one would expect. Our jobs are safe.

For now. But how about 5 years from now? or 10? or 15? Given what things looked 10 years ago, and what was revolutionary back then (ImageNet challenge) - it's hard to comprehend what state of the art will look like 10 years from now.

Agreed. The network architectures have evolved so much in the past few years alone. Imagine what they can do in just 5 years if they can embed domain-specific knowledge to the current “dumb” statistical word guessers. Ten years is truly unimaginable.

I’m not expecting the singularity within that timeframe nor do I think we need it for lots of disruption in knowledge-based work. Still, I’m leaning towards a near future where these AI tools augment our capabilities more than the alternative where we lose all our jobs.

Re: AI teaches itself to use an API

#153

Earlier quoted context omitted.

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.

A) That is the reason ? Do you think 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 i…

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

#154
post #36

So the AI can learn to use APIs that follow perfect RESTful semantics, are fully documented and intuitively behave exactly like one would expect. Our jobs are safe.

Now if only the AI can write perfectly written API documentation...

Re: AI teaches itself to use an API

#155

Earlier quoted context omitted.

A) That is the reason ? Do you think 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 i…

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.

>> 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

#156

Earlier quoted context omitted.

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.

>> 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?

https://www.industryweek.com/the-economy/trade/article/22024...

Re: AI teaches itself to use an API

#157

Earlier quoted context omitted.

>> 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?

https://www.industryweek.com/the-economy/trade/article/22024...

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

#158

Earlier quoted context omitted.

https://www.industryweek.com/the-economy/trade/article/22024...

here is another article outlining loss of manufacturing to other countries. https://www.industryweek.com/leadership/article/22026136/hop...

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

#159
post #56
post #16

Earlier quoted context omitted.

I don’t see it like that. To me it illustrates that if you have money and want to build something, you don’t need to hire coders or have any coding skills, AI will help. And if you’re a regular coder, you just got replaced by Jarvis.

Software development isn’t just “writing code”. It’s knowing what code to write. It’s knowing how to accomplish a goal using code. It’s knowing how to structure all of your code to work together. It’s knowing how to adapt code to meet new requirements. I don’t foresee rich “idea” guys figuring out how to do that any time soon.

Then again, AI is making unforeseen advances.

Re: AI teaches itself to use an API

#160

Run it against the Win32 API and if you can show me a successful outcome then I'll be impressed.

Considering it's a widely used API, there's probably enough in an LLM's training data for it to not even need much trial and error. I've recently done since Xlib stuff with ChatGPT and it was pretty helpful (and Xlib is __not__ a very nice API). On the other hand, I asked for some trivial examples of Nim macro syntax and it couldn't make something that compiled even after feeding back the compile error messages. If t…

Try giving working examples as input. I’d generally expect better results
Post reply on HN