Well, technically there is a straight forward way of building a module for
any scripting language, say PHP, by writing a plain-C wrapper on top of
libHypertable (which is C++). This wrapper can be used to write a module for
whatever you want. The problem is that everyone is too lazy to come up with
plain C exports of HT client libraries.

On Thu, Jan 20, 2011 at 1:10 AM, Gordon <[email protected]> wrote:

> Beautiful! Super useful for the python folks ... at one point we had talked
> with someone about a Boost.Ruby project so we could do something along these
> lines for Ruby but it's still an open question.
>
> We had an internal ruby extension for hypertable (based on RICE) with
> limited capabilities but it was not suitably robust enough to contribute.
>
>
> On Wed, Jan 19, 2011 at 5:40 PM, Stanislav Yudin <[email protected]> wrote:
>
>> It wasn't me but the initial contributor. Roughly it was up to 20 times
>> faster. I'll try to find and post them tomorrow.
>>
>>
>> On Wed, Jan 19, 2011 at 10:55 PM, Naveen Koorakula <
>> [email protected]> wrote:
>>
>>> Hi Stanislav,
>>>
>>> I remember you'd posted some numbers about the performance gains you were
>>> getting using the python bindings over the thrift api, but can't find them.
>>> If you have them handy, would be great to get a sense for how much
>>> performance gain you're seeing.
>>>
>>> Best,
>>> --Naveen
>>> founder & ceo, campfire labs. 415 425 5412. We're hiring!
>>> http://www.campfirelabs.com/jobs
>>>
>>>
>>> On Wed, Jan 19, 2011 at 4:58 AM, Stanislav Yudin <[email protected]>wrote:
>>>
>>>>  Hello everyone.
>>>> I've noticed that python bindings in contrib were never updated to work
>>>> with HT >0.9.3.X. This is quite strange, since they yield huge performance
>>>> gain over thrift. In our project we're using this binding a lot, so I took
>>>> liberty to update them. My 
>>>> changes<http://github.com/AwesomeStanly/hypertable/tree/v0.9.4.3-cyclozzo>are
>>>>  based on doug's 0.9.4 tree (even 0.9.5 has no changes to contrib/cc
>>>> since nov 13th 2008).
>>>> Usage of binding had changed a bit, since the new class Namespace was
>>>> introduced.
>>>>
>>>> client = ht.Client("/opt/hypertable/0.9.4.3/conf/hypertable.cfg")
>>>> rootns = client.open_namespace('/')
>>>> ns_list = rootns.get_namespaces()
>>>> client.create_namespace('testspace', True)
>>>> ns = client.open_namespace('testspace')
>>>> tbl_list = ns.get_tables()
>>>> ns.create_table('mytable', schema)
>>>> table = ns.open_table('mytable')
>>>> mutator = table.create_mutator()
>>>> #do something...
>>>> mutator.flush()
>>>>
>>>> So, python version follows C++ api, except of Namespace::get_listing. In
>>>> python I've splited it into two separate methods: get_tables and
>>>> get_namespaces.
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Hypertable Development" group.
>>>> To post to this group, send email to [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected]<hypertable-dev%[email protected]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/hypertable-dev?hl=en.
>>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Hypertable Development" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<hypertable-dev%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/hypertable-dev?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Hypertable Development" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<hypertable-dev%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/hypertable-dev?hl=en.
>>
>
>
>
> --
> Gordon Rios -- Cork Constraint Computation Centre
> http://www.4c.ucc.ie/web/people.jsp?id=144
> http://www.linkedin.com/in/gordonrios
> Ireland: +353 86 089 2416
> USA: +1 650 906 3473
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Hypertable Development" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<hypertable-dev%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/hypertable-dev?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Hypertable Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hypertable-dev?hl=en.

Reply via email to