Re: "Competitive Advantage with D" is one of the keynotes at C++Now 2017

2017-04-11 Thread Ali Çehreli via Digitalmars-d-announce
On 04/11/2017 02:35 AM, Joseph Rushton Wakeling wrote: will we see you at DConf? :-) Yes. I'm looking forward to it. :) Ali

Re: "Competitive Advantage with D" is one of the keynotes at C++Now 2017

2017-04-11 Thread Joseph Rushton Wakeling via Digitalmars-d-announce
On Tuesday, 11 April 2017 at 14:36:18 UTC, Ali Çehreli wrote: On 04/11/2017 02:35 AM, Joseph Rushton Wakeling wrote: will we see you at DConf? :-) Yes. I'm looking forward to it. :) Great! And, likewise :-)

Re: GC blessed for C++ (again)

2017-04-11 Thread Jack Stouffer via Digitalmars-d-announce
On Tuesday, 11 April 2017 at 07:02:19 UTC, Swoorup Joshi wrote: Breaking, you mean the standard library? or including user codebases? Taking the GC out of language constructs (e.g. ~=, AAs) would be a massive breaking change and would probably break the majority of D code in existence.

Re: GC blessed for C++ (again)

2017-04-11 Thread jmh530 via Digitalmars-d-announce
On Tuesday, 11 April 2017 at 16:16:03 UTC, Jack Stouffer wrote: On Tuesday, 11 April 2017 at 07:02:19 UTC, Swoorup Joshi wrote: Breaking, you mean the standard library? or including user codebases? Taking the GC out of language constructs (e.g. ~=, AAs) would be a massive breaking change and

Re: Call for arms: Arch Linux D package maintenance

2017-04-11 Thread John Colvin via Digitalmars-d-announce
On Thursday, 16 February 2017 at 19:58:47 UTC, Rory McGuire wrote: Hi, I am planning on asking to become TU for the dlang packages in community. I've been building and working with the current packages and making my own packages to make sure I know what I'm getting in to. LDC and GDC are

Re: GC blessed for C++ (again)

2017-04-11 Thread Jack Stouffer via Digitalmars-d-announce
On Tuesday, 11 April 2017 at 16:50:20 UTC, jmh530 wrote: Is there a non-breaking way to do it that would increase the amount of flexibility while keeping the current behavior as a default? For instance, the equivalent of using std.experimental.allocator so that a user could switch between the

Re: automem v0.0.7 - C++ style smart pointers using std.experimental.allocator

2017-04-11 Thread Martin Nowak via Digitalmars-d-announce
On Monday, 10 April 2017 at 08:31:28 UTC, Atila Neves wrote: ```d import std.experimental.allocator.mallocator; UniqueArray!(int, Mallocator) a; a ~= [0,1]; ``` So the difference between std.container.Array and UniqueArray is that the latter supports allocators?

Re: automem v0.0.7 - C++ style smart pointers using std.experimental.allocator

2017-04-11 Thread Atila Neves via Digitalmars-d-announce
On Tuesday, 11 April 2017 at 22:32:51 UTC, Martin Nowak wrote: On Monday, 10 April 2017 at 08:31:28 UTC, Atila Neves wrote: ```d import std.experimental.allocator.mallocator; UniqueArray!(int, Mallocator) a; a ~= [0,1]; ``` So the difference between std.container.Array and UniqueArray is

Re: The New CTFE Engine on the Blog

2017-04-11 Thread Ali Çehreli via Digitalmars-d-announce
On 04/10/2017 06:07 AM, Mike Parker wrote: Stefan has been diligently keeping us all updated on NewCTFE here in the forums. Now, he's gone to the blog to say something to tell the world about it. The blog: https://dlang.org/blog/2017/04/10/the-new-ctfe-engine/ Reddit:

Re: D support for the Meson build system

2017-04-11 Thread Atila Neves via Digitalmars-d-announce
On Tuesday, 11 April 2017 at 07:34:58 UTC, Russel Winder wrote: On Mon, 2017-04-10 at 12:41 +, Matthias Klumpp via Digitalmars-d- announce wrote: […] I am not buying the necessity of not-splitbuilding for optimizations yet. If that would be the case, how do optimizations work with

Re: GC blessed for C++ (again)

2017-04-11 Thread Atila Neves via Digitalmars-d-announce
On Tuesday, 11 April 2017 at 07:02:19 UTC, Swoorup Joshi wrote: On Monday, 10 April 2017 at 04:49:34 UTC, Jack Stouffer wrote: On Monday, 10 April 2017 at 04:17:21 UTC, Swoorup Joshi wrote: On Wednesday, 28 September 2016 at 20:50:28 UTC, Ali Çehreli wrote:

Re: D support for the Meson build system

2017-04-11 Thread Russel Winder via Digitalmars-d-announce
On Mon, 2017-04-10 at 12:41 +, Matthias Klumpp via Digitalmars-d- announce wrote: > […] > I am not buying the necessity of not-splitbuilding for  > optimizations yet. If that would be the case, how do  > optimizations work with projects using GCC/Clang where  > splitbuilding is the default

Re: "Competitive Advantage with D" is one of the keynotes at C++Now 2017

2017-04-11 Thread FreeSlave via Digitalmars-d-announce
On Tuesday, 11 April 2017 at 06:08:16 UTC, Ali Çehreli wrote: I will be presenting D as a time-saving tool at C++Now: http://cppnow.org/ I have to say it took me a very long time to come up with the title and the abstract. How could I sell D to C++ experts? Luckily, I asked Manu and among

Re: GC blessed for C++ (again)

2017-04-11 Thread Swoorup Joshi via Digitalmars-d-announce
On Monday, 10 April 2017 at 04:49:34 UTC, Jack Stouffer wrote: On Monday, 10 April 2017 at 04:17:21 UTC, Swoorup Joshi wrote: On Wednesday, 28 September 2016 at 20:50:28 UTC, Ali Çehreli wrote:

Re: automem v0.0.7 - C++ style smart pointers using std.experimental.allocator

2017-04-11 Thread Martin Nowak via Digitalmars-d-announce
On Sunday, 9 April 2017 at 10:22:49 UTC, Atila Neves wrote: I did not. Thanks for telling me! The way I wrote it RefCounted!(shared T) works - RefCounted doesn't have to be shared itself, but I guess it could be. I think the other design is slightly more correct, having a single thread own

"Competitive Advantage with D" is one of the keynotes at C++Now 2017

2017-04-11 Thread Ali Çehreli via Digitalmars-d-announce
I will be presenting D as a time-saving tool at C++Now: http://cppnow.org/ I have to say it took me a very long time to come up with the title and the abstract. How could I sell D to C++ experts? Luckily, I asked Manu and among a long list of ideas he said "it's about saving time" and

Re: "Competitive Advantage with D" is one of the keynotes at C++Now 2017

2017-04-11 Thread Martin Nowak via Digitalmars-d-announce
On 04/11/2017 08:50 AM, FreeSlave wrote: > D can't compete with C++ until it gets proper dynamic library support on > all platforms. As far as I understand there're still problems on Windows. Go fix it ;). Yes, we still need to make `export` work to replace `dllimport`/`dllexport`, then we can

Re: automem v0.0.7 - C++ style smart pointers using std.experimental.allocator

2017-04-11 Thread Martin Nowak via Digitalmars-d-announce
On Sunday, 9 April 2017 at 13:59:14 UTC, Andrei Alexandrescu wrote: . The allocator has to be specified as part of the type: this means the user can choose how to store it in the smart pointer, which for singletons (e.g. Mallocator) or stateless allocators means they can take up zero space. If

Re: automem v0.0.7 - C++ style smart pointers using std.experimental.allocator

2017-04-11 Thread Nordlöw via Digitalmars-d-announce
On Sunday, 9 April 2017 at 08:56:52 UTC, Atila Neves wrote: http://code.dlang.org/packages/automem You might find my own containers interesting, especially https://github.com/nordlow/phobos-next/blob/master/src/array_ex.d Supports all the different ways I could think an array needs to work:

Re: "Competitive Advantage with D" is one of the keynotes at C++Now 2017

2017-04-11 Thread qznc via Digitalmars-d-announce
On Tuesday, 11 April 2017 at 06:08:16 UTC, Ali Çehreli wrote: I will be presenting D as a time-saving tool at C++Now: http://cppnow.org/ I have to say it took me a very long time to come up with the title and the abstract. How could I sell D to C++ experts? Luckily, I asked Manu and among

Re: "Competitive Advantage with D" is one of the keynotes at C++Now 2017

2017-04-11 Thread Jacob Carlborg via Digitalmars-d-announce
On 2017-04-11 08:50, FreeSlave wrote: D can't compete with C++ until it gets proper dynamic library support on all platforms. As far as I understand there're still problems on Windows. And no official support on macOS. -- /Jacob Carlborg

Re: automem v0.0.7 - C++ style smart pointers using std.experimental.allocator

2017-04-11 Thread Martin Nowak via Digitalmars-d-announce
On Tuesday, 11 April 2017 at 10:24:08 UTC, Nicholas Wilson wrote: In LDC we have an attribute for that `allocSize` (https://github.com/ldc-developers/druntime/blob/ldc/src/ldc/attributes.d#L16) perhaps this attribute should be used across compilers and be in druntime? Nice, if pure required

Re: "Competitive Advantage with D" is one of the keynotes at C++Now 2017

2017-04-11 Thread Jonathan M Davis via Digitalmars-d-announce
On Monday, April 10, 2017 23:08:16 Ali Çehreli via Digitalmars-d-announce wrote: > I will be presenting D as a time-saving tool at C++Now: > >http://cppnow.org/ > > I have to say it took me a very long time to come up with the title and > the abstract. How could I sell D to C++ experts?

Re: automem v0.0.7 - C++ style smart pointers using std.experimental.allocator

2017-04-11 Thread Atila Neves via Digitalmars-d-announce
On Tuesday, 11 April 2017 at 08:09:15 UTC, Martin Nowak wrote: On Sunday, 9 April 2017 at 10:22:49 UTC, Atila Neves wrote: I did not. Thanks for telling me! The way I wrote it RefCounted!(shared T) works - RefCounted doesn't have to be shared itself, but I guess it could be. I think the

Re: automem v0.0.7 - C++ style smart pointers using std.experimental.allocator

2017-04-11 Thread Nicholas Wilson via Digitalmars-d-announce
On Tuesday, 11 April 2017 at 09:53:46 UTC, Martin Nowak wrote: I think we might be able to solve this problem in D by making IAllocator.allocate pure, which tells the compiler that this function returns a fresh piece of memory without any side-effect, i.e. enough information to optimize away

Re: "Competitive Advantage with D" is one of the keynotes at C++Now 2017

2017-04-11 Thread Patric Dexheimer via Digitalmars-d-announce
On Tuesday, 11 April 2017 at 09:35:39 UTC, Joseph Rushton Wakeling wrote: And the simple clarity of the syntax really helps compared to, say, C++. It's much easier to write and much easier to read and understand. So, once again, it's easier to move fast. As a D beginner I have to say that

Re: fluent-asserts released

2017-04-11 Thread qznc via Digitalmars-d-announce
On Sunday, 9 April 2017 at 13:30:54 UTC, Szabo Bogdan wrote: Hi! I just made an update to my fluent assert library. This is a library that allows you to write asserts in a BDD style. Right now, it contains only asserts that I needed in my projects and I promise that I will add more in the

Re: D support for the Meson build system

2017-04-11 Thread Martin Nowak via Digitalmars-d-announce
On 04/11/2017 09:44 AM, Atila Neves wrote: > That's correct - __traits(getUnitTests) is broken unless compiling all > at once which is extremely unfortunate. I've filed a dmd bug already. > It's been on my TODO list for a while to fix it myself. [Issue 16995 – __traits(getUnittests) doesn't work

Re: "Competitive Advantage with D" is one of the keynotes at C++Now 2017

2017-04-11 Thread qznc via Digitalmars-d-announce
On Tuesday, 11 April 2017 at 06:08:16 UTC, Ali Çehreli wrote: I will be presenting D as a time-saving tool at C++Now: http://cppnow.org/ Looks like C++Now has two keynotes. One keynote on D and one keynote on Rust. Maybe they should change their name. ;)

Re: fluent-asserts released

2017-04-11 Thread Jacob Carlborg via Digitalmars-d-announce
On 2017-04-10 22:41, Atila Neves wrote: It'll work, but it won't end up reporting it the same way. If you'd like that to work seamlessly it's a question of having `version(Have_unit_threaded)` (or however it is it's spelled) that imports and throws `unit_threaded.should.UnitTestException`. Then

Re: "Competitive Advantage with D" is one of the keynotes at C++Now 2017

2017-04-11 Thread Joseph Rushton Wakeling via Digitalmars-d-announce
On Tuesday, 11 April 2017 at 06:08:16 UTC, Ali Çehreli wrote: Do you agree or disagree that D brings competitive advantage? Please let me know. Agree. There are different tradeoffs, obviously, and it won't suit all use-cases, but the ability to iterate fast through highly performant and