News for hackers. Stuff that matters.

thakkarparth007

There's replit. Constantly announcing new features around such models. They'd introduced "ghostwriter" a while back and yesterday or so they announced ghostwriter chat.
Re:Copilot Internals on Monday December 19, 2022 @06:46AM (#34051030)
oh lol. Yeah, messed up while rewriting. Fixing. Thanks!
Re:Copilot Internals on Monday December 19, 2022 @03:54AM (#34049952)
Hey Gavin, that's consistent with what I said in the blog post. Header files (.h) and (.c) files are classified as having the same language (C). As a result, if you have the header file open in a tab (or in the workspace -- I'm not sure if unaccessed files from workspace are used), then it'll be considered for the prompt.
Re:Copilot Internals on Monday December 19, 2022 @01:19AM (#34049103)
Yeah, I second what bibabloo said. Sometimes when I want to edit something, I comment out existing thing, and start writing what'd be the new version. Then copilot autocompletes what I have in mind (often enough).
Re:Copilot Internals on Sunday December 18, 2022 @10:00PM (#34047845)
RE: neovim

Looks like the 20 file logic is present in neovim as well. I went through its code (https://github.com/github/copilot.vim/blob/release/copilot/d...) after beautifying it (https://codebeautify.org/jsviewer), and found it present.

I couldn't exactly trace it to a specific neovim event but I'm guessing it corresponds to buffer-update-events (https://neovim.io/doc/user/api.html#api-buffer-updates) or something like that.

Re: getting in trouble

I surely hope not :P. I mean, the code is basically public (available on every user's computer).

Re:Copilot Internals on Sunday December 18, 2022 @08:42PM (#34047150)
I think the UX of large suggestions will require a lot of thinking and experimentation. That's because the longer the output of such model, higher the risk of it making some mistake. For short completions, it's often easy to identify mistakes from useful suggestions (though sometimes subtle bugs slip in). But for longer completion, it'll get tedious and we might start accepting wrong suggestions.
Re:Copilot Internals on Sunday December 18, 2022 @08:21PM (#34046964)
Thank you! :)
Re:Copilot Internals on Sunday December 18, 2022 @08:15PM (#34046904)
Heh this blew up here :D Didn't know till a friend told me about it.

I'd love to know if you guys have any specific questions about copilot's internals that I can try to answer by staring at the code or if you have any feedback for the tool/post!

Re:Copilot Internals on Sunday December 18, 2022 @08:11PM (#34046862)
The "Privacy – Copilot for Individuals" section under https://github.com/features/copilot does say that Copilot collects code snippets if allowed by telemetry.

> User Engagement Data When you use GitHub Copilot it will collect usage information about events generated when interacting with the IDE or editor. These events include user edit actions like completions accepted and dismissed, and error and general usage data to identify metrics like latency and features engagement. This information may include personal data, such as pseudonymous identifiers.

> Code Snippets Data Depending on your preferred telemetry settings, GitHub Copilot may also collect and retain the following, collectively referred to as “code snippets”: source code that you are editing, related files and other files open in the same IDE or editor, URLs of repositories and files path.

Sun, Java, IBM and Eclipse

So I just happened to read why Sun microsystems failed even though it produced crazy stuff like Java, Solaris, ZFS etc. In that article, amongst other mistakes, I found out that it was getting heavy competition from IBM, HP and others for Java. Sun marketed Java as a language that you write once and run anywhere, and then said that it ran best on Solaris servers. It was reluctant in making Java...

( Read More... | 1 comment | 2 points | on HN )
Re:Ask HN: Math books for a CS autodidact? on Saturday April 30, 2016 @04:20AM (#11600899)
Algorithms by Papadimitriou would be a pleasant read on algorithms.