Difference between revisions of "The D Programming Language"

From D Wiki
Jump to: navigation, search
m (icon link)
(Comment out PlanetD (no one uses RSS any more...))
 
(209 intermediate revisions by 51 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:<span style="display:none">{{FULLPAGENAME}}</span>}}
 
 
__NOTOC__
 
__NOTOC__
 
+
<table cellspacing="10" style="width:100%; margin-top:-3em;">
<table cellspacing="10" style="width:100%;">
 
 
<tr>
 
<tr>
<td style="vertical-align:top;">
+
<td>
= The D Programming Language =
+
[https://dlang.org/index.html The D Programming Language] has been said to be "what C++ wanted to be," which is a better C. D is developed with system level programming in mind, but brings to the table modern language design with a simple C-like syntax. For these reasons D makes for a good language choice for both performance code and application development.
[http://dlang.org/index.html The D Programming Language] has been said to be "what C++ wanted to be," which is a better C. D is developed with system level programming in mind, but brings to the table modern language design with a simple C-like syntax. For these reasons D makes for a good language choice for both performance code and application development.
 
 
 
D is rapidly reaching a stable [http://dlang.org/spec.html specification] and [http://dlang.org/download.html implementation].  
 
  
[http://www.amazon.com/exec/obidos/ASIN/0321635361/classicempire "The D Programming Language"] by Andrei Alexandrescu is available on Amazon and other locations.  
+
D is rapidly reaching a stable [https://dlang.org/spec.html specification] and [https://dlang.org/download.html implementation].
  
 +
[https://www.amazon.com/exec/obidos/ASIN/0321635361/classicempire "The D Programming Language"] by Andrei Alexandrescu is available on Amazon and other locations.
  
 
</td>
 
</td>
 +
<td>
 +
<table cellspacing="10" style="width:100%;">
 +
<tr>
 
<td  style="vertical-align:top;">
 
<td  style="vertical-align:top;">
 
== Hello World ==
 
== Hello World ==
Line 19: Line 18:
 
<syntaxhighlight lang="D">import std.stdio;
 
<syntaxhighlight lang="D">import std.stdio;
  
int main(string[] args)
+
void main()
 
{
 
{
 
     writeln("Hello, world!");
 
     writeln("Hello, world!");
    return 0;
 
 
}</syntaxhighlight>
 
}</syntaxhighlight>
 +
[https://run.dlang.io &#9654; Run code]
  
 
 
</td>
 
</td>
 
</tr>
 
</tr>
 +
</table>
 +
</td>
 +
</tr>
 +
 
</table>
 
</table>
  
Line 34: Line 36:
 
<td style="vertical-align:top; width:50%;">
 
<td style="vertical-align:top; width:50%;">
 
<table cellspacing="10" style="width:100%;">
 
<table cellspacing="10" style="width:100%;">
 +
 
<tr>
 
<tr>
<td style="margin:0; margin-top:10px; margin-right:10px; border:1px solid #e9e7d4; padding:0 1em 1em 1em; background-color: #f9f7e4; align:right;vertical-align:top;">
+
<td style="margin:0; margin-top:10px; margin-right:10px; border:1px solid #e9e7d4; border-bottom: 2px solid #c9c7b4; border-top: 1px solid #fff; padding:0 1em 1em 1em; background-color: #f9f7e4; align:right;vertical-align:top;">
== [[File:Icon_intro_32.png|link=Why_switch_to_D]] Introduction ==
+
== [[File:Icon intro 32.png|link=Why program in D]] Introduction ==
* [[Why_switch_to_D|Why switch to D]]
+
* [[Why program in D|Why program in D?]]
* [[Development_With_D | Development with D]]
+
* [https://tour.dlang.org Take the tour]
* [[First_Language | Learning D as a first language]]
+
* [[Getting Started | Getting started]]
* [[Coming_From | Learning D as a second language]]
+
* [[First Language | Learning D as a first language]] &mdash; [[Coming From | As a second language]]
* [[Current_D_Use | Current uses of D]]
+
* [https://dlang.org/orgs-using-d.html Current uses of D] by organizations and notable projects
 
</td>
 
</td>
 
</tr>
 
</tr>
 +
 
<tr>
 
<tr>
<td style="margin:0; margin-top:10px; margin-right:10px; border:1px solid #e9e7d4; padding:0 1em 1em 1em; background-color: #f1f7df; align:right;vertical-align:top;">
+
<td style="margin:0; margin-top:10px; margin-right:10px; border:1px solid #c0d9e2; border-bottom: 2px solid #a0b9c2; border-top: 1px solid #fff; padding:0 1em 1em 1em; background-color: #e4f4f9; align:right;vertical-align:top;">
  
== [[File:Icon_tools_32.png|link=Compilers]] Compilers &amp; Tools ==
+
== [[File:Icon community 32.png|link=https://forum.dlang.org]] Community ==
* [[Compilers | D Compilers]]
+
* [https://forum.dlang.org Forums] / [news://news.digitalmars.com Newsgroup] / [https://lists.puremagic.com/mailman/listinfo Mailing lists] (Same content)
* [[IDEs | IDEs]] &mdash; [[Editors | Text Editors]] 
+
* [[Guidelines for Professional Conduct]]
* [[Libraries_and_Frameworks | Libraries and Frameworks]]
+
* [https://dlang.org/orgs-using-d.html Organizations using D]
 +
* [irc://irc.libera.chat/d <tt>#d</tt> on Libera.Chat] or [irc://irc.oftc.net/d OFTC] IRC
 +
* [https://discord.gg/bMZk9Q4 D Code Club] on Discord
 +
* [https://discord.gg/MrJV27E DLang (Unofficial)] on Discord
 +
* [https://dlang.org/blog Official blog]
 +
<!-- [https://planet.dsource.org/ Planet D] -->
 +
* [https://dpldocs.info/this-week-in-d/Blog.html This Week in D]
 +
* [https://www.linkedin.com/groups/D-Developer-Network-3923820 LinkedIn: D Developer Network (DDN)]
 +
<!-- [https://plus.google.com/communities/100033468228217743303 Google+: D Programming Enthusiasts] -->
 +
* [https://www.facebook.com/dlang.org Facebook: D Programming Language]
 +
<!-- [https://www.xing.com/net/dlang XING - D Programming Language] -->
 +
* [https://letsfindcourse.com/d-programming-courses D Programming Tutorials Recommended by Programming Community]
 +
<!-- [https://www.meetup.com/topics/dpl/|D User Groups (DUGs)] — [[Events]] -->
 +
* [https://stackoverflow.com/questions/tagged/d D on StackOverflow]
 +
* [https://rosettacode.org/wiki/Category:D D on RosettaCode] - See solutions of common programming tasks in the D programming language.
 +
* [https://www.reddit.com/r/d_language/ reddit: /r/d_language]
 +
* [[GSOC_2019_Ideas | Google Summer of Code 2019 (GSoC)]]
 +
* [[Research_scholarship | Research Scholarship]]
 +
* [https://exercism.io/tracks/d D Track on Exercism.io] - Solve exercises and get feedback
 +
* [[Beerconf]]
 
</td>
 
</td>
 
</tr>
 
</tr>
 +
 
<tr>
 
<tr>
<td style="margin:0; margin-top:10px; margin-right:10px; border:1px solid #d0e2c0; padding:0 1em 1em 1em; background-color: #eaf7df; align:right;vertical-align:top;">
+
<td style="margin:0; margin-top:10px; margin-right:10px; border:1px solid #dddddd; border-bottom: 2px solid #bbb; border-top: 1px solid #fff; padding:0 1em 1em 1em; background-color:#f2f2f2; align:right;vertical-align:top;">
  
== [[File:Icon_docs_32.png|link=http://dlang.org/spec.html]] Documentation ==
+
== [[File:Icon dev 32.png|link=Get involved]] Contributing ==
* [http://dlang.org/spec.html D Language Specification]
+
* [[Get involved]]
* [http://dlang.org/phobos/index.html Standard Library Reference (Phobos)]
+
* [[DIPs|D Improvement Proposals]] (DIPs)
* [[Books|Books (Online and printed)]]
+
* [https://github.com/dlang/projects/issues Project Ideas]
* [[Articles|Articles]]
+
* [[Review Queue]]
</td>
+
* [[Runtime internals]]
 +
* [[Beta Testing]]
 +
* [[Language_issues | Language Issues]]
 +
* [[Language_design_discussions | Language Design Discussions]]
 +
* [[Documentation_improvement_initiative | Documentation Improvement Initiative]]
 
</tr>
 
</tr>
 +
 
</table>
 
</table>
 
 
</td>
 
</td>
 
<td style="vertical-align:top; width:50%;">
 
<td style="vertical-align:top; width:50%;">
 
<table cellspacing="10" style="width:100%;">
 
<table cellspacing="10" style="width:100%;">
 +
 
<tr>
 
<tr>
<td style="margin:0; margin-top:10px; margin-right:10px; border:1px solid #c0d9e2; padding:0 1em 1em 1em; background-color: #e4f4f9; align:right;vertical-align:top;">
+
<td style="margin:0; margin-top:10px; margin-right:10px; border:1px solid #d0e2c0; border-bottom: 2px solid #b0c2a0; border-top: 1px solid #fff; padding:0 1em 1em 1em; background-color: #eaf7df; align:right;vertical-align:top;">
  
== [[File:Icon_community_32.png|link=http://forum.dlang.org]] Community ==
+
== [[File:Icon docs 32.png|link=https://dlang.org/spec.html]] Documentation ==
* [http://forum.dlang.org Forums] / [news://news.digitalmars.com Newsgroup] (Same content)
+
* [https://dlang.org/spec.html D Language Specification]
* [[Videos|Videos]]
+
* [https://dlang.org/phobos/index.html Standard Library Reference (Phobos)]
* [[Open_Source_Projects|Open Source Projects]]
+
<!--* [https://ddocs.org Third-party library documentation]-->
* IRC: [irc://irc.freenode.net/d Join <tt>#d</tt>] on [http://freenode.net Freenode]
+
* [[Commonly-Used Acronyms]]
 +
* [[Books|Books (Online and printed)]]
 +
* [[Articles]] — [[Tutorials]] — [[Cookbook]]
 +
* [[ResearchPapers| Research papers]]
 +
* [[Language Designs Explained]]
 +
* [[Language History and Future]]
 
</td>
 
</td>
 
</tr>
 
</tr>
 +
 
<tr>
 
<tr>
<td style="margin:0; margin-top:10px; margin-right:10px; border:1px solid #dddddd; padding:0 1em 1em 1em; background-color:#f2f2f2; align:right;vertical-align:top;">
+
<td style="margin:0; margin-top:10px; margin-right:10px; border:1px solid #e9e7d4; border-bottom: 2px solid #c9c7b4; border-top: 1px solid #fff; padding:0 1em 1em 1em; background-color: #f1f7df; align:right;vertical-align:top;">
  
== [[File:Icon_dev_32.png|link=Get_involved]] Core Development ==
+
== [[File:Icon tools 32.png|link=Compilers]] Compilers &amp; Tools ==
* [[Get_involved|Get involved]]
+
* [[Compilers | D Compilers]] ([[DMD]], [[GDC]], [[LDC]])
* [[DIPs|D Improvement Proposals]]
+
* [[Experimental compilers]] ([[SDC]], [[DIL]])
* [[Review_Queue|Review Queue]]
+
* [[IDEs]] &mdash; [[Editors | Text Editors ]]
</td>
+
* [[Development tools]]
</tr></table>
+
* [[Lexers Parsers | Lexers, Parsers]]
 +
* [[Build Tools|Build tools]]
 +
* [[Debuggers]]  
 +
* [[Continuous Integration | Continuous Integration services]]
 +
* [[Online compilers|Online compilers and disassemblers]]
 
</td>
 
</td>
 
</tr>
 
</tr>
</table>
 
  
 +
<tr>
 +
<td style="margin:0; margin-top:10px; margin-right:10px; border:1px solid #dde0e9; border-bottom: 2px solid #bdc0c9; border-top: 1px solid #fff; padding:0 1em 1em 1em; background-color: #edf0f9; align:right;vertical-align:top;">
  
<div style="background: #f9f9f9; padding: 5px 5px; border-top: 1px solid #e0e0e0; margin: 0px 10px;">
+
== [[File:Icon resources 32.png|link=Libraries and Frameworks]] Resources & Directory ==
Latest:
+
* [https://code.dlang.org/ Official package repository]
<span style="background-color: #c4664a; border-bottom: 1px solid #964e39; color: #fff; font-family: monospace; padding: 3px 7px; border-radius: 5px; font-size: 14pt; line-height: 1.8em;">'''D2'''&middot;060</span>
+
* [[Libraries and Frameworks]]
[http://dlang.org/download.html Download] |
+
* [[Open Source Projects]]
[http://dlang.org/changelog.html Changelog] |
+
* [[Bindings]]
[https://github.com/D-Programming-Language Source code] | 
+
* [[Videos]]
[http://d.puremagic.com/issues/ Bug tracker]
+
* [[Websites]] ([[Websites/Blogs|Blogs]])
</div>
+
* [[People]] ([[People/Github|On Github]])
 +
* [[BenchMarks]]
 +
* [[Art]] (Logos, etc...)
 +
</td>
 +
</tr>
  
<table cellspacing="10" style="width:100%;">
 
 
<tr>
 
<tr>
<td style="margin:0; margin-top:10px; margin-right:10px; border:1px solid #dddddd; padding:0 1em 1em 1em; background-color:#f2f2f2; align:right;vertical-align:top;">
+
<td style="margin:0; margin-top:10px; margin-right:10px; border:1px solid #eee; border-top: 2px solid #ccc; border-bottom: 1px solid #f6f6f6; padding:0 1em 1em 1em; background-color:#fff; align:right;vertical-align:top;">
  
== MediaWiki Help ==
+
== [[File:Icon meta 32.png|link=Meta]] <span style="color:#999;">Meta</span> ==
 
+
* [[DWiki:General discussion|Discuss this wiki]] <span style="color:#999;">(Criticise, suggest improvements etc.)</span>
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software, or see the [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ].
+
* [[DWiki:Community portal|DWiki Community Portal]]
 
+
</td>
== Useful Links ==
+
</tr>
* [[Special:RecentChanges|Show recently changed pages]]
 
  
 +
</table>
 
</td>
 
</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
 +
 +
{{:DMD Widget}}

Latest revision as of 06:30, 4 September 2023

The D Programming Language has been said to be "what C++ wanted to be," which is a better C. D is developed with system level programming in mind, but brings to the table modern language design with a simple C-like syntax. For these reasons D makes for a good language choice for both performance code and application development.

D is rapidly reaching a stable specification and implementation.

"The D Programming Language" by Andrei Alexandrescu is available on Amazon and other locations.

Hello World

import std.stdio;

void main()
{
    writeln("Hello, world!");
}

▶ Run code

Icon intro 32.png Introduction

Icon community 32.png Community

Icon dev 32.png Contributing

Icon docs 32.png Documentation

Icon tools 32.png Compilers & Tools

Icon resources 32.png Resources & Directory

Icon meta 32.png Meta

Latest DMD: D2·110·0 DownloadChangelogSource code —  Bug trackerMore »