multisn8 multisamplednight
  • wherever cute entities are
  • i need E

  • Joined on 2024-01-01
multisamplednight opened issue katzen-cafe/iowo#13 2024-02-26 18:16:21 +00:00
dyn and pipelines
multisamplednight commented on pull request katzen-cafe/iowo#12 2024-02-24 23:06:50 +00:00
WIP: image processing library (or libraries?)

yes, but I don't think that's avoidable.

It is. One could clone the vec on every instruction call.

multisamplednight commented on pull request katzen-cafe/iowo#12 2024-02-24 22:26:21 +00:00
WIP: image processing library (or libraries?)

Fair enough.

multisamplednight commented on pull request katzen-cafe/iowo#12 2024-02-24 22:25:29 +00:00
WIP: image processing library (or libraries?)

Sounds fine to me.

multisamplednight commented on pull request katzen-cafe/iowo#12 2024-02-24 22:23:29 +00:00
WIP: image processing library (or libraries?)

i have an idea what one could do for that, I'll be implementing that soon-ish when i have the energy

Does this idea imply a map of fn pointer to debug info? If so, I'm not sure if the size…

multisamplednight commented on pull request katzen-cafe/iowo#12 2024-02-23 15:28:39 +00:00
WIP: image processing library (or libraries?)

Non-content-related: I very much appreciate you experimenting around with possible architectures! It's most likely very tiring, but still very important for a nice API.

multisamplednight commented on pull request katzen-cafe/iowo#12 2024-02-23 14:57:07 +00:00
WIP: image processing library (or libraries?)

At this point I think the trait architecture is superior in extensibility, scalability and just by how much simpler and more readable it is.

I'll try to make the data types trait based as…

multisamplednight commented on pull request katzen-cafe/iowo#12 2024-02-23 14:48:30 +00:00
WIP: image processing library (or libraries?)

They do save 1 indirection, but that is 1 indirection which hasn't even been benchmarked yet against

  1. worse debuggability
    • when Debugging Pipeline if it were to implement Debug, all…
multisamplednight commented on pull request katzen-cafe/iowo#12 2024-02-23 14:29:41 +00:00
WIP: image processing library (or libraries?)

Also, that just addresses one point, while the other 3 are still standing.

multisamplednight commented on pull request katzen-cafe/iowo#12 2024-02-23 14:29:18 +00:00
WIP: image processing library (or libraries?)

So you'd rather do all the work of finding all TODO:s and converting them to issues (and then creating a PR removing them) after "finishing" prowocessing?

multisamplednight commented on pull request katzen-cafe/iowo#12 2024-02-23 14:21:15 +00:00
WIP: image processing library (or libraries?)

sure, can do that, but i much prefer having them run like that and output there so i can see it more or less interactively.

They're still just as interactive if one were to use `cargo test…

multisamplednight commented on pull request katzen-cafe/iowo#12 2024-02-23 14:17:46 +00:00
WIP: image processing library (or libraries?)

Then how about cloning it instead?

let config = args.config_path.clone().ok_or(()).or_else(
multisamplednight commented on pull request katzen-cafe/iowo#12 2024-02-22 17:53:22 +00:00
WIP: image processing library (or libraries?)

Both ops::num and ops::str could very much use the guard condition pattern with let-else instead, so that the actual intended logic of the runner function isn't nested one more.

multisamplednight commented on pull request katzen-cafe/iowo#12 2024-02-22 17:53:22 +00:00
WIP: image processing library (or libraries?)

Unnecessary full method path, consider just using From::from or Into::into instead.

multisamplednight commented on pull request katzen-cafe/iowo#12 2024-02-22 17:53:22 +00:00
WIP: image processing library (or libraries?)

Why does OwnedData implement Debug while Data doesn't?

multisamplednight commented on pull request katzen-cafe/iowo#12 2024-02-22 17:53:22 +00:00
WIP: image processing library (or libraries?)

Given that you use a module comment at the very start of this file, it seems like these doc-comments would also belong into their respective modules.

multisamplednight commented on pull request katzen-cafe/iowo#12 2024-02-22 17:53:22 +00:00
WIP: image processing library (or libraries?)

I already see that this is a newtype around OwnedData, just re-stating it does not add semantical value. Rather, what would this struct be used for?

multisamplednight commented on pull request katzen-cafe/iowo#12 2024-02-22 17:53:22 +00:00
WIP: image processing library (or libraries?)

Consider implementing [ToOwned] and [AsRef] appropiately instead.

multisamplednight commented on pull request katzen-cafe/iowo#12 2024-02-22 17:53:22 +00:00
WIP: image processing library (or libraries?)

The condition might be more visible if it's put in an explicit # Indirect panics section or the like.