DynamicPPL.jl icon indicating copy to clipboard operation
DynamicPPL.jl copied to clipboard

Remove `BangBang.possible`

Open sunxd3 opened this issue 1 year ago • 6 comments

In light of https://github.com/JuliaFolds2/BangBang.jl/commit/e679bae34a531ad8adc7dc1d896028958be2e532, we can removed the code as they are implemented in BangBang.

The changes has not been released, so should verify afterward. And this PR should not be merged right now.

related: https://github.com/TuringLang/DynamicPPL.jl/issues/530

sunxd3 avatar Feb 16 '24 14:02 sunxd3

I don't understand why Document-CI is failing, FLoop is not in BangBang's deps.

sunxd3 avatar Feb 16 '24 16:02 sunxd3

I don't understand why Document-CI is failing, FLoop is not in BangBang's deps.

Maybe Floop is in the deps on another package? I think Julia's package manager has a mechanism to figure which package requires a specific deps.

yebai avatar Feb 28 '24 12:02 yebai

I don't understand why Document-CI is failing, FLoop is not in BangBang's deps.

MLUtils is a docs dependency and depends on FLoops - however FLoops does not support BangBang >= 0.4 currently.

devmotion avatar Feb 29 '24 02:02 devmotion

MLUtils is used in a single example: https://github.com/TuringLang/DynamicPPL.jl/blob/abcf5843856235cf8ee391b67bcde2750cb2aa56/docs/src/tutorials/prob-interface.md?plain=1#L112-L141 Since it's a quite heavy dependency, I wonder if we could avoid it.

devmotion avatar Feb 29 '24 02:02 devmotion

Okay, the situation is a bit troublesome. BangBang v0.4 moved to Accesssors, so all the Setfield related code are erroring out. Now, either we led some effort in backporting the possible fix to v0.3, or ourselves move to Accessors too. The interface diff between Setfield and Accessors should be minimal for our purpose, though.

sunxd3 avatar Mar 01 '24 09:03 sunxd3

Now, either we led some effort in backporting the possible fix to v0.3, or ourselves move to Accessors too.

Let's move to Accessors too. @sunxd3, can you create a PR for that next week?

yebai avatar Mar 01 '24 12:03 yebai

Pull Request Test Coverage Report for Build 8745141284

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.03%) to 81.821%

Totals Coverage Status
Change from base Build 8745047931: -0.03%
Covered Lines: 2615
Relevant Lines: 3196

💛 - Coveralls

coveralls avatar Apr 18 '24 22:04 coveralls