Hey Richard, 2008/8/31 Richard Dale <[EMAIL PROTECTED]>: > I spent the last week working on the WtRuby bindings and have made good > progress:
Great to hear! > I need to make some changes to the Wt sources to get the bindings code > generation working (see attached 'wt_ruby.patch'): > > * In Wt/Ext/TextEdit the resize() virtual method has a different signature > to the one it is overriding and I got 'hidden virtual method' warnings and > code gen problems. > > I changed: > void TextEdit::resize(const WLength& width, const WLength& height) > > To: > void TextEdit::resize(WLength width, WLength height) > > * There was a similar problem with the layout() virtual method changing its > signature from const to non-const. I could only get the code gen to work by > making it always non-const. These problems have recently been solved in CVS. Some other compilers were complaining (or warning) about exactly the same problems too. The fixes are not exactly like you suggested (we now pass WLength always by reference). > * Wt/Ext/Widget has a private pure virtual method createJS(). which caused > code gen problems, and I could only get it to work by making it protected I'm not sure I understand why, but I have nothing really against it... > * Forward class declarations and extra includes needed to be added to some > headers, to make them compile in the generated code. Very okay with that! > When I tried the standard multi-threaded wthttp library with Ruby, it didn't > work and Ruby threw stack overflow exceptions, and I needed to build a > single threaded version. I couldn't get the cmake option > '-DMULTI_THREADED=off' to work, and so I had to hack the cmake link.txt > files to remove the compile option '-DTHREADED'. I also needed to make some > small changes to the WServer.C file to get it to work (please see > wt_http_threaded.patch). These were also very recently fixed in CVS. Is multi threading supposed to work in Ruby in the end? I am asking since to my surprise, this turned out to be a big problem in Python (one which is not solved yet). And, I consider it almost a must-have feature. > So that's it so far - I'm quite excited about how well it seems to work, and > have just downloaded the Ext 2.0 java script widgets to try out which will > be very interesting. Although the project isn't quite ready to release, I > can tar up the sources and mail them to anyone who is interested in trying > it out. I am willing to give it a try as soon as you think it is easily usable by a non-rubyist? Regards, koen ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
