645 karma · joined Oct 28, 2016 (10y ago) · 374 submissions
comment 4y ago · link · parent
Copilot suggesting it for inclusion into proprietary codebases is then effectively whitewashing that GPL code.
Copilot also does not provide attribution, which is a legal requirement of tons of permissive licenses, including MIT and BSD.
comment 4y ago · link · parent
comment 4y ago · link · parent
Of course, the downside is that now you have way more tokens you need to know to understand some code, similarly to how Haskell code tends to have tons of mega-abstract function combinators or whatever whereas Go code is very simple. Which one is more readable depends on the reader, because a language like Go requires the reader to sift through more details, whereas Haskell is much terser but also requires much more pre-existing knowledge to understand.
I'm wondering if we can use these code-generation models to find "low entropy code" that is a prime target for turning into libraries.
comment 4y ago · link · parent
How does BSD avoid this? I guess package manager installed software does get lumped in, but is that really 3rd party software in a meaningful sense? I very much like how it's all in one place.
User-installed software usually gets installed into /usr/local or /opt, which is separate from the system-managed trees.
comment 4y ago · link · parent
Also, why can't a brute force algorithm not be AI? Machine learning is arguably brute force too; a neural network just brute forces some realistic sentences by doing a bunch of matrix multiplications, if you get down to it.
comment 4y ago · link · parent
It did so 5 times, versus how many times it gave a false positive where you just had to delete the import or underscore the variable?
Warnings are intended precisely for this type of "hey, you probably made a mistake here". Errors should imo be reserved for cases where the compiler is more or less sure you are wrong.
Rust has probably the biggest possible focus on "making sure only correct programs compile", and rustc does not error on an unused variable or import; it gives a warning. Precisely because it does not know if it is a bug, or just, I don't know, "commenting out the code that uses it to try something".
Also, in the case of an unused variable, you CAN blow it off, by using _. In fact, this makes it far easier to forget about it later compared to a warning that can be silenced in the same way, because if it's a warning you'll only do it if you're actually sure, while with an error you might do it even if you're less certain, because it's absolutely necessary.
comment 4y ago · link · parent
Sure, it's not as nice or compact as a single binary, but "you'll be lucky if you can run on any non-Ubuntu/RHEL system" is massively overblown.
comment 4y ago · link · parent
I would like to see if the zfp can be applied to something like Stable Diffusion (or other ML models) and give better results than regular floats at the same size.
comment 4y ago · link · parent
I feel like they're kind of two sides of the same coin: learning is about putting more information in the same data, while compression is about putting the same information in less data.
I'm wondering if some lossy floating-point compressor (such as zfp) would work.
comment 4y ago · link · parent
So something like
Album.objects.annotate(duration=Sum('track__length')).order_by('duration')
There are also libraries that enable you to define an annotation or aggregation inside a model, that you can then get with a call like select_properties, similar to the built-in select_related (which you use to get a foreign key in one query) and prefetch_related (which is select_related for many-to-many fields).comment 4y ago · link · parent
comment 4y ago · link · parent
Ah, that makes a lot of sense actually, thanks for explaining! The heuristics idea sounds neat.
Sounds like it's running on surprisingly little hardware. Is the index stored on a separate SSD?
comment 4y ago · link · parent
It works quite decently, although again limitations regarding linewrapping apply; the inline lints from lint+ break linewrapping :/
Also, for Lapce I cannot find server integrations other than a few, namely Rust, JS/TS, YAML, C/C++, Go and Dart. No Python, for example. Adding Python support in Lite's LSP is as simple as adding lspconfig.pylsp.setup() to your config (and installing the server), if you already have the plugin set up correctly.
comment 4y ago · link · parent
It's kind of immature in some ways, for example, the current release version has some limitations in the native plugin interface (which you need for loading C libraries for Lua, as Lite may use a statically linked version), and there is a conflict between the linewrapping and projectsearch plugins where opening a file from it is bugged if you have linewrapping enabled by default.
Lapce does seem more advanced in some ways, but IMO the enormous hackability of Lite is also a nice advantage.
comment 4y ago · link · parent
Out of curiousity, what kind of hardware are you running this on? I can imagine that you'd need a lot of storage to store the index, but the size of plain text can often be surprisingly small.
comment 4y ago · link · parent
OP's CPU takes up around 400 LUTs. Since a 2:1 mux takes up 1 LUT (although it seems the numbers are for a LUT6-based device, which can take a 4:1 mux, so maybe that can make the amount a bit lower?), you would add 160 LUTs. That's quite a lot.
comment 4y ago · link · parent
comment 4y ago · link · parent
What are some examples of plugins people commonly use that you think are useless?
comment 4y ago · link · parent
And if you install a proper plugin that uses language servers, you're at the same level of VSCode, which I'm pretty sure is the most used editor by a wide margin.
Your rant sounds more like you're more annoyed by "wannabe-vim-hackers" than any actual limitations of the tools.
comment 4y ago · link · parent
Because Gracemont is so small, a chip can pack more MT performance for the same price.
comment 4y ago · link · parent
I do believe that AMD actively supports the radeonsi Gallium driver in Mesa, so I don't think that AMDGPU ships with a custom OpenGL driver, but I'm not too sure on that.