[Kde-bindings] QtScript Smoke Bindings
Richard Dale
rdale at foton.es
Wed Sep 16 09:47:55 UTC 2009
On Tuesday 15 September 2009 11:29:41 pm Ian Monroe wrote:
> I've already gone over the reasons for this project on both mailing
> lists. Since then I've cleaned up the code some and added a bunch of
> //TODOs and //FIXMEs so the repo is ready for other contributors.
>
> Note that unlike other language programming projects you get to use a
> nice C++ Qt api to bind with, instead of some half-public C binding
> api. :)
>
> The repo is at http://gitorious.org/qtscript-smoke/qtscript-smoke and
> I've given the kde-developers group commit access.
>
> I'd rather people just push to mainline instead of creating their own
> clones. Ask the sysadmins to add you to the kde-developers group or me
> and I'll just add you as a committer to this repo.
I would like to work on adapting the overloaded slot resolution code in
QtScript so that it can work with overloaded smoke methods (I think it might
be useful for QtRuby too). So if you can add me to the committers for the
group. Or should I get added to the kde-developers group - is that better -
but i've read about gitorious spamming people with unwanted commit mails?
> Currently it can support code such as the following:
> hello = new QWidget();
> hello.show();
> hello.setMaximumWidth( 500 );
> hello.setWindowTitle( "QtScript Smoke Test: it kind of works" );
>
> No screenshot necessary, I think you all can imagine what that looks like.
> ;)
>
> There's still a lot missing though. Currently its only 300 LOC, but
> thats because I've avoided the more complicated marshaling, error
> handling and user subclassing. (The latter might be tricky since JS is
> prototype based so mapping OOP into it is always a bit of a hack.)
>
> Goals of project:
> * Low memory usage
> * To provide access to the Qt API
> - and trivial to add other Smoke bindings
> * quick start time (since it will be loaded on Amarok's startup)
> * To be mostly source compatible with QtScript Generator scripts (eg
> not 100% compat, but make it a 5 minute job to make a script work in
> both environments)
I think this is a very good project from the point of view of raising the
visibility of the smoke language bindings because we have something that we
will be able to directly compare to an existing project. It will demonstrate
that we can use much less memory resources that other approaches.
At the moment all the major Qt modules are in a single libsmokeqt library, and
maybe we could split that up so that you only get the ones you need. But the
GUI module is so much bigger than the others, I'm not sure if it would make
much difference.
-- Richard
> You can find me on Freenode as 'eean' in the normal places.
>
> Thanks,
> Ian Monroe
> _______________________________________________
> Kde-bindings mailing list
> Kde-bindings at kde.org
> https://mail.kde.org/mailman/listinfo/kde-bindings
>
More information about the Kde-bindings
mailing list