Better HN
topnewbestaskshowjobs
Log inSign up

rustc

1,476 karma · joined Nov 10, 2012 (14y ago) · 287 submissions

Submissions

comment 5y ago · link · parent

> exact number of rows scanned etc

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).

[1] https://dev.mysql.com/doc/refman/8.0/en/explain.html

comment 5y ago · link · parent

Does MySQL (or PlanetScale) provide a way to input a query and get a lower/upper bound on the number of rows the query will "inspect" when run?

comment 5y ago · link · parent

You can still rack up a huge bill if you run a public web service and don't monitor the alerts 24x7.

comment 5y ago · link · parent

> I think we should get rid of domains all the way, I should be able to register any text and make it DNS resolve.

> 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

> Every single file in every single machine that ever ran VSCode would potentially be at anyone's grasp.

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

> Have you told your client that you are making use of tools that upload the intellectual property they’ve shared with you / they’ve paid you to create for them, onto third-party servers?

Related: Have any of the big tech companies banned their employees from using Copilot yet?

comment 5y ago · link · parent

> uploading the end result onto some sort of shared AI training set

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

Moving the data into another table would still require indexes: one on the original table's column (which now stores the new id) and one on the new table's primary key.

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

Depends on the provider. I've checked the pricing of 4 top relational database cloud vendors (Google, Amazon, Azure, IBM) and they all charge for the number of CPU cores and RAM you buy, not by the number of rows scanned like PlanetScale did in the post you refer to. They'll be more expensive than buying your own server but not nearly what PlanetScale charges for full table scan queries.

comment 5y ago · link · parent

> For reference, reading a million items of up to 1 kB each costs $0.125 with on-demand dynamodb.

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

MongoDB was using AGPL before they created and switched to SSPL [1]. You're right about ElasticSearch, they were Apache-2.0 before creating and switching to the SSPL + Elastic License dual license [2].

[1] https://en.wikipedia.org/wiki/MongoDB#Licensing

[2] https://en.wikipedia.org/wiki/Elasticsearch

comment 5y ago · link · parent

It seems like bug fixes and features are delayed 0-6 months in the open source version than the cloud hosted one [1].

> 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

> It explicitly prohibits corporations from parasitically competing with an open source project.

Many projects are moving from an AGPL-like license to a proprietary license just to prevent this though. MongoDB, ElasticSearch, and just yesterday, Apollo Federation 2.

comment 5y ago · link · parent

I don't see how that's practical. If a project requires "contributing back" and then doesn't accept the changes, the fork can't exist?

comment 5y ago · link · parent

How is contributing back different from providing the source?

comment 5y ago · link · parent

Has there been any update on the legality of using this kind of model? Is it ok to just crawl the web, take any content you want, train a model and sell access to the model like OpenAI/GPT-3/GitHub Copilot?

comment 5y ago · link · parent

So would it (theoretically) be legal to train on the JS files services like gmail.com serve to the client? What about decompiled output of proprietary software like certain files in Windows and macOS?

comment 5y ago · link · parent

> in fact many people don't

Do you have any examples?

> Are you following the MIT license terms now?

Yes, I believe I am.

comment 5y ago · link · parent

Good point. It says "any open source or personal project". I think the "or" implies it's ok to use in non-open source projects as long as they're "personal". However the repo just contains the standard GPL-3.0 license, so I'm not sure.

comment 5y ago · link · parent

Seems like there's no clear answer:

1. https://opensource.stackexchange.com/questions/4360/what-are...

2. https://opensource.stackexchange.com/questions/12064/which-l...

3. https://opensource.stackexchange.com/questions/6132/can-i-us...

More: https://opensource.stackexchange.com/search?q=gpl+javascript

comment 5y ago · link · parent

That would be exactly the thing generics are supposed to fix (except that Go doesn't have tuples yet, but at least you can define your own now and return a generic `Tuple[A, B]`).

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

> There are two forms of licenses available for TypeIt -- an open source license, a limited commercial license, and an unlimited commercial license.

> 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

> Before long, scammy tutorials pop up showing Go as an essentially dynamic language

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?

comment 5y ago · link · parent

Are generics really considered as "esoteric comp sci topics"?
1
567
10