Fedora Linux Support Community & Resources Center
  #1  
Old 11th June 2012, 11:48 PM
bioinfornatics Offline
Registered User
 
Join Date: Nov 2007
Posts: 24
linuxfirefox
D programming

Just to highlight fedora user

Fedora 17 provides a D programming environnement
- D is much more better than C++11
- D has same perf than C++
- D do not use a virtual machine
- Its syntax is said to be clear and expressive

if your script is biger than 1000 lines maybe switch to D (instead to use python, ruby, perl .... )
you need speed, security, easy to maintain it, choose D

you are welcome

Install
Code:
$ su -c 'yum install ldc*'
Test
Code:
import std.stdio;
void main(){
  writeln("hello world");
}
Code:
$ ldc2 test.d
./test
hello world

Last edited by bioinfornatics; 11th June 2012 at 11:54 PM.
Reply With Quote
  #2  
Old 12th June 2012, 07:03 PM
RupertPupkin's Avatar
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 4,620
linuxfedorafirefox
Re: D programming

I like your enthusiasm.

I tried getting into D several years ago, and one thing that always confused me was the two competing runtimes and standard libraries, Phobos and Tango. I get the feeling that that confused (and turned off) a lot of programmers because it wasn't clear which one to use. Has that split been resolved now? I think D would have caught on more by now if that split could have been avoided. Because while that confusion was going on it seems like many (but not all) of the complaints that C++ programmers had with C++ were getting fixed in C++11, which finally came out last year. It's a shame, because I do think that D is a nice language.

By the way, what is the difference between the LDC packages in the Fedora repos and the DMD compiler available here? I see that LDC uses LLVM as the backend, so what does DMD use? Also, what happened to GDC, the GNU version? I thought it used to be in the Fedora repos, but it's definitely not there now for F17. I'd prefer to use a GCC backend instead of LLVM.

I've been playing with Rust, another language that's advertised as an alternative/successor to C++, and it seems pretty good (though still in beta stage). It doesn't seem as fast as D, but one thing it has that I like is type safety. From what I've seen D doesn't have that, which has always been one of the complaints against C++, so in that regard D doesn't improve on C++. I'll keep playing with Rust, but I'll play with D again as well. I'm glad that there's a D mode for Emacs :
Attached Thumbnails
Click image for larger version

Name:	emacs24-dmode.png
Views:	60
Size:	74.3 KB
ID:	23250  
__________________
OS: Fedora 18 x86_64 | CPU: AMD64 3700+ 2.2GHz | RAM: 2GB PC3200 DDR | Disk: 160GB PATA | Video: ATI Radeon 7500 AGP 64MB | Sound: Turtle Beach Santa Cruz CS4630 | Ethernet: Realtek 8110SC
Reply With Quote
  #3  
Old 13th June 2012, 12:16 AM
bioinfornatics Offline
Registered User
 
Join Date: Nov 2007
Posts: 24
linuxfirefox
Re: D programming

Quote:
Originally Posted by RupertPupkin View Post
I like your enthusiasm.
Thanks

Yes you are right some time ago they was 2 standard library Tango / Phobos because each one provides his garbage collector. Now the standard library is Phobos. In more you can now to use Tango with Phobos without any problem.

Dmd is not all free: they are the frontend (free), backend (non free) for this reason this compiler can not go to offical fedora repo.
In more it seem binary executable generated by ldc is more faster than dmd.
About D compiler into gcc this should come with gcc 4.8.

Rust is an interisting language.
One advantage of D over Rust is that you know Java, C, Python and C++, then it doesn't take too much time to learn D. While Rust contains several less commonly known things (typeclasses, region inference, etc).

Last edited by bioinfornatics; 13th June 2012 at 12:24 AM.
Reply With Quote
  #4  
Old 20th June 2012, 10:25 PM
bioinfornatics Offline
Registered User
 
Join Date: Nov 2007
Posts: 24
linuxfirefox
Re: D programming

you can now use D directly in your browser: http://dpaste.dzfl.pl/

Example of use: http://dpaste.dzfl.pl/a8dc9212

Have fun :-)
Reply With Quote
Reply

Tags
d programming, dlang, fedora, ldc, programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
D2 programming bioinfornatics Programming & Packaging 0 2nd August 2011 02:21 AM
New C++ Programming Help Galvin Tjime Programming & Packaging 5 4th March 2010 07:55 PM
C++, STL Programming fc5pjs Programming & Packaging 3 7th March 2007 02:26 AM
linux programming vs. windows programming unlovedwarrior Programming & Packaging 11 22nd October 2006 09:14 PM
Programming in C Extro Using Fedora 7 25th May 2005 01:16 AM


Current GMT-time: 23:05 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat