Coder Social home page Coder Social logo

Comments (8)

ariddell avatar ariddell commented on June 12, 2024

This is a bit more involved than I thought. We need to compile protostan's tests without relying on Stan's makefile. In principle people using protostan will be working with a different Stan tree and will not have libstan.a on hand (I think this is right).

from protostan.

sakrejda avatar sakrejda commented on June 12, 2024

Could you explain why this is tied up with Stan's makefile? I don't see the connection to not using
"stanc" as a name.

from protostan.

ariddell avatar ariddell commented on June 12, 2024

There's a rule in the Makefile which uses libstanc.a -- I'm pretty sure this is an artifact which is there for cmdstan from the days when cmdstan was part of the stan repo. I may be wrong about this.

from protostan.

sakrejda avatar sakrejda commented on June 12, 2024

I thought PyStan would also need to do the compilation required to make something like libstanc.a, no? Do you really recompile everything for every model?

from protostan.

ariddell avatar ariddell commented on June 12, 2024

PyStan compiles a hybrid Python/C++ thing for compilation separately.
When models are compiled they don't need to use the stan/lang stuff.

For testing I think it makes sense to leave libstanc.a the way it is.
But I do think it's a good idea to replace 'stanc' with 'compile'
elsewhere. That's the function signature after all. Without knowledge of
cmdstan I think 'stanc' doesn't have a clear reference.

On 01/04, Krzysztof Sakrejda wrote:

I thought PyStan would also need to do the compilation required to make something like libstanc.a, no? Do you really recompile everything for every model?


Reply to this email directly or view it on GitHub:
#18 (comment)

from protostan.

sakrejda avatar sakrejda commented on June 12, 2024

Ok, works for me. I can take care of it, I think there's some proto
file/c++ namespace issue involved.
On Jan 5, 2016 9:04 AM, "Allen Riddell" [email protected] wrote:

PyStan compiles a hybrid Python/C++ thing for compilation separately.
When models are compiled they don't need to use the stan/lang stuff.

For testing I think it makes sense to leave libstanc.a the way it is.
But I do think it's a good idea to replace 'stanc' with 'compile'
elsewhere. That's the function signature after all. Without knowledge of
cmdstan I think 'stanc' doesn't have a clear reference.

On 01/04, Krzysztof Sakrejda wrote:

I thought PyStan would also need to do the compilation required to make
something like libstanc.a, no? Do you really recompile everything for every
model?


Reply to this email directly or view it on GitHub:
#18 (comment)


Reply to this email directly or view it on GitHub
#18 (comment).

from protostan.

ariddell avatar ariddell commented on June 12, 2024

I've got a PR ready, let me send that.

from protostan.

sakrejda avatar sakrejda commented on June 12, 2024

Ok
On Jan 5, 2016 9:39 AM, "Allen Riddell" [email protected] wrote:

I've got a PR ready, let me send that.


Reply to this email directly or view it on GitHub
#18 (comment).

from protostan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.