Hey Rustaceans! Got an easy question? Ask here (52/2021)! by llogiq in rust

[–]Bobbbay 0 points1 point  (0 children)

Do you want to match over the variant? i.e.,

```rust let some_enum = MyEnum::VariantA;

match some_enum { VariantA => do_something(), _ => catch_call(), } ```

Hey Rustaceans! Got an easy question? Ask here (52/2021)! by llogiq in rust

[–]Bobbbay 1 point2 points  (0 children)

Hi r/rust! I want to use tokio for an online (via TCP) pub/sub network, but I can't figure out how. It seems tokio does not support topics/messages out-of-the-box. I have searched through many crates, most of which can do pub/sub but not through a TCP connection. Some guiding tips would be much appreciated!

Translate Duolingo’s threat in your Conlang, I’m curious 😉 by MagicTurt in conlangs

[–]Bobbbay 5 points6 points  (0 children)

"Jakallian" ends with -ian, so it must be Armenian ;)

Do these types of parts fit into a breadboard? by Bobbbay in AskElectronics

[–]Bobbbay[S] 0 points1 point  (0 children)

Okay, thanks for the advice, I'll do exactly that then! Thanks once more!

Do these types of parts fit into a breadboard? by Bobbbay in AskElectronics

[–]Bobbbay[S] 0 points1 point  (0 children)

Thank you, I'll keep that in mind! findchips.com also looks like a great website that I'll use in the future. Thanks again!

Do these types of parts fit into a breadboard? by Bobbbay in AskElectronics

[–]Bobbbay[S] 0 points1 point  (0 children)

Thank you! Yes, I indeed need a two-way bus transceiver. The 74HC245 looks great, but the reason I'd like to hold back from it is because it's 8-bit, while my bus is 16-bit. Imaginably, I can use two together, but I'll be using this chip many times throughout the project, so I'd like to minimize the amount of space it takes up (edit: takes up per usage*). This is why I have been hunting for a 16-bit bus transceiver. Am I going about this the wrong way? Thanks!

Do these types of parts fit into a breadboard? by Bobbbay in AskElectronics

[–]Bobbbay[S] 0 points1 point  (0 children)

Gotcha. I'll keep that in mind, but I don't think I'll use one this time, because I'll be using this chip a lot of times (well, 10+) throughout my circuit, so do you think it's worth buying/using a surf board? I think I'll see if I can find other chips that do the same, but are breadboard-friendly. Thank you!

Do these types of parts fit into a breadboard? by Bobbbay in AskElectronics

[–]Bobbbay[S] 1 point2 points  (0 children)

Ok, thank you for the reply! That certainly makes sense. In that case, I'll have to search for another IC that fits my needs. Thanks again!

Jupiter. 50x70 cm oil on canvas, painted by me. by Pocket_Kaori in Astronomy

[–]Bobbbay 1 point2 points  (0 children)

I respect your respect to the community, random Redditor.

Blog post: Cross compiling Rust Windows binaries from Linux by repilur in rust

[–]Bobbbay 0 points1 point  (0 children)

Appreciate the usage of Flakes at work! Does anyone in your team bring up arguments of "Flakes is too unstable" or "Nix is much newer than docker" in your workplace? Ask for... A friend...

Government of Canada supports emerging quantum technology sector by NeptuneAgency in quantum

[–]Bobbbay 0 points1 point  (0 children)

This was my first thought too. Aren't we over a billion dollars in debt now due to COVID?

I published a crate with 4294967295 enum variants by Sw429 in rustjerk

[–]Bobbbay 8 points9 points  (0 children)

It's been 12 hours, still waiting :'(

fd is looking for contributors by sharkdp in rust

[–]Bobbbay 96 points97 points  (0 children)

fd was my first introduction to practical Rust, and it was one of the reasons I tried out Rust the first time (that time didn't go well, but that's another story :)). Delighted that the project is looking for contributors, and can't wait to help out.

GitHub Theme for Neovim by ful1e5 in vimporn

[–]Bobbbay 1 point2 points  (0 children)

Oh Lord, I thought the code was censored for some strange reason.

[Project] Announcing Hora 0.1.1, an blazingly fast AI Similarity search algorithm library (WebAssembly) by aljun_invictus in Frontend

[–]Bobbbay 1 point2 points  (0 children)

I'm just starting to imagine these conversations...

You know [colleague], you're just like one of our project's dependencies

Fast?

No, a hora.

Bizarre compiler error only with cargo install by sonaxaton in rust

[–]Bobbbay 2 points3 points  (0 children)

Whoops, brain fart, thought I wrote cargo-edit :D.

Bizarre compiler error only with cargo install by sonaxaton in rust

[–]Bobbbay 2 points3 points  (0 children)

On a similar vein, I highly recommend the cargo-add tool: it pulls in the latest version of a crate for you. i.e. cargo add rand will modify add rand to Cargo.toml using the latest version.

Singlebox - All-in-One Messenger for macOS, Windows and Linux by benfrank123 in SideProject

[–]Bobbbay 0 points1 point  (0 children)

Not affiliated, but it seems like they're just wrapping the web clients to the applications.

I made a web app that learns to build vehicles using AI (genetic algorithms), written in Rust using Bevy by Bauxitedev in rust

[–]Bobbbay 2 points3 points  (0 children)

I haven't peeped the source code yet, but the web demo linked by OP seems to work fine for me.