www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Release D 2.088.0

reply Martin Nowak <code+news.digitalmars dawg.eu> writes:
Glad to announce D 2.088.0, ♥ to the 58 contributors.

This release comes with a new getLocation trait, a getAvailableDiskSpace
in std.file, removal and deprecation of lots of various outdated APIs,
an core.atomic.cas with result value, and a couple of more changes.

http://dlang.org/download.html
http://dlang.org/changelog/2.088.0.html

-Martin
Sep 03 2019
next sibling parent reply Manu <turkeyman gmail.com> writes:
On Tue., 3 Sep. 2019, 1:00 am Martin Nowak via Digitalmars-d-announce, <
digitalmars-d-announce puremagic.com> wrote:

 Glad to announce D 2.088.0, =E2=99=A5 to the 58 contributors.

 This release comes with a new getLocation trait, a getAvailableDiskSpace
 in std.file, removal and deprecation of lots of various outdated APIs,
 an core.atomic.cas with result value, and a couple of more changes.

 http://dlang.org/download.html
 http://dlang.org/changelog/2.088.0.html

 -Martin
Huzzah! I like to think std::string and std::vector are a pretty big deal too ;)

Sep 03 2019
next sibling parent reply bachmeier <no spam.net> writes:
On Tuesday, 3 September 2019 at 08:22:36 UTC, Manu wrote:

 I like to think std::string and std::vector are a pretty big 
 deal too ;)
Those are a big deal. From a marketing perspective, those are gold IMO.
Sep 03 2019
parent reply jmh530 <john.michael.hall gmail.com> writes:
On Tuesday, 3 September 2019 at 14:02:43 UTC, bachmeier wrote:
 [snip]

 Those are a big deal. From a marketing perspective, those are 
 gold IMO.
If these are as big a deal as people seem to think, the documentation could be improved by including a brief example of how to use. In addition, the documentation page for vector [1] seems a bit thin. It doesn't have the top-level comment like basic_string does [2]. At a minimum, that should be fixed before going on a marketing blitz... [1] https://dlang.org/phobos/core_stdcpp_vector.html [2] https://github.com/dlang/druntime/blob/f07859b9b33740d7d7357ca3e27077f91c02dfc8/src/core/stdcpp/string.d#L59
Sep 03 2019
parent reply Manu <turkeyman gmail.com> writes:
On Tue, Sep 3, 2019 at 7:30 AM jmh530 via Digitalmars-d-announce
<digitalmars-d-announce puremagic.com> wrote:
 On Tuesday, 3 September 2019 at 14:02:43 UTC, bachmeier wrote:
 [snip]

 Those are a big deal. From a marketing perspective, those are
 gold IMO.
If these are as big a deal as people seem to think, the documentation could be improved by including a brief example of how to use. In addition, the documentation page for vector [1] seems a bit thin. It doesn't have the top-level comment like basic_string does [2]. At a minimum, that should be fixed before going on a marketing blitz... [1] https://dlang.org/phobos/core_stdcpp_vector.html [2] https://github.com/dlang/druntime/blob/f07859b9b33740d7d7357ca3e27077f91c02dfc8/src/core/stdcpp/string.d#L59
Interesting... you can see in the code, there are doco comments everywhere, but the docs are empty O_o Also the second line of the description linking to the C++ docs is missing too... where did all the docs go? I've tried to iterate on the docs a couple of times, but I have no idea how I'm supposed to do it, because they're only published when the PR is merged... how are you supposed to iterate locally? That empty doco is not what I expect from looking at the source. But yeah, I agree. More will come online soon-ish. We can give one release to harden them up a bit before making a fuss about it.
Sep 05 2019
parent reply jmh530 <john.michael.hall gmail.com> writes:
On Thursday, 5 September 2019 at 20:55:15 UTC, Manu wrote:
 [snip]

 Interesting... you can see in the code, there are doco comments
 everywhere, but the docs are empty O_o
 Also the second line of the description linking to the C++ docs 
 is
 missing too... where did all the docs go?
The point I was trying to make wrt basic_string was that the top of it looks like /** * D language counterpart to C++ std::basic_string. * * C++ reference: $(LINK2 https://en.cppreference.com/w/cpp/string/basic_string) */ extern(C++, class) extern(C++, (StringNamespace)) struct basic_string(T, Traits = char_traits!T, Alloc = allocator!T) whereas the top of vector looks like extern(C++, class) struct vector(T, Alloc = allocator!T) It has no top-level comment. With no top-level comment, all the other documentation won't show up.
Sep 06 2019
parent reply Manu <turkeyman gmail.com> writes:
On Fri, Sep 6, 2019 at 3:50 AM jmh530 via Digitalmars-d-announce
<digitalmars-d-announce puremagic.com> wrote:
 On Thursday, 5 September 2019 at 20:55:15 UTC, Manu wrote:
 [snip]

 Interesting... you can see in the code, there are doco comments
 everywhere, but the docs are empty O_o
 Also the second line of the description linking to the C++ docs
 is
 missing too... where did all the docs go?
The point I was trying to make wrt basic_string was that the top of it looks like /** * D language counterpart to C++ std::basic_string. * * C++ reference: $(LINK2 https://en.cppreference.com/w/cpp/string/basic_string) */ extern(C++, class) extern(C++, (StringNamespace)) struct basic_string(T, Traits = char_traits!T, Alloc = allocator!T) whereas the top of vector looks like extern(C++, class) struct vector(T, Alloc = allocator!T) It has no top-level comment. With no top-level comment, all the other documentation won't show up.
I'll give it a good do-over. What's the story with string though; the second line (linking back to the C++ reference) of the doco isn't there... O_o
Sep 07 2019
parent reply jmh530 <john.michael.hall gmail.com> writes:
On Saturday, 7 September 2019 at 07:16:36 UTC, Manu wrote:
 [snip]

 What's the story with string though; the second line (linking 
 back to the C++ reference) of the doco isn't there... O_o
Hmm, I didn't notice that. It also is a problem for core.stdcpp.array. I'm looking at other uses of LINK2 in druntime and they are usually of the form $(LINK2 http:/xxx, some_text). Without digging in to the documentation generator, I think LINK2 is meant to be used when you want to replace the link with some text. I don't see many cases of raw links being used (the source shows up as a raw link, but it's not done that way in the files), someone else may know better than I do.
Sep 07 2019
parent reply Manu <turkeyman gmail.com> writes:
On Sat, Sep 7, 2019 at 9:05 AM jmh530 via Digitalmars-d-announce
<digitalmars-d-announce puremagic.com> wrote:
 On Saturday, 7 September 2019 at 07:16:36 UTC, Manu wrote:
 [snip]

 What's the story with string though; the second line (linking
 back to the C++ reference) of the doco isn't there... O_o
Hmm, I didn't notice that. It also is a problem for core.stdcpp.array. I'm looking at other uses of LINK2 in druntime and they are usually of the form $(LINK2 http:/xxx, some_text). Without digging in to the documentation generator, I think LINK2 is meant to be used when you want to replace the link with some text. I don't see many cases of raw links being used (the source shows up as a raw link, but it's not done that way in the files), someone else may know better than I do.
The text before the link is gone too. I don't know how to iterate on the docs, since they only appear from CI, and I have no idea how to create them myself :/
Sep 07 2019
parent David Gileadi <gileadisNOSPM gmail.com> writes:
On 9/7/19 12:27 PM, Manu wrote:
 I don't know how to iterate on the docs, since they only appear from
 CI, and I have no idea how to create them myself :/
I don't know what the "correct" way is, but to build dlang.org locally on macOS, from the dlang.org dir I run: DIFFABLE=1 make -f posix.mak html To build phobos docs locally, from the phobos dir I run: make -f posix.mak build-html To build druntime locally, from the druntime dir I run: make -f posix.mak doc However this last one fails for me on macOS due to platform-specific compile errors: src/core/stdcpp/typeinfo.d(147): Error: static assert: "Missing std::type_info binding for this platform" In any case you'll find all the generated local docs in your dlang.org/web dir.
Sep 07 2019
prev sibling next sibling parent bachmeier <no spam.net> writes:
On Tuesday, 3 September 2019 at 08:22:36 UTC, Manu wrote:

 I like to think std::string and std::vector are a pretty big 
 deal too ;)
And thanks to you and whoever else did the work!
Sep 03 2019
prev sibling parent Walter Bright <newshound2 digitalmars.com> writes:
On 9/3/2019 1:22 AM, Manu wrote:
 Huzzah!
 
 I like to think std::string and std::vector are a pretty big deal too ;)
 
They are. Congrats!
Sep 05 2019
prev sibling next sibling parent reply a11e99z <black80 bk.ru> writes:
On Tuesday, 3 September 2019 at 07:57:00 UTC, Martin Nowak wrote:
 Glad to announce D 2.088.0, ♥ to the 58 contributors.

 This release comes with a new getLocation trait, a 
 getAvailableDiskSpace in std.file, removal and deprecation of 
 lots of various outdated APIs, an core.atomic.cas with result 
 value, and a couple of more changes.

 http://dlang.org/download.html 
 http://dlang.org/changelog/2.088.0.html

 -Martin
 C:\programz\D>dmd --version
 DMD32 D Compiler v2.088.0-dirty
what is ..-dirty?
Sep 03 2019
parent Jacob Carlborg <doob me.com> writes:
On Tuesday, 3 September 2019 at 10:02:26 UTC, a11e99z wrote:
 On Tuesday, 3 September 2019 at 07:57:00 UTC, Martin Nowak 
 wrote:
 This release comes with a new C:\programz\D>dmd --version
 DMD32 D Compiler v2.088.0-dirty
what is ..-dirty?
It means the git repository was not clean when the compiler was built. — /Jacob Carlborg
Sep 03 2019
prev sibling next sibling parent Daniel Kozak <kozzi11 gmail.com> writes:
On Tue, Sep 3, 2019 at 10:48 AM Manu via Digitalmars-d-announce
<digitalmars-d-announce puremagic.com> wrote:
 On Tue., 3 Sep. 2019, 1:00 am Martin Nowak via Digitalmars-d-announce,
<digitalmars-d-announce puremagic.com> wrote:
 Glad to announce D 2.088.0, ♥ to the 58 contributors.

 This release comes with a new getLocation trait, a getAvailableDiskSpace
 in std.file, removal and deprecation of lots of various outdated APIs,
 an core.atomic.cas with result value, and a couple of more changes.

 http://dlang.org/download.html
 http://dlang.org/changelog/2.088.0.html

 -Martin
Huzzah! I like to think std::string and std::vector are a pretty big deal too ;)
It will be as soon as gcc with new ABI will be supported ;-)
Sep 03 2019
prev sibling next sibling parent M.M. <matus email.cz> writes:
On Tuesday, 3 September 2019 at 07:57:00 UTC, Martin Nowak wrote:
 Glad to announce D 2.088.0, ♥ to the 58 contributors.

 This release comes with a new getLocation trait, a 
 getAvailableDiskSpace in std.file, removal and deprecation of 
 lots of various outdated APIs, an core.atomic.cas with result 
 value, and a couple of more changes.

 http://dlang.org/download.html 
 http://dlang.org/changelog/2.088.0.html

 -Martin
Nice work! When checking the upcoming changes for 2.089 (currently, the nightly version), some of the changes from 2.088 also appear for 2.089 (e.g., "core.atomic : msync has been removed" appears in both lists of changes, one for 2.088 and one for the nightly). Is that the same change, or two different ones with the same name?
Sep 05 2019
prev sibling parent Manu <turkeyman gmail.com> writes:
On Tue, Sep 3, 2019 at 4:51 AM Daniel Kozak via Digitalmars-d-announce
<digitalmars-d-announce puremagic.com> wrote:
 On Tue, Sep 3, 2019 at 10:48 AM Manu via Digitalmars-d-announce
 <digitalmars-d-announce puremagic.com> wrote:
 On Tue., 3 Sep. 2019, 1:00 am Martin Nowak via Digitalmars-d-announce,
<digitalmars-d-announce puremagic.com> wrote:
 Glad to announce D 2.088.0, ♥ to the 58 contributors.

 This release comes with a new getLocation trait, a getAvailableDiskSpace
 in std.file, removal and deprecation of lots of various outdated APIs,
 an core.atomic.cas with result value, and a couple of more changes.

 http://dlang.org/download.html
 http://dlang.org/changelog/2.088.0.html

 -Martin
Huzzah! I like to think std::string and std::vector are a pretty big deal too ;)
It will be as soon as gcc with new ABI will be supported ;-)
The old ABI works now at least. The new ABI is blocked on move constructors; libstdc++ has an interior pointer >_<
Sep 05 2019