Vectornaut
  • Joined on 2019-09-28
Vectornaut pushed to observables_on_main at Vectornaut/dyna3 2025-03-04 07:14:03 +00:00
84bfdefccb Rewrite SpecifiedValue as a read-only structure
Vectornaut pushed to observables_on_main at Vectornaut/dyna3 2025-03-04 04:45:54 +00:00
8b4a72c60c Simplify match to if let
Vectornaut commented on issue StudioInfinity/dyna3#18 2025-03-04 01:43:17 +00:00
Revive continuous integration system

I don't actually see anything that needs to be done, do you? It seems like the defaults are all fine...

After looking it over during today's meeting, I agree that it seems possible to set up…

Vectornaut commented on pull request StudioInfinity/dyna3#48 2025-03-03 23:41:23 +00:00
Generalize constraints to observables

Your thoughts on just a method-only interface with an opaque underlying datatype that we can iterate on if we see fit without changing any client code?

At this point, I can't predict whether…

Vectornaut commented on pull request StudioInfinity/dyna3#48 2025-03-03 21:19:19 +00:00
Generalize constraints to observables

Done (309b088).

Vectornaut commented on pull request StudioInfinity/dyna3#48 2025-03-03 21:18:21 +00:00
Generalize constraints to observables

I've removed if_present, replacing it with matches!(/* ... */, Present { .. }) where it was used (c58fed0)

Vectornaut commented on pull request StudioInfinity/dyna3#48 2025-03-03 21:16:30 +00:00
Generalize constraints to observables

Done (894931a).

Vectornaut pushed to observables_on_main at Vectornaut/dyna3 2025-03-03 21:14:03 +00:00
c58fed073d Drop the is_present utility method
309b0881df Move SpecifiedValue into its own module
894931a6e7 Replace try_set with set_if_ok
Compare 3 commits »
Vectornaut commented on pull request StudioInfinity/dyna3#48 2025-03-01 09:26:34 +00:00
Generalize constraints to observables

The idea of using a parameterized trait is nice, but in this case I'd prefer to use methods named set and set_if_ok. The former always updates the set point, while the latter only updates the…

Vectornaut commented on pull request StudioInfinity/dyna3#48 2025-03-01 03:29:25 +00:00
Generalize constraints to observables

This is not the place to debate Husht […]

Agreed. I think you get the tradeoff at this point, so let me know whether you want to have is_present.

Vectornaut commented on pull request StudioInfinity/dyna3#48 2025-03-01 03:26:39 +00:00
Generalize constraints to observables

Now a point might be that try_from doesn't give you a SpecifiedValue, it gives you a Result<SpecifiedValue, SomeKindaError>.

Exactly.

But then wouldn't it be most natural just to…

Vectornaut commented on pull request StudioInfinity/dyna3#48 2025-03-01 03:09:57 +00:00
Generalize constraints to observables

In the Absent case, it's the 0th tuple entry of the payload. In the Present case, it's the spec field of the payload.

If you find it less disorienting, we could do this:

pub enum
Vectornaut commented on pull request StudioInfinity/dyna3#48 2025-03-01 02:42:36 +00:00
Generalize constraints to observables

[…] if I already have a SpecifiedValue, is there a way to make it the set_point of a Regulator? Perhaps there should be […]

Yes, I think we should add a set method for this as soon as…

Vectornaut commented on pull request StudioInfinity/dyna3#48 2025-03-01 02:37:13 +00:00
Generalize constraints to observables

I think it's best to keep Husht as close as possible to Rust in terms of features, for two reasons.

  • If a proposed Rust feature gets adopted by Husht but not by Rust, there's a danger that…
Vectornaut commented on pull request StudioInfinity/dyna3#48 2025-03-01 02:26:45 +00:00
Generalize constraints to observables

To me, it seems perfectly natural to have this:

pub enum SpecifiedValue {
    Absent(String),
    Present {
        spec: String,
        value: f64
    }
}

An absent…

Vectornaut commented on pull request StudioInfinity/dyna3#48 2025-03-01 02:09:08 +00:00
Generalize constraints to observables

Yes, I'll do this—I was just waiting for a go-ahead from you. I should've mentioned that in the last comment.

Vectornaut commented on issue StudioInfinity/dyna3#59 2025-03-01 00:39:18 +00:00
Outline view: show element details when regulators change

Or do you just want to defer this issue until after we switch to a view in which elements and regulators are viewed in a more egalitarian fashion?

Yes: the issue becomes moot if we ditch the…

Vectornaut commented on issue StudioInfinity/dyna3#44 2025-03-01 00:36:32 +00:00
Dual list view

The most convenient place to see a curvature regulator might be in-line with the display of its subject element. So perhaps we need a hybrid of unary regulators in the element list and poly-ary…

Vectornaut opened issue StudioInfinity/dyna3#65 2025-02-28 08:43:25 +00:00
Don't record optimization history in release
Vectornaut commented on pull request StudioInfinity/dyna3#48 2025-02-27 21:17:48 +00:00
Generalize constraints to observables

I think I've finished responding to this comment and addressing or responding to all the code-level comments. Please review again at your convenience! I'll be working on #64…