35 ms·
GitHub Copilot
- throwawayboise 5y agoCan I use it in Emacs?
- lifeisstillgood 5y agoI always bang on about "Software literacy" but I do wonder how i would deal with this if it was suggesting text for me while I was writing - emails, reports, novels. I suspect that for drudgery or work stuff I would happily take some help with typing, but I am not sure (beta access please!) if I would want if for my novel, or my sales copy. I am (optimistically) hoping that my novel has my voice - my unique fingerprint of tone and vocab. And I wonder if my software has similar tone. A much more restricted syntax of course, but my choice to use meta programming here, an API design there. I may be over thinking it.
- StratusBen 5y agoNot to be confused with AWS Copilot - which has been an area of focus for the AWS container services team: https://aws.github.io/copilot-cli/ https://aws.github.io/copilot-cli/
- fabiospampinato 5y agoI'd like to see something like that, but with knowledge about every single file in the codebase, and running locally.
- cobrabyte 5y agoYeah, running locally would be my preference. I get "Antitrust (2001)" vibes from this, but that's the tinfoil hat side of me.
- flohofwoe 5y agoLike this? https://visualstudio.microsoft.com/services/intellicode/ https://visualstudio.microsoft.com/services/intellicode/ I bet it's the same people, trying to push their crap into all sorts of successful products.
- Vinnl 5y agoAs far as I know that also runs remotely. Edit: looks like I remembered incorrectly: https://docs.microsoft.com/en-us/visualstudio/intellicode/overview#telemetry https://docs.microsoft.com/en-us/visualstudio/intellicode/ov... > No user-defined code is sent to Microsoft
- lostintangent 5y agoThe IntelliCode and Copilot teams have been collaborating closely together, since we want them to provide a "better together" experience. However, the underlying tech isn't the same. Copilot is powered by OpenAI Codex, and enables rich code synthesis via a cloud service. Whereas IntelliCode uses multiple local models, to enhance various parts of the editor (e.g. prioritizing the completion list based on your context, detecting "repeated edits" and suggesting additional refactorings).
- Aperocky 5y agoLike an IDE?
- fabiospampinato 5y agoYeah but smart.
- adelarsq 5y agoThere is Tabnine that can work like this
- fabiospampinato 5y agoLast time I tried Tabnine it wasn't really of much use to me, the top of the line GPT-3 is a much much bigger model, it should be able to do much more intelligent things.
- ranguna 5y agoBut gpt 3 won't run locally, so no thank you.
- joshmarlow 5y agoI suppose this is a whole new argument in favor of good code commenting - to train/share context with your future tooling.
- leventov 5y agoThis is really the same argument as it used to be: help intelligences (used to be only human, now artificial) to find bugs by matching text with code.
- fabiospampinato 5y agoIMO a potentially more interesting application of this technology would be a learning system that is able to learn your coding style. You give it access to the codebase and it reformats all files on save according to your likings, perfectly. Obviously a program that is able to write actual great code reliably would be spectacular, but we aren't there yet, I don't think Copilot presently is able to make me meaningfully more productive.
- 101011 5y agoDon't most IDEs handle this already?
- fabiospampinato 5y agoThere are no tools that can format my code with my coding style AFAIK. There are multiple tool that can format my code with their coding style though, which I don't care about.
- dawnerd 5y agoMost? All? Allow you to edit the config to get it to your coding style but it would be cool to infer it from files you’ve already written.
- fabiospampinato 5y agoThere aren't enough knobs to turn to get exactly what you want, I have a 500+ lines file full of linter rules configurations and that's still not good enough. At the end of the day I think it boils down to this simple fact: you can't imperatively codify what makes the face of a person beautiful for you because that's too complicated, similarly you can't codify what makes for beautiful code to your eyes, it's something that must be learned from examples.
- kleiba 5y agoFormatting code according to a given style is a much easier task than what Copilot does.
- cfcf14 5y agoFrom Clippy to this technology, in just under 25 years! Very impressive. I wonder how much impact this tool might have as a teaching aid, as well?
- deleted 5y ago[deleted]
- mdellavo 5y agoShould I be impressed that the example parse_expenses.py on the home page doesnt include any error handling and uses a float for currency? This seems like it's going to revolutionize copy and paste programming.
- arrayjumper 5y agoIt's a copilot. You're still the pilot. To be honest this seems like it can definitely save me a bunch of googling and let me stay in the ide.
- mdellavo 5y agoin their own example the copilot aimed for the mountains with float() - thanks but no thanks
- rglover 5y agoTell that to the new programmer who builds a piece of software using this creating an absolute mess. The danger here isn't with experienced developers (this is, obviously, a tool with great potential for productivity). It's with people who just blindly trust what the robot spits out. Once code like that is implemented in a mission-critical system without discernment, all hell will break loose. Edit: worth watching this for context https://www.youtube.com/watch?v=ZSRHeXYDLko https://www.youtube.com/watch?v=ZSRHeXYDLko
- sergiomattei 5y agoSo? If you're making a mission critical system, don't hire subpar developers. It's not Copilot's problem. Powerful tools can be misused by anyone.
- rglover 5y agoTell that to the HR departments responsible for hiring developers at major companies. Not hiring subpar developers, especially in a massive company isn't a matter of "if" but "when." And it only takes one screw up to crash an airplane because of software. And guess who massive companies trust for their technology? Microsoft.
- beeskneecaps 5y agoFour years later: your AI replacement? When do you all predict something like this will happen?
- joelbluminator 5y agoMaybe thirty four years later. I don't think there's AI to gather requirements, talk to people, understand a problem and produce code. That's kinda general intelligence level AI. But this thing can possibly make devs work easier and if it's good enough maybe smaller teams can produce more.
- sitkack 5y agoThis will allow for a D or C level coder to be a B/B- coder which is great, quality goes up. But corps will use this to depress wages and finally be able to create that wonderous unicorn of completely fungible coder. This kind of tooling is akin to the crossbow. It will allow for less skilled folks to push out code that is like other code at great speed. A copy pasta accelerator if you will.
- yellowfish 5y agoIs that a bad thing? sw-developers are grossly overpaid to the point it's damaging
- Sholmesy 5y agoGrossly overpaid for effort/comparison to other wages/industries. Adequately paid for value captured (hence why companies are willing to pay for them at this rate). Not a moral statement, but this gives more tools to those in power.
- xeromal 5y agoI tend to think like you. Somehow we convinced businesses that a mostly-blue collar job gets paid white collar salary but I've been told that SW-engineers aren't overpaid. Most people are just very underpaid. What are your thoughts on that? I can lean that way just because I have a genius mechanical engineer friend who only makes 60k in his 30s.
- deleted 5y ago[deleted]
- nhumrich 5y agoI would love to see an equivalent where it generates all the tests for you
- fabiospampinato 5y agoIt should be able to (try to) do something like that too. There's a little demo about that here: https://copilot.github.com/ https://copilot.github.com/ It's "just" an autocompletion system basically, if you write something that looks like the beginning of a test it should understand that and try to autocomplete that.
- LeifCarrotson 5y agoI'd say it's more than 'just' an autocomplete system. Naive autocomplete, as implemented in Excel since forever ago (and I'm sure long before that, I'm just familiar with being annoyed by Excel suggesting wrong entries from its simple and over-eager autocomplete system), merely matches a sequence of characters - if I typed "aut" again in this paragraph it will suggest "autocomplete" because I recently typed it. Implementing it is the kind of task you give to a first-year programming student to practice string matching data structures, similar to a spell checker that merely checks that a string exists in a dictionary. There's a spectrum from 'just' autocomplete, to a syntax-aware system like VS Intellicode, to this, and eventually beyond this. As mobile predictive text is to a spell checker, so Github Copilot is to autocomplete. As mobile predictive text is to GPT3 [1], so Github Copilot is to...what next? GPT3 is not just a spell checker. [1] Also by OpenAI: https://news.ycombinator.com/item?id=23345379 https://news.ycombinator.com/item?id=23345379
- fabiospampinato 5y agoI agree, that's why I put the "just" under quotes. It is basically an autocompletion system, just much smarter than human-coded ones in many ways.
- duckkg5 5y agoIt does!
- Deathmax 5y agoGitHub says you don't need to credit GitHub for any of the code suggestions, but since it's trained on public sources of code, anyone have a clue on potential licensing pitfalls?
- 6gvONxR4sf7o 5y ago(not a lawyer) Copyright issues tend to involve the question of how transformative a work is. This means the code coming out the other end is probably fine. I don't know about the training side, though. Are there license issues in using copyrighted training data without any form of licensing? Typically ML researchers have a pretty free-for-all attitude towards 'if I can find data, I can train models on it.'
- vgalin 5y agoFrom the FAQ at the bottom of the project showcase page[0]: "GitHub Copilot is a code synthesizer, not a search engine: the vast majority of the code that it suggests is uniquely generated and has never been seen before. We found that about 0.1% of the time, the suggestion may contain some snippets that are verbatim from the training set. Here is an in-depth study[1] on the model’s behavior. Many of these cases happen when you don’t provide sufficient context (in particular, when editing an empty file), or when there is a common, perhaps even universal, solution to the problem. We are building an origin tracker to help detect the rare instances of code that is repeated from the training set, to help you make good real-time decisions about GitHub Copilot’s suggestions." [0] https://copilot.github.com/ https://copilot.github.com/ [1] https://github.co/copilot-research-recitation https://github.co/copilot-research-recitation
- iamevn 5y ago(not a lawyer) my interpretation of GPLv2 is that at the very least the model would be licensed under GPL if it was trained on GPL code. The model is a derivative work. Whether the generated code coming out of the model is GPL is trickier. I would lean towards yes but I'm not entirely sure. I think talking about exact text matches to existing code is a red herring. If you took GPL code and ran it through an obfuscator that changed every byte of the code to new code, that resulting code would be derivative and would need to be licensed under GPL too. Thank you Microsoft for ushering in a new era of free software.
- JCBird1012 5y agoIt's funny that GitHub ships their own text editor, Atom, but the second example (under the "More than Autocomplete" header) on the Copilot website is clearly using VSCode.
- Aperocky 5y agonow they just need to build this into vim.
- jon-wood 5y agoI don't know if they've officially said anything on this, but since the MS acquisition it feels like Atom is on life support. Github Codespaces is built on VSCode, and there's a lot of effort from Github going into their VSCode extension for things like PR review.
- colesantiago 5y agoGigantic caveat. > I agree to these additional telemetry terms as part of the technical preview
- kleiba 5y ago"You have zero privacy anyway. Get over it." Scott McNealy, CEO Sun Microsystems, 1999
- deleted 5y ago[deleted]
- colesantiago 5y agoThen, I should see absolutely zero complaints about privacy, tracking, spying, google analytics and facebook tracking. Perhaps we should ask Scott if he is willing to share his browsing history, his personal photos and his passwords with the rest of us or maybe if I can come into his house? After all, "You have zero privacy anyway"
- reilly3000 5y agoRight. If you’re comfortable giving access to your source files to GitHub+OpenAI, then go for it. I’m not sure how this would apply to secret keys or flat files with customer data/PII, but in any case that makes it a non-starter for me. Their “Please do not share this URL publicly.” Banner at the top of the page which disclosed this info makes my skin crawl a bit… If I were only working on public projects I would be on board right away, it looks like a big time saver. Am I being to paranoid here?
- ranguna 5y agoNo, you are not being paranoid. This tool literally uploads all the code it wants off your machine, and I see no way of filtering out secrets and the likes. You have all the rights to be worried about that.
- rvz 5y ago> Am I being to paranoid here? No. They already admitted that they send telemetry of the code you give it and its training set already has personal information in it anyway, despite what is being hyped up here by the fanatics, even when someone said that 'Copilot guesses the exact code I want to write about one in ten times' [0] No thanks and certainly no deal. [0] https://news.ycombinator.com/item?id=27676845 https://news.ycombinator.com/item?id=27676845
- iwintermute 5y agoSo if it was trained using "source code from publicly available sources, including code in public repositories on GitHub." was it also GPLv2? So everything generated also GPLv2?
- andrewstuart2 5y agoYou bring up a really good point. I'm super curious what the legality and ethics around training machines on licensed or even proprietary code would be. IIRC there are implications around code you can build if you've seen proprietary code (I remember an article from HN about how bash had to be written by someone who hadn't seen the unix shell code or something like that). How would we classify that legally when it comes to training and generating code? Would you argue the machine is just picking up best practices and patterns, or would you say it has gained specifically-licensed or proprietary knowledge?
- Iv 5y agoI would argue that a trained model falls under the legal category of "compilation of facts". More generally, keep in mind that the legal world, despite an apparent focus on definition is very bad at dealing with novelty, and most of it will end up justifying a posteriori existing practices.
- einpoklum 5y agoYou might argue that, but you would likely be wrong. Even a search engine is not merely a "compilation of facts". A trained model is the result of analysis and reasoning, albeit automated.
- jjcm 5y agoA search engine provides snippets of other data. You can point explicitly to where it got that text from. A trained model generates its own new data, from influence of millions of different sources. It's entirely different.
- 5y ago
- adelarsq 5y agoTabnine, It's you?
- deleted 5y ago[deleted]
- adamnemecek 5y agoIs anyone here actually using this?
- McGlockenshire 5y agoWell, it's a brand new product, so ... no?
- adamnemecek 5y agoI imagine there was a private beta.
- ranguna 5y agoAccording to the comments here, people have been using this for a couple of weeks now.
- the_laka 5y agoI wonder if this can work with any editor out of the box, or it's just going to be VS Code.
- av_conk 5y agoFrom the FAQ: "Not yet. For now, we’re focused on delivering the best experience in Visual Studio Code only." I do hope they feature others at a later date, especially since they are planning to develop a commercial version.
- patwolf 5y agoI wonder if there's any potential for Copilot to suggest malicious code because it's been trained on an open source projects containing intentionally malicious code.
- napolux 5y agoor broken code :D
- akersten 5y agoMaybe not malicious per se, but certainly I'd be concerned about seemingly-correct but actually-wrong code being suggested. Considering how often the top StackOverflow answer is slightly wrong or how often antipatterns crop up across various projects, I'm sure the training data is nowhere near "perfect code" - implying the output cannot be perfect either.
- dgb23 5y agoSince it is per line I highly doubt it. I think of it as intellisense+. You select suggestions that you would have written anyway.
- hprotagonist 5y agoThe IP implications of how network weights depend on their data sources is, shall we say, a matter of ongoing legal discussion. We genuinely don’t know what it means for licenses or whatnot right now.
- fzaninotto 5y agoI'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 names and descriptions to my methods. I write better code, documentation, and tests. Copilot has made me a better programmer. No kidding. This is a huge achievement. Kudos to the GitHub Copilot team!
- arcturus17 5y ago> and the rest of the time it suggests something rather good, or completely off In what, proportion roughly?
- fzaninotto 5y agoHard to say, really. When writing React components, Jest tests and documentation, it's often not very far. I found it off when writing HTML markup (which is hard to describe with words).
- handrous 5y agoSeems like it's best classed (for now) as an automated tool to generate and apply all the boilerplate snippets I would be creating & using manually, if I weren't too lazy, and/or too often switching between projects, to set all those up and remember how to use them (and that they exist).
- fabiospampinato 5y agoHow big/complicated are the functions Copilot is autocompleting for you? I'm thinking perhaps reading 10 potential candidates is actually slower and less instructive than trying to write the thing yourself.
- fzaninotto 5y ago
- frakt0x90 5y agoSo now I make a bot to upload repositories of intentionally buggy code so that when people blindly use this autocomplete my hacking becomes easier!
- ranguna 5y agoAwh man, brilliant idea!
- david-cako 5y agoand away we go to singularity.
- account_created 5y agoIf you are interested to read[1] more about it. [1] https://docs.github.com/en/early-access/github/copilot/research-recitation https://docs.github.com/en/early-access/github/copilot/resea...
- arcturus17 5y agoHow does this compare to TabNine or Kite?
- drummer 5y agoSo this is basically fully automated Stackoverflow assisted programming? Excellent.
- CityOfThrowaway 5y agoThis is very impressive! OpenAI’s tech opens an ethical Pandora’s box: 1. It’s clear that the raw inputs to all of OpenAI’s outputs originated with real, human creativity. 2. So, in a sense, OpenAI is laundering creativity. It reads in creative works, does complicated (and, yes, groundbreaking) transformations, and produces an output that is hard to trace to any particular source. 3. Yet, isn’t that effectively what human brains do too? Perhaps OpenAI lacks the capacity for true invention, but I’d argue that most people live their whole lives without a meaningful creative contribution as well. All told, I don’t have a good framework for thinking about the ethics here. So instead, I’ll simply say: Wow.
- fulafel 5y agoWhat are some ethical problems that could emerge from the box? Maybe unfair competition from having very good tools compared to other programmers, or havin irresponsibly shallow understanding of what the produced code does?
- Ensorceled 5y ago> What are some ethical problems that could emerge from the box? Being put out of job by an AI trained on your own code? It's really the same ethical problem of all automation ... and will be as long as we need a job to fulfill basic needs like food, housing and medical care.
- fulafel 5y agoI wonder if HLL compiler authors had fears about this back when writing assembly and machine code was the norm. But good point about the ambivalent result of eliminating busywork. Food, housing and medical care is available in most western countries for people who choose to not get a job... I think the social status problem and guilt of freeriding are also big factors preventing prople from living more leisurely lives in these countries.
- shadowgovt 5y agoEveryone gets into programming for their own reasons. But to my personal philosophy: if I'm not coding to put myself out of a job, I'm thinking about the problem wrong. When there are no more lines of code to be written, I shall do something else, content that I have done my part to free humanity from the burden of human-machine interfacing. I hear dairy farming is a demanding and rewarding challenge.
- natfriedman 5y agoHi HN, we've been building GitHub Copilot together with the incredibly talented team at OpenAI for the last year, and we're so excited to be able to show it off today. Hundreds of developers are using it every day internally, and the most common reaction has been the head exploding emoji. If the technical preview goes well, we'll plan to scale this up as a paid product at some point in the future.
- fay59 5y agoHave there yet been reports of the AI writing code that has security bugs? Is that something folks are on the lookout for?
- natfriedman 5y agoI haven't seen any reports of this, but it's certainly something we want to guard against: https://copilot.github.com/#faq-can-github-copilot-introduce-insecure-code-in-its-suggestions https://copilot.github.com/#faq-can-github-copilot-introduce...
- peterburkimsher 5y agoHas there been an attempt to train a similar ML model on a smaller dataset of standards-compliant code? e.g. MISRA C. I started working at a healthcare company earlier this year, and my whole approach to software has needed to change. It's not about implementing features any more - every change to our embedded code requires significant unit testing, code review, and V&V. Having a standards-compliant Copilot would be wonderful. If it could catch some of my mistakes before I embarrass myself to code-reviewing colleagues, the codebase would be better off for it and I'd be less discouraged to hear those corrections from a machine than a person.
- enriquto 5y ago> Hundreds of developers are using it every day internally, and the most common reaction has been the head exploding emoji Apart from developing this "head exploding" stuff, couldn't some of these incredibly talented hundreds of developers fix the github code search?
- kp302 5y agoSounds like a big distraction.
- RosanaAnaDana 5y agoWhy are the green ones always angry?
- ezekg 5y agoAnonymity can breed honesty, I guess.
- xeromal 5y agohaha, you asked a question that I've always wondered.
- elteto 5y agoThey haven’t ripened yet.
- dang 5y agoI suppose you know this, but green means the account is new (https://news.ycombinator.com/newsfaq.html https://news.ycombinator.com/newsfaq.html). Angry people sometimes create new accounts to vent. That's not a good use of HN, but let's not respond as if there's something wrong with new users coming to the community. We don't want this place to become insular and brackish. New users are the community's freshwater!
- RosanaAnaDana 5y agoThis is a great point. Do names turn from green to grey based on karma or time?
- dang 5y agoTime alone.
- minimaxir 5y agoSo this is what happens when you're owned by Microsoft who has an exclusive contract with OpenAI. A couple weeks ago I ran a few experiments with AI-based code generation (https://news.ycombinator.com/item?id=27621114 https://news.ycombinator.com/item?id=27621114 ) from a GPT model more suitable for code generation: it sounds like this new "Codex" model is something similar. If anyone from GitHub is reading this, please give me access to the Alpha so I can see what happens when I give it a should_terminate() function. :P
- jboggan 5y agoI saw that post, neat stuff. We made an attempt to develop something similar 4 years ago and take it to YC, it simply wasn't good enough often enough because our training data (Stack Overflow posts) was garbage and models were weaker back then. I figured it would take about 5 years for it to really be useful given the technology trajectory, and here we are. I'll note that we weren't trying to build "code auto-complete" but instead a automated "rubber duck debugger" which would function enough like another contextually-ignorant but intelligent programmer that you could explain your issues to and illuminate the solution yourself. But we did a poor job of cleaning the data and we found that English questions started returning Python code blocks, sometimes contextually relevant. It was neat. This GitHub/OpenAI project is neater. I would be curious what the cost of developing and running this model is though.
- deleted 5y ago[deleted]
- NmAmDa 5y agoSeems interesting, but did they train their models on the open source projects available on github?
- smasher164 5y agoI wonder how much of this is OpenAI-based vs program synthesis techniques.
- shmageggy 5y agoIn the FAQ they state that it sometimes outputs non-running or even malformed code, so it looks like fairly pure language modeling with little to no program synthesis.
- drcode 5y agoWe could get away with more user-friendly programming languages over the years because Moore's law kept giving us more opportunities to sacrifice raw performance for more developer-friendly tools. But I'm worried these kinds of AI-assist tools will lead to "code spam" that may increase developer productivity even more, yet we no longer have Moore's law to absorb the additional inefficiency in performance these tools may introduce.
- theden 5y agoCalling it now, there will be a "Copilot considered harmful" post. If you need to go through the suggested code to ensure it's correct, you may as well write it yourself? If you glance at it and it looks about right, you can potentially overlook bugs or edge cases, you'll lose confidence in your own code since you didn't properly conceptualise it yourself. Potentially for newer developers it robs them of active experience of writing code. Much like learning an instrument, improvisation, or say physics, a lot of people learn by doing it, even if it's grunt work. IMO this is necessary for any professional. Maybe it will be seen as a crutch, maybe I'm getting old? I have tons of code snippets, but it's usually stuff I've written and understood and battle tested, even if it was initially sourced from SO. Having it in the text editor and appear out of nowhere with no context seems like it'd need some adjustment in apprehension. Edit: I should have been clear, I'm not against others using Copilot and will try it out myself. I can see it being useful in replacing one-line libs like in nodejs, i.e., copying a useful well-known and needed snippet vs installing yet another lib that could be a sec issue. Also the industry is the real gatekeeper—we have tools that don't require us to repeat prior-art, yet have to go through hurdles of leetcode-style interviews for a job. Maybe in the future the hardest part of being a (AI-driven) developer will be getting a job?
- j2kun 5y agoI imagine, for a while the complexity that Copilot can handle is limited to what most people would pull from stackexchange anyway. And if it helps autocomplete documentation and provide automatically generated (more descriptive) function/variable names, it will probably be a net positive for those limited use cases. That said, I can't wait to read the first postmortem where someone deployed code generated via Copilot that has a bug. I just hope it's not on a rocketship or missile guidance system.
- aerovistae 5y ago> Potentially for newer developers it robs them of active experience of writing code. And for those with experience, this will be obvious when reviewing their code. There's only two possibilities -- either copilot will get so good that it won't matter, or code written by copilot will have obvious tells and when someone is over-relying on it to cover up for a lack of knowledge, that will be very clear from repetition of the same sorts of mistakes.
- orliesaurus 5y agoI remember another company called Kite [1], working on a similar approach - smart autocompletion - this however uses GPT-3 so it's a bit different I guess because it doesn't detect what you're trying to do but rather transforms technical natural language into code. Right? [1] https://www.kite.com https://www.kite.com
- dgb23 5y agoGithub sources suggestions from OS projects. There have been AI completion tools that upload your code, basically spyware. Definitely check thoroughly if that’s the case!
- tsumnia 5y agoI wonder how Copilot's suggested snippet compares if the comment is a CS1 homework prompt.
- deleted 5y ago[deleted]
- bravogamma 5y agoGenerating new code is not very hard for humans. But maintaining, extending, debugging code - often that’s where the real challenges are. Will the AI copilot be able to fix bugs in its code based on bug reports?
- Geee 5y agoI've been using TabNine[0] for a few years, which is great. How does this compare? [0] https://www.tabnine.com https://www.tabnine.com
- f38zf5vdt 5y agoThis could be the kind of thing easy to train and run locally on a GPU. - You only need code relevant to your language. - The amount of unique code in your language is going to be relatively small in compared to say, the entire history of internet comment. - Training a model also shouldn't take long. I personally would never use an online version feeding all my code back to a home server somewhere, and leaving breadcrumbs that might suggest I'm violating the GPL.
- ranguna 5y agoTabnine already does this locally, but I didn't have that good of an experience.
- mtnGoat 5y agoWhat a cool project, I’m impressed. Looking forward to checking it out.
- ohnoesjmr 5y agoGreat. Now, how about you use that to implement a non-horrible search experience?
- cqaz 5y agoThis is hardly grounds for celebration. Another step in Microsoft's efforts to drive down programmer salaries by expanding the work force. Also, this tool will enable more cheap LOC churn for those gaming performance reviews (not that this is currently difficult, but it will be even easier).
- f38zf5vdt 5y agoIt will absolutely transform undergraduate education in computer science, or rather, the breadth of the workload. <:)
- jarym 5y agoWow. Please make this for Rust :D What this really displaces is StackOverflow (or some of its users...)
- ffggvv 5y agowow surprised not one comment that’s scared of this being the step to automate away our jobs. maybe sooner than we think?
- acid__ 5y agoIt’s one step closer, but still a good ways away. - you still need to understand the code that copilot is writing, it just turns it from a recall/synthesis problem into a recognition problem - most of the work above the level of a junior engineer isn’t about writing the actual code, it’s the systems design, architecture, communicating with external stakeholders, addressing edge cases, tech debt management, etc.
- mikewarot 5y agoI've signed up to be a Guinea Pig, I've never pair programmed, and my primary language is Pascal, and I'm old... this ought to be a hoot.
- Iv 5y agoIs it only available for Visual Code?
- rvz 5y agoYes. Obviously.
- clement_b 5y agoThis will have the same deep impact Stack Overflow has had on code for the past decade. Good and bad!
- hiram112 5y agoI wonder if CoPilot uses Github's private repositories to train itself, which would allow malicious users to somehow obtain code or designs that they otherwise would not be able to view.
- onion2k 5y agoGitHub Copilot may suggest old or deprecated uses of libraries and languages This raises two questions. - is there a way (right now or planned for the future) for library maintainers to mark suggestions to be removed from the suggestions? I can foresee Copilot being used as a source of 'truth' among less experienced developers, and getting people turning up in the Issues or Discord asking why the suggestion doesn't work might be a bit jarring if the maintainers have to argue that "Github was wrong." - if a library is hosted on Github is there a way to mark some examples as Copilot training data? Maybe by having a 'gh-copilot' branch in the repo that represents high quality, known-good examples of usage?
- mcintyre1994 5y agoI'd be pretty worried about this based on how many times an SO question has new better answers months/years later. I find that platform self-corrects reasonably well, with the newer better answer ending up at the top, but no idea how that'd happen here.
- tomaskafka 5y ago> I find that platform self-corrects reasonably well, with the newer better answer ending up at the top, but no idea how that'd happen here. I don't. Very often I run into an outdated accepted response with much better and more recent replies below it.
- darepublic 5y agoI knew this day was coming but it still stings. What I'm interested in is making copilot the main pilot.. i.e. for web development, why not just let this thing go on its own and have a separate module that attempts to compile the code + observe the differences in a web page functionality? No longer so crazy to say that shit like that is on the horizon. Then the middle managers can have their dream come true, they are the true benefactors! They can 'code' with copilot, and just endlessly iterate with it while figuring out what they want until they get a result they're happy with.
- sqs 5y agoAI to write code is cool, but you know what’d be even cooler? AI for maintaining, upgrading, improving, and fixing code. After all, devs spend 80%+ of their time doing those things and they’re WAY more painful than writing code imo.
- booleandilemma 5y agoPlease, replace me faster :)
- ranguna 5y agoSnyk code is trying to do something similar. It basically uploads your code and compares it to knows vulnerability patterns, it also gives you examples on how to fix those vulnerabilities based on open source project's pull requests.
- deleted 5y ago[deleted]
- auggierose 5y agoWhat could go wrong? Expecting software to become even shittier.
- WhompingWindows 5y agoI'm primarily an R and SQL user, excited to try this out on some fun data analyses. How did you construct the Copilot? Did you use a learning approach based on data from actual pair-programming sessions? Or did you take tons of code as your input and use that to suggest next methods based on input code? I learned a ton whenever I pair programmed, but now I'm at a small company so I'm looking for fun ways to learn new methods :)
- jms55 5y agoSo the AI doesn't actually understand the code does it? It only looks for similar things. So if I'm writing a game in Rust using the hecs ECS library, how is it going to help me? How many other people have written a game in that language using that library in this genre trying to do this task before? Probably very very few. And yeah that's a niche example, maybe this is super helpful for writing a react app or something very library heavy. But gut feeling without trying it is that there's no way this could actually work on anything but the most common tasks that you can google and find solutions for already, just made easier so you don't actually have to google for it. When I used tabnine which learned from you as you edit, it was fairly helpful for very repetitive code within the same project. But it was no where near "read english and write the code I meant for it". I'm curious to know how well this actually performs for non-common tasks, and whether it can understand ideas in your codebase that you come up with. If I make a WorldAbstractionOverEntities thing in my code, and then later use it in the project, will the AI be able to help me out? Or is it going to go "sorry, no one on github has used this thing you came up with an hour ago, I can't help you". An AI that could understand your own codebase and the abstractions you make and not just popular libraries would be infinitely more useful imo. That said, I haven't tried this, maybe it'll turn out really good.
- sktrdie 5y ago> how is it going to help me? How many other people have written a game in that language using that library in this genre trying to do this task before? Because you write code using a bunch of patterns: iterating over data, destructing an object, calling functions etc. If you can generalize the usage of these patterns in such a way that it understands the context where you want to use them you're essentially doing this Copilot thing. I agree that it'll be hard to have it understand fully the context and paradigms behind your existing project, but if it can help me automate some things in such a way that I can just let it run its thing and than have me "poke around it to get it right" then this is still amazing.
- YeGoblynQueenne 5y agoI have no idea how well Copilot will work in practice, but, in principle, imagine a huge Cartesian space where every program in Copilot's training data is a point. Call this space S. Now suppose S contains two programs P1 and P2. Copilot should be able to represent P1, P2 and any program in S that is on a gradient between P1 and P2. If you want to write a new program, P3, such that P3 is in S between P1 and P2, then you're in luck. Otherwise you'll get garbage. This is explained in more detail in the article below; see the first section titled "Deep Learning: the geometric view": https://blog.keras.io/the-limitations-of-deep-learning.html https://blog.keras.io/the-limitations-of-deep-learning.html In other words, Copilot should work well for boilerplate code and allow for many variations, but for anything more original it should be hit-and-miss. In principle. In practice, we'll know in a year or two, once enough people have used it. Or not even then.
- deleted 5y ago[deleted]
- hit8run 5y agoI tried the paid version of tabnine and was really unhappy because it suggested me code with syntax errors and introduced subtle bugs when I did not closely review every generated line. It was as if you have someone very impatient sitting next to you typing before actually really listening what you want to do. Is Copilot better? Does it suggest broken code, too?
- ranguna 5y agoAccording to some of the comments here: yes, yes it does. One do the snippets on the front page has a bug, don't remember which, but that was written by someone here.
- Buttons840 5y agoI want to try and make it generate a UUID and then see if I can find the original source.
- fxtentacle 5y ago"In order to generate suggestions, GitHub Copilot transmits part of the file you are editing to the service." Well, isn't GitHub part of Microsoft now? No wonder it has gained telemetry... I'm a bit worried that this thing will lead to even more bugs like the typical StackOverflow copy&paste which compiles fine, runs OK, but completely doesn't understand the context and thereby introduces subtle difficult to find issues. My personal take on autocomplete has always been that I only use it so that I can use longAndDescriptiveFunctionNames. Apart from that, if your source code is so verbose that you wish you didn't have to type all of it, something else probably already went wrong.
- canada_dry 5y agoI'm assuming that - by design - it has a feed-back-loop that allows it to tweak, learn and improve itself by feeding back the choices people make vs its own recommendations.
- stared 5y agoFor a second I got afraid that it is Copilot by Kite, with their infamous history (https://news.ycombinator.com/item?id=19018037 https://news.ycombinator.com/item?id=19018037).
- Sr_developer 5y agoSince most of the code written anywhere is crap (the tool was trained with "millions" of lines of code) I suspect it will repeat all the same anti-patterns,bad-structured,ill-thought code which fills Github.
- bluefox 5y agoI don't understand fascination with bullshit machines. While they may be useful in propaganda, state or commercial, I'm not sure why Microsoft GitHub would find it useful to generate volumes of bullshit source code.
- 6gvONxR4sf7o 5y agoPlenty of discussion about the IP issues. It makes me want to start adding a section in my LICENSE.txt that says it's not eligible for use training commercial models. We'll likely end up with a whole set of license choices for that. Although if a license can permit or prohibit use in training commercial models, does that mean that the lack of permission implies a prohibition on it?
- celeritascelery 5y agoMy guess is that there is something in the GitHub terms of service that says you consent to this by using them to host your code.
- toastal 5y agoGood thing there are many other platforms we can move to. And most of them are open source unlike GitHub.
- a-r-t 5y agoOne of the examples they provide on copilot.github.com shows a unit test for strip_suffix function. It does not test for a file name without a suffix, which the function would fail (it removes the last character instead): def strip_suffix(filename): """ Removes the suffix from a filename """ return filename[:filename.rfind('.')] import unittest def test_strip_suffix(): """ Tests for the strip_suffix function """ assert strip_suffix('notes.txt') == 'notes' assert strip_suffix('notes.txt.gz') == 'notes.txt'
- zild3d 5y agoGreat, you got 2 assertions for free, which lowers some friction of writing tests. You should still be thinking and be "the pilot". When you start writing additional test cases, it will help you out with those too
- Fragoel2 5y agoHaving to read, understand and spot errors in auto-generated code is not free.
- astrobe_ 5y agoOne should keep in mind that it is just "copy-paste" on steroids (ok, maybe a gallon of steroids), but users should be cautious about the false sense of irresponsibility. Because just like when they copy-paste the top answer on SO, at the end of the day they are responsible for the code they ship.
- shadowgovt 5y agoBrilliant. I remember over a decade ago seeing a grad student project with a very straightforward and very clever idea: extending JavaDocs based on code snippets of actual use (to address the common pattern problem in Java code that you often get an instance of an object not by direct construction, but by calling a factory function or singleton getter somewhere). Kicking myself that I didn't see this day coming.
- emsy 5y agoWe already do this with libraries and frameworks in a more primitive way. The hard work is actually done by a hand full of programmers, everyone else is sticking pipes together. I don't think that's a bad thing per se, but in my experience most people don't make the distinction. You're not going to be able to write your own database server with this tool if you weren't able to do so without it. If you're one of the few programmers that are able to build a database, a graphics engine, a compiler etc. you're fine. Everyone else should probably feel a mild panic. You'll be automated away in a couple of AI generations.
- asdfman123 5y agoIs there really that much of a difference between a programmer building a database and one building something mundane? Obviously, there's some core algorithmic work that needs to occur, but that's always been done by a very small number of people anyway. The rest is still glueing.
- freedomben 5y agoAs a programmer who specializes in security, I worry that many of the common errors that people make will get picked up the AI and recommended to new users. It looks like it gets reinforcement from the code that the user selects. In my experience the majority of developers make security errors, so how is the algorithm going to learn not to do it the wrong way when it's learning from bad code and getting reinforced by developers who are wrong? (This is an honest question, not a criticism. I think this product is fascinating)
- asdfman123 5y agoMost programmers are pretty careless and just get something to "work." Maybe the first generation of this sort of completion will be bad, but I have full faith it will be better than the average human at avoiding security issues as early as the next generation.
- bruce343434 5y agofaith based on what? So far in my experience AI projects tend to peter out.
- schmorptron 5y agoWow, that's incredible! Any chance we'll get a downloadable and editable open source version of this so we can play around with it, train it on smaller own datasets and generally experiment? It sounds super exciting!
- throwawake 5y agoDid you miss OpenAI part /s As FAQ mentions, They are planning to launch a commercial product so likely not I guess.
- ericls 5y agoIf you compile English to Python why not just compile it to even lower level?
- YeGoblynQueenne 5y agoFrom the FAQ: https://copilot.github.com/#faqs https://copilot.github.com/#faqs >> How does GitHub Copilot work? >> OpenAI Codex was trained on publicly available source code and natural language, so it understands both programming and human languages. I want to propose a new Bingo style game where you get points when AI researchers (or rather their marketing teams) throw around big words that nobody understands, like, er "understands" with abandon. But I can't be bothered. An AI researcher called Drew McDermot warned against this kind of thing in a paper titled "AI meets natural stupidity": http://www.cs.yorku.ca/~jarek/courses/ai/F11/naturalstupidity.pdf http://www.cs.yorku.ca/~jarek/courses/ai/F11/naturalstupidit... In 1976. Why doesn't anybody ever learn from the mistakes of the past?
- pnt12 5y agoIn AI research lingo "understands" really means "makes decent correlations".
- YeGoblynQueenne 5y agoPlease provide a reference for this explanation.
- YeGoblynQueenne 5y agoNo, I'm serious about this: according to whom?
- hsuduebc2 5y agoOk, I'm afraid I must become some kind of neoluddite or I'm going to starve to death in next twenty years.
- kaimorid 5y agohello
- sreeramb93 5y agoThis is where microsoft's billion dollars went in OpenAI. Clever
- dgb23 5y agoThe utility and quality of this will likely depend on language use: https://madnight.github.io/githut/#/pull_requests/2021/1 https://madnight.github.io/githut/#/pull_requests/2021/1
- whateveracct 5y agoI prefer the wingman https://haskellwingman.dev/ https://haskellwingman.dev/
- papito 5y agoStack Overflow copt pasta on crack cocaine.
- SebastianFish 5y agoWhat interests me most about the development of tools like this is how it might go on to influence the evolution of programming languages. The article that was posted on the CompCert verified C-compiler for instance. What if machine learning could make the cost of developing using more programming languages with stronger guarantees (ie rust, coq, etc) easier? Using languages with more internal checks could also help manage risk the the co-pilot gave a buggy/insecure suggestion.
- xrisk 5y agoHow do you opt out your own GitHub repositories from being a part of the training data?
- ranguna 5y agoProbably by changing your license to not allow use in commercial products.
- amelius 5y agoI would be more in favor of new languages which require less boilerplate.
- gumby 5y agoWon’t be mainstream until it supports C++20 under Emacs. (Yes that’s an HN-frowned-upon joke comment, but that is my dev environment)
- maxpert 5y agoNow I am gonna have an outage because co-pilot wrote some code that had an error. People have implicit bias of code being reliable that they don't write, StackOverflow snippets are perfect example for that.
- ehsankia 5y ago> StackOverflow snippets are perfect example for that. You basically just explained why your worry is unfounded yourself. This is already the status quo. People already write buggy code and copy buggy code from SO all the time. The goal of this isn't to write perfect code, that's still up to the programmer to do. This won't make a bad programmer not write buggy code magically.
- lxe 5y agoIf you played with OpenAI beta, you won't be surprised -- it was only a matter of time until this becomes widespread.
- deleted 5y ago[deleted]
- wozer 5y agoAnyone knows what languages are supported besides those mentioned?
- dannyT1 5y agoI wonder how or if it will impact publicly available code and even open source on a larger scale
- devinl 5y agoLooks exciting! It is kind of disappointing the AI generated main example on their home page has what appears to be a url encoding bug in it though (in text=${text}, text should be url encoded before being passed to fetch).
- maxwells-daemon 5y agoI'd rate myself as "above-average receptive" to ML-based tooling, but after trying two "AI autocomplete" tools (Kite and TabNine) I've decided it's not for me. The suggestions were usually good, but I found having complex, nondeterministic IDE commands pretty unsettling.
- dilap 5y agoCould actually make you better at producing robust code, though. It's somehow always easier to spot someone else's mistakes than your own. Or to put it another way: you know you can't trust the AI-generated code w/o convincing yourself it's correct. You think you can trust the code you wrote yourself, but you're probably wrong! :-)
- Linked_Liszt 5y agoI haven't kept up with the adversarial ML field recently, but I wonder how vulnerable these models are to adversarial attacks. - Could someone deliberately publish poor code to reduce the overall performance of the model? - Could someone target a specific use case or trigger word by publishing deliberately poor code under similar function definitions?
- abhijitr 5y agoAlso: what happens when a nontrivial portion of public code out there is ML-generated? How will it deal with feedback effects?
- avipars 5y agopowered by openai, i'm guessing gpt 3
- deleted 5y ago[deleted]
- nomoreplease 5y agoCTRL+F for Privacy & Security. No mention?
- blondie9x 5y agoIf it's reducing keystrokes. Eventually it might reduce the problem down to no input needed at all. In that case? Are those who don't control the AI needed? What about when those optimizations can be made by the AI itself also?
- nonbirithm 5y agoIt sounds like this is similar to Kite, but actually competent as a service and not associated with a brand that has destroyed all trust. But it has to come with the same privacy caveats, right? Uploading your private code to a third-party server could result in business or regulatory violations. And even if you're okay with sending your code, what about hardcoded secrets? What's to prevent Copilot clients from sending things that should never leave the user's computer? Heuristics? Will we be able to tell what part of the code is about to be sent? And is the data stored?
- wpietri 5y agoDoes this solve the right problem? Getting some code on the page has rarely been the expensive part of building something. Indeed, some long-ago experience with code generators suggests that making it easy to create code makes many problems worse down the line.
- iwintermute 5y agoIt's solving 'mechanical' problem. The optimistic twist on this helper is that it just raises the bar - human programmer should better be more useful than 'brainless' code generator - meaning not only being able to write a loop or solve leetcode task, but also understand context and what he's trying to solve for. As you say typing code is not a bottleneck for problem solving
- nyghtly 5y agoThis is a very good point.
- spec-obs 5y agoThis is my concern. This could end up generating great swathes of code that no one understands, so that when it breaks it takes much longer to fix.
- koyote 5y agoI agree, I feel like it might be useful for whichever programmers regularly have to search Stackoverflow and then copy paste code snippets. Then I feel like useful code produced by this tool will have to be treated in the exact same way as a rigorous code review: going through every part of the logic and ensuring it is correct. This seems like just as much or even more work than writing it yourself (if it is written in an unfamiliar way, you might need more time to wrap your head around it).
- fartcannon 5y agoThis technology should be available to everyone whose work contributed to it's development to use as they see fit. Free of Microsoft's tendrils. The absolute gall of Microsoft claiming fair use to gate keep knowledge of millions of minds...
- inimino 5y agoI'm amazed to see how positive the overall response is to this idea. Almost as if programmers think that writing programs is the worst part of the job and ready to be automated away. As someone more aligned with the Dijkstra perspective, this seems to me like one of the single worst ideas I've ever seen in this domain. We already have IDEs and other tools leading to an increase in boilerplate and the acceptance of it because they make it easier to manage. I can only imagine what kinds of codebases a product like this could lead to. Someone will produce 5000 lines of code in a day for a new feature, but only read 2000 of those lines. Folks that still expect you to only check in code you understand and can explain will become a minority. I wonder how long it will be until someone sets up the rest of the feedback loop and starts putting up github projects made of nothing but code from this tool, and it can start to feed on itself. Cargo-cult programming has always been a problem, but now we're explicitly building tools for it.
- JabavuAdams 5y agoYou can only solve relatively small problems this way. As I get older, I like the physical act of programming less and less, and just want to solve problems so I can get going on all of my ideas backlog. I've been programming almost every day for the last 38 years. What I really want to do is solve (my) problems.
- dennisy 5y agoI really agree with this even though my experience is much smaller than yours. The biggest place I think it is frustrating to write code is for ML pipelines where you know what you need, but it takes a few hours to wrangle files and pandas until you can run your idea/experiment.
- JabavuAdams 5y agoErmahgerd, yes! Doing this right now.
- auggierose 5y agoBut programming is the greatest fun on earth. Wait no, being able to work on your ideas and communicating them to the computer is the greatest fun on earth. Now, if your only tools for communication are made by "productive developers", this is where the problem is. Not with programming itself.
- ingvul 5y agoI can only imagine one of the big reasons to release Copilot to the public for free is to make it better by sending back to GitHub the "reviewed code". Example: - Copilot suggests me a snippet of code - It's almost what I wanted. I fix the code - Copilot sends back the fixed code to GitHub - Copilot gets better at guessing my (and others) wishes Unless Copilot is running locally, I won't use it.
- ranguna 5y agoSame, I do quite a bit of mistakes like pasting secrets and immediately deleting them right after, and I also have local secrets that are gitignored which I think copilot would just upload without a second thought.
- pgib 5y agoDoesn't look like it will be editor-agnostic which is a big shame. I've been using TabNine in Vim for a couple years, and I love it.
- switchb4 5y agoCalling it a pair programmer is a bit exaggeration though. How can it match a human?
- toastal 5y agoIt's different. Here you train your partner to be sold as part of massive corporate product and have all your code phoned home in exchange for a little assistance.
- fcsp 5y agoThis looks pretty impressive and I'd like to play with it, but it's disappointing that you're forced to accept telemetry to enlist on the waitlist. I guess I'll wait for general availability.
- omgwtfbyobbq 5y agoI feel like this could be a great way to help people understand new languages faster than they could otherwise.
- dec0dedab0de 5y agoI absolutely hate whenever I see patterns in my code. The first thing I think is "There has to be a way to automate this" This is not what I had in mind, but if it's as good as people seem to say, it might be a good step. I can't believe I am considering a Microsoft product after 15 years of avoiding them as much as I could.
- cbsks 5y agoI don't think we need to start looking for new career paths yet. This example has a few bugs and it took me longer to track them down than it would have to write it myself: #!/bin/bash # List all python source files which are more than 1KB and contain the word "copilot". find . \ -name "*.py" \ -size +1000 \ -exec grep -n copilot {}\; "-exec grep -n copilot {}\;" needs to have a space before the semicolon otherwise find fails with "find: missing argument to '-exec'". The "1000" in "-size +1000" has a unit of 512 byte blocks so it is looking for files that are greater than 512000 bytes, not 1KB. This would be very easy to miss in a code review and is one of those terrible bugs that causes the code to mostly work, but not quite. https://linux.die.net/man/1/find https://linux.die.net/man/1/find
- awestroke 5y agoI read this as a criticism of bash
- hashingroll 5y agoI don't see why. It is on Copilot to produce syntactically correct code that at least doesn't fail to run, even if we ignore the correctness.
- cbsks 5y agoThis doesn’t really have anything to do with bash, just the ‘find’ posix utility. But I agree that the arguments not intuitive.
- mitjak 5y agothe main argument against Copilot for me. it takes longer to grok existing code than just write it from ground up.
- ok2938 5y agoThat's why this copilot won't fly. The junior programmer will not be able to spot subtle errors but will kind-of feel "productive" by some random pastes from a giant brain, which cannot be interrogated. If anything, I see copilot generating more work for existing, senior programmers - so there you have it.
- BiteCode_dev 5y agoI like the concept, but just like with kite, having part of my code sent to the remote service is a not going to be ok for many of my projects. For foss ones it could be great though. I think the best part for me is that how it's going to introduce even more low code devs to the worker pool, which means I will be able to raise my price again. Last time this happens, when designers got to the backend, I got +30% in a year once my clients figured out the difference in output.
- ska 5y agoOf course this is an continuation of things people have been trying for decades at this point, rather than something fundamentally new, but it brings up a point a colleague and I had a decade ago on training something like this on large data sets - namely that you are going to tend find common idioms rather than nominally best ones. In many scenarios it may make little to no difference, but clearly not all . It's likely going to gravitate towards lowest-common-denominator solutions. One example of where this can be a problem is numerics - most software developers don't understand it and routinely do questionable things. I'm curious what effort the authors have put in to mitigate this problem.
- IceWreck 5y agoWorks on MS's VSCode but not on GitHub's own Atom. More proof that Atom is all bud dead
- rvz 5y agoEver heard of Embrace, Extend (We are here), Extinguish? Downvoters: I hope you read the 'Availability' Section of the FAQ. GitHub literally admitted this. > Can I use it in another IDE than Visual Studio Code? Not yet. For now, we’re focused on delivering the best experience in Visual Studio Code only. > Will there be a paid version? If the technical preview is successful, our plan is to build a commercial version of GitHub Copilot in the future. We want to use the preview to learn how people use GitHub Copilot and what it takes to operate it at scale. That is a translation to a proprietary lock-in service tied to VSCode, GitHub and OpenAI which is all Microsoft exclusive and it admittedly unavailable on other editors. The extension does NOT work on Atom editor for example. If that is not a strong case for the 'Extend' phase, I don't know what is.
- tushar1196 5y agoHey
- __MatrixMan__ 5y agoSomeone, somewhere, is already working on ways to make it inject vulnerabilities into your project.
- jensensbutton 5y agoInterestingly enough I think Ops work is far more resilient to automation than SWE work.
- kburman 5y agoHow do we know the code is working and doesn't have any bug?
- ranguna 5y agoYou review it. I guess that's why it's called copilot, for now.
- pharmaz0ne 5y agoWould it work with remote files? Because Kite would not.
- chad_strategic 5y agoI wonder if they are going to have a plugin for ATOM IDE?
- blain 5y ago> OpenAI Codex was trained on publicly available source code (...) It would be nice if github made this tool publicly available in a good spirit of open-source instead of straight up monetizing it. I get that github is not a non-profit but still.
- bww 5y agoThe example in the hero animation has a bug. The ${text} may not be correctly URL-encoded, which would make the body invalid. And because this sort of feature encourages people to blindly trust the machine and not think about what they're doing this error is much less likely to be caught. Personally I think this whole class of feature only offers trivial short-term efficiency gains at the expense of long-term professional development and deeper understanding of your field.
- deleted 5y ago[deleted]
- bogwog 5y agoI could see it becoming a liability, and projects may start using the fact that they don't use it as a promo thing in their marketing. > Choose library.js for your next secure project! > * Military-grade encryption! > * Industry best-practices! > * Extensively-tested codebase! > * No Github Copilot! This seems to me like someone had a cool idea for using GPT and wanted to experiment with it, but then Microsoft threw money at the marketing people and forced it to become a commercial product.
- hnarn 5y agoI'm sorry if I'm derailing the discussion here but "copilot" really is a much better phrase to use for assisting software than "autopilot". If more companies would choose phrases like these that accurately emphasize that the human is not being replaced but assisted (no names mentioned) I think it would benefit everyone in terms of clarity. Sure, you might say "it's all marketing and if AP exists nobody would buy CP", but I don't think it's that simple. Customers understand when their expectations are being met, exceeded, or let down.
- toastal 5y agoCopilot is to make you feel like you're the one in control, when in reality you, the user, are training it for free.
- IncRnd 5y agoFor anyone who has this installed, how much of the codebase under development leaves the machine? I am asking from the standpoint of working on proprietary source code. Other than that single issue, which is really a set of issues, it seems to work really well from the videos I've seen.
- ranguna 5y agoReading the their privacy policy: as much as Microsoft wants. So you can probably expect all your codebase to be uploaded.
- wozer 5y agoA great way to use this would be to create very good tests (manually) and then let the AI write the code. Maybe even with a feedback loop: when a test fails, the AI automatically tries a different approach.
- birdyrooster 5y agoDoes GitHub Copilot grant you a license to the code it generates? How does it know you haven't just copied some proprietary code which is not free?
- thrower123 5y agoI chuckle when one of the bullet points is that it autogenerates the stupid, pointless unit-tests that you need to write to verify trivial code, but boosts your code-coverage metrics...
- clashmeifyoucan 5y agoone thing that caught my eye was the convert comments to code feature. If you can use your voice to dictate comments then combined with copilot it might just be possible to write code without touching the keyboard at all! of course I guess copilot won't be perfectly accurate right now or even maybe for a long time but it is interesting to imagine a future where the programmer can think and get code written without lifting a finger.
- dxbydt 5y agoHow does this work in the context of leetcode/hackerrank interviews ? Can I just use the copilot to get a 90%?skeleton of the required solution and maybe fill in just the 10% smarts ?
- monkeydust 5y agoAs a business / product person I am naturally wondering how much more productive this will make my engineering team, should I overtime expect to reduction in costs, faster shipping times...or will the benefit manifest itself in more reliable code...?
- ranguna 5y agoLike any other similar questions: ask your team. They'll know better than you or any random person on the Internet.
- arthurcolle 5y agoThe Rails migration example doesn't follow the rails convention with prepended datetime :p
- didibus 5y agoI wonder if this breaches any of the open source licenses or copyright? To some extent, it seems like this could suggest code chunks found somewhere else verbatim, which sounds like a copyright issue, but I also don't know if open-source licenses inherently allow you to train on their code in the first place?
- smoldesu 5y agoI'm willing to go all-in on something like this, only if I can get a promise that this will be an open project as time goes on. I'm not a fan of all of the "commercial" talk in this... if OpenAI is involved, and most of this can run locally, why can't it be fully open source?
- ranguna 5y agoMost of it can run locally? Please point me to a trained gpt 3 model, probably the main brains of this tool.
- williesleg 5y agoChink poo poo haba jama mama shadow banned yay hacker news!
- hartator 5y agoHow does it compare to Tabnine? I really like thar Tabnine train against your own codebase and suggest things based on it. It’s crazy accurate and smart a surprising amount of time.
- KaoruAoiShiho 5y agoRIP sublime text, I guess it's back to VS
- deleted 5y ago[deleted]
- youerbt 5y agoI wonder if this kind of technology can push industry into more advanced languages. If a programmer can restrain the space of available programs more, it should aid the tool to give even better results.
- MeinBlutIstBlau 5y agoI think this would be a great resource for beginners particularly. It helps give them the code that will work for them and they can understand what it's returning. That was my biggest issue when I first started with REST calls was not knowing what to use and why things were being used on the server side. Eventually it started to click for me, but I had a lead guide me. In particular we worked with SharePoint which I had no idea had it's own API at the time which added to the complexity. Overall I think the "See different examples" is going to be the best feature out of all of them.
- rberger 5y agoAssuming this is actually a useful and powerful addition to a programmer's quiver (which it looks like it will be if not already is). Then the tying it to Visual Studio is a variation of Microsoft's "Embrace and Extend" philosophy but for Programmers and open source in general. It uses Open Source as its input but, as far as I can tell (and I would be pleasantly surprised if I was wrong), CoPilot itself is not Open Source. It is also tied to Visual Studio, making Visual Studio, a Microsoft Product and on its way to monopoly position even more up the power law curve to monopoly status. This would be much more interesting and less concerning if CoPilot was Open Source and designed to plug in to other Editors / IDEs like via lsp or something similar.
- kujino 5y agoVSCode has telemetry, the extension market place can't be used by non-microsoft products, VSCode is not open source (only VSCodium is), many of the MS extension are not open source (like live collaboration), etc. VSCode followed the classic big tech recipe : 1) make it open source to look like the good guys & get adoption and contributions 2) close-source many key components & add spyware. Story of Android too pretty much
- gmueckl 5y agoI expected the appearance of machine learning based developer tools pretty much the moment Github was bought by MS. Liberal access to everything in the largest collection of source code in the world is the ideal starting point for developer tools like this one. Githun/MS doesnt have to obey the same rate limiting when accessing the site that the rest of the world has to put up with. Now there are only three questions left: how will this be monetized? Will it recoup the purchasing price of Github? And how can vendor lock in be achieved with this or sny follow up products?
- bencollier49 5y agoAh, here it is; the Power Loom. And we're all weavers. http://historymesh.com/object/power-loom/?story=textiles http://historymesh.com/object/power-loom/?story=textiles
- speedgoose 5y agoI'm very enthusiastic about this kind of technology. I recently stopped using tabnine because the suggestions where often worse than the normal IDE completion while being on top of the list, but I do miss the magic. I think AI in software development will save us a lot of time, so we can focus on more interesting things. It may replace a few humans in the long term, but as software developers we shouldn't be hypocrite because we work hard to replace humans by software.
- FunnyLookinHat 5y agoThis seems to work really well in cases where you're just laying down boilerplate. A few cherry-picked comments seem to suggest that React components are an ideal use case - which makes sense, that's a lot of munging and syntax to just render some strings. However, I find the process of writing these sorts of functions cathartic and part of the process to get into zen-mode for coding. I think I'd feel less joy in programming if all of this was just done by glorified commenting and then code-review of the robot. I like to think of coding in terms of athletic training, which usually is comprised of difficult tasks that are interspersed with lighter ones that keep you moving (but are giving you a bit of a break). Training for soccer teams often involved lots of sprinting and aerobic exercise - and in between those activities we would do some stretching or jogging to keep our body moving. These sorts of small functions (write a function to fetch a resource, parse an input payload, etc.) are when my brain is still moving but getting ready for the next difficult task.
- TimTheTinker 5y ago> However, I find the process of writing these sorts of functions cathartic That may be true for individual contributors, but if you're trying to build a company from scratch, any help you can get to move faster is a good thing, cathartic or not.
- WFHRenaissance 5y agoI hate to be a downer, but ultimately the people doing the planning and allocating budgets at non-tech companies do not care about the nuances of workflows. They'll lay as much cognitive load on you as is allowed, and they'll always have another body to bring in if you end up quitting. The value proposition here is clear: "This tool will make it harder for your engineers to do time theft. What used to be an hour's long effort of painstakingly hand-coding boilerplate as a way of 'taking a break' will now be at most 5 minutes worth of easy code review."
- ranguna 5y agoThis looks amazing! I was going sign up for the preview and stop immediately after reading the additional telemetry that is scrapped from my IDE, Microsoft would basically be allowed to steal my code and see it whenever they need. Including unintended snippets like local (git ignored) secrets and any sensitive information that it might catch without my "snippet by snippet" approval and not way to ignore files (afaik). Until this is fixed, good luck but not thank you Microsoft.
- simongauld 5y agoAll your commits are belong to us
- iou 5y agoThis looks awesome! And I'd really like to try it out. 2 security thoughts that I couldn't find answers to: 1. how does the input fed into OpenAI codex filter out malicious code pollution? or even benign but incorrect code pollution (relevant research on stackoverflow for example - https://stackoverflow.blog/2019/11/26/copying-code-from-stack-overflow-you-might-be-spreading-security-vulnerabilities/ https://stackoverflow.blog/2019/11/26/copying-code-from-stac...) 2. In an enterprise setting, what does the feedback loop look like? How do you secure internal code that is being fed back to the model? Does it use some localized model? HE, etc?
- ollien 5y ago#2 is the big one for me. I'm hesitant to install this on a work machine where our code could be sent elsewhere.
- methehack 5y agoThe gap between concept and working product is still very much in the human's wheelhouse. This is an accelerator to snippets not yet turned into a library and, in fact, a lot like a library in terms of it's day to day utility. This will not end or even change programming that much. The value I provide as a programmer is not about copying and pasting snippets. It's something totally separate different in kind from what copilot does. If it's helpful to do what I already do, sure I'll use it. But it ain't me, babe.
- amelius 5y agoI want one-shot learning for refactoring. I.e., show the editor once what transformation I want to perform, and then the editor takes over. Autocompleting code in general? Sounds like a bad idea, imho.
- dennisy 5y agoThe site mentions the system this is built on: Codex by Open AI. Has anyone seen anything about this system? Are others able to build upon it?
- turbinerneiter 5y agoAre they making a proprietary tool based on the data provided by FOSS projects?
- celeritascelery 5y agoBasically all of GitHub (with some small exceptions) is proprietary code making money off of FOSS.
- brundolf 5y agoFor a long time now I've thought that AI would have a really interesting role to play in developer experience, though this isn't really the form I think it should take. I think it would make the most sense as a really advanced static-analysis tool/linter/etc. Imagine writing something like C where whole classes of errors can't be checked statically in a mechanical way, but they could be found by a fuzzy ML system automatically looking over your shoulder. Imagine your editor saying "I'm not sure, but that feels like a memory error". And of course you can dismiss it "no, good thought, but I really meant to do that". Imagine an editor that can automatically sniff out code-smells. But the human, at the end of the day, still makes the call about what code to write and not write; they're just assisted with extra perspective while doing so
- lnjarroyo 5y agoYou are looking for Haskell.
- manmal 5y agoThe real magic of writing code is the compound interest it pays - if you structure the lower level components well, then they can be combined into ever more powerful components, saving time and effort in an exponential way. This product seems to encourage the complete opposite - hack together stuff without thinking about how it could fit into your accumulated Baukasten of components.
- marcodiego 5y agoConsider the following chain of events: - I write GPL'ed code. - Someone uses this tool to develop a proprietary solution. - I later prove that the tool generated code that is equal to mine. Now the code of the proprietary solution must be GPL licensed! Cool! How I'd defend myself? I'd only use such a tool if there are guarantees of the licenses of the code it was trained on. Without such guarantees, it is just too risky.
- krzyk 5y agoI wonder why there is no example in java. It is one of the most popular languages (drfinatelly more popular than ruby or Go, and on par with Javascript and python).
- machiaweliczny 5y agoCause Java is enterprise lang and programmers there know Microsoft master plan, so it won't get adoption. They rely on newbs and hippies to help them train it.
- ayush--s 5y agowow I'm going to have lots of opinions about this. 1. A lot of people on this thread are concerned about licensing issues with GPL etc. I am sure Github will restrict the beta until it figures out that stuff. 2. I wonder if eventually our corrections to the code suggested by the model would be used to feedback to the model, and if that'll lead to a differential pricing - If I let it see my code, I get charged lesser. 3. I believe a mini-GPT-3 model is where it's at. GPT-3 (and similar) models look to be to too big to run locally. I've been using TabNine for past year or so & it gives me anywhere between 5-10% productivity boost. But one of the main reasons why it works so well is because it trains on my repo as well. TabNine is based off GPT-2 from what i've heard. 4. prediction: Microsoft is probably going to milk GPT-3. Expect a bumpy ride. 5. In all likeliness, this would be a great tool to make developers productive, rather than take their jobs - at least at levels that are more than just code-coolie. 6. Eventually all tasks with enough data around it will see automation using AI.
- asimjalis 5y agoI thought it would be someone you can talk to.
- krzyk 5y agoIt's a pity it is not (yet, I hope) a plugin to popular IDEs like Intellij IDEA etc. and works only in VS Code.
- ipsum2 5y agoTabNine is similar and works across multiple IDEs. No affiliation, thought their product was neat: https://www.tabnine.com/ https://www.tabnine.com/
- darkstarsys 5y agoWhere's the Emacs lib for it?
- tasuki 5y ago> Tests without the toil. Tests are the backbone of any robust software engineering project. Import a unit test package, and let GitHub Copilot suggest tests that match your implementation code. Isn't that the wrong way around? I'd like to start by writing the tests, and for GitHub Copilot to please implement the function that makes them pass.
- sama 5y agoAI FTW! (dang please don't ban me for a low-quality comment :) i couldn't resist but will not make it a habit!)
- bovermyer 5y agoOh this would screw with me so badly. A lot of the time, I'm thinking pretty deeply about the code I'm writing, and as I'm writing code I'll also be thinking about how it applies in context. Having some external agent inject new code into my editor would shatter my thought flow, since I'd then have to grok whatever it just spit out instead of continuing on with whatever thought I was pursuing at the time.
- lmilcin 5y agoWhat about rights to the code that is created this way?
- EastSmith 5y ago"Seriously Copilot, cover all these files with tests."
- grouphugs 5y agoy'all really love fascist organizations, but not for long, trust me
- Trollmann 5y agoWill this hurt open source? I assume companies that were fine with providing you functionality for free may think about this twice because with that they're giving away knowledge of how to build functionality.
- goodpoint 5y agoYes. It will encourage using FOSS as a source of "examples" to use it in closed source.
- binarymax 5y agoDon't use this. You'll just be giving training data to OpenAI (which NOT "Open" by any means).
- azinman2 5y agoI worry about auto-complete on a more philosophical level. I’ve noticed with gmail that it’ll often suggest it’s way of either replying to an email or completing a sentence even though I’d never actually use those words in that situation, simply because it’s easier. It’s a pretty bad feedback loop that robs us of our independent thought by way of falling victim to laziness, a fundamental human weakness. You can imagine something where in this case the code autocomplete is so large that you really want to make that autocompletion work, even if you know it’s not elegant or possibly even correct code… or maybe it’s just repetitive and not abstracted well, but here it is autocompleted and done so why would you fight that? If we continue abstracting more and more of this way, based upon datasets that are averaged across everyone, we lose the individual in favor of the masses, bringing us all down to a common denominator. If we must lose our humanity to the machine, I’d at least like to see an autocomplete from Peter Norvig’s code, or writing from particularly effective communicators or famous authors.
- aerospace_guy 5y ago> feedback loop that robs us of our independent thought by way of falling victim to laziness This was my first thought when I saw this. I intentionally don't use predictive text whenever I can to preserve whatever originality I have left.
- noway421 5y agoEmail is a just such a communication medium. It requires both prose at length, and also quick response. Even though the type of information passed around is usually binary: OK/NOT OK, or a status update. Gmail offers a way to reduce the "prose at length" to a few buttons. And it adds the pleasantries for you. You can think of it as a workflow automation tool. Your email chains are tickets and you're moving them through different statuses. Notwithstanding, personal/intimate email is different and spending time writing a beautiful letter is a thing of its own.
- dannyw 5y agoAbsolutely. While there's benefits and drawbacks to every technology, auto-complete in Gmail saves me so much time. If I'm sending to a relative or family member for example, or even a professional contact, then I'm not going to be lazy and auto-complete. But when someone says "Does that sound good to you?" it's great to push a button that replies "Sounds great, thank you!" Maybe I would have naturally written "That sounds great, thank you [name]", but what's the difference?
- jimmar 5y agoThis would help me tremendously. I don't code frequently--a few times a month at best. I find myself having to google syntax constantly to write basic programs. If I want to write a simple python command line program that parses input, for example, I can guarantee I'm going to be opening tabs to figure out the syntax. It would be great if something like Copilot could help me stay in my editor.
- spoonjim 5y agoThis seems great for noobs or dunces to get code compiling, but I hope nobody with talent uses it. It would be like Hemingway using Grammarly.
- mihaifm 5y agoI 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.
- bootlooped 5y agoIf 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.
- adn 5y agoRegardless of the legality, one of these situations is clearly ethical compared to the other. In the case were you get a job based on your knowledge of GPL software, you still must respect the license if you use that code commercially (i.e. at your new job). And yes, if you reproduce GPL code you "learned" from, you are violating the license. A company ingesting an entire GPL codebase without warning or any way to opt-out in order to create a closed-source feature that they and only they will profit off of is clearly not the same as an individual reading the code and getting a job based on those ideas.
- bootlooped 5y agoBut the points you listed are the same whether it's a person or a machine: - if you reproduce GPL code verbatim, you're in violation* - no warning that somebody/something is ingesting the repo - no way for the repo to have opted out - closed source (you can't get the source from somebody's brain) - private profit * Do we even know if the machine is more or less likely to do this? Humans are certainly capable of it.
- adn 5y agoYou're intentionally conflating scale here to make them seem the same. > no warning that somebody/something is ingesting the repo An individual reading code on their own time is not the same as ingesting terabytes to train a machine. No matter how much you believe in AI working similar to the human learning (it doesn't), they are not comparable. > private profit Again, the difference between an individual reading code to work for a salary is orders of magnitude different from ingesting terabytes of code so a company can create a new feature. Claiming these things are the same only makes sense if you ignore the massive differences in scale and the differences between how humans and machines learn.
- karmasimida 5y agoI like the example LOL. How can one signed up? This could make one programmer an army.
- thesquib 5y agoIs this automation of the Search Stack overflow, copy, and paste workflow?
- Communitivity 5y agoI wonder if by using Github Copilot you are training Github Copilot to code better. I don't see this as replacing a programmer, but I could see it as an advanced, possibly semi-automatic refactoring tool. This could allow a less skilled programmer to be more productive and produce better code, making them more valuable. Also, licensing was mentioned. I would not want Github Copilot training on private repos.
- enobrev 5y agoI just watched this demo on twitter[1] and found it entertaining that it was auto-completing useless, redundant comments for the developer. Pretty sure that says more about all of us developers as a whole than about Copilot. 1: https://twitter.com/gr2m/status/1409909849622601729 https://twitter.com/gr2m/status/1409909849622601729
- deleted 5y ago[deleted]
- hashingroll 5y ago> Convert comments to code. Write a comment describing the logic you want, and let GitHub Copilot assemble the code for you. I don't know if Copilot does it already but I would love if there was a tool that does exactly the opposite — convert code to comments and documentation.
- 29athrowaway 5y agoAI is on its way to replace the people that copy and paste code from stackoverflow. Good riddance.
- BigJono 5y agoExcellent. Now we just need tools to automatically shit out convoluted JIRA cards, run them through this, and automatically generate the PRs. Then we can run it overnight each night, knock back whatever rubbish it generates before breakfast now that there's nobody left to complain and schedule 6 hours of meetings to "fix" it, and instead we have the whole day to just build it quickly and properly the first time. We just increased productivity on the average enterprise project by 50%. Good stuff.
- 29athrowaway 5y agoIt would be great for AI to replace all the superficial bureaucracy that ruins software, so that the only thing that's left is people that care.
- antpls 5y agoAnother 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.
- bootlooped 5y agoMost of the code I write is not particularly innovative or novel. I'm just trying to get the job done most of the time.
- stakkur 5y agoThe goal, of course, should be to train your AI partner to eventually do all the work, while you sip a beer at the pub and monitor Slack (where an AI version of you is maintaining conversations).
- antoniuschan99 5y agoThere’s a lot of products that try to do away with programming in general such as no-code. However, the elephant in the room is definitely a tool that can auto fix bugs - the type of bug that is usually given to a junior developer because the team doesn’t want them building features yet.
- ramoz 5y agoHow 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?
- ramoz 5y agoI 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.
- quink 5y agoGreat, 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<string, Set<string>> { 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 < images.length; i++) { if (!images[i].hasAttribute('alt')) { 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.
- pow_ext 5y agoI curious about typing "const api_key" and see what the editor adds hahaha
- ncr100 5y agoAm I out of a job yet? (I am a programmer)
- wejick 5y agoGoodbye stack overflow copy pasting, welcome copilot auto generated code. It will bring similar problem of someone using something they don't understand. Another extra work for code reviewer. However on the right hand it will be very powerful!
- dragonwriter 5y ago> Goodbye stack overflow copy pasting, welcome copilot auto generated code. It will bring similar problem of someone using something they don't understand. To be fair, “beat on it until it seems to work” without AI assistance or copy-pasting code also frequently involves a fair amount of “using something they don’t understand”. OTOH, copy pasta and AI assisted code are less likely to get “I don’t know why this works” or “I don't know why this is necessary” comments to highlight that to the reviewer.
- markstos 5y agoSoftware automating people out of jobs spares no one, even the people writing the software. If this improves developer efficiency by 10%, 10% fewer developers are required.
- asperous 5y agoOr development cost lowers by 10% keeping salaries the same, and more work that was previously too expensive to do is now feasible.
- karsinkk 5y agoI still haven't gotten my hands on the Beta yet, so I'm not sure how it's going to be deployed; But does anyone know if Copilot is going to be accessible through some online IDE (or) is it going to be through an extension for VS Code/other editors? If it's the latter, I hope the extension doesn't eat up all my CPU!
- vmception 5y agoInterviewer: use copilot to implement the most efficient sorting algorithm
- ionwake 5y agoI get the impression the only way to use this is in a github cloud environment, which means all the code you type will essentially belong to github in some capacity?
- dannywarner 5y agoThis is a great use of the OpenAI Codex. It's fast in VS Code. My early impression is that the more popular the language the better it does. So Javascript is almost magic and something like Rust still useful. I'm looking forward to using it more.
- dgdosen 5y agowant
- deleted 5y ago[deleted]
- gervwyk 5y ago"Software eats world" just got more real. Funny that programmers thought they were eating the world with software, now, software has eaten them.
- visarga 5y agofar from it, this thing won't write full applications by itself
- gervwyk 5y agoI know.. But we can dream. Also I'me sure when we first got code completion we said - "This thing won't write functions by itself."
- rvz 5y agoThe reality is the AI engineers that are working on AI autopilot systems for self-driving cars still tell their users to keep their eyes on the road. AI medical or doctor apps that suggest possible conditions still tell their patients to consult a real doctor. AI trading systems that auto-trade and analyse the markets are also limited and don't account for multiple risk points and still need supervision by the multiple traders and the lawyers using AI to sift through historical cases to save time still need supervision under a human lawyer. Where we're going is assisted AI; obviously not a full on replacement as the scare stories created by the AI hype squad in this thread after the first reactions of this tool.
- Graffur 5y agoAwesome - but I fear maintaining the code generated by it in the future.. can the AI maintain it as well? I am looking forward to AI testing the programs I write though. That would be awesome.
- ahofmann 5y agoHow does this compare to tabnine?
- buremba 5y agoThe landing page is really cool. It looks like the screencast is built with Javascript, is there any tool that helps building such screencasts? I assume that it's not trivial to build such animations.
- taywrobel 5y agoDepends on what you need to do, but asciinema is pretty much exactly that use case: https://asciinema.org/ https://asciinema.org/ Wouldn’t work in this case with the overlays and styling tho.
- dang 5y agoTo see all the 1100+ comments, you'll need to click More at the bottom of the page, or like this: https://news.ycombinator.com/item?id=27676266&p=2 https://news.ycombinator.com/item?id=27676266&p=2 https://news.ycombinator.com/item?id=27676266&p=3 https://news.ycombinator.com/item?id=27676266&p=3 https://news.ycombinator.com/item?id=27676266&p=4 https://news.ycombinator.com/item?id=27676266&p=4 https://news.ycombinator.com/item?id=27676266&p=5 https://news.ycombinator.com/item?id=27676266&p=5 (Comments like this will go away when we turn off pagination. I know it's annoying. Sorry.)
- deleted 5y ago[deleted]
- heroHACK17 5y agoRemote coding interviews just got 100x easier.
- EugeneOZ 5y agoA toy.
- bruce343434 5y agoNever learn a new skill again, let the computer do it for you.
- cyanydeez 5y agoso if github is using open source code to predict code hints, is that violating any copyrights implied by anything
- modshatereality 5y agogithub was such a nice place until microsoft fucking ruined it.
- detaro 5y agoWhat has Microsoft done to GH to "ruin it"?
- modshatereality 5y agoignoring THE FUCKING TOPIC HERE. the UI is hideous now without javascript enabled, before it was actually navigable.
- leotaku 5y ago> If the technical preview is successful, our plan is to build a commercial version of GitHub Copilot in the future. This may be the first time that a proprietary coding tool offers such a great value preposition that I am actually interested in trying it out and potentially even paying for it. It's also a bit concerning that this will probably be extremely hard, if not impossible, to create an FOSS version of this technology, just because of the immense amount of computing power, and by extension money, needed to create GPT3. I'm not that comfortable with the idea of a future where proprietary AI-based solutions and libraries (e.g. automatic testing libraries, which have been mentioned here a few times) are so powerful that I'll be forced to use them if I don't want to waste my time.
- MathYouF 5y agoSays the person who likely owns a washing machine, sink connected to plumbing, microwave, stove, lighters, clothes made with a sewing machine, ect. ect. GPT-3 will take way less time to make a good substitute that costs the power of compute than other historical time saving technologies. Unlike other historic technologies, they pretty much spell out exactly how to do it, and own no patents related to its creation. I have trouble seeing the downside.
- leotaku 5y agoI see your point, but aren't you making me into a bit of a straw man? When did I say that I was some open-access Luddite who won't use any technology that they can't build themselves. I just like the current state of programming, where I can productively build new and exciting things without having to rely on a lot of proprietary libraries or tools. Nothing more, nothing less.
- MathYouF 5y agoLuddite: a person opposed to new technology or ways of working. Seems like you came up with the perfect word to describe your view on this. :P I defintiely do think there is reason to worry about the future you're imagining happening, but as someone who has read through the papers on gpt, this is in no way going to end up being an exclusive proprietary API, so it'll very soon have open source and likely free or at compute cost options. And well, if it doesn't make us better, no one will use it. If it does, you'll have to adjust to remain competitive, just like millions of professionals for going back millenia who encounter new technology in their chose and vocation. Ultimately, if it makes us better, and doesn't enslave us to the whims of a monopolistic holder (which the point of my post was to conjecture that it likely wouldn't) then it'll probably (though not defintiely) be better for us long term. Hopefully it doesn't erode programmers abilities like spell check seems to have eroded people's spelling abilities but I fear that's a likely side effect.
- suyash 5y agoCo-Pilot is here, thanks to AI! You know what's next - Auto Pilot ... Get ready to be automated ;)
- nhoughto 5y agoI wonder if there should be a thumbs-up / thumbs-down mechanism to help teach it, or even flag snippets as bad/insecure/whatever. I'm picturing the StackOverflow problem where the accepted answer is actually wrong, and actively pushing it into more peoples code is just proliferating the problem into more places. Making people faster at building mostly the write but sometimes the subtly wrong thing.
- flippinburgers 5y agoIn terms of questions about where the code originates from, there should also be a tool that allows vetting the generated code against the original data set. Perhaps copilot itself should provide a way to deep dive the possible origins of the generated code.
- human 5y agoSkyNet mode has been activated.
- antiterra 5y agoThis presents some interesting theoretical attack surfaces. - Intentional poisoning the model with difficult to recognize and exploitable faults - Unintentional poisoning from flawed generation habits which are further reinforced by the usage being eventually fed back into the model I don’t know how it maps to code, but in my experiments generating text with GPT-3, I have started to get a feel for its ‘opinions’ and tendencies in various situations. These severely limit its potential output.
- hyperpallium2 5y agoFools! Don't you realize you're training your replacement!?
- hyperpallium2 5y agolow entropy code
- fundad 5y agoSeeing my job get automated before my eyes makes me nervous but can AI make dumbass libertarian arguments over lunch? We’ll probably actually
- vanpelt 5y agoThis would be awesome for terraform! It could potentially derive the details of SSL, k8s, Load Balancers, and databases for each cloud from comments
- acjohnson55 5y agofunction proofOfPEqualNP { Your move, AI.
- seaorg 5y agoEvery time AI encroaches on human territory it cannot be changed back. Don’t be fooled by the innocent nature of these early encroachments. At a certain point life on earth was just a bunch of amino acids…
- nameoda 5y agoReminded me of this tweet that proposed exactly this: https://twitter.com/dalmaer/status/890724764121092096 https://twitter.com/dalmaer/status/890724764121092096
- cphoover 5y agoSomeone on the reddit thread asked about adversarial ML approaches to introduce either poor performing or vulnerable code into the suggestion. Could be a good vector for exposing tons of applications to attack from malicious actors.
- ngcc_hk 5y agoThe alphago moment to go player … the copilot moment to programmer ?
- ablekh 5y agoI certainly see the value in solutions like GitHub Copilot (if implemented well), at least, from three perspectives: a) 𝐩𝐞𝐝𝐚𝐠𝐨𝐠𝐢𝐜𝐚𝐥 (by allowing developers, especially beginners, to see the diversity in different approaches to potential solutions for specific problems), b) 𝐬𝐨𝐟𝐭𝐰𝐚𝐫𝐞 𝐞𝐧𝐠𝐢𝐧𝐞𝐞𝐫𝐢𝐧𝐠 𝐛𝐞𝐬𝐭 𝐩𝐫𝐚𝐜𝐭𝐢𝐜𝐞𝐬 [of course, it should be used with care and, generally, the quality of relevant suggestions from this angle is still TBD] and c) 𝐢𝐦𝐩𝐫𝐨𝐯𝐢𝐧𝐠 𝐞𝐧𝐠𝐢𝐧𝐞𝐞𝐫𝐢𝐧𝐠 𝐩𝐫𝐨𝐝𝐮𝐜𝐭𝐢𝐯𝐢𝐭𝐲 (this is especially relevant for programming languages and frameworks with lots of boilerplate code - e.g., C#/.NET, Java). Spending much less time on typing typically very verbose boilerplate code will give software developers much more time to spend on truly valuable and important activities, such as problem solving, architecting, collaborating.
- passing_sailor 5y agoAn Emacs mode for it is missing in this alpha.
- itisit 5y agoCan't wait for GitHub Dispatch to fix the code GitHub Copilot "writes".
- plasma 5y agoI'm curious if this can reveal secrets (I realise this was trained in already publicly readable code), what happens if you do "var api_key = " what is the auto-completion?
- Kibae 5y agoI hope it would suggest something like `//process.env.API_KEY` to get users in the habit of not storing secrets on repos.
- ejanus 5y agoLet me go and look for another job, maybe dancing would be hard for AI to take over.
- ModernMech 5y agoToo late: https://www.msn.com/en-us/money/other/boston-dynamics-e2-80-99-spot-robot-challenges-bts-to-a-boy-band-dance-off-in-latest-video/ar-AALApUw https://www.msn.com/en-us/money/other/boston-dynamics-e2-80-...
- brisky 5y agoI think being a nanny is the most future-proof job
- hn_throwaway_99 5y agoI am most looking forward to this for things like bash scripts. I don't usually do much bash programming, but probably once a month or so I have a need to do something that could easily be solved with bash - but since I use it so infrequently, I'm always forgetting the myriad list of command line tools and options to do what I want. Stackoverflow of course helps but this would be a huge improvement if it works well.
- Fragoel2 5y agoBash is really tricky tho, a a single wrong character can change the program behavior drastically. So, thanks but no thanks.
- caf 5y agoI wonder if Microsoft will leverage this for Excel.
- Hippocrates 5y agochecks calendar nope, it’s not April 1
- rantwasp 5y agoi’m sort of a Luddite so take this with a grain of salt. I don’t see this going anywhere. If it’s really good and we can actually have 1 developer instead of 2 now why would any developer want to do this? this would basically be a piece of automation that diminishes the value we are creating. If it’s crap it’s going to create mountains of verbosity and code written to pump up the LOC numbers. It’s terrible. After that you’re gonna end up maintaining and enhancing what an “ai” spew out. I’m not buying the argument this is a problem that needs solving. It’s in the same vein with self driving cars. It looks impressive, it’s good PR, it’s absolutely insanely hard to get right and the benefits (even if we get it right) are questionable. the way it was introduced is also disingenuous.
- rvz 5y agoNo idea why you are downvoted. I am skeptical and against the hype of this "replacing" programmers which it certainly won't as the AI engine that it uses (GPT-3) is limited and the code itself can also generate garbage or introduce insecure and vulnerable code as well. This is why it will always be 'assistive' rather than going to 'replace' anything. 10 years later, self-driving cars are still unsafe and immature. The hype squad of this tool know it is limited but they want to capitalise on the 'AI' automation narrative to those who don't know any better.
- machiaweliczny 5y agoAs long as supply > demand then 1 programmer able to do job for 2 equals higher salary. Obviously supply shortage will end though, sooner or later.
- rantwasp 5y agoI don’t necessarily agree with you that if supply > demand and 1 programmer does the job of 2 this will lead to a higher salary. You can see this today in most places where you can walk on water, but you still need to be in your pay band.
- deviation 5y agoIs anyone aware of the implications this will make for developers who might want to try software like this, but be under an NDA? Currently consulting for a bank who takes their security very seriously. Would there be extra hurdles here to make sure there's no calls or requests being made using our data?
- kap7 5y agoI had visions of writing tests and then the AI would do the production code. I think that would be a lot better. Comments are too hard to get right. Good Luck!
- abrookewood 5y agoI don't understand how code ownership will work. The application is "trained on ... source code from publicly available sources", but "code you write with its help, belong to you". I get that most code it generates appears to be unique, but they admit that fragments of verbatim code occasionally appear. Unless the code they are using is all BSD-licensed, surely this breaches those licences?
- woeirua 5y agoI'm not worried about programs like Copilot, in the same way that I'm not worried about outsourcing. If price was the sole factor in software engineering then all jobs would have already been shipped overseas. Instead, an awful lot of companies tried that, and realized that it's far from the bees knees. AI tools like this will be force multipliers, the same way that IDEs are. SWEs 20 years ago decried the rise of the IDE the same way that some are moaning about this. "It'll lead to a generation of know-nothing programmers." Instead, SWEs are more productive today than they ever have been before. Software engineers should welcome the day that an AI makes it possible to describe what you want instead of telling the machine exactly what to do. That's where I see this technology going in 20 years. That said, it will likely never be good enough to replace an engineer completely because the value of an engineer is in deciding what to build and how to build it. Not in determining exactly which lines of code to write. SWE will be more enjoyable as a field in 20 years because we won't have to wrangle compilers, or deal with fundamental limitations of how computers express ideas versus how humans express concepts. Instead, we'll let the AI translate for us and deal with all those problems automatically. In the short term, I see lots of potential for this technology to make something like the ultimate cross-compiler. If you can take someone's code, convert it to some kind of universal representation (embedding), and then convert that to another language (and get working code that verifiably produces the same results) you would make a ton of money.
- mullikine 5y agoI started making something like this in emacs about 4 months ago. I'm looking for collaborators! Thanks https://github.com/semiosis/pen.el/ https://github.com/semiosis/pen.el/
- taetaetae 5y ago비좀 그만오게 해달라는 변수 만들어 주세요
- taetaetae 5y ago비좀 그만 오게 해달라는 변수 만들어 주세요.
- choward 5y agoI don't understand what this has to do with pair programming. It's just a glorified auto complete for function bodies. You still have to come up with everything else. Filling in function bodies isn't what makes pair programming valuable.
- perlpimp 5y agoNews.yc commenter copilot.
- punnerud 5y agoClassic Lean Startup?
- bobm_kite9 5y agoIs there any explanation of how this works, beyond ‘ai’? I mean, I understand (I think) how Bert/gpt works, but I can’t quite see how you would train this.
- detectiveninja 5y agothis is so weird I don't use autocomplete nor syntax highlighting, this thing feels almost hostile to my ways. (the only non linear help I love, is jump to definition)
- raxxorrax 5y agoHow does this compare to tools like resharper? Is it comparable? Is this the next generation of such tools? Or does it work completely differently?
- bprasanna 5y agoWe are not far away from the days where copilot becoming main pilot!
- kitsune_ 5y agoHow does this not violate the GPL and more permissive licenses such as Apache that require attribution?
- marceloabsousa 5y agoFor me, the excitement comes from Microsoft spending big money on this tech. For those in the field of program synthesis it will be interesting to compare performance and viability of the tech. It's still early stages but this has been long coming and will put the emphasis of software development into more collaborative aspects such as architecture, design and code reviews.
- thesz 5y agoThis things suggests code to write, but not code to remove. https://www.folklore.org/StoryView.py?story=Negative_2000_Lines_Of_Code.txt https://www.folklore.org/StoryView.py?story=Negative_2000_Li... What you didn't write or deleted does not contain errors and you do not need to support or fix it.
- amelius 5y agoSo how often does it get the first line right? This must be easy to measure, over the entire open source corpus. How about two lines?
- firstSpeaker 5y agoWould this be available as plugin for other IDEs? E.g. IntelliJ?
- developeron29 5y ago"When you don't pay for a service, you are the product" Never realised they'll read my code to make something like this and maybe even make profit from it.
- shrimpx 5y agoReminds me of the movie Antitrust (2001), where an evil company, modeled after Microsoft, is surveilling programmers to steal their code.
- hahahaprod 5y agohahaha
- hahahaprod 5y agohahaha
- hahahaprod 5y agohahaha
- hahahaprod 5y agoasdadada
- hahahaprod 5y agoasdasdasda
- hahahaprod 5y agotestestes
- hahahaprod 5y agoasdsadsada
- hahahaprod 5y agoyesyesyes
- sizt 5y agoThis is great. Programmers will be able to write bloated, non-intuitive, badly designed applications much faster now. Just what the world needs.
- rexreed 5y agoGiven Microsoft invested $1B for an exclusive license of OpenAI's GPT-3 I wouldn't be surprised to see GPT-3 everywhere in all of Microsoft's products and in their acquisitions. Maybe we'll see GPT-3 in LinkedIn as well. Maybe don't believe everything you see on that network in the future (or now).
- jonesn11 5y agoThis is an interesting business model. One problem I foresee though is that frameworks can get outdated in a few years, and that might affect the text generation abilities.
- lawwantsin17 5y agoBut can it make the programmer understand the code as auto-diarrheas it out?
- toastal 5y agoI'm sorry but this "copilot" is train off you and you are helping it, not the other way around.
- fiznool 5y agoI haven’t seen any comparisons yet to the competition. How does copilot compare to the likes of kite and tab9? https://www.kite.com/ https://www.kite.com/ https://www.tabnine.com/ https://www.tabnine.com/
- internetmon 5y agojust got access. Jesus christ, its happening
- thamalama 5y agoso gh has trained their AI programmers as much as they could with shit code examples, now to bridge the last mile they need some hand holding? sign me up! will I get a real online gf out of this finally?
- mkr-hn 5y agoSomeone needs to put the OSI model in GitHub Copilot and see if it produces a TCP/IP implementation.
- ydmitry 5y agoIsn't this just search needed code snippet by some sentence? Will it reuse functions those are already exists in my codebase? Or just pure functions without dependencies?
- DaveVillamor 5y agoIt looks really interesting, but I already lost hope of trying it, and that applies in the first days before the boom: C if there is someone from the Copilot team it would be incredible to try this tool my github is github.com/DaveVillamor <3