Giter VIP home page Giter VIP logo

portmatching's People

Contributors

aborgna-q avatar lmondada avatar

Stargazers

 avatar

Watchers

 avatar  avatar

portmatching's Issues

Should Pattern indexing and subject indexing be identical?

from @acl-cqc:

I'm also wondering whether the similarity between StringPosition and StringIndexKey (i.e. that they have the same representation, even though they are distinct types) is something that could be enforced by the framework, rather than in the application to strings. (E.g. it could provide + use two types SubjectPosition and PatternPosition and use the same specified for the kind of Data.) Of course this falls over if the Key/Value=Position types are different, which I think would mean if you wanted other/more-flexible kinds of pattern rather than just being in the same form as the data with atoms/characters/node-labels replaced by variables.
I note Position/Value == Key for both implementations of IndexingScheme so far (StringIndexingScheme and TestIndexingScheme), tho.

String Matching does not handle pattern length properly

Patterns without constraints but a fixed length are not handled properly at the moment. Such patterns can be built by using distinct variables at every pattern position, eg $a$b$c.

See test_dummy_len_2_string_matching in the src/string.rs file.

Don't export `HashMap`

Having the crate as a dependency causes portmatching::HashMap to be the suggested as a (frequently first) option for importing HashMap by rust-analyzer. What's even worse is that this is not the same hashmap in std::collections.
image

pub type HashMap<K, V> = FxHashMap<K, V>;

I'd suggest removing the public export, or renaming it so users don't mix it up with the std one.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.