1,476 karma · joined Nov 10, 2012 (14y ago) · 287 submissions
comment 5y ago · link · parent
I'm reading MySQL docs [1] and I can't figure out which value in the example output corresponds to the "exact number of rows scanned".
> It’s a pity that not too many backend engineers know about it now a days.
I use EXPLAIN with PostgreSQL when needed but mostly focus on the execution time, not the number of rows scanned (reading a large row could be orders of magnitude slower than reading a row in a JOIN table of two integers in a row based storage engine).
comment 5y ago · link · parent
> Only answer for having squatters is to make any "domain" buyable so they can't get all the good ones.
How's that any different from the current domain name system? There will still be only one owner of the text "google" or "begin".
comment 5y ago · link · parent
Even if they were scanning all the files, Copilot's terms [1] explicitly says they do not use the data to provide suggestions for other users.
> GitHub Copilot does not use these URLs, file paths, or snippets collected in your telemetry as suggestions for other users of GitHub Copilot. This information is treated as confidential information and accessed on a need-to-know basis.
[1] https://docs.github.com/en/github/copilot/github-copilot-tel...
comment 5y ago · link · parent
Related: Have any of the big tech companies banned their employees from using Copilot yet?
comment 5y ago · link · parent
Does Copilot use the data it collects for training their AI? From their terms [1]
> GitHub Copilot does not use these URLs, file paths, or snippets collected in your telemetry as suggestions for other users of GitHub Copilot. This information is treated as confidential information and accessed on a need-to-know basis.
[1] https://docs.github.com/en/github/copilot/github-copilot-tel...
comment 5y ago · link · parent
In most cases I'd expect just adding an index to the original table to be more efficient, but it depends on the type of the original column and if some data could be de-duplicated by the normalization.
comment 5y ago · link · parent
comment 5y ago · link · parent
Is that the same counting method as PlanetScale's "row read"? That is, `select title from posts order by title limit 10` on a table with 10 million rows and no index on `title` would cost $1.25 per query?
comment 5y ago · link · parent
comment 5y ago · link · parent
> We have a free as in beer Plausible Analytics Self-Hosted solution. It’s exactly the same product as our Cloud solution with a less frequent release schedule (think of it as a long term support release).
> Bug fixes and new features are released to the cloud version several times per week. Features are battle-tested in the cloud which allows us to fix any bugs before the general self-hosted release. Every six months we combine all the changes into a new self-hosted release.
[1]: https://github.com/plausible/analytics#can-plausible-analyti...
comment 5y ago · link · parent
Regardless of that, returning a tuple of size 10, especially with different types, would almost always be a bad idea.
comment 5y ago · link · parent
> Open Source License
> An open source license exists as GPLv3, and permits you to use TypeIt in any open source or personal project. Along with many other details, the GPLv3 license requires that any publicly released code using TypeIt be licensed under the GPLv3 as well.
I'm not familiar with using GPL licensed code on the frontend. If I include TypeIt on my site using a <script> tag, do I need to release all frontend JS on my website as GPL? What about the CSS/HTML code? What about the other dependencies I use on the page, like React or Vue, or third party dependencies like Google Analytics?
And do the exact same rules apply if I bundle my whole app into a single JS file (which is more common these days)?
comment 5y ago · link · parent
Sorry are you saying adding generics to Go makes Go closer to dynamic languages? Shouldn't that be the opposite?
> I knew a person who insisted on a lot of things when working in a Go code base...one of which was mixed typed tuples. It was ugly, awful code of interfaces all the way down. It's ugly and Go let you know that. A voice of reason would say...what are you doing? That's not how you do it in Go.
Do you have an example of this (code)? What's wrong with tuples with elements of different types? What's the alternative?