On Fri, Feb 20, 2009 at 4:26 PM, Maurice Gittens
<[email protected]>wrote:

> Hi,
>
> On Fri, Feb 20, 2009 at 12:30 PM, jakov <[email protected]> wrote:
>
> -- snip --
>
>
>> I did not choose Wt because it was C++, but because it is small and
>> optimised and has reasonable dependencies. C++ helps here I guess, but
>> Wt could have been done in Python or Java. But I think it was a good
>> choice to use C++, and I hope Wt will eventually see bindings to other
>> languages like Python etc.
>>
>
> I was wondering: Does anyone know if Emweb maintains C language bindings
> for Wt?
> This my a stable bases for bindings for many other languages. No?
>
It is a common misconception that a C api is easier to write language
bindings against than a C++ api. However, I personally think we can get
better results using C++ apis as a basis as long as they are not too heavy
on templates (like boost for instance). Qt-like apis, such as Wt map very
nicely onto other languages.


>
>
> I was also wondering did wtRuby automate the process of binding to the Wt
> API?
> If so using which tools?
>
Yes, the process is pretty much entirely automatic, working like a C++ to
language bindings library compiler. The compiler happens to be written in
Perl, but it is complete enough to cope with large complex C++ apis such as
Qt, KDE and Wt. The autogenerated 'Smoke library' for Wt and Wt::Ext is also
language independent and could be used as a basic for other languages like
C#, Perl or PHP and not just Ruby.

My opinion of using HTML template style web development is that they suck,
although some template based frameworks suck much less than others. For
instance, I've used Rails and there is an awful lot to like about it.
However, the way the views work with Ruby embedded in HTML is a real pain to
write and maintain compared with the much more succinct Wt Widget/Event
handling style.

-- Richard
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to