Thread overview | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
October 08, 2019 rapidxml for D has been ported. | ||||
---|---|---|---|---|
| ||||
RapidXml is an attempt to create the fastest XML parser possible, while retaining useability, portability and reasonable W3C compatibility. It is an in-situ parser written in modern C++, with parsing speed approaching that of strlen function executed on the same data. RapidXml has been around since 2006, and is being used by lots of people. Ported rapidxml repo: https://github.com/huntlabs/rapidxml Example: ```D import rapidxml; import stdio; void main() { auto doc = new xml_document; string doc_text = "<single-element/>"; doc.parse!(0)(doc_text); auto node = doc.first_node(); writeln(node.m_name); doc.validate(); } ``` |
October 08, 2019 Re: rapidxml for D has been ported. | ||||
---|---|---|---|---|
| ||||
Posted in reply to zoujiaqing | On Tuesday, 8 October 2019 at 08:56:26 UTC, zoujiaqing wrote:
> [...]
So finally we have a working xml parser!
|
October 08, 2019 Re: rapidxml for D has been ported. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrea Fontana | On Tuesday, 8 October 2019 at 09:52:40 UTC, Andrea Fontana wrote: > On Tuesday, 8 October 2019 at 08:56:26 UTC, zoujiaqing wrote: >> [...] > > So finally we have a working xml parser! Huh? What's wrong with dxml[1]? (Of course it's always good to have alternatives, working or no). 1: http://code.dlang.org/packages/dxml |
October 08, 2019 Re: rapidxml for D has been ported. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrea Fontana | On Tuesday, 8 October 2019 at 09:52:40 UTC, Andrea Fontana wrote: > On Tuesday, 8 October 2019 at 08:56:26 UTC, zoujiaqing wrote: >> [...] > > So finally we have a working xml parser! https://github.com/DiamondMVC/Diamond/tree/master/xml Since 9 months ago. |
October 09, 2019 Re: rapidxml for D has been ported. | ||||
---|---|---|---|---|
| ||||
Posted in reply to bauss | On Tuesday, 8 October 2019 at 17:15:30 UTC, bauss wrote:
> On Tuesday, 8 October 2019 at 09:52:40 UTC, Andrea Fontana wrote:
>> On Tuesday, 8 October 2019 at 08:56:26 UTC, zoujiaqing wrote:
>>> [...]
>>
>> So finally we have a working xml parser!
>
> https://github.com/DiamondMVC/Diamond/tree/master/xml
>
> Since 9 months ago.
It will be nice to have a thorough tutorial on how to use it.
|
October 09, 2019 Re: rapidxml for D has been ported. | ||||
---|---|---|---|---|
| ||||
Posted in reply to zoujiaqing | On Tuesday, 8 October 2019 at 08:56:26 UTC, zoujiaqing wrote:
> RapidXml is an attempt to create the fastest XML parser possible, while retaining useability, portability and reasonable W3C compatibility. It is an in-situ parser written in modern C++, with parsing speed approaching that of strlen function executed on the same data. RapidXml has been around since 2006, and is being used by lots of people.
>
>
> Ported rapidxml repo:
> https://github.com/huntlabs/rapidxml
>
>
> Example:
> ```D
> import rapidxml;
>
> import stdio;
>
> void main()
> {
> auto doc = new xml_document;
>
> string doc_text = "<single-element/>";
>
> doc.parse!(0)(doc_text);
>
> auto node = doc.first_node();
>
> writeln(node.m_name);
>
> doc.validate();
> }
> ```
Great job! Now it is time to check who is the fastest.
|
October 12, 2019 Re: rapidxml for D has been ported. | ||||
---|---|---|---|---|
| ||||
Posted in reply to bauss | On Tuesday, 8 October 2019 at 17:15:30 UTC, bauss wrote: > On Tuesday, 8 October 2019 at 09:52:40 UTC, Andrea Fontana wrote: >> On Tuesday, 8 October 2019 at 08:56:26 UTC, zoujiaqing wrote: >>> [...] >> >> So finally we have a working xml parser! > > https://github.com/DiamondMVC/Diamond/tree/master/xml > > Since 9 months ago. https://diamondmvc.org/ --- certificate has expired |
October 12, 2019 Re: rapidxml for D has been ported. | ||||
---|---|---|---|---|
| ||||
Posted in reply to NonNull | On Saturday, 12 October 2019 at 13:51:57 UTC, NonNull wrote:
> On Tuesday, 8 October 2019 at 17:15:30 UTC, bauss wrote:
>> On Tuesday, 8 October 2019 at 09:52:40 UTC, Andrea Fontana wrote:
>>> On Tuesday, 8 October 2019 at 08:56:26 UTC, zoujiaqing wrote:
>>>> [...]
>>>
>>> So finally we have a working xml parser!
>>
>> https://github.com/DiamondMVC/Diamond/tree/master/xml
>>
>> Since 9 months ago.
>
> https://diamondmvc.org/ --- certificate has expired
Already aware of it and will fix it soon. Just haven't gotten around to it. http should work just fine.
|
October 15, 2019 Re: rapidxml for D has been ported. | ||||
---|---|---|---|---|
| ||||
Posted in reply to zoujiaqing | On Tuesday, 8 October 2019 at 08:56:26 UTC, zoujiaqing wrote:
> RapidXml is an attempt to create the fastest XML parser possible, while retaining useability, portability and reasonable W3C compatibility. It is an in-situ parser written in modern C++, with parsing speed approaching that of strlen function executed on the same data. RapidXml has been around since 2006, and is being used by lots of people.
So... you ported the RapidXml code, yet you do not mention this project anywhere, no credits to its authors, no information about the original license, etc? Am I summing this up correctly?
|
October 15, 2019 Re: rapidxml for D has been ported. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dejan Lekic | On 10/15/19 3:28 PM, Dejan Lekic wrote:
> On Tuesday, 8 October 2019 at 08:56:26 UTC, zoujiaqing wrote:
>> RapidXml is an attempt to create the fastest XML parser possible, while retaining useability, portability and reasonable W3C compatibility. It is an in-situ parser written in modern C++, with parsing speed approaching that of strlen function executed on the same data. RapidXml has been around since 2006, and is being used by lots of people.
>
> So... you ported the RapidXml code, yet you do not mention this project anywhere, no credits to its authors, no information about the original license, etc? Am I summing this up correctly?
In fact that's really disappointing
|
Copyright © 1999-2021 by the D Language Foundation