News for hackers. Stuff that matters.
Re:GitHub Copilot Labs by codeenlightener on Wednesday December 01, 2021 @05:52PM (#29410192)
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 sample explanation from Denigma:

The code starts by initializing the trampoline. Then it checks to see if there is a passed_info structure in memory, and if so, copies the struct into the passed_info variable. Next, it sets up some variables for use later on:

- info_struct - The smp_information struct that will be used throughout this function

- longmode - Indicates whether or not we are running in 64 bit mode

- lv5 - Indicates whether or not we are running with L1V5 support enabled (if you're unsure what this means google "Intel VT-x" and "L1D cache")

- pagemap - The address of our page table entry array (this is where all of our virtual addresses go)

- x2apic - Indicates whether or not we are using an Intel X2APIC controller

The code is a function that is called when the kernel is booted. The function checks to see if the kernel was booted in long mode or not, and if it was, it sets up a trampoline to call the original kernel.

We're small, privacy-focused, and bootstrapped, and don't have the marketing budget of GitHub, so we'd appreciate you talking about Denigma in your communities.

Re:GitHub Copilot Labs by veb on Wednesday December 01, 2021 @06:05PM (#29410305)
Good on you for editing your comment. I was about to say you probably shouldn't say that :-) I just checked out Denigma, and it's quite wonderful actually. I may give it a try - the pricing is pretty good, less than a cup of coffee where I'm at.

Nice job.

Re:GitHub Copilot Labs by codeenlightener on Wednesday December 01, 2021 @06:10PM (#29410349)
I encourage everyone to try it on real-world (non-esoteric, non-homework) code from production. That's where it works best. :-)
Re:GitHub Copilot Labs by veb on Wednesday December 01, 2021 @06:17PM (#29410396)
I actually did! It worked a lot better than GitHub's Lab.
Re:GitHub Copilot Labs by lumost on Wednesday December 01, 2021 @10:46PM (#29412327)
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.
Re:GitHub Copilot Labs by codeenlightener on Thursday December 02, 2021 @07:25PM (#29425018)
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.

Re:GitHub Copilot Labs by albert_e on Thursday December 02, 2021 @07:47AM (#29415422)
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 by codeenlightener on Thursday December 02, 2021 @11:11PM (#29426539)
Hmmmm, if it's not "too long to fit on one line and so instead it's written as 12", what is "setLong(12)"?
Re:GitHub Copilot Labs by 999900000999 on Wednesday December 01, 2021 @06:27PM (#29410467)
Where does this actually run?

Can I run this on prem.

Can it search though a whole project and tell what I'm doing?

Re:GitHub Copilot Labs by barrenko on Thursday December 02, 2021 @05:04AM (#29414356)
Loving this!