msoucy / dproto

D Protocol Buffer mixins to create structures at compile time
Boost Software License 1.0
37 stars 16 forks source link

would be nice to show examples derived from real use cases #74

Open timotheecour opened 8 years ago

timotheecour commented 8 years ago

would be nice to show examples derived from real use cases to see where it works and where it doesn't yet work;

eg with no imports: https://github.com/BVLC/caffe/blob/master/src/caffe/proto/caffe.proto

more complex eg with imports: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/framework/graph.proto

eg: loading from prototxt text format: https://github.com/BVLC/caffe/blob/master/models/bvlc_reference_caffenet/solver.prototxt

eg: loading from proto wire format: ...

denizzzka commented 8 years ago

loading from prototxt text format

what for? is it working somewhere?

timotheecour commented 8 years ago

if you're asking whether protocol buffer text format is used, yes it used extensively in companies that use protocol buffers; [that file provides such an example]. Use cases: conveniently define protos in a human readable way, eg in tests, when writing configuration, as a replacement for command line flags (1 flag as proto ascii format instead of multiple command line flags)

denizzzka commented 8 years ago

In my opinion this vicious practice must remain the problem of these companies

timotheecour commented 8 years ago

In my opinion this vicious practice must remain the problem of these companies

Care to elaborate? Which part of it is nasty? If google has a strong use case for it, I'm sure others have as well.