home.social

#obraztam — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #obraztam, aggregated by home.social.

fetched live
  1. Ever wanted to use to manipulate images like iterators?

    image
    .map(to_rgb)
    .filter(|r, g, b| b > 100)
    .collect();

    Well, I don't quite have that, but I do have a -ish library called .

    framagit.org/dcz/obraztam

    It's -first, it has .map() and .zip() and it optimizes to instructions. Can be easily parallelized even more.

    I used it to detect beams in the picture!

  2. Ever wanted to use #Rust to manipulate images like iterators?

    image
    .map(to_rgb)
    .filter(|r, g, b| b > 100)
    .collect();

    Well, I don't quite have that, but I do have a #monadic-ish library called #obraztam.

    framagit.org/dcz/obraztam

    It's #immutable-first, it has .map() and .zip() and it optimizes to #SIMD instructions. Can be easily parallelized even more.

    I used it to detect #laser beams in the picture!

    #graphics #monad #iterator