Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
arya dradjica
@bal4e@tech.lgbt  ·  activity timestamp last week

I love peeking into the Rust standard library's source code. Every (commonly used) function is so carefully and lovingly optimized, it feels like a bonsai garden. Every line of code has received at least an hour of attention.

If you're curious as to what inspired this post: https://doc.rust-lang.org/nightly/src/core/slice/iter/macros.rs.html. Feel free to share anything similar you've run into, from std or otherwise.

#programming #rust #optimization

macros.rs - source

Source of the Rust file `library/core/src/slice/iter/macros.rs`.
  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login