Re: What is the difference between pages under dlang.org/phobos and dlang.org/library?

2016-10-27 Thread A D dev via Digitalmars-d-learn

On Thursday, 27 October 2016 at 18:47:07 UTC, Adam D. Ruppe wrote:

It is the same content, generated at the same time, just laid 
out differently.


You can use whichever you find easier.


Thanks, Adam.



What is the difference between pages under dlang.org/phobos and dlang.org/library?

2016-10-27 Thread A D dev via Digitalmars-d-learn

Hi list,

What is the difference between pages under dlang.org/phobos and 
dlang.org/library?

And when should we use which, as a reference?

E.g.

https://dlang.org/phobos/std_zip.html

https://dlang.org/library/std/zip.html

I viewed the above two pages and the content seems roughly the 
same. How to know which one is more up to date and should be 
used? Same question for all other such similar pages on the two 
sites. Is there any thumb rule for this?


Thanks.



Re: dmd -o- option meaning changed recently? Now not creating OBJ but also not creating EXE

2016-10-11 Thread A D dev via Digitalmars-d-learn

On Monday, 3 October 2016 at 09:06:32 UTC, Dicebot wrote:

Purpose is to skip code generation and only do syntax/semantic 
validation. Very helpful when testing compiler because:


a) it takes less time speeding up overall test suite
b) doesn't require runtime static library to succeed, thus 
simplifying setup


Thanks, Dicebot. Only saw your message now, sorry.




Re: dmd -o- option meaning changed recently? Now not creating OBJ but also not creating EXE

2016-10-02 Thread A D dev via Digitalmars-d-learn

On Sunday, 2 October 2016 at 20:47:44 UTC, ag0aep6g wrote:

I think you may be misremembering things. I've checked versions 
back to 2.051 (from 2010, oldest I've got lying around). None 
of them wrote an executable with -o-.


1.

Thanks a lot for all that checking and for your reply.

2.

I've checked versions back to 2.051 (from 2010, oldest I've got 
lying around).


Great idea, wish I had thought of that myself. Will do it in 
future - keep some older versions of the compiler or its zip 
file, so that I can check for such things if they arise.


3.

I think you may be misremembering things. I've checked versions 
back to 2.051 (from 2010, oldest I've got lying around). None 
of them wrote an executable with -o-.


You may well be right. I did say that in my original post, though 
not sure why I would misremember. But I acknowledge the 
possibility.


I did find it weird that it would not create BOTH an OBJ and EXE 
(now, with -o-) and did create only an EXE (before, with -o-), if 
both those things were actually the case. Because that is too big 
a thing to happen as a mistake by the D team. And I could not 
think of a good reason why they might do it on purpose. Could 
understand if for some reason the automatic .OBJ deletion was 
suppressed, but no good reason for at the same time preventing 
the generation of the EXE.


One last point:

If that was always the behavior (in all versions from 2010 - or 
earlier), i.e. -o- generates neither .OBJ nor .EXE, then what is 
the purpose of the option? does it act as just a syntax check?


Anyway, moral of the story (for me) is to be more careful next 
time and record all my actions / command history for cases like 
this - which I generally try to do, but did not this time.




dmd -o- option meaning changed recently? Now not creating OBJ but also not creating EXE

2016-10-02 Thread A D dev via Digitalmars-d-learn

Hi list,

I'm in the beginning stages of learning D. Enjoying it, but get 
some issues now and then. This is one.


When I compile single-file D programs, I don't want to keep the 
generated object file (.OBJ, on Windows). I had checked the D 
compiler options for this (using dmd --help), and IIRC, a few 
weeks ago, I had used the -o- option (do not write object file) 
with a few single-file programs, to disable the creation of the 
.OBJ file, i.e. only the .EXE file got created - which is what I 
wanted.


Recently I upgraded to the current version of DMD. Then a bit 
later, I had a need to do that kind of single-file compile again. 
And when I used the -o- option, I was surprised to see that it 
did not create the .OBJ file, but did not create the EXE file 
either. I have checked this today, for example. That made me 
wonder whether the behavior of the -o- option was changed between 
versions, and if so, why.


Also, somewhere in between the above two events, I think (but am 
not sure) that I may have got a message (while compiling) that 
-o- option is not supported (maybe with a compiler version in 
between the other two ones), or something like it. Unfortunately 
I did not save that compile command, compiler version and error 
info (though I should have, and usually do), so I cannot say 
exactly what that issue was. But mentioning it in case it was 
right and relevant.


Can anyone explain this (assuming I got all my facts right, 
otherwise please feel free to say how and where I got it wrong - 
will appreciate either).


Thanks.




Re: What blogs about D do you read?

2016-09-19 Thread A D dev via Digitalmars-d-learn

On Monday, 19 September 2016 at 21:49:04 UTC, Ali Çehreli wrote:

  https://atilanevesoncode.wordpress.com/

Ali


Thanks, Ali.




Re: What blogs about D do you read?

2016-09-19 Thread A D dev via Digitalmars-d-learn
On Monday, 19 September 2016 at 20:20:26 UTC, Guillaume Piolat 
wrote:

https://dlang.org/blog/
http://dblog.aldacron.net/
http://minas-mina.com/
http://nomad.so/tag/d/
http://blog.thecybershadow.net/
https://p0nce.github.io/d-idioms/ (disclaimer: my own)



Great, thanks!




Re: What blogs about D do you read?

2016-09-19 Thread A D dev via Digitalmars-d-learn

On Monday, 19 September 2016 at 19:36:22 UTC, Karabuta wrote:
I have one here on Vibe.d for beginners 
https://laberba.github.io/2016/hello-world-app-with-the-vibe.d-web-framework/


I will be writing more for-beginners blogs in the coming few 
weeks.


Thank you. Will read it.




Re: What blogs about D do you read?

2016-09-19 Thread A D dev via Digitalmars-d-learn

On Monday, 19 September 2016 at 17:42:51 UTC, A D dev wrote:

Hi list,

What blogs about D do you read?


To be more clear:

- what blogs that include posts on D, would you recommend to a D 
beginner?


Thanks.



What blogs about D do you read?

2016-09-19 Thread A D dev via Digitalmars-d-learn

Hi list,

What blogs about D do you read?

Thanks in advance.



Re: Does D have anything like the generators of Python and some other languages?

2016-08-30 Thread A D dev via Digitalmars-d-learn

On Tuesday, 30 August 2016 at 00:57:05 UTC, Meta wrote:

There's a Generator class in std.concurrency. I haven't used



https://dlang.org/phobos/std_concurrency.html#.Generator



Thanks, Meta.



Re: Does D have anything like the generators of Python and some other languages?

2016-08-29 Thread A D dev via Digitalmars-d-learn

On Monday, 29 August 2016 at 22:03:35 UTC, Ali Çehreli wrote:

Here is an example of a generator fiber:


Thanks, will take a look.




Re: Does D have anything like the generators of Python and some other languages?

2016-08-29 Thread A D dev via Digitalmars-d-learn

On Monday, 29 August 2016 at 21:28:15 UTC, Cauterite wrote:
Ranges serve some of the purposes that generators are often 
used for: http://dlang.org/phobos/std_range.html


But you can of course make true coroutine-based generators with 
fibres: http://dlang.org/phobos/core_thread.html#.Fiber


Thanks. Both sound interesting. Will check.



Does D have anything like the generators of Python and some other languages?

2016-08-29 Thread A D dev via Digitalmars-d-learn


Hi group,

Does D have anything like the generators of Python and some other 
languages?


Thanks.