Tsoding - How Not to Market Your Language Features

Sergey kornburn at yandex.ru
Fri Mar 28 10:02:45 UTC 2025


On Friday, 28 March 2025 at 09:25:09 UTC, Dukc wrote:
> On Friday, 28 March 2025 at 07:40:08 UTC, Sergey wrote:
>>
>> (good for D he doesn't do web development and doesn't know 
>> that D has nothing to do in modern cloud web area).
>>
>
> Can you elaborate that "has nothing to do"? Do you mean that 
> anything D offers over the common languages is of no use in web 
> development?
>
> My recent experience disagrees. I wanted to preprocess HTML 
> pages in my Vibe.d server, but I couldn't make them Diet 
> templates since they are processed through 
> [Jekyll](https://jekyllrb.com/) which outputs HTML.
>
> So, I entered my D code inside a `<script type="dlang">` block, 
> and had my application to parse the HTML file at compile time, 
> putting the D script in a mixin. In most other compiled 
> languages, I would have had to write a new program to extract 
> the preprocessor script out of the HTML, adding another phase 
> to the build process - quite a bit more complicated! The CTFE 
> features of D really simplified my life here.

Like web-sites maybe. By "modern cloud web" things I meant the 
whole ecosystem related to things where all web-services are 
working now.

Things like AWS, Google Cloud, Azure..
Things like protobuf and grpc..
First class oauth libraries and cryptography things..
Orchestration and authentications.. postman and kubernetes..
Grafana? nope

Also many approaches are expecting async/await behavior and 
interfaces

When I'm just opening some libraries related to the web and they 
have list of clients implementations (very common situation they 
are mentioning both officially supported and community-driven) - 
D is almost always not in the list

Is it possible to build all those things? sure. But because it is 
not there and seems D is not popular in that area - nobody doing 
this as well.

As an example for this rare lib that D has - prometheus.
D usage (based on dub) of both packages (old and new) ~ 200
https://code.dlang.org/packages/prometheus2
https://code.dlang.org/packages/prometheus

Let's now check Rust crate - depends on the versions but about 
100k
https://crates.io/crates/prometheus

Similar situation will be with other langs, used by web industry.

And if for gamedev/graphics we can say D has top-class libraries 
and solutions, we definitely can't say it for modern web


More information about the Digitalmars-d mailing list