Building Thrift against an alternate Python

2011-05-26 Thread Mark Watts
I have Python 2.7 installed to /opt/python27 on some CentOS machines, and I have a requirement to build Thrift against this version of Python. How can I do this - there doesn't seem to be any mechanism to tell Thrift which python binary to use? Regards, Mark. -- Mark Watts BSc RHCE Senior

Re: Thrift vs. Protocol Buffers

2011-05-26 Thread Bjørn Borud
On Thu, May 26, 2011 at 1:45 AM, Mark Slee ms...@fb.com wrote: (Sorry for the really slow response, I meant to respond to this weeks ago, but got lost in the mailbox...) no problem. I have mailbox issues too. I think that is a healthy sign. 2) I'd replace the networking code for Java with

Thrift IDL

2011-05-26 Thread Anait Markosian
How does one represent in thrift struct : 1 a long integer field? 2. a const int field (equivalent to 'static final int field' in java) ? Thanks!

RE: Thrift IDL

2011-05-26 Thread Mark Slee
1 a long integer field? The term long is vague, Thrift is explicit. Use i32 for 32-bit integers, i64 for 64-bit integers. You probably want i64. 2. a const int field (equivalent to 'static final int field' in java) ? Struct fields can't be constants. If you just want to define a symbolic