Re: 'static foreach' chapter and more
On Tuesday, 26 June 2018 at 01:52:42 UTC, Ali Çehreli wrote: I've made some online improvements to "Programming in D" since September 2017. [...] Great work on the book and keeping it up to date!
Re: Phobos and the Tools repo are now on DUB
On Monday, 25 June 2018 at 21:34:43 UTC, Seb wrote: Phobos ... I forgot the links to the DUB registry: https://phobos.dub.pm https://dtools.dub.pm
'static foreach' chapter and more
I've made some online improvements to "Programming in D" since September 2017. http://ddili.org/ders/d.en/index.html NOTE: The copies of the book at hard copy printers are not updated yet. If you order from Amazon etc. it will still be the OLD version. I need some more time to work on that... Also, only the PDF electronic format is up-to-date; other ebook formats are NOT. * The code samples are now up-to-date with 2.080.1 * Digit separator (%,) format specifier: http://ddili.org/ders/d.en/formatted_output.html#ix_formatted_output.separator * Stopwatch is moved to module std.datetime.stopwatch * Replace 'body' with 'do' * Text file imports (string imports): http://ddili.org/ders/d.en/mixin.html#ix_mixin.file%20import * First assignment to a member is construction (search for that text on the page): http://ddili.org/ders/d.en/special_functions.html#ix_special_functions.this,%20constructor * static foreach: http://ddili.org/ders/d.en/static_foreach.html#ix_static_foreach.static%20foreach Ali
Phobos and the Tools repo are now on DUB
Phobos -- It's now possible to access the latest version of Phobos's experimental packages through dub: ``` #!/usr/bin/env dub /++dub.sdl: dependency "phobos:checkedint" version="~master" +/ void main(string[] args) { import stdx.checkedint; // From latest Phobos import std.stdio; // DMD's Phobos writeln("checkedint: ", 2.checked + 3); } ``` For now, only checkedint and allocator are exposed as subpackages. FAQ --- 1) Why stdx and not std.experimental? Otherwise the linker would run into symbol conflicts. 2) Why ~master? D's versioning doesn't conform with SemVer yet. There are plans to change it soon though. 3) What's the purpose? Allow usage of experimental packages like std.experimental.allocator for Dub packages. For example, at the moment the upcoming collections library (https://github.com/dlang-stdx/collections), doesn't compile with stable dmd or ldc as it depends on very recent changes in the std.experimental.allocator. 4) What are the next steps? At the moment the "allocator" sub package doesn't fully work as some parts of the allocator module depend on package(std) parts of Phobos (e.g. std.conv.emplaceRef). So fixing this is of course the next step. However, for now, there are no plans to expose the more stable parts of Phobos on dub. 5) Wait. Aren't Phobos and DMD supposed to be built in sync? It's certainly true that Druntime has a lot of dependencies on DMD, but most modules in Phobos (except e.g. std.traits or std.math) don't have such a strong dependence. This especially applies to the experimental modules which were originally developed as dub packages (and probably should have stayed on dub). 6) What are your guarantees for stability? None. This is experimental. Tools - Almost all tools in the tools repo (https://github.com/dlang/tools) can be built & run with dub now. For example, this converts your Windows files to Posix file ending: ``` dub fetch dtools dub run dtools:tolf -- mywindowsfile.d ``` The long-term goal here is to replace the win32.mak with a pure D/Dub build file.
Re: Visual D 0.47.0 released
On Sun, 24 Jun 2018 at 06:10, Rainer Schuetze via Digitalmars-d-announce wrote: > > Hi, > > a new release of Visual D has just been uploaded. Major changes are > > * improved Visual C++ project integration: better dependencies, >automatic libraries, name demangling > * new project wizard > * mago debugger: show vtable, dynamic type of interfaces, >symbol names of pointer address > > See http://rainers.github.io/visuald/visuald/VersionHistory.html for the > full version history. > > Visual D is a Visual Studio extension that adds D language support to > VS2008-2017. It is written in D, its source code can be found on github: > https://github.com/D-Programming-Language/visuald, pull requests welcome. > > An installer can be found at > http://rainers.github.io/visuald/visuald/StartPage.html > > Happy coding, > Rainer Thanks again for all the work on this one! This is a great release with loads of important improvements.
Re: Visual D 0.47.0 released
On Sunday, 24 June 2018 at 13:08:53 UTC, Rainer Schuetze wrote: a new release of Visual D has just been uploaded Thanks Rainer, much appreciated. Looking forward to the many debugging improvements.
Boston D presentation Wednesday 6/27
Hi all, We are going to meet on 6/27 at 6 pm at the Capital One cafe in the Back Bay in Boston (https://www.capitalone.com/local/boston-backbay). Sameer Pradhan, a regular at the Boston D meetup group will show us his NLP tool that he is planning to port from Python to D, called OntoNotes. I'm sure we will also find some place for drinks/dinner afterward, and I'd love to see some new D-velopers in our area, come and join us! Note: I'm planning to make the Boston D meetings have a more regular schedule: at least once a month, with or without any presentations. I want to make sure the group stays together, and I think we have some good resources in our area to talk about how D can be used to help anyone with any project. Kind of like an AMA in person :) On that note, if anyone has any ideas for good places to hang out and talk D, I'm open to suggestions. The cafe is nice, but I'm also think it would be nice to have places like the hotels we hang out and code at dconfs. -Steve