Jump to page: 1 2 3
Thread overview
wxWidgets good news
Jan 20, 2012
bls
Jan 20, 2012
Andrea Fontana
Jan 20, 2012
Trass3r
Jan 20, 2012
Andrea Fontana
Jan 20, 2012
bls
Jan 20, 2012
Gour
Jan 20, 2012
Jimmy Cao
Jan 20, 2012
bls
Jan 20, 2012
bls
Jan 20, 2012
Gour
Jan 20, 2012
Andrej Mitrovic
Jan 20, 2012
bls
Jan 20, 2012
Marianne gagnon
Re: wxWidgets doxygen binding creation.
Jan 20, 2012
bls
Jan 20, 2012
Andrej Mitrovic
Jan 20, 2012
Gour
Jan 20, 2012
Brad Anderson
Jan 22, 2012
torhu
Jan 22, 2012
Jacob Carlborg
Jan 23, 2012
Gour
Jan 21, 2012
bls
Jan 21, 2012
Andrej Mitrovic
Jan 22, 2012
Gour
Jan 22, 2012
Andrej Mitrovic
Jan 23, 2012
Gour
Jan 23, 2012
bls
January 20, 2012
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
!!!

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
> 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
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
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
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
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
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
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
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


« First   ‹ Prev
1 2 3