bounds-check-cookbook

Recipes for avoiding bounds checks in Rust, without unsafe! (by Shnatsel)

Bounds-check-cookbook Alternatives

Similar projects and alternatives to bounds-check-cookbook

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better bounds-check-cookbook alternative or higher similarity.

bounds-check-cookbook reviews and mentions

Posts with mentions or reviews of bounds-check-cookbook. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-28.
  • Rewrite the VP9 codec library in Rust
    5 projects | news.ycombinator.com | 28 Feb 2024
    The compiler can actually get pretty fancy with its analysis. See "https://github.com/Shnatsel/bounds-check-cookbook" for details. In your case though, I don't think its necessary to get that fancy?

    Whatever routine that checks if the number of fields is correct can return a slice of fields. Then you can iterate over that slice, which doesn't require any more bounds checking than the equivalent for loop in C would. If you need to access the slice in a more complicated manner than simply looping forward over it field by field, then the bounds check cookbook could be useful.

    Not sure if this is helpful because I don't know the details of your case.

Stats

Basic bounds-check-cookbook repo stats
1
65
-
over 1 year ago

Shnatsel/bounds-check-cookbook is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of bounds-check-cookbook is Rust.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com