Those examples wouldn’t be differentiable in the sense of automatic differentiation. “Just” parametric CAD + FEM/BEM + optimizer.
Though differentiable FEM has kind of been done for a while under the name “adjoint method” for topology/shape optimization. It’s not super common outside of academia though.