Skip to content

Make product bijector building blocks public - #32

Merged
penelopeysm merged 2 commits into
mainfrom
expose-product-transform-api
Nov 7, 2026
Merged

penelopeysm merged 2 commits into
mainfrom
expose-product-transform-api

Conversation

@BJMCox

@BJMCox BJMCox commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Declare and document ProductVecTransform and Elementwise as public with Julia 1.10 support. Keep append_index internal and retain its tuple-index fix.

Bump to 0.1.4. Required by JuliaBayes/Wren.jl#220.

Use Compat to declare the existing qualified APIs public while retaining Julia 1.10 support. Restore the documented tuple-index behavior and prepare version 0.1.4.
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

Docs preview for PR #32

BJMCox added a commit to JuliaBayes/Wren.jl that referenced this pull request Nov 4, 2026
Require Plaice 0.1.4 once JuliaBayes/Plaice.jl#32 merges and the release is registered. The IID adapter can then rely on the documented product and optic APIs.

@penelopeysm penelopeysm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/Plaice.jl Outdated
@@ -1,5 +1,6 @@
module Plaice

using Compat: @compat

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(the FlexiChains code contains a link to Discourse that discusses this too)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’ve replaced Compat with the FlexiChains @public macro.

Comment thread docs/src/index.md Outdated
```@docs
Plaice.ProductVecTransform
Plaice.Elementwise
Plaice.append_index

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does append_index really need to be marked as public API? I still don't think it's necessary, it's a 2 liner that can be duplicated in Wren.

If you really want to export it from a lower-level package, I'd shift it to VarNames rather than put it here. It'd be very weird for a package to depend on Plaice if it just wanted this function. (The problem is ofc not visible in Wren because Wren happens to already depend on Plaice anyway - but it's the principle of it)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, I’ve kept append_index internal and removed it from the API reference.

Use the FlexiChains public macro to preserve Julia 1.10 support without Compat. Keep append_index internal and remove it from the public API reference.
@BJMCox

BJMCox commented Nov 5, 2026

Copy link
Copy Markdown
Member Author

Note - CI failure addressed in #28

@penelopeysm

Copy link
Copy Markdown
Member

Can't approve as on mobile but feel free to merge & release!

@penelopeysm
penelopeysm self-requested a review November 6, 2026 18:23
@penelopeysm

Copy link
Copy Markdown
Member

O turns out I can but I need to self request review first lol

@penelopeysm
penelopeysm merged commit c5d3b03 into main Nov 7, 2026
4 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants