Live data from Hacker News

GitHub Copilot Labs

github.com

61–70 of 72 posts

Re: GitHub Copilot Labs

#61
post #58

Earlier quoted context omitted.

I'm really happy to hear that. Thank you. When I started out, I only wanted to make some small contribution somewhere. It's really surreal that there are people rooting for me now. I'll do my best to continue to contribute in ways that I can. You can too, by the way. There's not a lot of difference between me and you. I believe in you.

I was literally sitting here trying to stop the waves of sadness I'm feeling from not meeting my own expectations. Bumping into a kindred spirit that's getting shit done really helps. Thank you for the nudge.

No stress, friend :) Remember, small contributions really matter! You can do it!

Re: GitHub Copilot Labs

#62

I've been using Copilot for 3 weeks in a typical web project: typescript, react, css. Feedback: - when i declare a variable or function using a suggestive name, it correctly autocompletes what i want 50% of the time and it also takes into account the context; sometimes it just blows my mind how accurate it can be. - sometimes it doesn't autocomplete even if i delete the line to start over - i changed the way i code:…

I have an honest question, do you feel you are saving time? And if so, is this really the case?

Having clever code proposals is surely a big advantage and seems to be a big time saver. But it also means that you have to constantly switch between writing your code and reading/analyzing code that you didn't write yourself, to check if it's correct, if it handles all the cases, etc.

These situations, where we go from one task to another, are typically the kind of situations where we have a very bad perception of the time passed.

It would be interesting to investigate whether this undeniably saves time or not

Re: GitHub Copilot Labs

#63
post #56

Earlier quoted context omitted.

Perhaps your framework is not as state-of-the-art as you believe?

I’ll take the bait. What makes you say that?

Because —and this serves as a reply to the sibling comment too— GPT-3 is just a relatively simple construct pumped full of data and compute. After training it is relatively static, and while output might appear novel in some cases I think it is far more likely that GPT-3 is not more imaginative than most people suspect, but that people are less imaginative than most people expect.

I’m not knocking your work, it certainly may be the first (or near enough to) instance that techniques are applied in the way that they are; but in my understanding and opinion, the very fact that Copilot can output code that seems novel and groundbreaking suggests the opposite. Occam’s razor.

Re: GitHub Copilot Labs

#64

Hello! I'm the founder of https://denigma.app , an AI that explains code. It's available now, with a free demo and VS Code extension, with an Emacs extension coming soon. Denigma is a product that has been around for a while. Denigma goes beyond a literal line by line explanation, and explains of programming concepts and deduces the business logic and goal of code. I'm excited to see innovation in the field. Here's a…

Here is a sample I just tried -- https://imgur.com/a/2T2Bw0X

Very amusing that the explanation goes into great lengths to explain some nuance that doesn't exist ...and gets it completely wrong?

Is this because it was trained on some similar but different code that had this type of nuances explained in comments?

Re: GitHub Copilot Labs

#65
post #35

I've been using Copilot for 3 weeks in a typical web project: typescript, react, css. Feedback: - when i declare a variable or function using a suggestive name, it correctly autocompletes what i want 50% of the time and it also takes into account the context; sometimes it just blows my mind how accurate it can be. - sometimes it doesn't autocomplete even if i delete the line to start over - i changed the way i code:…

The most insane is that it even autocompletes comments. It’s honestly scary sometimes.

Comment autocomplete is very neat. I use copilot for comments more than for code.

Re: GitHub Copilot Labs

#66
post #62

I've been using Copilot for 3 weeks in a typical web project: typescript, react, css. Feedback: - when i declare a variable or function using a suggestive name, it correctly autocompletes what i want 50% of the time and it also takes into account the context; sometimes it just blows my mind how accurate it can be. - sometimes it doesn't autocomplete even if i delete the line to start over - i changed the way i code:…

I have an honest question, do you feel you are saving time? And if so, is this really the case? Having clever code proposals is surely a big advantage and seems to be a big time saver. But it also means that you have to constantly switch between writing your code and reading/analyzing code that you didn't write yourself, to check if it's correct, if it handles all the cases, etc. These situations, where we go from on…

I feel it definitely saves time, if you can write a decent comment code, and the function name is descriptive, that's all you need. The functions write themselves. It's better if you follow the single-responsibility principle or at least don't have too many side effects in your methods.

Often times the comment isn't even needed and just a method name is enough to get it churning out the right code.. I might change a variable name, and some minor stuff but I don't have to search for little things I normally forget ...like framework sugar syntax I've used before but can't remember off my mind but when I see it, I know oh yeah that looks right...

Re: GitHub Copilot Labs

#67

Earlier quoted context omitted.

I've been finding it amazingly useful from the outset. It's like it reads my mind generating whole correct functions just from a small comment or example, and it's great at extrapolating repetitive increments/transformations. Write a small comment telling it what you want and it's uncanny what it can spit out.

I've had the opposite experience so far, though I've admittedly not used it that much yet. I've got this Python fiscal date library at work, and I wanted to add a something like a `strtftime()` method which would replace $P with the period, $Q with the quarter, etc, but treat $$ as a literal $ (so that e.g. $$P would result in $P). Simple enough, but I thought it would be cute to see if I could get copilot to do it f…

I noticed that for very specific things like this, it doesn't always work. However, if you had several functions which needed slight variations of the same thing, then writing the first one manually would allow it to automatically guess the rest of them.

Re: GitHub Copilot Labs

#68
post #38

I've been using Copilot for 3 weeks in a typical web project: typescript, react, css. Feedback: - when i declare a variable or function using a suggestive name, it correctly autocompletes what i want 50% of the time and it also takes into account the context; sometimes it just blows my mind how accurate it can be. - sometimes it doesn't autocomplete even if i delete the line to start over - i changed the way i code:…

Copilot may be the unexpected solution to the holy grail of code reuse. :)

And bug re-use is now 50% faster! Just kidding… mostly.

Re: GitHub Copilot Labs

#69
post #42

My favorite copilot moment recently is rails migrations. I write the up migrating n, copilot gets the down migration right 90% of the time. It's wild. And these aren't vanilla "change" commands. It's triggers and check constraints and changing column types and stuff.

Not using Copilot yet, would appreciate if you could provide some real examples on what you typed and what copilot suggested.

When I type:

  def up
    execute 
i.e. I am adding a check constraint but making it NOT VALID so it won't lock the table while scanning

If I continue and write

    execute 
then it completes it with

      alter table users
And then the next line I type

      v
and it completes it with

      validate constraint active_users_must_have_email
    SQL
 
I then type

  end
and it suggests:

  def down
    execute 
Which is exactly what I needed.

What impresses me is that a) it recognized that a NOT VALID index needs to be VALIDATEd and b) it figured out what the down migration was.

Re: GitHub Copilot Labs

#70
post #45

Hello! I'm the founder of https://denigma.app , an AI that explains code. It's available now, with a free demo and VS Code extension, with an Emacs extension coming soon. Denigma is a product that has been around for a while. Denigma goes beyond a literal line by line explanation, and explains of programming concepts and deduces the business logic and goal of code. I'm excited to see innovation in the field. Here's a…

Very cool product, I'm curious if you have an offline version that an individual developer could pay for. At my Fortune-100 employer I read a ton of code that is often opaquely written and stored in a private git repository. Unfortunately it's a huge hurdle to approve a SaaS app which receives any data or code from our work environments.

A self-hosted version will be developed, but it will likely take a few months at minimum.

The hardware requirements (GPU) might be hefty. I'll try to see if I can optimize the size of the model to something smaller.

Post reply on HN