Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
snaggen@programming.dev to Rust@programming.dev · 2 years ago

Persian Rug - It really ties the Rust room together

www.collabora.com

external-link
message-square
11
fedilink
24
external-link

Persian Rug - It really ties the Rust room together

www.collabora.com

snaggen@programming.dev to Rust@programming.dev · 2 years ago
message-square
11
fedilink
alert-triangle
You must log in or register to comment.
  • sirdorius@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    2 years ago

    That library is dead for more than a year. Maintainer even deleted the repository. But the article is still a good read.

    • CameronDev@programming.dev
      link
      fedilink
      arrow-up
      8
      ·
      2 years ago

      persian-rugpulled :(

    • snaggen@programming.devOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      Weird, a blog post by Collabora about a crate by Collabora, that no longer is availabe? Well, the crate seems to be, but not the code. So, what is going on here?

      • sugar_in_your_tea@sh.itjust.works
        link
        fedilink
        arrow-up
        7
        ·
        2 years ago

        The code is left as an exercise for the reader.

      • Anders429@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        You can download the code directly from crates.io still.

    • snaggen@programming.devOP
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      They have fixed this and the code is available now.

  • Zyansheep@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    2 years ago

    So… basically a nicer API for arena or vector-based allocation where you store the index instead of a pointer?

  • Vorpal@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    2 years ago

    Seems to be a wrapper around implementing the “index into data store”-pattern (not sure if there is a better name), but without support for removal from said data store.

    From a quick glance I don’t really see what this gives you that wouldn’t also be quite easy with a manual implementation. And then you avoid the proc macro compile time overhead as well.

    • Aloso@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 years ago

      It gives you more type safety, because you use a ProxyᐸFooᐳ instead of just usize.

      • Vorpal@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years ago

        In my manual implementation I would assume you would use a newtype, so not really relevant.

  • somegeek@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    As a Persian, I approve this crate

Rust@programming.dev

rust@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits
  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 3 users / day
  • 57 users / week
  • 390 users / month
  • 2.88K users / 6 months
  • 1 local subscriber
  • 7.14K subscribers
  • 1K Posts
  • 4.48K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • EdTheLegendary@programming.dev
  • kahnclusions@programming.dev
  • torcherist@programming.dev
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org