www.meilisearch.com
...The value of self must match the corresponding key in remotes:
PATCH /network
{
"self": "ms-01"
}
You can now perform a remote federated search:
POST /multi-search
{
"federation": { // enable federated mode
"limit": 5
},
"queries": [
{ // #0
"q": "Batman",
"indexUid": "movies",
"federationOptions": {
"remote": "ms-01"
}
},
{ // #1
"q": "Batman",
"indexUid": "movies",
"federationOptions": {
"remote...
Project/Tooling Updates
2025-02-19
~3 min read
www.tglman.com
...Error2) -> Self {
match error2 {
Error2::Error2 => AllErrors::Error2,
Error2::Error3 => AllErrors::Error3,
}
}
}
pub fn operation1() -> Result<(), Error1> {
Err(Error1::Error1)
}
pub fn operation2() -> Result<(), Error2> {
Err(Error2::Error2)
}
pub fn operation3() -> Result<(), Error2> {
Err(Error2::Error3)
}
This solution allows me to expose an API with almost both characteristics: a specific...
Rust Walkthroughs
2021-04-14
~3 min read
guillaumegomez.github.io
...Look for T-doc tagged issues on GitHub!
Waiting for merge
@estebank reworded E0044 and message for !Send types, suggested setting associated type when type argument is given instead and provided context for missing comma in match arm and if statement without block.
@partim improved documentation for Borrow, AsRef, and...
News & Blog Posts
2018-02-27
~3 min read
cfallin.org
...Encounter the top-level ~, and try to match the rewrite rule's
left-hand side. It would match with bindings x = (a & b) and y = (c & d).
Apply the right-hand side ~x | ~y bottom-up, building nodes and rewriting
them as we go:
First, ~x. This creates ~(a & b...
Observations/Thoughts
2026-04-15
~53 min read
www.fosskers.ca
...So enums can hold inner values (aka "Sums of Products" or "ADTs"), we have Pattern Matching, and we have Traits (which can be auto-derived!). Errors are handled explicitly with the Option and Result types. Further, we can do a kind of "error threading" with the ? operator, which I believe...
Learn Standard Rust
2020-08-18
~16 min read
docs.rust-embedded.org
...Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Info : STLINK v2 JTAG v27 API v2 SWIM v15 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 2.913879
Info...
The Embedded Rust Book
Book
2024-01-01
~7 min read
notes.iveselov.info
...src/librustc_featurearrow-up-rightThere are three modules:active.rs - for unstable featuresaccepted.rs - for stabilised featuresremoved.rs - for, well, removed features (which were once active)Looking at accepted.rsarrow-up-right quickly shows when features were stabilized:/// Allows the use of `if` and `match` in constants.
(accepted, const_if...
News & Blog Posts
2020-07-21
~7 min read
slint-ui.com
...This means you can not mix and match C++ and Rust code, but need defined
interfaces to cross from one language into the other.
Challenges
All we need to do is to generate some bindings and everything is smooth
sailing from there on out. How hard can that be?
There...
Rust Walkthroughs
2022-11-16
~17 min read
bennolossin.github.io
...This matches the current behavior of Rust, where a drop_in_place is inserted before a write is performed. This behavior would of course be kept for custom pointers as well.
PlaceDeref is pretty special, we need more time to iron out its design anyways. From this posts perspective, we...
Observations/Thoughts
2026-01-14
~8 min read
togototo.wordpress.com
...It even matched the speed of GCC C, putting a lie to the statement that languages running on a VM must necessarily be slower. Many thanks to markehammons for submitting the Scala code! Although I haven’t yet learned Scala, the code is surprisingly easy to read, and isn’t...
Discussion + Blog posts
2013-07-29
~7 min read
rust-gcc.github.io
...for <pattern> in <iterator> {
<body>
}
// becomes
{
let result = match ::std::iter::IntoIterator::into_iter(<iterator>) {
mut iter => {
loop {
let mut __next;
match ::std::iter::Iterator::next(&mut iter) {
::std::option::Option::Some(val) => __next = val,
::std::option::Option::None => break
};
let <pattern> = __next;
<body>;
}
}
};
result
}
The paths used in this...
Project/Tooling Updates
2025-01-08
~12 min read
github.com
...Data (such as from the network) is rarely guaranteed to be ASCII only,
nor is it desirable to remove or replace non-ASCII bytes,
even if ASCII-range-only operations are used.
(For example, *ASCII case-insensitive matching* is common in HTML and CSS.)
Every single use of the `Ascii...
RFC 486
RFC
2014-11-27
~3 min read
github.com
...This brings with it a number of benefits:
* The internal structure can evolve over time to better fit new platforms
while being backwards compatible.
* This design matches what one would expect from C, where there's only a flat
namespace available.
* Finding an API is quite easy as the answer...
RFC 1291
RFC
2015-09-21
~12 min read
noos.blog
...Do the embeddings match?
Critical Instructions: Are the key verbs and constraints still there?
Structural Integrity: Did we break your JSON schema?
3. LLM-as-a-Judge
For the ultimate test, you can run an automated evaluation where a judge model (like Claude 3 Opus) compares the outputs of your...
Miscellaneous
2026-02-25
~3 min read
www.hoverbear.org
...String,
},
}
Right now most of the data types I'm using are compound data enums, allowing for strongly typed, encapsulated data that is easy to work with via match statements.
I am not sure if this is the right way to go about things, and I think that there can...
Blog Posts
2015-01-26
~3 min read
locka99.gitbooks.io
...No results matching ""
News & Blog Posts
2017-01-31
~3 min read
astropad.com
...Flexible work schedulesCompetitive pay + equity401k with matching up to 4%Coworking space reimbursement stipendHealth, dental and vision insurance8 weeks paid parental leave for all new parents3 weeks vacationChallenging and creative workHigh impact work with significant responsibility
Rust Jobs
2021-12-22
~3 min read
notgull.net
...Thirty-tree dependencies isn’t that bad for a highly advanced text matching
program. Most of the dependencies are things like the Rust regex engine, or
highly optimized text matching libraries.
Frankly, I can find a fairly good reason for these dependencies. Then again, it’s
a small command line...
Observations/Thoughts
2025-06-04
~7 min read
anto.pt
...i64) -> Markup {
// You can still put some logic here, if you want.
// However, Maud templating conveniently supports if,
// let, match, and loops.
html! {
@if (count < 0) {
p { "You cannot have negative nuts" }
} else {
h1 { (count) " nuts" }
}
}
}
If Maud is just a fancier format!(), why the function now
returns Markup instead...
Rust Walkthroughs
2023-08-09
~12 min read
dev.to
...SignInInput) -> Result<String, Error> {
let maybe_user = repository::get_user(&input.username, &get_conn_from_ctx(ctx)).ok();
if let Some(user) = maybe_user {
if let Ok(matching) = verify_password(&user.hash, &input.password) {
if matching {
let role = AuthRole::from_str(user.role.as_str()).expect("Can't convert &str...
Rust Walkthroughs
2020-12-30
~20 min read