HNHacker News
TopNewBestAskShowJobs

rustc

1,476 karma · joined November 10, 2012

submissionscomments
rustc··on A terrible schema from a clueless programmer
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.

rustc··on A terrible schema from a clueless programmer
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.
rustc··on Spending $5k to learn how database indexes work
> 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?

rustc··on We bootstrapped our open source Google Analytics alternative to $500k ARR
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

rustc··on We bootstrapped our open source Google Analytics alternative to $500k ARR
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...

rustc··on We bootstrapped our open source Google Analytics alternative to $500k ARR
> 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.

rustc··on Moving Apollo Federation 2 to the Elastic License v2
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?
rustc··on Moving Apollo Federation 2 to the Elastic License v2
How is contributing back different from providing the source?
rustc··on Megatron-Turing NLG 530B, the World’s Largest Generative Language Model
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?
rustc··on GitHub Copilot Generated Insecure Code in 40% of Circumstances During Experiment
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?
rustc··on Show HN: TypeIt – A Versatile JavaScript Animated Typing Utility
> in fact many people don't

Do you have any examples?

> Are you following the MIT license terms now?

Yes, I believe I am.

rustc··on Show HN: TypeIt – A Versatile JavaScript Animated Typing Utility
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.
rustc··on Show HN: TypeIt – A Versatile JavaScript Animated Typing Utility
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

rustc··on Generics enabled by default in Go tip
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.

rustc··on Show HN: TypeIt – A Versatile JavaScript Animated Typing Utility
> 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)?

rustc··on Generics enabled by default in Go tip
> 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?

rustc··on Generics enabled by default in Go tip
Are generics really considered as "esoteric comp sci topics"?
rustc··on Grafana, Loki, and Tempo will be relicensed to AGPLv3
Mongo and ElasticSearch are completely different though. Related to those licenses: Has there been any clarification of what exactly you need to release for free if you use them to offer a SaaS?

> If you make the functionality of the Program or a modified version available to third parties as a service, you must make the Service Source Code available via network download to everyone at no charge, under the terms of this License.

> “Service Source Code” means the Corresponding Source for the Program or the modified version, and the Corresponding Source for all programs that you use to make the Program or modified version available as a service, including, without limitation, management software, user interfaces, application program interfaces, automation software, monitoring software, backup software, storage software and hosting software, all such that a user could run an instance of the service using the Service Source Code you make available.

Source: https://www.mongodb.com/licensing/server-side-public-license

I can think of a hundred questions based on that text. If I use S3 to store data for my Mongo SaaS, do I need to call Bezos and buy the complete source code of S3?

rustc··on Go is a great programming language
I find reading Go code quite the opposite. It takes a considerable amount of time to figure out that the given 20 lines of code actually do `filter f . map g . fmap sum`, for example. Simplicity in the language means _your_ code has to implement the complexity of the algorithm.
rustc··on Go is a great programming language
> hidden jumps in control flow

> reason mathematically about the code, not experiment with it to see if it throws these exceptions or retries

Do you consider `panic` (in Go or Rust) a "hidden jump"?

rustc··on Unsplash is being acquired by Getty Images
> Perhaps this a good time to create a mirror

Creating a mirror is forbidden by Unsplash's license.

I wonder if there are any actually CC0/Public Domain image sites left anymore?

rustc··on Unsplash is being acquired by Getty Images
Actual answer for GP: no, it's not CC0.
rustc··on Go+: Go designed for data science
I wish HN had a way to save a story without upvoting it or showing it publicly on your profile (the "favorite" feature implemented right now), like Reddit's "Save". Many times I'm interested in something to check out later but it's not something worth upvoting (like this story, based on other comments) and I want my interests to stay private.
rustc··on Announcing Rust 1.10
How's the MIR stuff going on? Is there an ETA on when MIR will land in beta/stable? Will the incremental compilation work start after that?
rustc··on React vs. Ember – EmberNYC slides
Is the video of this talk available anywhere?
rustc··on Purely Functional Data Structures in Scala
I've heard lots of good things about this book, it's on high priority on my "next to read" list.

Can you or anyone else recommend more books related to FP algorithms, concepts in general (which are not necessarily language specific)?

rustc··on Ruby 2.1 Garbage Collection to Address Criticism on Large Scale Deployments
Are the videos of the talks available? or more details about the implementation of the new architecture?
rustc··on Ask HN: Most difficult programming language?
I'm pretty sure Malbolge would take a lot of time to become comfortable with. :)
rustc··on Ask HN: Most difficult programming language?
What do you mean by "difficult" here? Do esoteric programming languages like Malbolge[1] count?

"Hello World" in Malbolge:

    ('&%:9]!~}|z2Vxwv-,POqponl$Hjig%eB@@>a=<M:9[p6tsl1TS/
    QlOj)L(I&%$""Z~AA@UZ=RvttT`R5P3m0LEDh,T*?(b&`$#87[}{W
[1]: http://en.wikipedia.org/wiki/Malbolge
rustc··on LuaJIT 2.1 Profiler released
Slightly off-topic, but does anyone know how I can download the complete mailing list archive data (of luajit)? Many of Mike's posts are very informative and useful, and I'd like to be able to search/read them easily, offline.
← PreviousPage 5 of 7Next →