Thrift library?

Trevor DeVore lists at mangomultimedia.com
Mon Oct 6 14:02:02 EDT 2008


On Oct 6, 2008, at 11:16 AM, Andre Garzia wrote:

> that appears very nice. I'd like to have it too. I've though about
> building a WSDL parser but this appears much cooler. We can use the
> new 3.0 arrays for the data models.

Hey Andre,

Yes, it seems like a nice framework but I was hoping that I wouldn't  
have to write it from scratch :-)

Thrift looks interesting in that it generates all of the source code  
for a language based on the Thrift file. You can create a Thrift  
definition file and then Thrift generates the source code required for  
interacting with your web service for a number of languages.

The problem is that if your language isn't supported then it is kind  
of a pain. For example Evernote uses Thrift for their API so all of  
the required source code for interacting with their API is provided in  
C++, Ruby, Python, C#, PHP, etc. Since Revolution isn't included I  
have to find/write a Thrift library and then recreate the auto  
generated code (based on PHP or C for example) by hand.

If no libraries exist already I'm thinking of trying to throw together  
a Revolution version based off the PHP version. The other route would  
be an external wrapped around the C++ Thrift code. There is a PHP  
extension but if your server doesn't have it installed then the code  
falls back to a pure PHP version.

Regards,

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Developer Resources: http://revolution.bluemangolearning.com



More information about the use-livecode mailing list