Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
flamegraph
Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3 (by flamegraph-rs)
There's an unstable feature that will be able to this more neatly. However, currently it splits [T;N] into &[T;M] and &[T] (as opposed to the preferable &[T;N-M]). This is because doing operations on const generics (N - M in this case) is yet another unstable feature and one that's even marked as incomplete iirc. So yeah most likely this will be easily doable with split_array_ref / split_array_muy in the future but that future might be quite a while away.
No, this is something the unsafe working group is working on - but for now there's no actual specification for what you can and cannot do in unsafe code. There's things you definitely cannot do (read uninitialized memory, mutate through a shared reference (without UnsafeCell), etc) but there's definitely behavior that the rust team seems to have reserved as "we may or may not make this UB". The best place to look would be https://github.com/rust-lang/unsafe-code-guidelines
Documentation Question: What do these headers in docs.rs mean? What's the difference, and are any unsafe to use?
In the examples for egui. The double period (..) comes before Default::default() on the last line.
That's exactly what Miri is designed to do!
I'm looking for a Rust equivalent Python's cProfile https://docs.python.org/3/library/profile.html if possible with visualizations like in SnakeViz https://jiffyclub.github.io/snakeviz/
Probably cargo flamegraph?
I wanted to try rust and developed a game websocket backend using ws-rs. Of course I didn't realize it was hardly maintained when I made my choice. The paradigm was very nice and simple, and it seemed really harder for a beginner to use (tokio-)tungstenite for example...
Related posts
- Show HN: Game of Life with grid editor in browser with Rust and WASM
- Recreating the Apple Calculator in Rust using Tauri, Yew and Tailwind
- Yew: Rust / WASM framework for creating reliable and efficient web applications
- Semantics of method which takes Rc<Self> and returns Rc<Self>?
- Crux: Cross-platform app development in Rust