October 26, 2022

On Wednesday, 26 October 2022 at 10:53:50 UTC, German Diago wrote:

>

On Wednesday, 26 October 2022 at 06:28:37 UTC, Arun wrote:

>

On Wednesday, 26 October 2022 at 01:06:27 UTC, Ali Çehreli wrote:

>

On 10/25/22 17:53, zjh wrote:

>

I am saying the above with full understanding that there are programmers out there who were educated in C++ circles and are sure that garbage collectors are for inferior languages. That is a shortcoming of their education.

For short running tools and low volume stuff, yes, GC is good.

My practical experience running vibe.d service with GC in production: default GC is a bane. Default should've been @nogc.

I would like to hear your experience with Vibe.d. I would care about performance scaling. I have been genuinely interested in using it for years but I did not dare to jump into it. As opposed to Django.

But my intuition tells me that sooner or later Django backends for small things like what I do will be a resource hog compared to D? True that I can partition, do microservices, etc. but that complicates things. On the positive Python side, there is no compilation step and that helps a lot in many situations.

Is django really that much of a resource hog though? If stuff like Instagram can use it just fine, maybe we're just being overly pessimistic?

https://instagram-engineering.com/web-service-efficiency-at-instagram-with-python-4976d078e366

October 26, 2022

On Wednesday, 26 October 2022 at 10:53:50 UTC, German Diago wrote:

>

On Wednesday, 26 October 2022 at 06:28:37 UTC, Arun wrote:

>

On Wednesday, 26 October 2022 at 01:06:27 UTC, Ali Çehreli wrote:

>

[...]

>

[...]

For short running tools and low volume stuff, yes, GC is good.

My practical experience running vibe.d service with GC in production: default GC is a bane. Default should've been @nogc.

I would like to hear your experience with Vibe.d. I would care about performance scaling. I have been genuinely interested in using it for years but I did not dare to jump into it. As opposed to Django.

But my intuition tells me that sooner or later Django backends for small things like what I do will be a resource hog compared to D? True that I can partition, do microservices, etc. but that complicates things. On the positive Python side, there is no compilation step and that helps a lot in many situations.

Also, a benchmark site : https://www.techempower.com/benchmarks//#section=data-r21&test=composite

Just do ctrl-f and look for vibed and django

For those who want a 1 number summary:

vibe is at 92
django at 137

October 27, 2022

PHP also got builtin sumtype and pattern matching

https://laravel-news.com/modern-php-features-explained

https://news.ycombinator.com/item?id=33357318

D lagging behind most languages now :/

October 27, 2022
On Tuesday, 25 October 2022 at 04:38:48 UTC, Walter Bright wrote:
> On 10/24/2022 4:18 PM, Timon Gehr wrote:
>> It does not allow me to do most of the things I'd like to do with lifetime tracking.
>
> I'd appreciate if you would write this all up, and in the simplest possible terms. Most examples I see are hopelessly overcomplicated, I have to do a lot of reduction to figure out the essence of it :-/
>

+1
October 27, 2022

On Thursday, 27 October 2022 at 15:14:30 UTC, ryuukk_ wrote:

>

PHP also got builtin sumtype and pattern matching

https://laravel-news.com/modern-php-features-explained

https://news.ycombinator.com/item?id=33357318

D lagging behind most languages now :/

I do not think pattern matching is a must-have. It can be quite nice, but you can do lots with all the other things.

October 28, 2022
On 10/27/22 18:08, German Diago wrote:
> On Thursday, 27 October 2022 at 15:14:30 UTC, ryuukk_ wrote:
>> PHP also got builtin sumtype and pattern matching
>>
>> https://laravel-news.com/modern-php-features-explained
>>
>> https://news.ycombinator.com/item?id=33357318
>>
>>
>> D lagging behind most languages now :/
> 
> I do not think pattern matching is a must-have. It can be quite nice, but you can do lots with all the other things.

I believe it's quickly becoming a feature where people will be pretty upset that a language lacks it. Lack of algebraic data types is definitely a reason why some people are avoiding D in my experience.

October 28, 2022

On Thursday, 27 October 2022 at 15:14:30 UTC, ryuukk_ wrote:

>

PHP also got builtin sumtype and pattern matching

https://laravel-news.com/modern-php-features-explained

https://news.ycombinator.com/item?id=33357318

D lagging behind most languages now :/

D also has them: https://dlang.org/phobos/std_sumtype.html#match

October 28, 2022

On Friday, 28 October 2022 at 09:35:06 UTC, Sergey wrote:

>

On Thursday, 27 October 2022 at 15:14:30 UTC, ryuukk_ wrote:

>

PHP also got builtin sumtype and pattern matching

https://laravel-news.com/modern-php-features-explained

https://news.ycombinator.com/item?id=33357318

D lagging behind most languages now :/

D also has them: https://dlang.org/phobos/std_sumtype.html#match

std.sumtype is buggy, it's slow and it is a template

C/C++ also had them with MACROs, why do you think they decided to now have them has built in feature?

October 28, 2022

On Friday, 28 October 2022 at 12:34:42 UTC, ryuukk_ wrote:

>

On Friday, 28 October 2022 at 09:35:06 UTC, Sergey wrote:

>

On Thursday, 27 October 2022 at 15:14:30 UTC, ryuukk_ wrote:

>

PHP also got builtin sumtype and pattern matching

https://laravel-news.com/modern-php-features-explained

https://news.ycombinator.com/item?id=33357318

D lagging behind most languages now :/

D also has them: https://dlang.org/phobos/std_sumtype.html#match

std.sumtype is buggy, it's slow and it is a template

C/C++ also had them with MACROs, why do you think they decided to now have them has built in feature?

Only with D the solution is a template, then your program takes 30 seconds to compile and people wonder why it is slow, don't put the burden on the users for something this essential, it doesn't look good

October 28, 2022

On Friday, 28 October 2022 at 12:34:42 UTC, ryuukk_ wrote:

>

std.sumtype is buggy, it's slow and it is a template

C/C++ also had them with MACROs, why do you think they decided to now have them has built in feature?

If you've found any bugs in std.sumtype, please report them on issues.dlang.org or https://github.com/pbackus/sumtype/issues!