Thread overview | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
January 20, 2012 wxWidgets good news | ||||
---|---|---|---|---|
| ||||
Hi, it seems that the idea of using doxygen xml output to generate D bindings was not that bad. I am pretty happy to see that exactly this happens in wxWidgets 2.9.4, https://github.com/wxWidgets/wxWidgets/blob/master/docs/doxygen/scripts/make_bindings.py Generating C functional wrappers is already pretty cool, but the fantastic news is SWIG output! As you may have noticed, SWIG has D support. Means : No need to manually re-create C++ classes in D. Holy crap. |
January 20, 2012 Re: wxWidgets good news | ||||
---|---|---|---|---|
| ||||
Posted in reply to bls Attachments:
| !!!
Il giorno ven, 20/01/2012 alle 03.24 -0800, bls ha scritto:
> Hi, it seems that the idea of using doxygen xml output to generate D
> bindings was not that bad. I am pretty happy to see that exactly this
> happens in wxWidgets 2.9.4,
> https://github.com/wxWidgets/wxWidgets/blob/master/docs/doxygen/scripts/make_bindings.py
>
> Generating C functional wrappers is already pretty cool, but the fantastic news is SWIG output! As you may have noticed, SWIG has D support. Means : No need to manually re-create C++ classes in D.
>
> Holy crap.
>
|
January 20, 2012 Re: wxWidgets good news | ||||
---|---|---|---|---|
| ||||
Posted in reply to bls | > Generating C functional wrappers is already pretty cool, but the fantastic news is SWIG output! As you may have noticed, SWIG has D support. Means : No need to manually re-create C++ classes in D.
Does SWIG D support static linking by now?
|
January 20, 2012 Re: wxWidgets good news | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r Attachments:
| I don't think so. I use swig for d, c#, php, python but it always build shared libraries.
Il giorno ven, 20/01/2012 alle 13.51 +0100, Trass3r ha scritto:
> > Generating C functional wrappers is already pretty cool, but the fantastic news is SWIG output! As you may have noticed, SWIG has D support. Means : No need to manually re-create C++ classes in D.
>
> Does SWIG D support static linking by now?
|
January 20, 2012 Re: wxWidgets good news | ||||
---|---|---|---|---|
| ||||
Posted in reply to bls Attachments: | On Fri, 20 Jan 2012 03:24:19 -0800 bls <bizprac@orange.fr> wrote: > Hi, it seems that the idea of using doxygen xml output to generate D bindings was not that bad. I am pretty happy to see that exactly this happens in wxWidgets 2.9.4, Thank you very much for the news!! > Generating C functional wrappers is already pretty cool, but the fantastic news is SWIG output! As you may have noticed, SWIG has D support. Means : No need to manually re-create C++ classes in D. Let's see how it would influence wxD. ;) Sincerely, Gour -- Those who are on this path are resolute in purpose, and their aim is one. O beloved child of the Kurus, the intelligence of those who are irresolute is many-branched. http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 |
January 20, 2012 Re: wxWidgets good news | ||||
---|---|---|---|---|
| ||||
Posted in reply to bls Attachments:
| 2012/1/20 bls <bizprac@orange.fr>
> As you may have noticed, SWIG has D support. Means : No need to manually
> re-create C++ classes in D.
>
> Holy crap.
>
>
Ah, kudos to David Nadlinger.
|
January 20, 2012 Re: wxWidgets good news | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jimmy Cao | On 01/20/2012 05:33 AM, Jimmy Cao wrote:
> 2012/1/20 bls <bizprac@orange.fr <mailto:bizprac@orange.fr>>
>
> As you may have noticed, SWIG has D support. Means : No need to
> manually re-create C++ classes in D.
>
> Holy crap.
>
>
> Ah, kudos to David Nadlinger.
Ya sorry David , I couldn't remember your name.
Guess David's help is needed anyway to make wxWidgets 4D a success.
|
January 20, 2012 Re: wxWidgets good news | ||||
---|---|---|---|---|
| ||||
Posted in reply to bls | On 01/20/2012 03:24 AM, bls wrote: > Hi, it seems that the idea of using doxygen xml output to generate D > bindings was not that bad. I am pretty happy to see that exactly this > happens in wxWidgets 2.9.4, > https://github.com/wxWidgets/wxWidgets/blob/master/docs/doxygen/scripts/make_bindings.py > > > Generating C functional wrappers is already pretty cool, but the > fantastic news is SWIG output! As you may have noticed, SWIG has D > support. Means : No need to manually re-create C++ classes in D. > > Holy crap. > Random thoughts. I think the challege will be to create a reasonable message system. The old WxD projects mimics the MESSAGEMAP() thing. I think a better solution would be to use wxWidgets connect() and to design a D-ish NET like message system. The cleanest D implementation I have seen so far is part of the DGUI project. SWIG : I think we have to modify : https://github.com/wxWidgets/wxWidgets/blob/master/docs/doxygen/scripts/swig_tools.py a bit, in order to enable SWIG to generate D2 code. Which wxWidget Version ? IMO at least 2.9x to avoid the UNICODE - non UNICODE stress. Probably 2.9.4 is the best choice (doxygen wise) which will arrive AFAIK in February. How to setup the project ? just the modified Python scripts and some docs? Dunno. Thoughts ? |
January 20, 2012 Re: wxWidgets good news | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r | On 01/20/2012 04:51 AM, Trass3r wrote:
>> Generating C functional wrappers is already pretty cool, but the
>> fantastic news is SWIG output! As you may have noticed, SWIG has D
>> support. Means : No need to manually re-create C++ classes in D.
>
> Does SWIG D support static linking by now?
From the docs
20.10 Work in progress and planned features
There are a couple of features which are not implemented yet, but would be very useful and might be added in the near future:
Static linking: Currently, the C wrapper code is compiled into a dynamic library, out of which the symbol addresses are looked up at runtime by the D part. If statically linking the different languages into one binary was supported, a tool-chain capable of performing IPO at link time could inline the wrapping code, effectively reducing the overhead for simple calls to zero.
Maybe someone should send David some cookies :)
|
January 20, 2012 Re: wxWidgets good news | ||||
---|---|---|---|---|
| ||||
Posted in reply to bls Attachments: | On Fri, 20 Jan 2012 06:10:20 -0800 bls <bizprac@orange.fr> wrote: > Which wxWidget Version ? > IMO at least 2.9x to avoid the UNICODE - non UNICODE stress. Probably > 2.9.4 is the best choice (doxygen wise) which will arrive AFAIK in > February. I agree. > How to setup the project ? just the modified Python scripts and some docs? Dunno. wxD is now at github, so there is possibility to fork it...personally I prefer hg over git, but can try to use hg-git for the sake of wxD. :-) Sincerely, Gour -- Bewildered by the modes of material nature, the ignorant fully engage themselves in material activities and become attached. But the wise should not unsettle them, although these duties are inferior due to the performers' lack of knowledge. http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 |
Copyright © 1999-2021 by the D Language Foundation