flodl.dev
...AutoConfig and AutoModelFor* dispatch enums grew matching variants
for the three new families and gained #[non_exhaustive] so the next
family addition (ModernBERT, LLaMA, ViT, …) is BC-clean by attribute.
Masked language modeling, everywhere
A fourth task shape joins the roster: every family ships a
*ForMaskedLM wrapper that consumes raw...
Project/Tooling Updates
2026-04-29
~7 min read
blog.polybdenum.com
...Next, we match the argument value against the type signature of increment, and thus 'a matches with '0. Thus we know that the return value has the same grant, so y gets the type '0 xcl NonZero.
fn increment_four_times<'b: 'call>(x: 'b xcl NonZero) {
let y = increment...
Observations/Thoughts
2023-03-08
~24 min read
justinjaffray.com
...fn get(&self, k: &str) -> Result<Option<String>> {
let file = BufReader::new(File::open(&self.fname)?);
let mut result = None;
for line in file.lines() {
match serde_json::from_str(&line?)? {
Command::Set(new_k, v) => {
if k == new_k {
result = Some(v.to_owned());
}
}
Command::Delete(new_k) => {
if...
Rust Walkthroughs
2022-01-26
~22 min read
rustc-dev-guide.rust-lang.org
...presently this has a weird quirk where the test binary's stdout and stderr gets concatenated and then error-patterns are matched on this combined output, which is ??? slightly questionable to say the least.
Controlling when tests are run
These directives are used to ignore the test in some situations...
Guide to Rustc Development
Book
2024-01-01
~18 min read
rust-lang.github.io
...Detailed design
New atomic types
The AtomicI8, AtomicI16, AtomicI32, AtomicI64 and AtomicI128 types are added along with their matching AtomicU* type. These have the same API as the existing AtomicIsize and AtomicUsize types. Note that support for 128-bit atomics is dependent on the i128/u128 RFC being accepted.
Target...
RFC 1543
RFC
2016-03-14
~3 min read
tritium.legal
...But what if that's not all of the possible children of the p tag?
And what if all of the possible children of the body tag aren't supported for reading yet
either?
match e {
XMLElement::Paragraph => {
let p = Paragraph::read(&mut parser, &attributes)?;
doc = doc.add_paragraph(p...
Observations/Thoughts
2025-10-08
~3 min read
www.p2claw.com
...We matched the data channel chunk shapes and sizes, and used a real browser receiver both on Linux and on the iPad, with and without Tailscale. It delivered everything, every time. Eventually we had to re-read our own evidence [actually Anthropic released Fable and I had it dig up...
Observations/Thoughts
2026-06-17
~13 min read
blog.yoshuawuyts.com
Archived: primary link replaced with an archive on 2026-09-12T11:35:11.099Z (UTC; replacement date, not snapshot date)
...I was really hoping to be able to avoid extra bounds, so that on-stack SRTs
could match the experience of on-heap SRTs. But that doesn't seem possible, so
perhaps some minimum amount of bounds which we can flip to being set by default
(like Sized) over an...
Observations/Thoughts
2024-07-10
~12 min read
www.randomhacks.net
...This doesn’t match the experiences of very smart people like matklad and BurntSushi, and I want to get to the bottom of this inconsistency. But first, I want to show that I’m not the only one.
The experience of the Servo team
There’s a good discussion of...
News & Blog Posts
2019-03-12
~8 min read
instantdomainsearch.com
...There might be some slight variation in the vector representations, so we need to consider approximate matches. Since we are working in vector space, we can measure the Euclidean distance from something like red to a close match in some other language.
Instant Distance
Computers are fast, and can brute...
Miscellaneous
2021-06-09
~7 min read
blog.m-ou.se
...In an if let statement
The situation is different for if let (and match) though, because then our expression doesn’t necessarily evaluate to a boolean:
if let … = f(&String::from('🦀')) {
…
}
Once more, two options:
The string is dropped after pattern matching, before the body of the if let...
Observations/Thoughts
2023-12-06
~19 min read
www.thespatula.io
...There are many different prep functions, each matching a corresponding I/O operation, such as reading or writing to a file.
Submission queue entries can be quite complex, as shown below, but we’ll only be focusing on a few fields in this article. For example, this is part of...
Observations/Thoughts
2024-09-04
~18 min read
codingwithglee.blogspot.de
...server.post("/games", middleware! {|req, mut resp| match get_game_from_request(req) { Ok(game) => { resp.set(StatusCode::Created); dao::create_game(game); "Ok!".to_string() }, Err(e) => { resp.set(StatusCode::BadRequest); e } }});fn get_game_from_request( req: &mut nickel::Request,) -> Result<DbGame, String> { let mut body = String::new...
News & Blog Posts
2017-03-07
~3 min read
docs.rust-embedded.org
...Also the user choice often plays a big role, since components can be physically connected to different terminals, hardware buses sometimes need external hardware to match the configuration or there are different trade-offs to be made in the use of internal peripherals (e.g. multiple timers with different capabilities...
The Embedded Rust Book
Book
2024-01-01
~3 min read
rust-lang.github.io
...The compiler will insert a call to the va_start intrinsic at the start of the function to provide the VaList argument (if used), and a matching call to the va_end intrinsic on any exit from the function. The implementation of VaList::arg will call va_arg. The implementation...
RFC 2137
RFC
2017-08-21
~8 min read
www.secondstate.io
...String) -> String {
(&s).chars().map(|c| {
match c {
'A' ..= 'M' | 'a' ..= 'm' => ((c as u8) + 13) as char,
'N' ..= 'Z' | 'n' ..= 'z' => ((c as u8) - 13) as char,
_ => c
}
}).collect()
}
#[wasm_bindgen]
pub fn lowest_common_denominator(a: i32, b: i32) -> i32 {
let r = lcm(a, b);
return r;
}
#[wasm...
Learn More Rust
2020-08-11
~8 min read
rust-lang.github.io
...It is slightly better if structs had a specified-but-C-incompatible layout, and one has control over the C interface, because then one can manually arrange the fields in the C definition to match the Rust order.
That said, this scenario requires:
• Needing to pass a Rust struct into...
RFC 79
RFC
2014-05-17
~3 min read
guillaumegomez.github.io
...as function.
@mikhail-m1 improved “Doesn’t live long enough” error.
@liigo marked unsafe fns in module page with superscript icons in rustdoc.
@xfix matched guessing game output to newest language version.
@steveklabnik made it clear that the reference isn’t normative.
@joshtriplett documented convention for using both fmt::Write...
Other Weeklies from Rust Community
2016-11-15
~3 min read
ohadravid.github.io
...since dav1d and rav1d share the same hand-written assembly functions,
we used them as anchors to navigate the different implementations - they, at least, should match exactly!
And they did. Well, almost all of them did.This, dear reader, is the story of the one function that didn’t.An...
Rust Walkthroughs
2025-12-31
~17 min read
www.willusher.io
...no match for ‘operator*’ (operand types are ‘float’ and ‘const Foo’)
return (1.f - t) * a + t * b;
^
test.cpp:3:22: error: no match for ‘operator*’ (operand types are ‘float’ and ‘const Foo’)
return (1.f - t) * a + t * b;
^
test.cpp: In function ‘T lerp(float, const T...
Blog Posts
2015-01-05
~18 min read