Redesign of dlang.org

w0rp via Digitalmars-d digitalmars-d at puremagic.com
Mon Jun 9 17:18:34 PDT 2014


I have updated the site and the repository with all of the D 
changelogs split into their own pages. I had to reformat a few 
things, primarily example code, so it would fit nicely in smaller 
column sizes. I marked sections with headings so it fits into a 
table of contents. One major thing that's missing is syntax 
highlighting, as I'm not sure what to use for that.

http://w0rp.com:8010/changelog

Here is what I've noticed so far that's good about the diet 
templates.

1. The template syntax, taken from Jade, is easy to understand 
and clean.
2. I can do tricks like the table of contents easily.

However, with the good comes the bad.

1. If you are recompiling one template, you are recompiling *all* 
of them. I'm getting closer to 100 templates, and it takes 
seconds to compile.
2. Compiling many templates allocates like crazy during compile 
time and eats memory like a hog. It takes *5GB* of RAM to compile 
all of these templates.

It seems like the vibe.d diet templates take heap allocation 
during compilation time way, way too far, to the point of them 
being impractical to use for large websites. Somewhere around 100 
templates is something I would expect for a reasonably sized 
website.

So I have a plea or two for vibe.d

In addition to recompiling diet templates automatically during 
development, which has been mentioned before, I believe there 
should be an option to defer compilation of a template the first 
time, during development, until you view a page using it for the 
first time. This woud solve the slower compilation issue, because 
then you'd only pay for what you used.

Second, something must be done about memory allocation during 
compilation of diet templates. There's too much going on there.

That's it for now.


More information about the Digitalmars-d mailing list