-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
index on repr #13
Comments
Can you provide an example/illustration? |
Like pipeliney process structure: begin with something and put it through operations.
shows up as
i have some great use cases for being able to easily get to a node. |
Yes, easy access to a particular node like that would be nice. The easiest approach might involve unique labels. A debug print-out could apply a very deterministic unique labeling, so one would determine which label they wanted to select by viewing that print-out, and then a follow-up "get"-like method could be given said label and return the associated node. In this case, the index you're requesting is the label and we would need to implement two things: general Aside from that, I've seen symbolic libraries offer query languages (e.g. JSON-like and/or REGEX-based) for more general cases of this sort of thing, but that's ultimately what |
idk maybe make use of what dask does here. |
My thought here is to keep this as a separate layer; Essentially, kanren provides a graph onto which you can use whatever query language you'd like. i've actually experimented with making kanren more palatable by using dataclasses where mappings b/w classes are arbitrary python code instead of relations. i found that describing everything as a relation makes it difficult to use. (there needs to be a path from 'normal' programming to having it be a strict relational program.) |
Which part of what Dask does? I don't remember whether or not Dask assigns unique IDs/labels when nodes are created, but that's a possibility—depending on how well this library sticks to immutability. Even so, I don't know if this would make sense for a |
I think every execution aspect of of etuples can be subsumbed by dask https://docs.dask.org/en/latest/graphs.html. Immutability/pure-funcs as well as naming nodes (dask_key_name) are figured out. Considering that, etuples value would be to provide a programming model different from dask.delayed (focusing on expressions). |
A comparison with Dask's graphs isn't particularly useful. The way in which they both share the same concerns, features, etc., is far too simple (e.g. using There's also nothing that really needs to be figured out, aside from feature-based choices. |
When the structures get really nested, it would be nice to have an index printed out in the structure.
The text was updated successfully, but these errors were encountered: