On Tuesday, 24 October 2017 at 13:19:15 UTC, Dmitry Olshansky wrote:
What is dcache?

It's a patch for dmd that enables a *persistent* shared-memory hash-map, protected by a spin-lock from races. Dmd processes with -cache flag would detect the following pattern:


enum/static variable = func(args..);


Just want to give you the short feedback, that I think a caching mechanism sounds very good.

When developing for / with vibe.d the problem (is/was) that the Diet-templates where always recompiled, Sönke took my idea to save the result of the evaluation at startup.

So that at the second time not the .dt template is parsed and mixed in but a .d file.

(See: Experimental HTML template caching at https://github.com/rejectedsoftware/diet-ng/)
But they still get compiled every time.

Until now I did not found the time to test your compiler, but I think by the right way of caching it should be possible to speed up the edit-compile-cycle significantly.

So that using D and not an interpreted language (like Ruby/PHP) becomes more attractive even for small web projects.

Regards mt.

Reply via email to