Our great sponsors
- ONLYOFFICE ONLYOFFICE Docs — document collaboration in your environment
- CodiumAI - TestGPT | Generating meaningful tests for busy devs
- SonarLint - Clean code begins in your IDE with SonarLint
- InfluxDB - Access the most powerful time series database as a service
dsfs | rust | |
---|---|---|
1 | 2449 | |
0 | 81,997 | |
- | 3.2% | |
1.1 | 10.0 | |
almost 2 years ago | 2 days ago | |
Rust | Rust | |
- | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dsfs
-
Hey Rustaceans! Got an easy question? Ask here (29/2021)!
I've got this silly toy project and I'm wondering: How can I add to Rocket's mime types such that the aforementioned server can know (for example) that *.foo files are mime type "Foo/Bar"? Hopefully with two lines of code ;-)
rust
-
Graydon Hoare: Batten Down Fix Later
Re: the ancient attempt at a ranked-choice syntax vote, I think it had to do with the replacement for next. The keyword to go-to-the-next-iteration-of-a-loop was originally next (taken from Perl of all places) and this was criticized as being too common a word that people prefer to have available as a field or variable name rather than a keyword. So I changed it to cont (sticking with the short-keywords theme of the time) and this was criticized as sounding a bit too much like a rude anatomical term. I may be wrong, we did have a handful of totally-silly syntax debates, but one of the reasons I think it might be that is that I eventually "solved" the problem to nobody's preference by reusing loop; as a statement-on-its-own, and .. if you look in the commit logs from mid 2013, the very first syntax change after I left was breaking the short-keyword limit and adding continue. Hilarious. And fits the pattern!
-
Why is Swift so slow (timeout) in compiling this code?
Since Rust 1.67.0, the compiler has a specific optimized code path for the (already older) include_bytes! macro: https://github.com/rust-lang/rust/pull/103812#issuecomment-1...
-
Rust has been forked to the Crab Language
According to github rust has been forked 10,819 times...
-
Why Learn Compilers
The context is
> for each input, there is one and only output
A randomized algorithm which uses non-determinism but produces the same output is OK.
If the algorithm can produce different output causing the same program to compile to different assembly, that's a problem. Unless you can formally prove that every possible variation will have the same behavior, but formal methods + non-determinism is hard, so it usually isn't worth it.
Even random hash order in hashmaps can create problems, see https://github.com/rust-lang/rust/issues/84447 and https://github.com/rust-lang/rust/pull/82272#issuecomment-82...
-
Recent trend towards more UB (?)
Ah! Great example, although technically/retroactively it is a bug and it should require unsafe.
There are still compiler bugs which can result in undefined behaviour - see this GitHub issue, which is still open, for instance.
- Hice un clon de Cookie Clicker en React
-
Let's thank who have helped us in the Rust Community together!
Here is the first rustdoc commit: https://github.com/rust-lang/rust/commit/fb0896fe7bc0a8a0a37a1bc71ed1befb1905acd7
Nice! And here's the PR: https://github.com/rust-lang/rust/pull/1360
-
What are the unique benefits of Rust over C++?
The standard library std::sync::Mutex and friends have leapfrogged parking_lot (a port of WebKit's parking lot) using a mix of vendoring it and providing patches or platform-specific alternatives.
What are some alternatives?
carbon-lang - Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)
zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
Nim - Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
Elixir - Elixir is a dynamic, functional language designed for building scalable and maintainable applications
Odin - Odin Programming Language
rust-analyzer - A Rust compiler front-end for IDEs [Moved to: https://github.com/rust-lang/rust-analyzer]
mimalloc - mimalloc is a compact general purpose allocator with excellent performance.
Rustup - The Rust toolchain installer
go - The Go programming language
scala - Scala 2 compiler and standard library. For bugs, see scala/bug
spaCy - 💫 Industrial-strength Natural Language Processing (NLP) in Python
widevine-l3-guesser