safe_arch VS bytemuck

Compare safe_arch vs bytemuck and see what are their differences.

safe_arch

Exposes arch-specific intrinsics as safe function (via cfg). (by Lokathor)

bytemuck

A crate for mucking around with piles of bytes (by Lokathor)
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.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
safe_arch bytemuck
1 2
41 610
- -
4.5 7.8
4 months ago 15 days ago
Rust Rust
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

safe_arch

Posts with mentions or reviews of safe_arch. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-08-22.

bytemuck

Posts with mentions or reviews of bytemuck. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-16.
  • Where can I read about how to write a safe API for unsafe code?
    3 projects | /r/rust | 16 Sep 2023
    bytemuck uses a number of traits to provide safe APIs for bitcasts in cases where it's actually safe. This doesn't cover the full spectrum of safety in Rust (I imagine Send and Sync aren't too relevant here?), but if you can understand how this crate provides a safe API on top of a fair bit of unsafe, then you'll be well on your way here. (For extra credit, study zerocopy as well, which lives in a similar domain. Compare its use of unsafe and the functionality it provides with bytemuck.) I mention these crates because after a cursory look, they have decent comments describing safety obligations. So you have a decent chance of actually understanding the boundary between safe and unsafe here.
  • copying bytes from &[u32] to &mut [u8] the rust way
    1 project | /r/rust | 11 Jun 2023
    (Example: looking through the issues, bytemuck seemed to have a soundness issue just a few months ago: https://github.com/Lokathor/bytemuck/issues/170)

What are some alternatives?

When comparing safe_arch and bytemuck you can also consider the following projects:

cargo-asm - cargo subcommand showing the assembly or llvm-ir generated for Rust code

wide - A crate to help you go wide. By which I mean use SIMD stuff.

tiny-skia - A tiny Skia subset ported to Rust

zerocopy

deno - A modern runtime for JavaScript and TypeScript.

crossbeam - Tools for concurrent programming in Rust

rust - Empowering everyone to build reliable and efficient software.