Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. The Case for D

The Case for D

Scheduled Pinned Locked Moved The Lounge
csharpc++comtoolsperformance
23 Posts 15 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Nemanja Trifunovic

    If you are interested in getting familiar with the D programming language, here is a nice introduction[^] written by Andrei Alexandrescu (yes, the Andrei Alexandrescu :) ) Frankly, I am not buying it at all, but decide for yourself. Oh, and if you are going to read the article, be sure to click the "Print" link, or you will be flooded with ads.

    Programming Blog utf8-cpp

    J Offline
    J Offline
    Jim Crafton
    wrote on last edited by
    #3

    Nemanja Trifunovic wrote:

    I am not buying it at all,

    Why not? I've see stuff about D before and thought that it was a good idea. What ails your soul? :) I mean, given all the ridiculous problems with C/C++, I don't see how D can be any worse.

    ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Oh

    N 1 Reply Last reply
    0
    • N Nemanja Trifunovic

      If you are interested in getting familiar with the D programming language, here is a nice introduction[^] written by Andrei Alexandrescu (yes, the Andrei Alexandrescu :) ) Frankly, I am not buying it at all, but decide for yourself. Oh, and if you are going to read the article, be sure to click the "Print" link, or you will be flooded with ads.

      Programming Blog utf8-cpp

      D Offline
      D Offline
      Diego Moita
      wrote on last edited by
      #4

      Nemanja Trifunovic wrote:

      yes, the Andrei Alexandrescu

      The "C++ Template Metaprogramming" guy? Wow, that's a really bad reference. But, prejudices apart, the language seems interesting and the article is not bad.


      Of all forms of sexual aberration, the most unnatural is abstinence.

      1 Reply Last reply
      0
      • J Jim Crafton

        Nemanja Trifunovic wrote:

        I am not buying it at all,

        Why not? I've see stuff about D before and thought that it was a good idea. What ails your soul? :) I mean, given all the ridiculous problems with C/C++, I don't see how D can be any worse.

        ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Oh

        N Offline
        N Offline
        Nemanja Trifunovic
        wrote on last edited by
        #5

        Jim Crafton wrote:

        Why not?

        To summarize: 1) It is too high level for system programming and too low level for "enterprise" applications and web. 2) Maintains C-like syntax with most of its problems without C source level compatibility (just like Java and C#, btw). 3) Not stable (D1 vs D2). 4) Confusion with standard libraries. 5) Big and complicated (maybe not as much as C++ but not far behind).

        Programming Blog utf8-cpp

        C P 2 Replies Last reply
        0
        • N Nemanja Trifunovic

          Jim Crafton wrote:

          Why not?

          To summarize: 1) It is too high level for system programming and too low level for "enterprise" applications and web. 2) Maintains C-like syntax with most of its problems without C source level compatibility (just like Java and C#, btw). 3) Not stable (D1 vs D2). 4) Confusion with standard libraries. 5) Big and complicated (maybe not as much as C++ but not far behind).

          Programming Blog utf8-cpp

          C Offline
          C Offline
          Chris Austin
          wrote on last edited by
          #6

          Nemanja Trifunovic wrote:

          1. It is too high level for system programming and too low level for "enterprise" applications and web.

          That is an interesting point. Not to come off as passive aggressive :) but, what has lead you to think so? I've only read some of the bullet points on the language but I haven't looked at any real world data.

          Sovereign ingredient for a happy marriage: Pay cash or do without. Interest charges not only eat up a household budget; awareness of debt eats up domestic felicity. --Lazarus Long Avoid the crowd. Do your own thinking independently. Be the chess player, not the chess piece. --Ralph Charell

          N 1 Reply Last reply
          0
          • 0 0x3c0

            Here's the printable version.[^] It certainly looks interesting; I had read a little about this beforehand, but not really looked into it. When I have some spare time, I'll see if I can find a compiler and IDE

            Between the idea And the reality Between the motion And the act Falls the Shadow

            R Offline
            R Offline
            Robert Surtees
            wrote on last edited by
            #7

            Dr. Dobbs color scheme looks strangely familiar...

            1 Reply Last reply
            0
            • C Chris Austin

              Nemanja Trifunovic wrote:

              1. It is too high level for system programming and too low level for "enterprise" applications and web.

              That is an interesting point. Not to come off as passive aggressive :) but, what has lead you to think so? I've only read some of the bullet points on the language but I haven't looked at any real world data.

              Sovereign ingredient for a happy marriage: Pay cash or do without. Interest charges not only eat up a household budget; awareness of debt eats up domestic felicity. --Lazarus Long Avoid the crowd. Do your own thinking independently. Be the chess player, not the chess piece. --Ralph Charell

              N Offline
              N Offline
              Nemanja Trifunovic
              wrote on last edited by
              #8

              Chris Austin wrote:

              but, what has lead you to think so

              Which part do you have in mind? :)

              Programming Blog utf8-cpp

              1 Reply Last reply
              0
              • N Nemanja Trifunovic

                Jim Crafton wrote:

                Why not?

                To summarize: 1) It is too high level for system programming and too low level for "enterprise" applications and web. 2) Maintains C-like syntax with most of its problems without C source level compatibility (just like Java and C#, btw). 3) Not stable (D1 vs D2). 4) Confusion with standard libraries. 5) Big and complicated (maybe not as much as C++ but not far behind).

                Programming Blog utf8-cpp

                P Offline
                P Offline
                PIEBALDconsult
                wrote on last edited by
                #9

                Nemanja Trifunovic wrote:

                without C source level compatibility

                I'm not sure what you mean by that, but the last I knew, one of the stated goals of D was that a piece of (working) C code could be fed to the D compiler and either it would compile and work as expected or throw an error. Such errors would be due to the "safety features" added to D to correct problems in C -- such as assignments in tests e.g. if ( x = y ) would cause a compiler error.

                1 Reply Last reply
                0
                • N Nemanja Trifunovic

                  If you are interested in getting familiar with the D programming language, here is a nice introduction[^] written by Andrei Alexandrescu (yes, the Andrei Alexandrescu :) ) Frankly, I am not buying it at all, but decide for yourself. Oh, and if you are going to read the article, be sure to click the "Print" link, or you will be flooded with ads.

                  Programming Blog utf8-cpp

                  P Offline
                  P Offline
                  Paul Selormey
                  wrote on last edited by
                  #10

                  Nemanja Trifunovic wrote:

                  Frankly, I am not buying it at all, but decide for yourself.

                  Well, I just have to read the hello world program, and decide...

                  import std.stdio;
                  void main()
                  {
                  writeln("Hello, world!");
                  }

                  If a language claims OOP and writes writeln("Hello, World"), I know there is a problem. Best regards, Paul.

                  Jesus Christ is LOVE! Please tell somebody.

                  N P N 3 Replies Last reply
                  0
                  • N Nemanja Trifunovic

                    If you are interested in getting familiar with the D programming language, here is a nice introduction[^] written by Andrei Alexandrescu (yes, the Andrei Alexandrescu :) ) Frankly, I am not buying it at all, but decide for yourself. Oh, and if you are going to read the article, be sure to click the "Print" link, or you will be flooded with ads.

                    Programming Blog utf8-cpp

                    N Offline
                    N Offline
                    N a v a n e e t h
                    wrote on last edited by
                    #11

                    D look interesting to me. I tried some examples and works great. But it is still in the early stage and it may take long time for people to accept a new language and start using it. If person like Andrei is writing about D, I am sure there will be something interesting to check it out. Here is what Walter Bright said on an interview[^] and I think he is right. C++ was (and is) limited by the requirement of legacy compatibility, and I thought much could be done if that requirement was set aside. We could have the power of C++ with the hindsight to make it beautiful. :)

                    Navaneeth How to use google | Ask smart questions

                    1 Reply Last reply
                    0
                    • P Paul Selormey

                      Nemanja Trifunovic wrote:

                      Frankly, I am not buying it at all, but decide for yourself.

                      Well, I just have to read the hello world program, and decide...

                      import std.stdio;
                      void main()
                      {
                      writeln("Hello, world!");
                      }

                      If a language claims OOP and writes writeln("Hello, World"), I know there is a problem. Best regards, Paul.

                      Jesus Christ is LOVE! Please tell somebody.

                      N Offline
                      N Offline
                      N a v a n e e t h
                      wrote on last edited by
                      #12

                      Paul Selormey wrote:

                      f a language claims OOP and writes writeln("Hello, World"), I know there is a problem.

                      Like C++, D allows free functions and member functions. So I don't see any problem here. Or am I missing something? :)

                      Navaneeth How to use google | Ask smart questions

                      C P 2 Replies Last reply
                      0
                      • N Nemanja Trifunovic

                        If you are interested in getting familiar with the D programming language, here is a nice introduction[^] written by Andrei Alexandrescu (yes, the Andrei Alexandrescu :) ) Frankly, I am not buying it at all, but decide for yourself. Oh, and if you are going to read the article, be sure to click the "Print" link, or you will be flooded with ads.

                        Programming Blog utf8-cpp

                        D Offline
                        D Offline
                        dazfuller
                        wrote on last edited by
                        #13

                        I've tried D out before and I quite like it, it's reasonably straight forward to code in without to many gotchas and the garbage collector is pretty good at its job. My only gripe was that in some places it can be a little to backwards-compatible with C/C++ especially with respect to dynamic memory management, but overall I like it. If you're on Linux then the GNU Compiler Collection has a D implementation (I seem to recall it was something like gdc) and should be in most of the repositories. Also Code::Blocks claims to support D as does Geany and GEdit does do syntax highlighting for it.

                        1 Reply Last reply
                        0
                        • N Nemanja Trifunovic

                          If you are interested in getting familiar with the D programming language, here is a nice introduction[^] written by Andrei Alexandrescu (yes, the Andrei Alexandrescu :) ) Frankly, I am not buying it at all, but decide for yourself. Oh, and if you are going to read the article, be sure to click the "Print" link, or you will be flooded with ads.

                          Programming Blog utf8-cpp

                          O Offline
                          O Offline
                          Oshtri Deka
                          wrote on last edited by
                          #14

                          I'm "learn the C++ really good, then try other stuff" kind of guy. In the middle of the journey I turned to C# detour, but I'm slowly returning to the main road :). D is not my cup of tea, I've spent too much time on C++ alternatives and now I regret some of my decisions.

                          1 Reply Last reply
                          0
                          • N N a v a n e e t h

                            Paul Selormey wrote:

                            f a language claims OOP and writes writeln("Hello, World"), I know there is a problem.

                            Like C++, D allows free functions and member functions. So I don't see any problem here. Or am I missing something? :)

                            Navaneeth How to use google | Ask smart questions

                            C Offline
                            C Offline
                            Caslen
                            wrote on last edited by
                            #15

                            "hello, world" ???

                            1 Reply Last reply
                            0
                            • N Nemanja Trifunovic

                              If you are interested in getting familiar with the D programming language, here is a nice introduction[^] written by Andrei Alexandrescu (yes, the Andrei Alexandrescu :) ) Frankly, I am not buying it at all, but decide for yourself. Oh, and if you are going to read the article, be sure to click the "Print" link, or you will be flooded with ads.

                              Programming Blog utf8-cpp

                              G Offline
                              G Offline
                              Gulli
                              wrote on last edited by
                              #16

                              The idea is nice. But for my taste they moved to many advanced things into the language instead of the library. (Like dynamic arrays, hashtables, etc.) The case for string is different since it is always percieved as a basic data type in these days. What bothers me about this are unessecary incompabilities. In most C-anchestor-languages the append-operator for strings is "+". (c++,java,c#,...) And as long as there is strong typing and no implicit casts (like in c++) there is no danger of this. In D you use "~" for this as well as for appending some data to a dynamic array. But even if both is technically the same ("appending"), i'd rather liked dynamic arrays to stay "normal" classes, which can be derived or replaced if needed. And to make a clear distinction in code, i'd rather typed "myArr.Append(i);" instead of "myArr~=i;"

                              1 Reply Last reply
                              0
                              • N Nemanja Trifunovic

                                If you are interested in getting familiar with the D programming language, here is a nice introduction[^] written by Andrei Alexandrescu (yes, the Andrei Alexandrescu :) ) Frankly, I am not buying it at all, but decide for yourself. Oh, and if you are going to read the article, be sure to click the "Print" link, or you will be flooded with ads.

                                Programming Blog utf8-cpp

                                A Offline
                                A Offline
                                Anna Jayne Metcalfe
                                wrote on last edited by
                                #17

                                OT: but we bumped into Andrei in the bar at the end of this year's ACCU Conference[^], and he's a great conversationalist (expect to be challenged, and to end up laughing frequently). Definitely on my "interesting people to share a bar with" list. :)

                                Anna :rose: Having a bad bug day? Tech Blog | Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

                                1 Reply Last reply
                                0
                                • N N a v a n e e t h

                                  Paul Selormey wrote:

                                  f a language claims OOP and writes writeln("Hello, World"), I know there is a problem.

                                  Like C++, D allows free functions and member functions. So I don't see any problem here. Or am I missing something? :)

                                  Navaneeth How to use google | Ask smart questions

                                  P Offline
                                  P Offline
                                  Paul Selormey
                                  wrote on last edited by
                                  #18

                                  N a v a n e e t h wrote:

                                  Like C++, D allows free functions and member functions.

                                  Inherited from C, it is C++ after all :) Best regards, Paul.

                                  Jesus Christ is LOVE! Please tell somebody.

                                  1 Reply Last reply
                                  0
                                  • P Paul Selormey

                                    Nemanja Trifunovic wrote:

                                    Frankly, I am not buying it at all, but decide for yourself.

                                    Well, I just have to read the hello world program, and decide...

                                    import std.stdio;
                                    void main()
                                    {
                                    writeln("Hello, world!");
                                    }

                                    If a language claims OOP and writes writeln("Hello, World"), I know there is a problem. Best regards, Paul.

                                    Jesus Christ is LOVE! Please tell somebody.

                                    P Offline
                                    P Offline
                                    PIEBALDconsult
                                    wrote on last edited by
                                    #19

                                    Cay you say "multi-paradigm"? :-D

                                    1 Reply Last reply
                                    0
                                    • N Nemanja Trifunovic

                                      If you are interested in getting familiar with the D programming language, here is a nice introduction[^] written by Andrei Alexandrescu (yes, the Andrei Alexandrescu :) ) Frankly, I am not buying it at all, but decide for yourself. Oh, and if you are going to read the article, be sure to click the "Print" link, or you will be flooded with ads.

                                      Programming Blog utf8-cpp

                                      D Offline
                                      D Offline
                                      dwieneke
                                      wrote on last edited by
                                      #20

                                      Isn't this plagiarism or at least a copyright violation? The D Language has been around for quite some time. [http://www.digitalmars.com/d/2.0/overview.html](<a href=)[^]"> They could at least have used to D#.

                                      N 1 Reply Last reply
                                      0
                                      • D dwieneke

                                        Isn't this plagiarism or at least a copyright violation? The D Language has been around for quite some time. [http://www.digitalmars.com/d/2.0/overview.html](<a href=)[^]"> They could at least have used to D#.

                                        N Offline
                                        N Offline
                                        Nemanja Trifunovic
                                        wrote on last edited by
                                        #21

                                        That's the very language the article is describing. Although it is worth noting that there were other languages with the same name in the past :)

                                        Programming Blog utf8-cpp

                                        D 1 Reply Last reply
                                        0
                                        • P Paul Selormey

                                          Nemanja Trifunovic wrote:

                                          Frankly, I am not buying it at all, but decide for yourself.

                                          Well, I just have to read the hello world program, and decide...

                                          import std.stdio;
                                          void main()
                                          {
                                          writeln("Hello, world!");
                                          }

                                          If a language claims OOP and writes writeln("Hello, World"), I know there is a problem. Best regards, Paul.

                                          Jesus Christ is LOVE! Please tell somebody.

                                          N Offline
                                          N Offline
                                          Nemanja Trifunovic
                                          wrote on last edited by
                                          #22

                                          Paul Selormey wrote:

                                          If a language claims OOP and writes writeln("Hello, World"), I know there is a problem.

                                          Meh, they never claimed it was a "pure" OO language. If you want that, use SmallTalk :)

                                          Programming Blog utf8-cpp

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups