Live data from Hacker News

GitHub Copilot

copilot.github.com

661–670 of 1001 posts

Re: GitHub Copilot

#661
post #656

Another way to look at it : if an "AI" can predict what you would code next, it means your program is probably not that innovative, and was already created somewhere.

Most of the code I write is not particularly innovative or novel. I'm just trying to get the job done most of the time.

Re: GitHub Copilot

#662
How is GitHub/OpenAI ensuring this tech doesn’t throw the industry towards a flawed human/tech capability or dystopian of sorts?

Like… a bubble of developing code from yesterday’s code (plenty flawed itself) and with exponential growth based on feedback loops of self-fulfilling prophecy —— I’m assuming copilot (and every openai variant to come) will essentially retrain itself on new code developed,which overtime might all be code it wrote itself.

Did we just create a hamster wheel for the industry, or high-rise elevator?

Re: GitHub Copilot

#663

I can see in their FAQ that there are plans to monetize this. So they're building an ML model that feeds on the work done by millions of people and then selling it? How is this even ethical? Not to mention we'd be feeding the model while using it. Guess this is another instance where we are becoming the product.

If I spent a lot of time reading open source repos on GitHub to teach myself to code, and then went out and got a high-paying job based on that knowledge, is that ethical? This seems roughly analogous to what the machine is doing.

Re: GitHub Copilot

#664

Earlier quoted context omitted.

Pack it all up, boys, programming's over. Hello, AI. Anyone want to hire me to teach your grandma how to use the internet?

Few days back, Sam Altman tweeted this "Prediction: AI will cause the price of work that can happen in front of a computer to decrease much faster than the price of work that happens in the physical world. This is the opposite of what most people (including me) expected, and will have strange effects" And I was like yeah I gotta start preparing for next decade.

Reading this thread it seems to me that AI is a threat for "boilerplate-heavy" programming like website frontends, I can't really imagine pre-singularity AI being able to replace a programmer in the general case.

Helping devs go through "boring", repetitive code faster seems like a good way to increase our productivity and make us more valuable, not less.

Sure, if AI evolves to the point where it reaches human-level coding abilities we're in trouble, but that's the case this is going to revolutionize humanity as a whole (for better or worse), not merely our little niche.

Re: GitHub Copilot

#665
post #662

How is GitHub/OpenAI ensuring this tech doesn’t throw the industry towards a flawed human/tech capability or dystopian of sorts? Like… a bubble of developing code from yesterday’s code (plenty flawed itself) and with exponential growth based on feedback loops of self-fulfilling prophecy —— I’m assuming copilot (and every openai variant to come) will essentially retrain itself on new code developed,which overtime migh…

I do think this turns into a modern stack overflow however. If observing local runtime errors, debugging process, and tidying/fixing code it produces itself. Plus train on all the SO questions out there.

Re: GitHub Copilot

#666
Great, a whole new way to automatically introduce bugs through code duplication.

From the examples:

    body: text=${text}
`text` isn't properly encoded, what if it has a `=`?

    rows, err := db.Query("SELECT category, COUNT(category), AVG(value) FROM tasks GROUP BY category")
        if err != nil {
            return nil, err
        }
        defer rows.Close()
shouldn't we want to cleanly `rows.Close()` even if there was an error?

    float(value)
where `value` is a currency. Doesn't Python have a Decimal class for this?

    create_table :shipping_addresses do |t|
that's an auto-generated table, that one's debatable but for starters a `zip` fields makes it American only. And doesn't the customer have an e-mail address instead of a shipping address?

      var date1InMillis = date1.getTime();
But what about the time-zone offset?

I could go on, but literally the first five examples I looked at are buggy in some way.

Edit:

   const markers: { [language:string]: CommentMarker } = {
      javascript: { start: '//', end: ''},
Wow.

Edit 2:

    function collaborators_map(json: any): Map> {
Not exactly buggy, but 8 lines of tedium.

What about

    new Map(json.map(({name, collaborators}) => [name, new Set(collaborators)]))
instead?

Edit 3:

      const images = document.querySelectorAll('img');
      for (let i = 0; i 
I mean, I get it, it's auto-generate code. Maybe in the future they can narrow it down to auto-generating good code.

    document.querySelectorAll('img:not([alt])').forEach(
(or)

    img:not([alt]) { border: 1px solid red; }
(or)

    eslint-plugin-jsx-a11y because that maybe that img was rendered through react.
(or)

    it should really be an `outline` because we don't want this to reflow the page and we can. And maybe a will-change.

Re: GitHub Copilot

#669

I've been using the alpha for the past 2 weeks, and I'm blown away. Copilot guesses the exact code I want to write about one in ten times, and the rest of the time it suggests something rather good, or completely off. But when it guesses right, it feels like it's reading my mind. It's really like pair programming, even though I'm coding alone. I have a better understanding of my own code, and I tend to give better na…

What is the licensing for code generated in this way? GPT-3 has memorized hundreds of texts verbatim and can be prompted to regurgitate that text. Has this model only been trained on code that doesn't require attribution as part of the license?

Finally, a faster way to spread bugs than copy/paste.

Re: GitHub Copilot

#670

Earlier quoted context omitted.

Few days back, Sam Altman tweeted this "Prediction: AI will cause the price of work that can happen in front of a computer to decrease much faster than the price of work that happens in the physical world. This is the opposite of what most people (including me) expected, and will have strange effects" And I was like yeah I gotta start preparing for next decade.

We went through the same hype cycle with self driving cars. We are now ~15 years out from the DARPA challenges and to date exactly 0 drivers have been replaced by AI. It is certainly impressive to see how much the GPT models have improved. But the devil is in the last 10%. If you can create an AI that writes perfectly functional python code, but that same AI does not know how to upgrade an EC2 instance when the appli…

What is your definition of "replace"? Waymo operates a driverless taxi service in Phoenix. Sign ups are open to the general public. IMO this counts as replacing some drivers as there is less demand for taxi service in the operating area.

https://blog.waymo.com/2020/10/waymo-is-opening-its-fully-dr...

Post reply on HN