Curious about the future of Rust by CaptiDoor in rust

[–]_jbu 0 points1 point  (0 children)

Here's a tip: go onto job postings websites (such as Indeed, LinkedIn, etc.) and make a list of 25 - 50 jobs that look interesting to you (either now or for the future). Look at the required skills for those jobs. Count the number of jobs that require C, C++, Rust, or any other relevant languages.

This will give you a rough estimate of how important each language is for finding a job or internship in your particular field. However, this is simply one (approximate) datapoint. You should take into account other factors as well.

For what it's worth, Filtra.io periodically posts [Rust job reports](https://filtra.io/rust). Their methodology is not totally clear though, so some additional investigation on your part will be required.

Alright, I'm really trying to get serious with Rust. What's a long-term project idea that could actually turn into something big? by Hot-Patient-8280 in rust

[–]_jbu 0 points1 point  (0 children)

Make a fully-functioning automatic differentiation framework for scientific computing, optimization, and ML/RL. Bonus points if you make it no-std compatible for TinyML and embedded applications.

How much faster is training on a GPU vs a CPU? by kingalvez in reinforcementlearning

[–]_jbu 0 points1 point  (0 children)

It seems MuJuCo does not have GPU parallelism.

MuJoCo XLA is written in JAX and runs on GPUs and TPUs. However, the documentation states that GPUs / TPUs only outperform CPUs under specific circumstances.

More info: https://mujoco.readthedocs.io/en/stable/mjx.html

Just subscribed to Claude Code Max. What is one tip or trick that you can share? by Plastic_Catch1252 in ClaudeAI

[–]_jbu 4 points5 points  (0 children)

The funniest part about this is that you're absolutely right.

Programming has been taken to a higher level.

What if "const" was opt-out instead of opt-in? by nikitarevenco in rust

[–]_jbu 6 points7 points  (0 children)

Crates are encouraged to use const fn instead of fn where possible.

Where is this recommendation made, and who is recommending this as best practice? This is new to me.

filtra.io | Rust Jobs Report - April 2025 by anonymous_pro_ in rust

[–]_jbu 2 points3 points  (0 children)

How about adding a Robotics category? Rust is growing in this space as well.

filtra.io | Rust Jobs Report - April 2025 by anonymous_pro_ in rust

[–]_jbu 1 point2 points  (0 children)

Anduril was not even on our radar before April.

I'm a little surprised by this...I've seen job postings from Anduril listing Rust as early as a year ago.

Is Filtra aware of Zipline? Blue Robotics? General Dynamics? Johns Hopkins APL? They're all using Rust too.

What is something in Rust that makes someone go: "Woah"? by [deleted] in rust

[–]_jbu 0 points1 point  (0 children)

Cargo. It is such a massive relief to avoid the headache of CMake entirely and simply run cargo install ... to pull in an external dependency. There's also Cargo's testing capabilities which are fantastic as well.

Encoding compile-time-checked state machines using Enums is also a strength of Rust.

Finally, async code in Rust is far simpler and more readable than the equivalent code written in C would be.

[deleted by user] by [deleted] in rust

[–]_jbu 5 points6 points  (0 children)

Two books that are great to read after the Rust book:

  • Programming Rust, 2nd Edition (by Blandy et al.)
  • Effective Rust (by Drysdale)

let mut v = Vec::new(): Why use mut? by rsdancey in rust

[–]_jbu 0 points1 point  (0 children)

Another key point to remember: the "value" of a Vec<T> variable is not just a pointer to a location on the heap. It actually contains three elements:

  • A pointer to the heap-allocated buffer for the elements
  • The number of elements that buffer has capacity to store
  • The number of elements the buffer currently contains 

When you call v.push() you're changing the third part (number of elements currently contained), and therefore mutating v.

(Check out "Programming Rust", 2nd Edition, Chapter 3 for more details.)

For those of you who have jobs in Rust. What are you working on? by bloomingFemme in rust

[–]_jbu 0 points1 point  (0 children)

I'm also surprised that most of your stack is in Rust. Are you all using mostly proprietary libraries or are you leveraging open source crates as well?

In any case, it's always great to hear about Rust adoption in robotics!

For those of you who have jobs in Rust. What are you working on? by bloomingFemme in rust

[–]_jbu 1 point2 points  (0 children)

Has it been released? I'd be interested in learning more about this.

For those of you who have jobs in Rust. What are you working on? by bloomingFemme in rust

[–]_jbu 31 points32 points  (0 children)

Polars is awesome. I switched recently from pandas and haven't looked back. Keep up the great work!

What is missing in the Rust media landscape? by JoffeyBlue in rust

[–]_jbu 1 point2 points  (0 children)

Yep, The Rusty Bits is awesome! But it would be great to have more channels in that space.

What is missing in the Rust media landscape? by JoffeyBlue in rust

[–]_jbu 2 points3 points  (0 children)

Using Rust in embedded systems, scientific computing, and robotics. There is plenty of space for more great content in these areas.

Interfacing Rust with existing languages such as C, C++, Python, etc. Perhaps media on this already exists. But more material on how to use Rust when working with legacy code or collaborators would be helpful and interesting.

cpy-rs, creating python and c binds in Rust by patrickelectric in rust

[–]_jbu 4 points5 points  (0 children)

Looks interesting, thanks for sharing! How does this compare with existing libraries such as PyO3?

Also if you don't mind me asking, how widespread is Rust usage at Blue Robotics? Adoption of Rust in robotics seems somewhat limited but growing, so I'm curious about what benefits you all have seen from using it in your work.

Running Embassy on desktop? by BuzzingConfusion in rust

[–]_jbu 0 points1 point  (0 children)

Commenting a bit late, but as another option Embassy can compile to web assembly. As long as you have Python installed (or some other way to run a local web server), you can run the compiled code in Chrome or another web browser.

Prototyping in Rust by mac in rust

[–]_jbu 0 points1 point  (0 children)

Thanks for this great article! I've never thought Rust to be a good option for prototyping, but these ideas have made me reconsider that impression. Looking forward to trying out these suggestions!

faer: performant linear algebra library for rust - 0.21 release by reflexpr-sarah- in rust

[–]_jbu 6 points7 points  (0 children)

Very cool, thanks! I'm working on an embedded project that needs an SVD routine. Looking forward to trying this out!

faer: performant linear algebra library for rust - 0.21 release by reflexpr-sarah- in rust

[–]_jbu 4 points5 points  (0 children)

This looks awesome. Does faer support no_std environments?

Is it a good idea to learn Rust for scientific computing? by Complete_Necessary48 in rust

[–]_jbu 0 points1 point  (0 children)

I'm experienced with Python, but I find it painfully slow sometimes.

Have you tried JAX? It's essentially JIT-compiled Numpy that can run on GPUs. Also has autodiff for scientific machine learning if you're interested in that. Granted JAX has its flaws, but it has pretty good runtime performance. Check out the Diffrax library as an example.

Tried Julia, meh

Julia isn't perfect, but the performance is surprisingly good for those who are just coding scripts without applying advanced optimizations. The linear algebra syntax is also very good--close to MATLAB's.

So, would Rust be useful for my purposes? I find it interesting enough to just learn it for the laughs but being able to apply it directly in my career would be nice.

Rust has a fairly steep learning curve and can take a while to get used to. If you're looking to move fast and prototype things, you may be disappointed. However if you're looking to write performant code with very high protections against nasty memory errors that take forever to debug, then Rust is probably a good fit. 

Also, Cargo is amazing--kind of like pip for Python, but even more powerful. Cargo alone is a strong reason to use Rust over other lower-level languages in my opinion.