April 25

On Wednesday, 24 April 2024 at 22:37:44 UTC, tony wrote:

>

most D forum users agree on is that both garbage collection and object-orientation are bad (so why did they choose D?)

Keep in mind even the D programmers that don't use the GC in production use it in prototyping and internal tooling.
So I'd say we all appreciate the GC in using D, by a large majority, and benefit from it.

April 25

On Tuesday, 23 April 2024 at 14:56:50 UTC, Marconi wrote:

>

On Sunday, 21 April 2024 at 03:47:08 UTC, ShowMeTheWay wrote:

>

These two approaches are difficult to reconcile, philosophically ;-)

Vlang - Simple language for building maintainable programs
Ziglang - Focus on debugging your application rather than debugging your programming language knowledge. (simple, maintainable)
Rust - Reliable and efficient software.
C++ - C with Zero Cost Abstraction
D - D shines from low-level control to high-level abstraction. Fast code, [running?]fast.
C - Simple. Efficiency. Close-to-Hardware Programming. "Nothing is better than C" "When i see C, i see the assembler" - Linus
Java - "Write once, run anywhere." Not so true, but work great in terms of propaganda. GUI in java sucks, its better create different efficient programs for each system than just a one bad java software. What Java really has great its a big standard API.

So, the right order of principles:
Simple (maintainable), fast, big organized standard library.

That's why C still shines. Its still simple and fast.
Thats's why everybody wants replace C++. Its fast, but hard to learn and mantain.
Thats's why everybody wants replace Java. Its simple, but slow.
Thats's why Rust is growing but will die. Its fast, but hard and becoming more and more hard.

If D create some new way to make manual memory management easily, in such a way that the lovers of GC would not be so furious... the language could reach almost the perfection.

Default GC was the biggest D mistake.

Only a propaganda mistake. For most applications, the kind of memory management is largely irrelevant as long as there is no leak. GC at CTFE is brilliant. C++ tries to do manual memory management at CTFE (called constexpr functions) and it took them almost 10 years to get it done (C++11 introduced constexpr and C++20 had constexpr dynamic memory allocation), and even there, e.g. a std::vector can’t leave the CTFE environment and become a compile-time constant.
In D, if I need a compile-time array of non-trivial pre-calculated values that can be generated by some function, I can do this:

static immutable int[] values = {
    int[] result;
    // algorithm fills `result`
    return result;
}(); // runs at ctfe

If I want or need to, I can convert this to a static array:

enum int[] _values = {…}();
static immutable int[_values.length] values = _values;

This runs at compile-time guaranteed. It’s not an optimization. As far as I know, this is not easily done in C++. It’s certainly doable using templates, but it’s not doable in C++23 using non-template constexpr functions and e.g. std::vector.

If you don’t want the GC to run, use @nogc or full-on -betterC. Even in BetterC mode, you can use all of D’s features like GC at CTFE.

April 25

On Thursday, 25 April 2024 at 12:58:23 UTC, Guillaume Piolat wrote:

>

On Wednesday, 24 April 2024 at 22:37:44 UTC, tony wrote:

>

most D forum users agree on is that both garbage collection and object-orientation are bad (so why did they choose D?)

Keep in mind even the D programmers that don't use the GC in production use it in prototyping and internal tooling.
So I'd say we all appreciate the GC in using D, by a large majority, and benefit from it.

Copyright © 1999-2024 by the D Language Foundation

1999 1999 1999 1999 1999 1999 1999 1999 1999 1999 1999

???????????????????????????

Since 1999 nobody cares about Dlang.

PLEASE, ASK YOURSELF, WHY NOBODY CARES ABOUT DLANG!?

April 25

On Thursday, 25 April 2024 at 14:48:20 UTC, Marconi wrote:

>

Since 1999 nobody cares about Dlang.

What are your main languages?
In which area are you working?

April 25

On Thursday, 25 April 2024 at 12:58:23 UTC, Guillaume Piolat wrote:

>

On Wednesday, 24 April 2024 at 22:37:44 UTC, tony wrote:

>

most D forum users agree on is that both garbage collection and object-orientation are bad (so why did they choose D?)

Keep in mind even the D programmers that don't use the GC in production use it in prototyping and internal tooling.
So I'd say we all appreciate the GC in using D, by a large majority, and benefit from it.

I'll add: Just check with valgrind programs made by people who think they manage memory better than a GC. There are several things people dont think of. To name two: copy construction, alignment when your work with value types. Your (not nominative, more generally) own memory management system is likely to be worse than D GC ;).
Invalid reads, invalid writes, double frees, etc. La fiesta.

April 25
On Thursday, 25 April 2024 at 14:48:20 UTC, Marconi wrote:
> Since 1999 nobody cares about Dlang.
>
> PLEASE, ASK YOURSELF, WHY NOBODY CARES ABOUT DLANG!?

Nonsense! Even you do care so much about D that you keep participating in this thread.
April 25
On Wednesday, 24 April 2024 at 15:25:27 UTC, Marconi wrote:
> This should be obvious, but I think people need to hear it out loud.
>
> D SHOULD BE A C AND C++ REPLACEMENT.

I’m not sure why this was posted as a reply to my message, but talking about “replacements”… Why focus so much on replacing things?

For me, D happens to be the tool of choice.
Not because I replaced something else with it, but rather because it’s the first option I reach to when writing new programs (where it makes sense).
April 26

On Thursday, 25 April 2024 at 14:48:20 UTC, Marconi wrote:

>

On Thursday, 25 April 2024 at 12:58:23 UTC, Guillaume Piolat wrote:
...

Copyright © 1999-2024 by the D Language Foundation

1999 1999 1999 1999 1999 1999 1999 1999 1999 1999 1999

???????????????????????????

Since 1999 nobody cares about Dlang.

PLEASE, ASK YOURSELF, WHY NOBODY CARES ABOUT DLANG!?

Think about what you are claiming...

... that a language, in existence since 1999, now - 25 years later - STILL EXISTS!

... considering that, according to you, NOBODY CARES ABOUT IT!

How did it survive for 25 years if no-one cared? What bought you here? Why are you still here, considering that YOU (apparently) DON'T CARE?

You should have concluded the exact opposite - that "1999-2024" proves hat there were a sufficient number of people that cared (by using D!) to ensure that the language survived (and evolved).

D has any number of issues that frustrate people and that they complain about, but that is because they "care" enough to use the language. And I suspect even you are... in the exact same boat.

If you were right, we wouldn't be here on the D forum discussing this ... because there are no discussions/debates going on about dead languages.

April 26

On Thursday, 25 April 2024 at 14:48:20 UTC, Marconi wrote:

>

On Thursday, 25 April 2024 at 12:58:23 UTC, Guillaume Piolat wrote:

>

On Wednesday, 24 April 2024 at 22:37:44 UTC, tony wrote:

>

most D forum users agree on is that both garbage collection and object-orientation are bad (so why did they choose D?)

Keep in mind even the D programmers that don't use the GC in production use it in prototyping and internal tooling.
So I'd say we all appreciate the GC in using D, by a large majority, and benefit from it.

Copyright © 1999-2024 by the D Language Foundation

1999 1999 1999 1999 1999 1999 1999 1999 1999 1999 1999

???????????????????????????

Since 1999 nobody cares about Dlang.

PLEASE, ASK YOURSELF, WHY NOBODY CARES ABOUT DLANG!?

Seriously, programming languages have this rare ability to turn people so mad, it's incredible. So much fanboy-ism and hater-ism.

1 2 3 4
Next ›   Last »