73 karma · joined Feb 27, 2022 (4y ago) · 54 submissions
Working on improving diff tools for developers!
comment 4y ago · link · parent
Indeed, moving memory back and forth from CPUs to GPUs has an overhead. There are ways to mitigate this though! I vaguely remember that one of the patterns in reducing this movement was to keep the data in the GPU as much as possible. I haven't kept up with the latest tech in GPUs off late. When I first played around with CUDA, ArrayFire (arrayfire.com) (no affiliation) was a promising library, and might be a good fit for your GPU prototypes?
comment 4y ago · link · parent
> If it is, as you claim, permissible to train the model (and allow users to generate code based on that model) on any code whatsoever and not be bound by any licensing terms, why did you choose to only train Copilot's model on FOSS? For example, why are your Microsoft Windows and Office codebases not in your training set?
I'm not sure I buy this argument. In the first point, the authors state that Copilot was trained on public data. In the very next point, they slightly tweak it by saying training was done on "any" code which loses the distinction between public and private code. Obviously Windows and Office are not public code.
I also interpreted "public data" to mean they trained on codebases that explicitly specified, say, MIT licenses or other permissible licenses. That seems like fair use to me. Those licenses don't explicitly restrict training AI models on their codebases do they? It's ironic if these licenses started banning AI training now though. That would effectively mean Copilot would be sole trained AI model.
I'm happy to be proven wrong though. In general I have a distrust of Copilot. I fear it would make individuals worse programmers in the end at the cost of productivity
comment 4y ago · link · parent
Btw, since I think it is relevant to this discussion, we're working on making code reviews deeper than text based diffs. Check out (DiffLens)[https://github.com/marketplace/difflens] if you're code base is primarily TS, JS and/or CSS to get language aware diffs on your GitHub pull requests. We've found that it makes understanding code changes much easier
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
40.
DiffLens: Language Aware Diffs on GitHub Pull Requests
10 points · by difflens · 4y ago · 4 comments
comment 4y ago · link · parent
We're looking for feedback from developers. If you share our frustrations with reviewing code changes, we'd love to talk to you. Most developers already have a favourite diff tool installed locally but there exists very little for reviewing code changes online, so we worked on DiffLens slowly over a number of years. We use it to review our own code changes, and we love it. We'd really appreciate thoughts and insights about the idea and its execution from developers and will answer any questions that come up. Thanks for reading!
42.
Ask HN: Language Aware Diffs on GitHub Pull Requests(github.com ↗)
1 points · by difflens · 4y ago · 1 comment
comment 4y ago · link · parent
comment 4y ago · link · parent
Many of them are incomplete, but it gives a good idea of how the grammar looks for ANTLR.
I used the ANTLR grammar for parsing CSS in DiffLens (https://github.com/marketplace/difflens). DiffLens uses the typescript compiler itself to parse TS and JS.
I've also used Roslyn to parse C# (and F#). I wonder if the ruby compiler itself exposes a parser.
comment 4y ago · link · parent
Separately, I'm curious about how a parser generated out of ANTLR/yacc etc compares to this hand written one? If you've done some benchmarking, it'd be great to see numbers!
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
If you work primarily with frontend technologies and want a syntax aware diff on GitHub PRs, difflens might be right up your alley! Standalone Mac and Windows apps are coming out soon.
comment 4y ago · link · parent
comment 4y ago · link · parent
53.
Show HN: An improvement to reviewing code changes(github.com ↗)
2 points · by difflens · 4y ago · discuss
54.
Show HN: Language aware diff on GitHub PRs(github.com ↗)
8 points · by difflens · 4y ago · discuss