Skip to content

Rewrite in Rust #45

@vodik

Description

@vodik

I've spent a day and currently at about 20% - can load the database and read through it, so looks like its going to be mostly smooth sailing. The current design of repose is already rather compatible with how Rust would want things architected.

Problems I'm hitting which is making me thing this is the right path:

  • Enhancing the parsers to deal with possible regressions (from Missing depends when PKGBUILD includes backup #44). I'm not comfortable anymore with the longevity of ragel
  • Enhancing the internal data structures to support new features ( [Question] Remove dependencies #29 and Delta support #43). Doesn't help that the new hashmap I was attempting to implement is already very very similar to how Rust implements theirs.
  • Creating a library (Seperate backend stuff from frontend stuff #30). There is some subtle memory corruption going on somewhere inside repose that, while it operates correctly, prevents me from putting in inside a library. I currently take advantage of the short/one-time usage of this tool and just let the os reap the pkgcache's memory. Now while this should be fixable with some digging/valgrind (or with replacing the hashmap, see above), I think I'd rather have something up on crates.io.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions