February 02, 2012
On Thursday, 2 February 2012 at 04:39:11 UTC, dsimcha wrote:
> Wait a minute, since when do we even have a std.xml2?  I've never heard of it and it's not in the Phobos source tree (I just checked).

As others point out it is xmlp, I've been using it for the last year or two, and recently seen an improvement on performance (as mentioned). I don't know how comparable it is, and Richard seems to see a slow down from GC, for me disabling the GC during load doesn't change load time, but I'm not using the document loader.

I hope Michael will put some effort into getting it ready for review. But still, people should use it and get him some incentive to do the work.
February 02, 2012
On 2 February 2012 17:40, dsimcha <dsimcha@yahoo.com> wrote:

> On Thursday, 2 February 2012 at 04:38:49 UTC, Robert Jacques wrote:
>
>> An XML parser would probably want some kind of stack segment growth schedule, which, IIRC isn't supported by RegionAllocator.
>>
>
> at least assuming we're targeting PCs and not embedded devices.
>

I don't know about the implications of your decision, but comment makes me feel uneasy.

I don't know how you can possibly make that assumption? Have you looked
around at the devices people actually use these days?
PC's are an endangered and dying species... I couldn't imagine a worse
assumption if it influences the application of D on different systems.


February 02, 2012
On Thursday, February 02, 2012 18:11:34 Jesse Phillips wrote:
> On Thursday, 2 February 2012 at 04:39:11 UTC, dsimcha wrote:
> > Wait a minute, since when do we even have a std.xml2? I've never heard of it and it's not in the Phobos source tree (I just checked).
> 
> As others point out it is xmlp, I've been using it for the last year or two, and recently seen an improvement on performance (as mentioned). I don't know how comparable it is, and Richard seems to see a slow down from GC, for me disabling the GC during load doesn't change load time, but I'm not using the document loader.
> 
> I hope Michael will put some effort into getting it ready for review. But still, people should use it and get him some incentive to do the work.

In theory, Tomek SowiƄski was working on a replacement for std.xml which was the likely replacement for std.xml, but he seems to have disappeared... His last post was on an XML writer back in June. So, I don't know what the current situation with that is.

- Jonathan M Davis
February 02, 2012
On Thursday, February 02, 2012 20:06:14 Manu wrote:
> On 2 February 2012 17:40, dsimcha <dsimcha@yahoo.com> wrote:
> > On Thursday, 2 February 2012 at 04:38:49 UTC, Robert Jacques wrote:
> >> An XML parser would probably want some kind of stack segment growth schedule, which, IIRC isn't supported by RegionAllocator.
> > 
> > at least assuming we're targeting PCs and not embedded devices.
> 
> I don't know about the implications of your decision, but comment makes me feel uneasy.
> 
> I don't know how you can possibly make that assumption? Have you looked
> around at the devices people actually use these days?
> PC's are an endangered and dying species... I couldn't imagine a worse
> assumption if it influences the application of D on different systems.

PCs are not endangered in the least. It's just that we're getting an increase in other devices (particularly smart phones and tablets). PCs are _heavily_ used, and there's no way that smart phones or tablets could replace them. They do different stuff. It _is_ true that applications are increasingly being written for non-PCs, but PCs definitely aren't dying off.

Also, how much do you really treat smart phones or tablets like embedded devices rather than PCs? They're certainly more like PCs than the embedded devices of yore. True, they have stricter performance requirements, but they're nowhere near as restrictive as they used to be.

- Jonathan M Davis
February 02, 2012
On 2/2/12, Manu <turkeyman@gmail.com> wrote:
> PC's are an endangered and dying species...

Kind of like when we got rid of cars and trains and ships once we started making jumbo jets.

Oh wait, that didn't happen.
February 02, 2012
On Thursday, 2 February 2012 at 18:06:24 UTC, Manu wrote:
> On 2 February 2012 17:40, dsimcha <dsimcha@yahoo.com> wrote:
>
>> On Thursday, 2 February 2012 at 04:38:49 UTC, Robert Jacques wrote:
>>
>>> An XML parser would probably want some kind of stack segment growth
>>> schedule, which, IIRC isn't supported by RegionAllocator.
>>>
>>
>> at least assuming we're targeting PCs and not embedded devices.
>>
>
> I don't know about the implications of your decision, but comment makes me
> feel uneasy.
>
> I don't know how you can possibly make that assumption? Have you looked
> around at the devices people actually use these days?
> PC's are an endangered and dying species... I couldn't imagine a worse
> assumption if it influences the application of D on different systems.

I'm not saying that embedded isn't important.  It's just that for low level stuff like memory management it requires a completely different mindset.  RegionAllocator is meant to be fast and simple at the expense of space efficiency.  In embedded you'd probably want completely different tradeoffs.  Depending on how deeply embedded, space efficiency might be the most important thing.  I don't know exactly what tradeoffs you'd want, though, since I don't do embedded development.  My guess is that you'd want something completely different, not RegionAllocator plus a few tweaks that would complicate it for PC use.  Therefore, I designed RegionAllocator for PCs with no consideration for embedded environments.
February 02, 2012
On Thursday, 2 February 2012 at 18:55:02 UTC, Andrej Mitrovic wrote:
> On 2/2/12, Manu <turkeyman@gmail.com> wrote:
>> PC's are an endangered and dying species...
>
> Kind of like when we got rid of cars and trains and ships once we
> started making jumbo jets.
>
> Oh wait, that didn't happen.

Agreed.  I just recently got my first smartphone and I love it.  I see it as a complement to a PC, though, not as a substitute.  It's great for when I'm on the go, but when I'm at home or at work I like a bigger screen, a full keyboard, a faster processor, more memory, etc.  Of course smartphones will get more powerful but I doubt any will ever have dual 22 inch monitors.
February 02, 2012
On Thu, Feb 02, 2012 at 08:20:55PM +0100, dsimcha wrote:
> On Thursday, 2 February 2012 at 18:55:02 UTC, Andrej Mitrovic wrote:
> >On 2/2/12, Manu <turkeyman@gmail.com> wrote:
> >>PC's are an endangered and dying species...
> >
> >Kind of like when we got rid of cars and trains and ships once we started making jumbo jets.
> >
> >Oh wait, that didn't happen.
> 
> Agreed.  I just recently got my first smartphone and I love it.  I see it as a complement to a PC, though, not as a substitute.  It's great for when I'm on the go, but when I'm at home or at work I like a bigger screen, a full keyboard, a faster processor, more memory, etc. Of course smartphones will get more powerful but I doubt any will ever have dual 22 inch monitors.
[...]

Funny you should mention that, a number of years ago I got to know a guy who worked in a lab that was researching organic polymer-based electronics, which lets you build things like screens and keyboards that can be rolled up or folded and put into your pocket. It was still experimental technology at the time, though, and I'm not expecting it to be publicly available anytime soon. But the day may come when your smartphone *can* literally have a 22" monitor (that folds into a pocket sized card).


T

-- 
Famous last words: I wonder what will happen if I do *this*...
February 02, 2012
> But the day may come when your
> smartphone *can* literally have a 22" monitor (that folds into a pocket
> sized card).
>
>
> T

This doesn't sound very practical.


February 02, 2012
On 02/02/2012 19:32, H. S. Teoh wrote:
> But the day may come when your
> smartphone *can* literally have a 22" monitor (that folds into a pocket
> sized card).
>


Nah, what you really need are those holographic displays they use on CSI Miami. No need for physical displays at all ;-)