Coder Social home page Coder Social logo

Minimal example C++ project about protostan HOT 4 CLOSED

sakrejda avatar sakrejda commented on June 12, 2024
Minimal example C++ project

from protostan.

Comments (4)

sakrejda avatar sakrejda commented on June 12, 2024

The issue I see with something simple is that it's not straightforward, as far as I can tell, what the in-memory gymnastics would be to hand over data fast enough, avoid the message size limit, and stick to standard protobuf. Not as much of an issue if you're sending small messages in the server-client context.

from protostan.

ariddell avatar ariddell commented on June 12, 2024

I'm thinking an example project would be useful to iron out some of the details
about how someone would use protostan + stan. (pystan-protostan can't fill that
role because the Python/C++ extension building completely opaque to
non-Python users.) For example, someone distributing software using the
stan + protostan interface could ship the generated .pb.c and .pb.h files; they
don't need to (have the end user) worry about protoc. This would make for a
leaner Makefile.

I'm happy to work on this. I think the simple example would be useful in its
own right and it would also help me think through about how I'll package
pystan-protostan.

(What does this have to do with the size limit? We're not going to have any
individual messages bigger than 512M.)

from protostan.

ariddell avatar ariddell commented on June 12, 2024

Here's an example of the kind of thing that would be cool to have (just to iron out the details): https://github.com/joshrotenberg/zmqpbexample

I think by using autotools you can also deal with the issue of allowing someone to use their own local copy of protobuf if they want to. I might be wrong about this.

from protostan.

ariddell avatar ariddell commented on June 12, 2024

We can just make cmdstan-protostan the example -- we don't need two examples.

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.