Re: Basic questions about D lang?

2017-11-29 Thread Jesse Phillips via Digitalmars-d-learn

On Tuesday, 28 November 2017 at 13:39:11 UTC, Jayam wrote:

Can we compile our program to multi program ?


Based on your C# reference you must be referring to the "Mixed 
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).


Re: Basic questions about D lang?

2017-11-29 Thread user1234 via Digitalmars-d-learn

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




Re: Basic questions about D lang?

2017-11-29 Thread crimaniak via Digitalmars-d-learn

On Wednesday, 29 November 2017 at 11:32:51 UTC, Jayam wrote:

In D lang,
1. Is there any feature async/ await like "c#" ? I can't find 
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 
like in c# or do we need to manually trigger it ?
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.




Re: Basic questions about D lang?

2017-11-29 Thread rikki cattermole via Digitalmars-d-learn

On 29/11/2017 11:32 AM, Jayam wrote:

In D lang,
1. Is there any feature async/ await like "c#" ? I can't find feature 
like async.


No. The idea is floating around however.

2. Is Garbage Collector work default without any code to force like in 
c# or do we need to manually trigger it ?


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).


Basic questions about D lang?

2017-11-29 Thread Jayam via Digitalmars-d-learn

In D lang,
1. Is there any feature async/ await like "c#" ? I can't find 
feature like async.
2. Is Garbage Collector work default without any code to force 
like in c# or do we need to manually trigger it ?
3. Can we make library file and use that in any project like 
'Util class' ?







Re: Basic questions about D lang?

2017-11-28 Thread Ali Çehreli via Digitalmars-d-learn

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



Re: Basic questions about D lang?

2017-11-28 Thread Steven Schveighoffer via Digitalmars-d-learn

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


Re: Basic questions about D lang?

2017-11-28 Thread Jayam via Digitalmars-d-learn

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?


Re: Basic questions about D lang?

2017-11-28 Thread Jayam via Digitalmars-d-learn
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?


Re: Basic questions about D lang?

2017-11-28 Thread rikki cattermole via Digitalmars-d-learn

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?


Re: Basic questions about D lang?

2017-11-28 Thread Stefan Koch via Digitalmars-d-learn

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


Basic questions about D lang?

2017-11-28 Thread Jayam via Digitalmars-d-learn

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 ?