It's a horrifying tool as someone who is working almost exclusively with systems programming language.
but is still more useful than other autocomplete tools.
I don't know what environment you're used to but it's not that far away from yasnippet with autocomplete hooks in Emacs. The only difference is that Copilot requires zero templates, so you avoid all the configuration hassle, but a lot of the "templates" are also garbage...
I think it should have a "use all this private repositories as reference" to have as the first reference the code from you and your coworkers if it doesn't have that yet.
I'm pretty sure the input data is purposefully limited for both preventing people from bogging the service down, and because excess input data may actually degrade results. I'm also pretty sure people aren't getting a personalized instance of the neural network.
My only praise for Copilot really is for its ability to help write documentation. Yes, it still hilariously fails sometimes but that is almost always harmless, and I get the impression if it were trained specifically to write documentation it would actually have be an incredible tool.
Then you should consider yourself warned: it's basically a snippet tool on steroids with very little quality control for what it produces. Most of the demos of it I've seen produce horribly problematic code. For instance: it emitted a function that involved date manipulation by... using substrings.
The neural network doesn't have any measure of "good" code that doesn't break in a variety of circumstances. It's measure for correctness appears to be incredibly constrained, and as mentioned, deals with side effects and other application state poorly.
And, the vast majority of people are using Copilot with high level, garbage collected languages. Just from the questionable solutions it spits out in these safer languages makes me concerned if I were to use this for C++. What it is decent for is pure boilerplate. But that application doesn't come across as particularly impressive since there's been snippet tools to aid in this problem for ages...
The biggest issue is security. Copilot has no concept of this.
Hilariously, it seems one of its best applications is writing comments, rather than code.
There's a pretty obvious solution to this too: create multiple neural networks for the respective license classes. You would have no licensing issues if you just had a copilot for GPLv3 code and that's all it spat out. The only problem at that point is copyright attribution and that is probably a question a lawyer won't even be able to answer because it's just not a scenario codified into law and has no real parallels. It's basically a derivative work composing of millions of sources.
The elephant in the room of course is that this is a neural network that pukes out, at best, barely functioning code that may or may not apply to the context. The author is demonstrating its inability to generate decent pure functions, which should have been a very easy test case. In practice, most people are writing code that mutates state outside of the function, and the context in those circumstances is an order of magnitude more complex. Neural networks, which only exhibit correlative intelligence, are not particularly good for logical or structural tasks. Anyone who has any experience working with them should know their applications, so the whole copilot project reeks of some braindead executive thinking he's going to revolutionize software development by making "AI" do it.
However, the copyright question is admittedly interesting. I don't think it's a particularly egregious violation of open source source licenses, but rather an issue of figuring out how to properly comply with them.
I can confirm this, Arch has a couple things that make it hard to do development on other distros:
Rolling release + very mature distribution developers/official package maintainers
The AUR, obviously, but I would point out the AUR is a product of Arch's easy to navigate build system. I've interacted with all parts of it (including libalpm) and I can't go back to distros like Debian that makes you build packages with a convoluted makefile system.
Security that compares to mainstream LTS distros. I'm actually planning to use Arch for a project that will require some servers because the rolling release model works great if you perform automatic integration tests for system updates.
I can't really call it 'advanced' though, I've had to do more bullshit to get third party PPAs working in debian-based distros working without breaking every update, and let's not even talk about Gentoo. Arch has only saved me time.
Saying that the external x server of nvidia-xrun does not use offloading is factually and technically incorrect
Let me clarify, the nested X11 server itself is not using offloading with typical usages of nvidia-xrun, the server displaying the (already composited output) is. I suggested trying that because nvidia-xrun itself is not a vulkan client.
When I refer to "non-offloaded applications" in the OP's configuration, I am referring to the mechanism the xorg driver uses to draw and clip accelerated OpenGL and Vulkan clients (from a framebuffer on a separate graphics device than the output) with respect to normal X11 windows rendering from a pixbuf.
Is that verbose enough to end this pedantry? These details are of little consequence to the OP's problem.
optimus-manager does the same level of PRIME offload as complete nvidia offload and nvidia-xrun
Correct; these are not directly responsible for whatever softlock is occurring here, but this has been a known source of problems with applications using vulkan. That being said, because nvidia-xrun itself is not a vulkan client, whose frames are composited from an external X server which does not use offloading, the result may be different.
If I had to guess, the underlying problem is likely the nvidia xorg driver bugging out when drawing direct vulkan framebuffers that are obscured by other, non-offloaded applications.
This is probably the source of your issue since it relies on what has been considered buggy or broken vulkan support with hardware offloading. You are probably stuck with either using nvidia-xrun for a nested X11 server instead, software offloading (primus_vk, could be slow), or praying that Nvidia will do something about the bleak situation with optimus laptops and linux.
Use journalctl to see if you can recover any useful information when the system can recover since your situation potentially indicates the graphics driver soft-locking your kernel.
You can try avoiding the issue by using a different compositor (or none at all), or different driver versions. Fixing the issue may prove difficult if it is rooted in the nvidia driver itself, since you're at the mercy of how quickly they choose to tackle a bug report that you will have to submit.
It might be worth mentioning how you're running the vulkan application since offloading with vulkan is a bit dodgy at the moment (ie. primus_vk, using nvidia-xrun, or strictly using discrete card).
Git is solely a VCS; it does not have any involvement in an application's build process nor its dependencies (outside of git submodules, which people only really use for static or header-only libraries).
This means you have to peer into the repository and assume a lot of things:
That it uses a standard build system, assumes no configuration, and assumes that either the default build is suitable for release or that a release buildtype can be specified.
That it somehow lists dependencies in a fashion that can be parsed (ie. not listed in a readme), which excludes most simple repositories that just operate on a Makefile, such that the resulting package built has the correct dependencies specified
And that no special treatment (ie. package splitting, special build configuration/paths) is required for Arch
You can probably guess how frequently something like this would flat out break and not work.
This is because you are using llvmpipe (software rasterizer), which is what you are stuck with for an OpenGL implementation if your current driver does not provide one.
If you never installed the nvidia or nouveau drivers, or if the modules aren't loaded, then you will encounter this situation on your system.
Using loopback via line-in on most cards incurs no latency penalty for playback and additionally allows you to record it as well. It also means you only use a single output jack, which is nice if you want to hear audio from both the host and guest on the same output.
If you mean the inverse (host out into guest line-in) there's no functional difference since it's the hardware responsible for mixing the two signals.
Ideally you have two audio PCIe devices (purchase a separate one for audio production on the VM), and route output from the VM's device to the line-in for your host system, and enable loopback on the host device.
Forgive me for asking about an old post, but you shouldn't have performance issues with GLava when it is obscured by another window since that should notify the window to stop rendering. If your WM/compositor is interfering with this please report a bug.
Sincerely, the author who is aggressively searching for user issues before the next release
For your tty, you can use fbset to change the resolution if something is awry there.
For X, this sounds like you simply have the wrong resolution set, unless you have configured X with parameters for DSR in Linux. You should be able to see and modify this with nvidia-settings.
What 15 year old Pentium had a clock of 1.6GHz in a laptop of all things? You're over-estimating the age the device. You are likely referring to the relatively newer dual-core Pentiums, which means you're very likely to have 64-bit support.
This means you have to do nothing special and all you have to do is avoid heavier desktop environments.
but that would make that l the graphics card you want to pass through unavailable for your host to use it
This is not strictly true since you can hotswap GPUs between a guest and running host by abusing bumblebee to connect to a secondary X server, but it's a bit of a hack and only works with cards that re-initialize nicely.
No. I didn't find anything that did what I wanted. Adding a tab bar and doing some of the buffer constraint magic that I have here is fairly unique to my code (draggable/resizable frames that snap to alignments/gaps and don't overlap).
Awesome is more of a framework for writing a window manager, as you can strip away most of the layout functionality it provides and write your own.
And while I do have a working setup for myself, this kind of WM deserves its own standalone implementation.
This setup uses a global 'tab bar' to display the buffer list as well, which makes selection and reordering the list easy: https://i.imgur.com/7NJhbto.png
The selector.lua source file is basically a C-x b on steroids. It allows sorting buffers by class, title, etc, and has completion and suggestion support.
I have the 7260 as well and can confirm that chipset's drivers are utter garbage.
It's a horrifying tool as someone who is working almost exclusively with systems programming language.
I don't know what environment you're used to but it's not that far away from
yasnippetwith autocomplete hooks in Emacs. The only difference is that Copilot requires zero templates, so you avoid all the configuration hassle, but a lot of the "templates" are also garbage...I'm pretty sure the input data is purposefully limited for both preventing people from bogging the service down, and because excess input data may actually degrade results. I'm also pretty sure people aren't getting a personalized instance of the neural network.
My only praise for Copilot really is for its ability to help write documentation. Yes, it still hilariously fails sometimes but that is almost always harmless, and I get the impression if it were trained specifically to write documentation it would actually have be an incredible tool.
Then you should consider yourself warned: it's basically a snippet tool on steroids with very little quality control for what it produces. Most of the demos of it I've seen produce horribly problematic code. For instance: it emitted a function that involved date manipulation by... using substrings.
The neural network doesn't have any measure of "good" code that doesn't break in a variety of circumstances. It's measure for correctness appears to be incredibly constrained, and as mentioned, deals with side effects and other application state poorly.
And, the vast majority of people are using Copilot with high level, garbage collected languages. Just from the questionable solutions it spits out in these safer languages makes me concerned if I were to use this for C++. What it is decent for is pure boilerplate. But that application doesn't come across as particularly impressive since there's been snippet tools to aid in this problem for ages...
The biggest issue is security. Copilot has no concept of this.
Hilariously, it seems one of its best applications is writing comments, rather than code.
There's a pretty obvious solution to this too: create multiple neural networks for the respective license classes. You would have no licensing issues if you just had a copilot for GPLv3 code and that's all it spat out. The only problem at that point is copyright attribution and that is probably a question a lawyer won't even be able to answer because it's just not a scenario codified into law and has no real parallels. It's basically a derivative work composing of millions of sources.
The elephant in the room of course is that this is a neural network that pukes out, at best, barely functioning code that may or may not apply to the context. The author is demonstrating its inability to generate decent pure functions, which should have been a very easy test case. In practice, most people are writing code that mutates state outside of the function, and the context in those circumstances is an order of magnitude more complex. Neural networks, which only exhibit correlative intelligence, are not particularly good for logical or structural tasks. Anyone who has any experience working with them should know their applications, so the whole copilot project reeks of some braindead executive thinking he's going to revolutionize software development by making "AI" do it.
However, the copyright question is admittedly interesting. I don't think it's a particularly egregious violation of open source source licenses, but rather an issue of figuring out how to properly comply with them.
I can confirm this, Arch has a couple things that make it hard to do development on other distros:
libalpm) and I can't go back to distros like Debian that makes you build packages with a convoluted makefile system.I can't really call it 'advanced' though, I've had to do more bullshit to get third party PPAs working in debian-based distros working without breaking every update, and let's not even talk about Gentoo. Arch has only saved me time.
You need to create a bug report for the nvidia xorg driver so there is at least a chance at fixing this.
Let me clarify, the nested X11 server itself is not using offloading with typical usages of
nvidia-xrun, the server displaying the (already composited output) is. I suggested trying that becausenvidia-xrunitself is not a vulkan client.When I refer to "non-offloaded applications" in the OP's configuration, I am referring to the mechanism the xorg driver uses to draw and clip accelerated OpenGL and Vulkan clients (from a framebuffer on a separate graphics device than the output) with respect to normal X11 windows rendering from a pixbuf.
Is that verbose enough to end this pedantry? These details are of little consequence to the OP's problem.
Correct; these are not directly responsible for whatever softlock is occurring here, but this has been a known source of problems with applications using vulkan. That being said, because
nvidia-xrunitself is not a vulkan client, whose frames are composited from an external X server which does not use offloading, the result may be different.If I had to guess, the underlying problem is likely the nvidia xorg driver bugging out when drawing direct vulkan framebuffers that are obscured by other, non-offloaded applications.
This is probably the source of your issue since it relies on what has been considered buggy or broken vulkan support with hardware offloading. You are probably stuck with either using
nvidia-xrunfor a nested X11 server instead, software offloading (primus_vk, could be slow), or praying that Nvidia will do something about the bleak situation with optimus laptops and linux.If you're willing to abandon dynamic switching you can also try the proprietary driver's built-in PRIME support. See here: http://download.nvidia.com/XFree86/Linux-x86_64/435.17/README/primerenderoffload.html
Use
journalctlto see if you can recover any useful information when the system can recover since your situation potentially indicates the graphics driver soft-locking your kernel.You can try avoiding the issue by using a different compositor (or none at all), or different driver versions. Fixing the issue may prove difficult if it is rooted in the
nvidiadriver itself, since you're at the mercy of how quickly they choose to tackle a bug report that you will have to submit.It might be worth mentioning how you're running the vulkan application since offloading with vulkan is a bit dodgy at the moment (ie. primus_vk, using
nvidia-xrun, or strictly using discrete card).Git is solely a VCS; it does not have any involvement in an application's build process nor its dependencies (outside of git submodules, which people only really use for static or header-only libraries).
This means you have to peer into the repository and assume a lot of things:
That it uses a standard build system, assumes no configuration, and assumes that either the default build is suitable for release or that a release buildtype can be specified.
That it somehow lists dependencies in a fashion that can be parsed (ie. not listed in a readme), which excludes most simple repositories that just operate on a
Makefile, such that the resulting package built has the correct dependencies specifiedAnd that no special treatment (ie. package splitting, special build configuration/paths) is required for Arch
You can probably guess how frequently something like this would flat out break and not work.
No, just
nvidiaalone is enough for OpenGL (what OP is using), but something could be stopping the kernel module from loading (ie. blacklisted).u/betstick probably ended up blacklisting the
nvidiadriver entirely for VFIO or as mentioned here in the arch wiki incorrectly.This is because you are using llvmpipe (software rasterizer), which is what you are stuck with for an OpenGL implementation if your current driver does not provide one.
If you never installed the
nvidiaornouveaudrivers, or if the modules aren't loaded, then you will encounter this situation on your system.Using loopback via line-in on most cards incurs no latency penalty for playback and additionally allows you to record it as well. It also means you only use a single output jack, which is nice if you want to hear audio from both the host and guest on the same output.
If you mean the inverse (host out into guest line-in) there's no functional difference since it's the hardware responsible for mixing the two signals.
Ideally you have two audio PCIe devices (purchase a separate one for audio production on the VM), and route output from the VM's device to the line-in for your host system, and enable loopback on the host device.
don't forget to use
-O9and-fomg-optimizeForgive me for asking about an old post, but you shouldn't have performance issues with GLava when it is obscured by another window since that should notify the window to stop rendering. If your WM/compositor is interfering with this please report a bug.
Sincerely, the author who is aggressively searching for user issues before the next release
Heretic!
There's a moderate list of captcha software that could be used, or the team could spin one up themselves.
In particular, this permissively licensed PHP library is probably a good starting point.
For your tty, you can use
fbsetto change the resolution if something is awry there.For X, this sounds like you simply have the wrong resolution set, unless you have configured X with parameters for DSR in Linux. You should be able to see and modify this with
nvidia-settings.What 15 year old Pentium had a clock of 1.6GHz in a laptop of all things? You're over-estimating the age the device. You are likely referring to the relatively newer dual-core Pentiums, which means you're very likely to have 64-bit support.
This means you have to do nothing special and all you have to do is avoid heavier desktop environments.
Use
PULSE_LATENCY_MSEC=30 discordto fix the issue iftsched=0does not in your config.This is not strictly true since you can hotswap GPUs between a guest and running host by abusing bumblebee to connect to a secondary X server, but it's a bit of a hack and only works with cards that re-initialize nicely.
No. I didn't find anything that did what I wanted. Adding a tab bar and doing some of the buffer constraint magic that I have here is fairly unique to my code (draggable/resizable frames that snap to alignments/gaps and don't overlap).
Awesome is more of a framework for writing a window manager, as you can strip away most of the layout functionality it provides and write your own.
And while I do have a working setup for myself, this kind of WM deserves its own standalone implementation.
I was in your exact situation, as EXWM wasn't really what I wanted to use long-term for a WM but loved how window management was handled with it.
You can accomplish something like this in AwesomeWM, but it requires a good deal of Lua to work. Here is some unfinished source code from what I currently use, but I would recommend starting fresh and using this as a reference.
This setup uses a global 'tab bar' to display the buffer list as well, which makes selection and reordering the list easy: https://i.imgur.com/7NJhbto.png
The
selector.luasource file is basically aC-x bon steroids. It allows sorting buffers by class, title, etc, and has completion and suggestion support.Enjoy.