Was fairly easy to get anice text print out of all of the functions we have defined in Stan: Comparing develop...introspection · stan-dev/stan · GitHub I imagine that was defined somewhere already…
Now to write a script translating those to C++ templated definitions…
That’s a good point. I wonder if we could split it into two parts, distributions and everything else, and have the distributions become (potentially) much more careful about what they are including… People might still be happy in a 30% reduction in compile time or w/e, ha.
stanc
is already pre-compiled into an executable in e.g. RStan, so that’s done already :)
That’s an interesting idea - have sort of two modes, one precompiled library with all of the most common instantiations, and then a fallback to normal header-only mode. Certainly worst-case we could write instructions such that on linker failure it tries again the old way.