January 26, 2012
On 2012-01-26 19:08, bls wrote:
> On 01/26/2012 09:51 AM, Jacob Carlborg wrote:
>> On 2012-01-26 17:08, bls wrote:
>>> On 01/26/2012 07:51 AM, Trass3r wrote:
>>>>>> Sorry for my ignorance but why should one use DStep instead of htod
>>>>>> in order to port plain vanilla C headers ? I have to admit that I
>>>>>> haven't tried DStep yet.
>>>>>
>>>>> htod is Windows-only.
>>>>
>>>> And it sucks.
>>>> For example it drops const, runs the preprocessor instead of turning
>>>> preprocessor directives into proper D equivalents, horribly messes up
>>>> the comments (esp. comments for enum members),...
>>>
>>> Ok,Thanks for clarification! Seems that DStep is a missing link in the D
>>> tool-chain and should be part of the DMD package
>>> I'll try DStep ASAP on libxml2 and libxslt. Will let you know how it
>>> works for me.
>>> Thanks, Bjoern
>>
>> DStep has nothing to do with XML. It uses the Clang C API to create D
>> bindings.
>>
>
> libxml2 is a plain c library
> http://xmlsoft.org/
>
> libxslt dito.
> http://xmlsoft.org/XSLT/
>
> ?? May you mix it up. In order to create *bindings* to C++ libs doxygens
> xml output seems to be perfect.
>
> To _port_ C headers DStep is probaly the right tool. But I just see that
> I have to build llvm and what the heck.. :(
>
> Now, in order to parse doxygens xml output std.xml is not good enough.
> In other words it would be nice to have libxml2 as D lib available.

Oh, you mean create bindings to libxml2?

I don't see how doxygen xml output could be better to create bindings than a compiler.

Tango has a pretty good and super fast XML module. Tango is now usable with D2: https://github.com/SiegeLord/Tango-D2

-- 
/Jacob Carlborg
January 26, 2012
On 1/26/12, bls <bizprac@orange.fr> wrote:
> A few questions : where do I find Vladimir Panteelev's XML library ?

https://github.com/CyberShadow/ae/blob/master/utils/ (see xml.d)

> Does this library support XPATH ?

I'm not sure. It's a light-weight library, you're probably not going to see libxml2 features in there.

> Maybe it's too early but what do you think about replacing wxEvent with a D solution ?

I think it's too early for that, but I know it would be nice to have something D-like for events. We'll see later.

Anyway, the XML parsing script is done and I've verified it has the same output as the php script. This thing parsed about 1400 xml files, so I don't see any issues with parsing doxygen xml files with a lightweight xml lib, at least not for wxWidgets. The next step is to port the generator scripts. I'll make updates as progress continues.
January 26, 2012
On Thursday, 26 January 2012 at 19:02:30 UTC, Jonathan M Davis wrote:
> xmlp is the one that Tomaz is working on to replace std.xml, correct? Any idea how close it is to actually being submitted for review?
>
> - Jonathan M Davis

Michael Rynn, no I don't know what Tomaz is up to. Maybe some form of contact information should be given on the ReviewQueue.

I'll send an email to Michael about this discrepancy as I didn't notice this before.

As for xmlp and its progress. I can't really say either. It seems he started using a custom hashmap implementation which probably doesn't jive with being included in Phobos. Organizational work would probably need to be done, it isn't flat which may or may not be good for Phobos.
January 27, 2012
On Thu, 26 Jan 2012 23:18:10 +0100, Andrej Mitrovic <andrej.mitrovich@gmail.com> wrote:

> On 1/26/12, bls <bizprac@orange.fr> wrote:
>> A few questions : where do I find Vladimir Panteelev's XML library ?
>
> https://github.com/CyberShadow/ae/blob/master/utils/ (see xml.d)
>
>> Does this library support XPATH ?
>
> I'm not sure. It's a light-weight library, you're probably not going
> to see libxml2 features in there.
>
>> Maybe it's too early but what do you think about replacing wxEvent with
>> a D solution ?
>
> I think it's too early for that, but I know it would be nice to have
> something D-like for events. We'll see later.
>
> Anyway, the XML parsing script is done and I've verified it has the
> same output as the php script. This thing parsed about 1400 xml files,
> so I don't see any issues with parsing doxygen xml files with a
> lightweight xml lib, at least not for wxWidgets. The next step is to
> port the generator scripts. I'll make updates as progress continues.


It is not clear what you do not use xml in tango library.


Regards

Marton Papp
January 27, 2012
On 1/27/12, equinox@atw.hu <equinox@atw.hu> wrote:
> It is not clear what you do not use xml in tango library.

I'm using D2, not D1.
January 27, 2012
On Thu, 26 Jan 2012 23:18:10 +0100
Andrej Mitrovic <andrej.mitrovich@gmail.com> wrote:

> Anyway, the XML parsing script is done and I've verified it has the same output as the php script. This thing parsed about 1400 xml files, so I don't see any issues with parsing doxygen xml files with a lightweight xml lib, at least not for wxWidgets. The next step is to port the generator scripts. I'll make updates as progress continues.

Andrej, you're the bearer of the best D-news these days. Congrats!!!


Sincerely,
Gour


-- 
One who is not disturbed in mind even amidst the threefold miseries or elated when there is happiness, and who is free from attachment, fear and anger, is called a sage of steady mind.

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810


January 27, 2012
On 1/27/12, Gour <gour@atmarama.net> wrote:
> Andrej, you're the bearer of the best D-news these days. Congrats!!!

I appreciate the enthusiasm, but I think it should be toned down a bit. At this stage this work is pretty insignificant compared to all the work on e.g. improving DMD.
January 27, 2012
On 2012-01-27 08:48, Andrej Mitrovic wrote:
> On 1/27/12, equinox@atw.hu<equinox@atw.hu>  wrote:
>> It is not clear what you do not use xml in tango library.
>
> I'm using D2, not D1.

Tango is working find with D2: https://github.com/SiegeLord/Tango-D2

-- 
/Jacob Carlborg
January 27, 2012
On Fri, 27 Jan 2012 10:29:43 +0100
Andrej Mitrovic <andrej.mitrovich@gmail.com> wrote:

> I appreciate the enthusiasm, but I think it should be toned down a bit. At this stage this work is pretty insignificant compared to all the work on e.g. improving DMD.

I'm aware that the folks working on improving/fixing DMD is doing terrific job, but in one sense this is kind of work that new D user could take as granted based on the premise that 'it should just work as described in e.g. TDPL'.

Otoh, your work is extending usability of D to be used for writing real-world GUI applications and we cannot say how many people may abandon the idea to use D just by seeing the present state of many half-baked GUI bindings *before* even stumbling upon some DMD bugs.

Let's not forget that today the language itself does not mean much without 'batteries included' and the whole ecosystem inckluding IDE/editors suppor, build systems etc.

So, I would not minimize the fact to get stable/actively_developed/easily_maintained bindings for native multi-platform GUI toolkit. ;)


Sincerely,
Gour



-- 
All living bodies subsist on food grains, which are produced from rains. Rains are produced by performance of yajña [sacrifice], and yajña is born of prescribed duties.

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810


January 27, 2012
On 1/27/12, Jacob Carlborg <doob@me.com> wrote:
> Tango is working find with D2: https://github.com/SiegeLord/Tango-D2

It wasn't the first place I went looking for an xml lib since this port is pretty new. But I did hear Tango's xml parser was blazing fast.