www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Basic questions about D lang?

reply Jayam <sathanu26 yahoo.com> writes:
Is D language open source?
Do this have GUI Desktop application support ?
Do this have web api support ?
Can we compile our program to multi program ?
Nov 28 2017
next sibling parent reply Stefan Koch <uplink.coder googlemail.com> writes:
On Tuesday, 28 November 2017 at 13:39:11 UTC, Jayam wrote:
 Is D language open source?
 Do this have GUI Desktop application support ?
 Do this have web api support ?
 Can we compile our program to multi program ?
yes yes some (dlang-ui for example) yes some (vibe.d or arsd) I don't know what you mean with that
Nov 28 2017
parent reply Jayam <sathanu26 yahoo.com> writes:
On Tuesday, 28 November 2017 at 13:42:05 UTC, Stefan Koch wrote:
 On Tuesday, 28 November 2017 at 13:39:11 UTC, Jayam wrote:
 Is D language open source?
 Do this have GUI Desktop application support ?
 Do this have web api support ?
 Can we compile our program to multi program ?
yes yes some (dlang-ui for example) yes some (vibe.d or arsd) I don't know what you mean with that
Thanks. Can we compile our program to multi platform?
Nov 28 2017
parent Steven Schveighoffer <schveiguy yahoo.com> writes:
On 11/28/17 8:52 AM, Jayam wrote:
 On Tuesday, 28 November 2017 at 13:42:05 UTC, Stefan Koch wrote:
 On Tuesday, 28 November 2017 at 13:39:11 UTC, Jayam wrote:
 Is D language open source?
 Do this have GUI Desktop application support ?
 Do this have web api support ?
 Can we compile our program to multi program ?
yes yes some (dlang-ui for example) yes some (vibe.d or arsd) I don't know what you mean with that
Thanks. Can we compile our program to multi platform?
D supports several platforms: https://wiki.dlang.org/Compilers -Steve
Nov 28 2017
prev sibling next sibling parent reply rikki cattermole <rikki cattermole.co.nz> writes:
On 28/11/2017 1:39 PM, Jayam wrote:
 Is D language open source?
Yes 100%
 Do this have GUI Desktop application support ?
Sure but probably not to the level you expect.
 Do this have web api support ?
Ugh what? Be more specific.
 Can we compile our program to multi program ?
Okay that definitely makes no sense. Do you mean can we cross compile to other architectures other than the host?
Nov 28 2017
parent reply Jayam <sathanu26 yahoo.com> writes:
On Tuesday, 28 November 2017 at 13:42:08 UTC, rikki cattermole 
wrote:
 On 28/11/2017 1:39 PM, Jayam wrote:
 Is D language open source?
Yes 100%
 Do this have GUI Desktop application support ?
Sure but probably not to the level you expect.
 Do this have web api support ?
Ugh what? Be more specific.
 Can we compile our program to multi program ?
Okay that definitely makes no sense. Do you mean can we cross compile to other architectures other than the host?
Thanks. Can we compile our program to multi platform?
Nov 28 2017
parent =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
On 11/28/2017 05:51 AM, Jayam wrote:

 Can we compile our program to multi platform?
Most definitely! D is great in multi-threaded programming. (I hope that was the question. :) ) Ali
Nov 28 2017
prev sibling next sibling parent reply Jayam <sathanu26 yahoo.com> writes:
In D lang,

feature like async.
2. Is Garbage Collector work default without any code to force 

3. Can we make library file and use that in any project like 
'Util class' ?
Nov 29 2017
next sibling parent rikki cattermole <rikki cattermole.co.nz> writes:
On 29/11/2017 11:32 AM, Jayam wrote:
 In D lang,

 like async.
No. The idea is floating around however.
 2. Is Garbage Collector work default without any code to force like in 

Automatic but if you want to be in control of it you can.
 3. Can we make library file and use that in any project like 'Util class' ?
Yes, but you don't need utility classes. They are a code smell (free-functions are the solution here).
Nov 29 2017
prev sibling next sibling parent crimaniak <crimaniak gmail.com> writes:
On Wednesday, 29 November 2017 at 11:32:51 UTC, Jayam wrote:
 In D lang,

 feature like async.
As for me, async/await feature is a half-baked solution. With vibe-d you can write asynchronous code without thinking about it at all. Details: http://vibed.org/features
 2. Is Garbage Collector work default without any code to force 

It starts automatically when you try to allocate memory and there is no space in heap. In fact, it leads to architecture restriction: destructors must be nogc. Also, you can run it with GC.collect()
 3. Can we make library file and use that in any project like 
 'Util class' ?
Yes.
Nov 29 2017
prev sibling parent user1234 <user1234 12.nl> writes:
On Wednesday, 29 November 2017 at 11:32:51 UTC, Jayam wrote:
 In D lang,
 [...]
 3. Can we make library file and use that in any project like 
 'Util class' ?
Of course ! Plenty of them can be found here: https://code.dlang.org/?sort=updated&category=library
Nov 29 2017
prev sibling parent Jesse Phillips <Jesse.K.Phillips+D gmail.com> writes:
On Tuesday, 28 November 2017 at 13:39:11 UTC, Jayam wrote:
 Can we compile our program to multi program ?
Platform" build option. No, that is a .NET thing and D is not on .NET (that project has died). D requires a more traditional approach to multiple platforms, you'll need to write your code with the needs of your supported platforms in mind. Luckily in pure D this is like no work, but when you interface to C/C++ libraries you'll hit sizes of types and structures changing almost randomly (ok it isn't that bad).
Nov 29 2017