Author Topic: D programming language  (Read 6447 times)

0 Members and 1 Guest are viewing this topic.

Offline Agent Smith

  • ZX 81
  • *
  • Posts: 24
  • Karma: 3
    • View Profile
D programming language
« on: July 20, 2006 »
Hey guys,

Just wondering if anyone has ever used D at all.

I've been reading up on it and I'm quite impressed. It seems to address a lot of my misgivings about C++.
Also it's quite fast. On the Debian (language shootout) site it's actually up there with GCC on overall performance.
As well as the Digital Mars compiler, there's a GCC front end (called GDC) so it's good for cross-platform projects.
I've been using GDC on my Mac  ;)

You can easily interface with any C libraries - I'm looking at using WxD for GUI apps and possibly SDL or Allegro for 2D games.
Not sure about a suitable 3D engine yet.

Anyway, I'd be interested in any of your thoughts on D. From what I can make of it, this new language looks the goods  ;D
« Last Edit: July 26, 2006 by Agent Smith »

Offline relsoft

  • DBF Aficionado
  • ******
  • Posts: 3303
  • Karma: 47
    • View Profile
Re: D programming language
« Reply #1 on: July 21, 2006 »
Design-wise, I think D is much better than C++.

Real OOP. Like Java and C# with automatic memory management.

The only drawback is that it's an evolving compiler with lesser suppot than C++.

The coolest PC space shooters I've played are made with D.

Google. "Kenta Cho"

Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: D programming language
« Reply #2 on: July 21, 2006 »
Last year when I was deciding to choose a new language to learn my judgement was clouded by D.
I downloaded devcpp and got my first embarrasing "Hello world" programs done with std.lib and then I saw D. I was much more impressed with what I saw, to the point where I couldn't decide which I wanted to use so I swapped both for freebasic.

Probably I'll go back to C++ before long but as a development language I think that D is great and it has a very cool list of features, and as rbraz says, it is a developing language without the support of C++ but I think that for that reason alone it is worth pursuing, just to support the language.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline TinDragon

  • Pentium
  • *****
  • Posts: 644
  • Karma: 24
    • View Profile
    • J2K's blog
Re: D programming language
« Reply #3 on: July 21, 2006 »
I have looked at D but decided to go with C++ as it has been around alot longer and there's far more info, tutorials and books on the language to learn from. It's also a pretty much industry standard langauge so I thought it would be a good thing for me to learn  :)

However D is an interesting language and I agree with Relsoft, some top pc shooters coded in it ;)

Offline Agent Smith

  • ZX 81
  • *
  • Posts: 24
  • Karma: 3
    • View Profile
Re: D programming language
« Reply #4 on: July 22, 2006 »
 :) Thanks for the feedback guys. Especially relsoft - I didn't know about those cool shmups by Kenta Cho. Impressive stuff!
Especially Torus Trooper and it was interesting to see which libs he used (SDL, OpenGL, libBulletML, Mersenne Twister and Ogg Vorbis).
I've since found that D wrappers are freely downloadable for all of these, and more.

Ok, D is still undergoing refinement, but it should be reasonably stable now that it's in beta. Certainly stable enough for me, anyway.
I plan to transition to it completely. I've always thought that C++ is a horrendous, dog's-breakfast of a language - too complicated, too much baggage from C.

Right now I'm modding the BlitzMax IDE (MaxIDE) to compile .d source files instead of .bmx
There's a D utility called Build, which basically does the equivalent of "bmk makeapp" - greatly simplifying things. The main changes I'll have to make are for the D syntax highlighting.

Next I'll make a D wrapper for TinyPTC and try converting some test programs to DÂ  Â ;)

« Last Edit: July 22, 2006 by Agent Smith »

Offline relsoft

  • DBF Aficionado
  • ******
  • Posts: 3303
  • Karma: 47
    • View Profile
Re: D programming language
« Reply #5 on: July 23, 2006 »
Actually, my fav is rRootage. :*)

Panic shooter. :*)
Challenge Trophies Won:

Offline TinDragon

  • Pentium
  • *****
  • Posts: 644
  • Karma: 24
    • View Profile
    • J2K's blog
Re: D programming language
« Reply #6 on: July 23, 2006 »
rRootage is one of my fav's :)

Offline Phoenix

  • C= 64
  • **
  • Posts: 99
  • Karma: 4
    • View Profile
Re: D programming language
« Reply #7 on: August 10, 2006 »
I remember playing a pretty nice game called Torus Trooper, made in D. I was going to check it out, but never bothered.

Offline psygate

  • Completly Insane.
  • Atari ST
  • ***
  • Posts: 173
  • Karma: 7
  • That boy needs therapy.
    • View Profile
Re: D programming language
« Reply #8 on: August 10, 2006 »
Actually... .Where can I get D? Is it Free? Is there any tutorial?
He who controlles the minds commands the many.
He who commands the many, conqueres the minds.

Offline Agent Smith

  • ZX 81
  • *
  • Posts: 24
  • Karma: 3
    • View Profile
Re: D programming language
« Reply #9 on: August 11, 2006 »
Yes, it is free and open source. You can get it here including tutorials (see also the Wiki).

See here for more tutorials and D source code, including the Build utility.

« Last Edit: August 11, 2006 by Agent Smith »

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: D programming language
« Reply #10 on: August 11, 2006 »
Thanks for the links Agent Smith.
Shockwave ^ Codigos
Challenge Trophies Won:

xteraco

  • Guest
Re: D programming language
« Reply #11 on: August 12, 2006 »
blech, i'd rather spend my tiem coding in c++  ... D blech....  it makes me think about an argument i heard about c#...   it went something like this
"blah blah blah, c# has automatic garbage collector, blah blah"
"blah blah, you can code a garbage collector in c++"

end of argument

Offline relsoft

  • DBF Aficionado
  • ******
  • Posts: 3303
  • Karma: 47
    • View Profile
Re: D programming language
« Reply #12 on: August 15, 2006 »
Is there a problem with automatic garbage collection?
Challenge Trophies Won:

Offline Agent Smith

  • ZX 81
  • *
  • Posts: 24
  • Karma: 3
    • View Profile
Re: D programming language
« Reply #13 on: August 15, 2006 »
He seems to be suggesting that the only advantage D (or C#) has over C++ is automatic garbage collection.
« Last Edit: August 15, 2006 by Agent Smith »