←back to thread

165 points smlavine | 2 comments | | HN request time: 0s | source
Show context
WhereIsTheTruth ◴[] No.45112232[source]
> CI & Website $14,986.73

What a waste of money, seriously

replies(8): >>45112409 #>>45112460 #>>45112466 #>>45112869 #>>45113019 #>>45113171 #>>45113483 #>>45113808 #
AndyKelley ◴[] No.45112466[source]
For comparison, in the same year Rust Foundation spent $567,000 on this category - more than ZSF's entire expenses for everything. That's 38x more money.

Source: https://rustfoundation.org/wp-content/uploads/2025/01/Annual...

replies(4): >>45112608 #>>45112878 #>>45113579 #>>45127618 #
anonfordays ◴[] No.45112878[source]
>That's 38x more money.

Rust gets at least a 1000x more usage than Zig, so their infrastructure costs are not as bad in comparison.

replies(1): >>45113033 #
epolanski ◴[] No.45113033[source]
> Rust gets at least a 1000x more usage than Zig

1. I highly doubt your ballpark estimate.

2. I don't think CIs care that much how many users a language has, they care about the number of computations they need to run for each commit/merge.

replies(3): >>45113577 #>>45113993 #>>45120024 #
testdelacc1 ◴[] No.45113577{3}[source]
I don’t think that ballpark estimate is that far fetched? Usage isn’t a reflection of the merits of the two languages. Rust is simply older. It reached 1.0 10 years ago, and it is further along the adoption curve. Zig is yet to reach 1.0 and has mostly early adopters like bun, TigerBeetle and ghostty. I have no doubt that usage will substantially increase once Zig reaches 1.0.

To give you a sense of Rust’s growth, check out this proxy for usage (https://lib.rs/stats). Usage roughly doubled each year for 10 years. 2^10 = 1,024. It’s possible Zig could manage a similar adoption rate after reaching 1.0, but right now it’s probably where Rust was in 2015.

> CIs don’t scale with the number of users

Each Rust release involves a crater run, where they try to compile every open source Rust repo to check for regressions. This costs money and scales with the number of repos out there. But it is true, this only happens once in 6 weeks.

But I think the factor that makes a bigger difference is that Rusts code bases are larger and CI takes longer to run on each commit.

replies(2): >>45113713 #>>45113871 #
1. veber-alex ◴[] No.45113871{4}[source]
crater runs are constantly running [1]. Every time there is a PR with any danger of causing a regression a crater run can be requested.

[1]: https://crater.rust-lang.org/

replies(1): >>45113907 #
2. testdelacc1 ◴[] No.45113907[source]
My mistake, sorry!