Skip to content

v0.5.0 umbrella: dedupe, typing, and public API unification #140

Open

Description

@rsenne

Tracking issue for the internals/API cleanup that should land together for v0.5.0. The individual pieces each have their own issue, but they interlock — the dedupe work shrinks the surface the typing and API changes have to touch, and the API unification is the breaking change that sets the version bump — so ordering matters more than it looks from any one issue.

The pieces

1. Code dedupe — #131

Collapse the per-observation-model likelihood/gradient/hessian implementations into shared kernels with one dispatch point per observation model.

Why first: every later step (typing, API) touches these functions. Doing dedupe first means we loosen/rework each computation in one place instead of three.

2. Public API unification — #139

One joint_loglikelihood(lds, x, y; latent_inputs, obs_inputs) shape: model-first, scalar return, fit!-format trials, kwargs matching fit!. Same treatment should extend to the other user-facing functions where argument order / return shape currently varies.

3. Typing refactor — #137

Base.eltype overloads + type promotion instead of over-restrictive signatures; better interop with non-standard matrix types.

  • Audit signatures after dedupe (far fewer to touch then)
  • Can slip past 0.5.0 if it drags — it's additive-loosening, not breaking

4. Threading — #138

Evaluate OhMyThreads.jl vs. current Threads.@spawn usage.

Downstream / related (not part of this track, but sequenced by it)

Rough order

#135 → #136 → hessian dedupe → #139 decision + implementation → #127 → #126, then CHANGELOG + version bump to 0.5.0 and release from dev. #137/#138/#129 ride along if ready, otherwise 0.5.x.

Activity

  1. rsenne commented on Jul 9, 2026

    @rsenne
    CollaboratorAuthor

    @harrisonritz another claude slop issue just dropped. I wanted this to be our "umbrella" issue that we can track any API facing changes. This one does reasonably align with my thoughts but it isn't perfect. I think while the de-dupe code isn't perfect, and some other code should have come before it--it'll be more painful fixing the other, more foundational issues, then rebasing. So if its cool with you I think we can knock out most of the reduction in duplication, then we can go back and start unifying pieces? Thoughts? Objections?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions