Hacker News new | past | comments | ask | show | jobs | submit login

https://vibed.org/ is basically this, but in D instead



Also in Vibed, Diet templates (~= Mustache templates) are compiled using this into binary classes.


The new WebConfig library looks promising too: https://github.com/WebFreak001/WebConfig


ASP.Net MVC is basically this, but much more mature and feature packed :) And C# is no slower than D.


> And C# is no slower than D.

I very much doubt that. Do you have anything to back up that statement?


Benchmarks are tricky and hard to find for dlang as its not that popular, but I have common sense to back that statement. Dlang garbage collector is really really slow for now [0], and C# has a very fast GC and overall is almost as fast as zero-overhead languages like Rust or C++ [1]. So, its reasonable that for anything that involves GC (we all can agree that web server does) D is not that fast as manual memory management languages yet.

[0] https://olshansky.me//gc/runtime/dlang/2017/06/14/inside-d-g...

[1] http://benchmarksgame.alioth.debian.org/u64q/binarytrees.htm...


I have benchmarked D code against C,Rust and C++, most of the time D code is faster than Rust and C++ so I doubt it's on pair with C#.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: