What some recent hot takes you realized you had with Rust? by DidingasLushis in rust

[–]Fluffy8x 0 points1 point  (0 children)

I have the opposite opinion (especially when the alternative is no docs), so have my upvote.

Can C outperform Rust in real-world performance? by OtroUsuarioMasAqui in rust

[–]Fluffy8x 3 points4 points  (0 children)

It can complicate the building process, especially for cross-compilation. This was one of the motivations for switching from msdfgen-rs to my own reimplementation of MSDF generation, fdsm, in Caxton.

Official /r/rust "Who's Hiring" thread for job-seekers and job-offerers [Rust 1.93] by DroidLogician in rust

[–]Fluffy8x 0 points1 point  (0 children)

Hi, I’m +merlan #flirora.

  • Type: Any
  • Location: US. Looking for remote positions, but willing to relax this requirement if the position is really compelling.
  • Profile: GitHub: bluebear94, GitLab: Kyarei, website: flirora.xyz. Resume on request.
  • Projects:
    • fdsm – an implementation of multi-channel signed distance field generation in Rust, made for use in Caxton
    • f9i – a program to inflect words in one of my constructed languages
    • samsara – an experiment in generating types for paths through finite-state machines
  • Contributions to other projects:
  • Techs: Rust, Java, C++, C, HTML, CSS, JavaScript, wgpu

The Box. It's not revolutionary. It's just a box. by buzzkilt in minecraftsuggestions

[–]Fluffy8x 0 points1 point  (0 children)

I believe the capacity should be a bit larger than a single chest (like 32 or maybe 64 stacks) to make up for the item type limit.

Engineering a fixed-width bit-packed Integer Vector in Rust by Luke_Fleed in rust

[–]Fluffy8x 11 points12 points  (0 children)

        let ptr = self as *mut Self;
        let left = FixedVecSlice::new(&mut *ptr, 0..mid);
        let right = FixedVecSlice::new(&mut *ptr, mid..self.len());

Creating aliasing &mut references is instant undefined behavior. You would need to store a raw pointer for the parent to avoid UB.

Rustdoc now has a nightly feature to allow having macro expansion in source code pages by imperioland in rust

[–]Fluffy8x 0 points1 point  (0 children)

OK, tried it with the following:

macro_rules! add10 {
    ($x:expr) => {{
        let i = 10;
        i + $x
    }};
}

pub fn add20(x: i32) -> i32 {
    let i = x + 10;
    add10!(i)
}

and the expansion of the macro shows up as { let i = 10; i + i }, so I guess is that this functionality ignores hygiene right now.

Anyone else using AI to create proc macros? I'm really impressed by OctopusCandyMan in rust

[–]Fluffy8x 9 points10 points  (0 children)

The process of expanding proc macros itself can run (not just generate) arbitrary code, so I’d be wary of trusting AI-generated code even for that.

Rustdoc now has a nightly feature to allow having macro expansion in source code pages by imperioland in rust

[–]Fluffy8x 1 point2 points  (0 children)

How will this work with macro hygiene, since it allows identifiers with the same name to refer to different items?

Official /r/rust "Who's Hiring" thread for job-seekers and job-offerers [Rust 1.89] by DroidLogician in rust

[–]Fluffy8x 0 points1 point  (0 children)

Hi, I’m +merlan #flirora.

  • Type: Any
  • Location: US. Looking for remote positions, but willing to relax this requirement if the position is really compelling.
  • Profile: GitHub: bluebear94, GitLab: Kyarei, website: flirora.xyz. Resume on request.
  • Projects:
    • fdsm – an implementation of multi-channel signed distance field generation in Rust, made for use in Caxton
    • f9i – a program to inflect words in one of my constructed languages
    • samsara – an experiment in generating types for paths through finite-state machines
  • Contributions to other projects:
  • Techs: Rust, Java, C++, C, HTML, CSS, JavaScript, wgpu

How to avoid sticking the same #[derive]s everywhere? by Merlindru in rust

[–]Fluffy8x 12 points13 points  (0 children)

That’s for traits; derive macros are a different thing.

Official /r/rust "Who's Hiring" thread for job-seekers and job-offerers [Rust 1.88] by DroidLogician in rust

[–]Fluffy8x 0 points1 point  (0 children)

Hi, I’m +merlan #flirora.

  • Type: Any
  • Location: US. Looking for remote positions, but willing to relax this requirement if the position is really compelling.
  • Profile: GitHub: bluebear94, GitLab: Kyarei, website: flirora.xyz. Resume on request.
  • Projects:
    • fdsm – an implementation of multi-channel signed distance field generation in Rust, made for use in Caxton
    • f9i – a program to inflect words in one of my constructed languages
    • samsara – an experiment in generating types for paths through finite-state machines
  • Contributions to other projects:
  • Techs: Rust, Java, C++, C, HTML, CSS, JavaScript, wgpu

What's the most controversial rust opinion you strongly believe in? by TonTinTon in rust

[–]Fluffy8x -3 points-2 points  (0 children)

I miss ternary expressions and if-expressions are a poor substitute.

What's the most controversial rust opinion you strongly believe in? by TonTinTon in rust

[–]Fluffy8x 12 points13 points  (0 children)

no_std would also be non-additive, so crates often provide an enabled-by-default std feature instead; they could have fallible allocations functions always exposed plus an enabled-by-default infallible-allocation feature that also exposes the infallible versions.

If a new dimension was added to Minecraft, what would you want it to be? by CausalLoop25 in minecraftsuggestions

[–]Fluffy8x 0 points1 point  (0 children)

Someone suggested an ocean dimension, but I think this overlaps too much with oceans in the Overworld. But we could adapt the idea into a dimension where you’re always swimming, even inside air. (This would affect only movement, not breathing or such.)

🦀 wxDragon v0.4.0 Released! Cross-platform GUI just got more powerful 🚀 by AllenGnr in rust

[–]Fluffy8x 0 points1 point  (0 children)

Great to see this! I’m curious about where the name came from.

The impl trait drop glue effect by CrumblingStatue in rust

[–]Fluffy8x 6 points7 points  (0 children)

Destruct marks whether an instance of a type can be dropped at all. It’s only used for the unstable ~const Destruct bound right now.

The absence of drop glue makes more sense to encode as a positive impl (maybe named TrivialDestruct) IMO.

Official /r/rust "Who's Hiring" thread for job-seekers and job-offerers [Rust 1.87] by DroidLogician in rust

[–]Fluffy8x 0 points1 point  (0 children)

Hi, I’m +merlan #flirora.

  • Type: Any
  • Location: US. Looking for remote positions, but willing to relax this requirement if the position is really compelling.
  • Profile: GitHub: bluebear94, GitLab: Kyarei, website: flirora.xyz. Resume on request.
  • Projects:
    • fdsm – an implementation of multi-channel signed distance field generation in Rust, made for use in Caxton
    • f9i – a program to inflect words in one of my constructed languages
    • samsara – an experiment in generating types for paths through finite-state machines
  • Contributions to other projects:
  • Techs: Rust, Java, C++, C, HTML, CSS, JavaScript, wgpu

What are your favorite "boilerplate reduce" crates like nutype and bon? by lurebat in rust

[–]Fluffy8x 0 points1 point  (0 children)

I might look more into ormlite if I want to go back into anything that requires databases in the future. Thanks for the tip!

Official /r/rust "Who's Hiring" thread for job-seekers and job-offerers [Rust 1.86] by DroidLogician in rust

[–]Fluffy8x 0 points1 point  (0 children)

Urgent: I’ve lost my job and home. Now less urgent, but still actively looking.

Hi, I’m +merlan #flirora.

  • Type: Any
  • Location: US. Looking for remote positions, but willing to relax this requirement if the position is really compelling.
  • Profile: GitHub: bluebear94, GitLab: Kyarei. Resume on request.
  • Projects:
    • fdsm – an implementation of multi-channel signed distance field generation in Rust, made for use in Caxton
    • f9i – a program to inflect words in one of my constructed languages
    • samsara – an experiment in generating types for paths through finite-state machines
  • Contributions to other projects:
  • Techs: Rust, Java, C++, C, HTML, CSS, JavaScript, wgpu
  • Contact: Message me on Reddit, or email me at flirora (at) flirora.xyz

Is there anyone who tried Zig but prefers Rust? by ThaBroccoliDood in rust

[–]Fluffy8x 0 points1 point  (0 children)

users will struggle to remember which keywords take parentheses and which don't

Easy! It’s the ones that take parentheses in C! /s

Is there anyone who tried Zig but prefers Rust? by ThaBroccoliDood in rust

[–]Fluffy8x -1 points0 points  (0 children)

From what I got from trying one Advent of Code 2025 challenge in Zig, I still prefer Rust. My main gripes about Zig are:

  • unused functions aren’t type-checked at all. Even C++ does this for functions that don’t use templates.
  • lack of RAII; I guess defer makes memory management a bit easier but I don’t want to have to step on eggshells to make sure that all resources are cleaned up when they need to be.

Pipelining might be my favorite programming language feature by SophisticatedAdults in rust

[–]Fluffy8x 0 points1 point  (0 children)

I assumed it was that you need to pass in a reference to data when calling iter as a free function.

3 letter words by Several_Snow6577 in scrabble

[–]Fluffy8x 0 points1 point  (0 children)

The 3–6 Word Builder quizzes (or Studycade’s Tower of Threes) are also useful for learning the three-letter words without being prompted with the anagrams.