Chad Scherrer

Results 365 comments of Chad Scherrer

Hi @shashi , I had modified this to work in my context, but it's no longer working. Could something have changed in the last merge that broke it? My setup...

Thanks, I fixed it a while back: ```julia julia> cse(cos(cos(x)) + sin(cos(x))) 4-element Vector{Pair{Symbol, SymbolicUtils.Symbolic{Number}}}: Symbol("##473") => cos(x) Symbol("##474") => cos(var"##473") Symbol("##475") => sin(var"##473") Symbol("##476") => var"##474" + var"##475" julia>...

Nice! I need to have another look at that package, I didn't realize you have CSE set up in it. I'd love to have something like this for general-purpose use,...

Say you have this model: ```julia julia> m = @model x begin a ~ Normal() b ~ Normal() y ~ For(1:100000) do j Normal(μ = a + b*x[j]) end return...

Do you have an approach for tracking variable scope, and Lambda or Func expressions? Otherwise CSE has lots of corner cases

Where is that?

Helpful to have context for the comment, thanks @YingboMa

@YingboMa Is there open discussion of where things are going? This library is already a critical dependency for my work.

@shashi Any thoughts on this?

> `Func` is the same as this, but without the type parameters like you have here. It's geared more towards writing nice Julia functions from symbolic expressions. That's the idea...