Re: My two cents

2017-10-25 Thread bauss via Digitalmars-d
On Wednesday, 25 October 2017 at 18:54:16 UTC, bauss wrote: On Wednesday, 25 October 2017 at 16:07:21 UTC, ecstatic.coder wrote: [...] Syntactic sugar is what makes a language easy to learn, because you don't have to memorize functions, their modules and whether you imported them or not,

Re: My two cents

2017-10-25 Thread bauss via Digitalmars-d
On Wednesday, 25 October 2017 at 16:07:21 UTC, ecstatic.coder wrote: On Tuesday, 24 October 2017 at 08:06:55 UTC, Atila Neves wrote: [...] I agree. D MUST remain as simple as possible. For instance I'm against forcing D programmers to use annotations which won't be implicit anymore. Keep

Re: My two cents

2017-10-25 Thread ecstatic.coder via Digitalmars-d
On Tuesday, 24 October 2017 at 08:06:55 UTC, Atila Neves wrote: On Tuesday, 24 October 2017 at 07:17:08 UTC, Satoshi wrote: On Monday, 23 October 2017 at 21:42:03 UTC, Atila Neves wrote: On Monday, 23 October 2017 at 21:14:18 UTC, bauss wrote: On Monday, 23 October 2017 at 12:48:33 UTC, Atila

Re: My two cents

2017-10-25 Thread meppl via Digitalmars-d
On Friday, 20 October 2017 at 00:26:19 UTC, bauss wrote: On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: conditional dereferencing and stuff about that (same as in C#) ... ... implement this thing from C# (just because it's cool) new Foo() { property1 = 42, property2 = "bar"

Re: My two cents

2017-10-25 Thread Guillaume Piolat via Digitalmars-d
On Tuesday, 24 October 2017 at 18:55:13 UTC, Martin Nowak wrote: On Monday, 23 October 2017 at 11:58:14 UTC, Laeeth Isharc wrote: Bountysource went quiet, though I started contributing to it. I wonder if there is a better way for commercial users to say what they might be willing to pay for

Re: My two cents

2017-10-25 Thread Walter Bright via Digitalmars-d
On 10/25/2017 12:39 AM, Satoshi wrote: Thanks, but I see there 3 problems: 1. this example enforce users to use composition instead of inheritance when they wants to create custom descendant. I don't see an issue with that. 2. multiple dispatch levels. Extending the ExtendView in another lib

Re: My two cents

2017-10-25 Thread Satoshi via Digitalmars-d
On Tuesday, 24 October 2017 at 20:36:47 UTC, Walter Bright wrote: On 10/24/2017 3:36 AM, Satoshi wrote: Can you provide an example? I'd start with https://dlang.org/spec/interface.html You'll see the same thing with Windows COM programming, and using interfaces in Java. view.di

Re: My two cents

2017-10-24 Thread Rainer Schuetze via Digitalmars-d
On 23.10.2017 22:47, Walter Bright wrote: On 10/18/2017 1:56 AM, Satoshi wrote: Unable to publish closed source library without workaround and ugly PIMPL design. Consider this: --- file s.d   struct S {     int x;     this(int x) { this.x = x; }     int getX() {

Re: My two cents

2017-10-24 Thread Walter Bright via Digitalmars-d
On 10/24/2017 3:36 AM, Satoshi wrote: Can you provide an example? I'd start with https://dlang.org/spec/interface.html You'll see the same thing with Windows COM programming, and using interfaces in Java. view.di interface View { void render(); } View createView();

Re: My two cents

2017-10-24 Thread Jonathan M Davis via Digitalmars-d
On Monday, October 23, 2017 13:18:21 Guillaume Piolat via Digitalmars-d wrote: > On Monday, 23 October 2017 at 11:39:58 UTC, Martin Nowak wrote: > >> Every-symbol-public-by-default in Posix is annoying though :) > > > > We agreed on hidden visibility by default for everything that's > > not

Re: My two cents

2017-10-24 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, October 24, 2017 18:53:49 Martin Nowak via Digitalmars-d wrote: > On Monday, 23 October 2017 at 13:18:21 UTC, Guillaume Piolat > > wrote: > >> By any means, if someone wants to help here, get in touch with > >> Benjamin Thaut and me. > >> This has been lingering around for way to long,

Re: My two cents

2017-10-24 Thread Martin Nowak via Digitalmars-d
On Monday, 23 October 2017 at 11:58:14 UTC, Laeeth Isharc wrote: Bountysource went quiet, though I started contributing to it. I wonder if there is a better way for commercial users to say what they might be willing to pay for and how much. At best talk to Andrei, maybe you have a good idea

Re: My two cents

2017-10-24 Thread Martin Nowak via Digitalmars-d
On Monday, 23 October 2017 at 13:18:21 UTC, Guillaume Piolat wrote: By any means, if someone wants to help here, get in touch with Benjamin Thaut and me. This has been lingering around for way to long, and Benjamin alone has a hard time pushing this. Would Bountysource help be adequate? Not

Re: My two cents

2017-10-24 Thread Martin Nowak via Digitalmars-d
On Tuesday, 24 October 2017 at 09:56:50 UTC, rikki cattermole wrote: scope+ref+out as arguments would be a no-no. Now if we could ditch registers usage crossing before/after yield, we wouldn't need to do 'patching' like fibers do. That's basically what asnyc/await does, some implementations

Re: My two cents

2017-10-24 Thread Paulo Pinto via Digitalmars-d
On Tuesday, 24 October 2017 at 16:02:56 UTC, flamencofantasy wrote: On Tuesday, 24 October 2017 at 05:40:06 UTC, Dmitry Olshansky wrote: On Tuesday, 24 October 2017 at 04:26:42 UTC, Adam Wilson wrote: [...] I’ll throw in my 2 rubbles. I actually worked on a VM that has async/await feature

Re: My two cents

2017-10-24 Thread flamencofantasy via Digitalmars-d
On Tuesday, 24 October 2017 at 05:40:06 UTC, Dmitry Olshansky wrote: On Tuesday, 24 October 2017 at 04:26:42 UTC, Adam Wilson wrote: [...] I’ll throw in my 2 rubbles. I actually worked on a VM that has async/await feature built-in (Dart language). It is a plain syntax sugar for

Re: My two cents

2017-10-24 Thread Kagamin via Digitalmars-d
On Tuesday, 24 October 2017 at 04:26:42 UTC, Adam Wilson wrote: (at the end of the day all of these programming models are callback based). That's what APM is, no? Yes, C#'s async design does make code look and feel synchronous, and it was intentionally designed that way, but that is not

Re: My two cents

2017-10-24 Thread bauss via Digitalmars-d
On Monday, 23 October 2017 at 21:42:03 UTC, Atila Neves wrote: On Monday, 23 October 2017 at 21:14:18 UTC, bauss wrote: On Monday, 23 October 2017 at 12:48:33 UTC, Atila Neves wrote: On Monday, 23 October 2017 at 09:13:45 UTC, Satoshi wrote: On Wednesday, 18 October 2017 at 08:56:21 UTC,

Re: My two cents

2017-10-24 Thread Satoshi via Digitalmars-d
On Tuesday, 24 October 2017 at 10:20:43 UTC, Walter Bright wrote: On 10/24/2017 1:13 AM, Satoshi wrote: But it's quite useless to me. That's what interfaces are for. Define your View and Button as interfaces. The implementations of interfaces are completely hidden from the derived class.

Re: My two cents

2017-10-24 Thread Walter Bright via Digitalmars-d
On 10/24/2017 1:13 AM, Satoshi wrote: But it's quite useless to me. That's what interfaces are for. Define your View and Button as interfaces. The implementations of interfaces are completely hidden from the derived class. But the worst part is that I need to hold di in sync to d files

Re: My two cents

2017-10-24 Thread rikki cattermole via Digitalmars-d
On 24/10/2017 10:31 AM, Kagamin wrote: On Tuesday, 24 October 2017 at 07:29:08 UTC, Satoshi wrote: If we want to use D for GUI development we will need this feature anyway. To not block UI you need non-blocking IO, and async/await is not required for it: vibe provides non-blocking IO with

Re: My two cents

2017-10-24 Thread Kagamin via Digitalmars-d
On Tuesday, 24 October 2017 at 07:29:08 UTC, Satoshi wrote: If we want to use D for GUI development we will need this feature anyway. To not block UI you need non-blocking IO, and async/await is not required for it: vibe provides non-blocking IO with synchronous interface. And here we also

Re: My two cents

2017-10-24 Thread Kagamin via Digitalmars-d
On Monday, 23 October 2017 at 22:22:55 UTC, Adam Wilson wrote: Async/Await trades raw performance for an ability to handle a truly massive number of simultaneous tasks. Vibe achieves the same without trading performance. Then async/await only amounts to easy creation of tasks not even for

Re: My two cents

2017-10-24 Thread Satoshi via Digitalmars-d
On Tuesday, 24 October 2017 at 08:06:55 UTC, Atila Neves wrote: On Tuesday, 24 October 2017 at 07:17:08 UTC, Satoshi wrote: On Monday, 23 October 2017 at 21:42:03 UTC, Atila Neves wrote: On Monday, 23 October 2017 at 21:14:18 UTC, bauss wrote: On Monday, 23 October 2017 at 12:48:33 UTC, Atila

Re: My two cents

2017-10-24 Thread Satoshi via Digitalmars-d
On Tuesday, 24 October 2017 at 07:55:49 UTC, Walter Bright wrote: On 10/24/2017 12:21 AM, Satoshi wrote: what about this: -- file.d class Foo {   private int bar;   private string text;   void call() { } } --- file.di class Foo {   call(); } and then I want to inherit

Re: My two cents

2017-10-24 Thread Atila Neves via Digitalmars-d
On Tuesday, 24 October 2017 at 07:17:08 UTC, Satoshi wrote: On Monday, 23 October 2017 at 21:42:03 UTC, Atila Neves wrote: On Monday, 23 October 2017 at 21:14:18 UTC, bauss wrote: On Monday, 23 October 2017 at 12:48:33 UTC, Atila Neves wrote: On Monday, 23 October 2017 at 09:13:45 UTC,

Re: My two cents

2017-10-24 Thread Walter Bright via Digitalmars-d
On 10/24/2017 12:21 AM, Satoshi wrote: what about this: -- file.d class Foo {   private int bar;   private string text;   void call() { } } --- file.di class Foo {   call(); } and then I want to inherit from it (I have access to file.di only) class Bar : Foo { // I

Re: My two cents

2017-10-24 Thread Biotronic via Digitalmars-d
On Monday, 23 October 2017 at 12:48:33 UTC, Atila Neves wrote: On Monday, 23 October 2017 at 09:13:45 UTC, Satoshi wrote: writeln(`Foo is {foo} and bar is {bar}`); writeln("Foo is ", foo, "and bar is ", bar"); Two more characters. You have actually demonstrates exactly what I feel is the

Re: My two cents

2017-10-24 Thread Satoshi via Digitalmars-d
On Monday, 23 October 2017 at 15:21:02 UTC, Kagamin wrote: On Friday, 20 October 2017 at 09:49:34 UTC, Adam Wilson wrote: Others are less obvious, for example, async/await is syntax sugar for a collection of Task-based idioms in C#. Now I think it's doesn't fit D. async/await wasn't made for

Re: My two cents

2017-10-24 Thread Satoshi via Digitalmars-d
On Monday, 23 October 2017 at 20:47:26 UTC, Walter Bright wrote: On 10/18/2017 1:56 AM, Satoshi wrote: Unable to publish closed source library without workaround and ugly PIMPL design. Consider this: --- file s.d struct S { int x; this(int x) { this.x = x; }

Re: My two cents

2017-10-24 Thread Satoshi via Digitalmars-d
On Monday, 23 October 2017 at 21:42:03 UTC, Atila Neves wrote: On Monday, 23 October 2017 at 21:14:18 UTC, bauss wrote: On Monday, 23 October 2017 at 12:48:33 UTC, Atila Neves wrote: On Monday, 23 October 2017 at 09:13:45 UTC, Satoshi wrote: On Wednesday, 18 October 2017 at 08:56:21 UTC,

Re: My two cents

2017-10-24 Thread drug via Digitalmars-d
23.10.2017 23:25, Igor пишет: On Monday, 23 October 2017 at 11:02:41 UTC, Martin Nowak wrote: In C++ incremental rebuilds are simple as you compile each file individually anyhow, but that's the crux for why C++ compilations are so slow in the first place. Compiling multiple modules at once

Re: My two cents

2017-10-24 Thread Adam Wilson via Digitalmars-d
On 10/23/17 22:40, Dmitry Olshansky wrote: On Tuesday, 24 October 2017 at 04:26:42 UTC, Adam Wilson wrote: On 10/23/17 17:27, flamencofantasy wrote: On Monday, 23 October 2017 at 22:22:55 UTC, Adam Wilson wrote: On 10/23/17 08:21, Kagamin wrote: [...] Actually I think it fits perfectly

Re: My two cents

2017-10-24 Thread Adam Wilson via Digitalmars-d
On 10/23/17 16:47, Nathan S. wrote: On Monday, 23 October 2017 at 22:22:55 UTC, Adam Wilson wrote: Additionally, MSFT/C# fully recognizes that the benefits of Async/Await have never been and never were intended to be for performance. Async/Await trades raw performance for an ability to handle a

Re: My two cents

2017-10-23 Thread Dmitry Olshansky via Digitalmars-d
On Tuesday, 24 October 2017 at 04:26:42 UTC, Adam Wilson wrote: On 10/23/17 17:27, flamencofantasy wrote: On Monday, 23 October 2017 at 22:22:55 UTC, Adam Wilson wrote: On 10/23/17 08:21, Kagamin wrote: [...] Actually I think it fits perfectly with D, not for reason of performance, but for

Re: My two cents

2017-10-23 Thread Adam Wilson via Digitalmars-d
On 10/23/17 17:27, flamencofantasy wrote: On Monday, 23 October 2017 at 22:22:55 UTC, Adam Wilson wrote: On 10/23/17 08:21, Kagamin wrote: [...] Actually I think it fits perfectly with D, not for reason of performance, but for reason of flexibility. D is a polyglot language, with by far the

Re: My two cents

2017-10-23 Thread flamencofantasy via Digitalmars-d
On Monday, 23 October 2017 at 22:22:55 UTC, Adam Wilson wrote: On 10/23/17 08:21, Kagamin wrote: [...] Actually I think it fits perfectly with D, not for reason of performance, but for reason of flexibility. D is a polyglot language, with by far the most number of methodologies supported

Re: My two cents

2017-10-23 Thread Nathan S. via Digitalmars-d
On Monday, 23 October 2017 at 22:22:55 UTC, Adam Wilson wrote: Additionally, MSFT/C# fully recognizes that the benefits of Async/Await have never been and never were intended to be for performance. Async/Await trades raw performance for an ability to handle a truly massive number of

Re: My two cents

2017-10-23 Thread Adam Wilson via Digitalmars-d
On 10/23/17 08:21, Kagamin wrote: On Friday, 20 October 2017 at 09:49:34 UTC, Adam Wilson wrote: Others are less obvious, for example, async/await is syntax sugar for a collection of Task-based idioms in C#. Now I think it's doesn't fit D. async/await wasn't made for performance, but for

Re: My two cents

2017-10-23 Thread Atila Neves via Digitalmars-d
On Monday, 23 October 2017 at 21:14:18 UTC, bauss wrote: On Monday, 23 October 2017 at 12:48:33 UTC, Atila Neves wrote: On Monday, 23 October 2017 at 09:13:45 UTC, Satoshi wrote: On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: [...] Whats about this one? auto foo = 42; auto

Re: My two cents

2017-10-23 Thread bauss via Digitalmars-d
On Monday, 23 October 2017 at 12:48:33 UTC, Atila Neves wrote: On Monday, 23 October 2017 at 09:13:45 UTC, Satoshi wrote: On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: [...] Whats about this one? auto foo = 42; auto bar = "bar"; writeln(`Foo is {foo} and bar is {bar}`);

Re: My two cents

2017-10-23 Thread Walter Bright via Digitalmars-d
On 10/18/2017 1:56 AM, Satoshi wrote: Unable to publish closed source library without workaround and ugly PIMPL design. Consider this: --- file s.d struct S { int x; this(int x) { this.x = x; } int getX() { return x; } } --- file s.di

Re: My two cents

2017-10-23 Thread Igor via Digitalmars-d
On Monday, 23 October 2017 at 11:02:41 UTC, Martin Nowak wrote: In C++ incremental rebuilds are simple as you compile each file individually anyhow, but that's the crux for why C++ compilations are so slow in the first place. Compiling multiple modules at once provides lots of speedups as

Re: My two cents

2017-10-23 Thread bpr via Digitalmars-d
On Monday, 23 October 2017 at 11:21:13 UTC, Martin Nowak wrote: On Saturday, 21 October 2017 at 18:52:15 UTC, bitwise wrote: On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: async/await (vibe.d is nice but useless in comparison to C# or js async/await idiom) Reference

Re: My two cents

2017-10-23 Thread Kagamin via Digitalmars-d
On Friday, 20 October 2017 at 09:49:34 UTC, Adam Wilson wrote: Others are less obvious, for example, async/await is syntax sugar for a collection of Task-based idioms in C#. Now I think it's doesn't fit D. async/await wasn't made for performance, but for conservation of thread resources,

Re: My two cents

2017-10-23 Thread Guillaume Piolat via Digitalmars-d
On Monday, 23 October 2017 at 11:39:58 UTC, Martin Nowak wrote: On Monday, 23 October 2017 at 11:23:18 UTC, Guillaume Piolat wrote: Not anymore, you can use the "export" keyword for Windows (eg with LDC >= 1.2). With what semantic? We used to require .def files, and now use "export"

Re: My two cents

2017-10-23 Thread Atila Neves via Digitalmars-d
On Monday, 23 October 2017 at 11:02:41 UTC, Martin Nowak wrote: On Monday, 23 October 2017 at 06:05:50 UTC, drug wrote: 20.10.2017 17:46, Martin Nowak пишет: My 2 cent: 1. dub needs ability to work with other repository than standard ones. You mount or clone whatever you want and use `dub

Re: My two cents

2017-10-23 Thread Atila Neves via Digitalmars-d
On Monday, 23 October 2017 at 09:13:45 UTC, Satoshi wrote: On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: Hi, I had been using D for almost 6 years and I want to share my opinion with you. I don't want to blame anyone but I'll focus more on bad things and possible improvements.

Re: My two cents

2017-10-23 Thread Laeeth Isharc via Digitalmars-d
On Friday, 20 October 2017 at 15:38:53 UTC, Martin Nowak wrote: Commercial usage, shared libraries and stuff There isn't any handy tool to download, manage and publish closed source stuff. dub is great for simple solutions but useless in big projects with multiple targets, configurations, etc.

Re: My two cents

2017-10-23 Thread drug via Digitalmars-d
23.10.2017 14:02, Martin Nowak пишет: On Monday, 23 October 2017 at 06:05:50 UTC, drug wrote: 20.10.2017 17:46, Martin Nowak пишет: My 2 cent: 1. dub needs ability to work with other repository than standard ones. You mount or clone whatever you want and use `dub add-local`. This is

Re: My two cents

2017-10-23 Thread Martin Nowak via Digitalmars-d
On Monday, 23 October 2017 at 09:13:45 UTC, Satoshi wrote: On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: Hi, I had been using D for almost 6 years and I want to share my opinion with you. I don't want to blame anyone but I'll focus more on bad things and possible improvements.

Re: My two cents

2017-10-23 Thread Martin Nowak via Digitalmars-d
On Monday, 23 October 2017 at 11:23:18 UTC, Guillaume Piolat wrote: Not anymore, you can use the "export" keyword for Windows (eg with LDC >= 1.2). With what semantic? Every-symbol-public-by-default in Posix is annoying though :) We agreed on hidden visibility by default for everything

Re: My two cents

2017-10-23 Thread Guillaume Piolat via Digitalmars-d
On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: dub is great for simple solutions but useless in big projects with multiple targets, configurations, etc. Works here. Closed source can be handled with path-based dependencies and private checkouts. Configurations are handled

Re: My two cents

2017-10-23 Thread Martin Nowak via Digitalmars-d
On Saturday, 21 October 2017 at 18:52:15 UTC, bitwise wrote: On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: async/await (vibe.d is nice but useless in comparison to C# or js async/await idiom) Reference counting when we cannot use GC... If I understand correctly, both of

Re: My two cents

2017-10-23 Thread Martin Nowak via Digitalmars-d
On Sunday, 22 October 2017 at 22:00:19 UTC, bitwise wrote: I hope resumable functions for for generator/coroutine style usage are also part of the plan. Allocator support would be nice too. Please see https://forum.dlang.org/post/pbnthucxpvbgzzuig...@forum.dlang.org for how this could be

Re: My two cents

2017-10-23 Thread Martin Nowak via Digitalmars-d
On Monday, 23 October 2017 at 11:02:41 UTC, Martin Nowak wrote: In C++ incremental rebuilds are simple as you compile each file individually anyhow, but that's the crux for why C++ compilations are so slow in the first place. Compiling multiple modules at once provides lots of speedups as you

Re: My two cents

2017-10-23 Thread Martin Nowak via Digitalmars-d
On Monday, 23 October 2017 at 06:05:50 UTC, drug wrote: 20.10.2017 17:46, Martin Nowak пишет: My 2 cent: 1. dub needs ability to work with other repository than standard ones. You mount or clone whatever you want and use `dub add-local`. 2. multicore building - entire project in D builds

Re: My two cents

2017-10-23 Thread Martin Nowak via Digitalmars-d
On Monday, 23 October 2017 at 10:42:35 UTC, drug wrote: Also such build system should provide a way to build C/C++ (and others) codebase or let other build systems build D codebase, using generated makefile for example. In fact dub can generate cmake files, more generators for e.g. ninja or

Re: My two cents

2017-10-23 Thread drug via Digitalmars-d
23.10.2017 12:58, bauss пишет: On Monday, 23 October 2017 at 06:05:50 UTC, drug wrote: 20.10.2017 17:46, Martin Nowak пишет: On Thursday, 19 October 2017 at 06:50:12 UTC, Fra Mecca wrote: We miss a build system that is tailored towards enterprises Anything more specific on that? My 2

Re: My two cents

2017-10-23 Thread rikki cattermole via Digitalmars-d
On 23/10/2017 10:58 AM, bauss wrote: On Monday, 23 October 2017 at 06:05:50 UTC, drug wrote: 20.10.2017 17:46, Martin Nowak пишет: On Thursday, 19 October 2017 at 06:50:12 UTC, Fra Mecca wrote: We miss a build system that is tailored towards enterprises Anything more specific on that? My

Re: My two cents

2017-10-23 Thread bauss via Digitalmars-d
On Monday, 23 October 2017 at 06:05:50 UTC, drug wrote: 20.10.2017 17:46, Martin Nowak пишет: On Thursday, 19 October 2017 at 06:50:12 UTC, Fra Mecca wrote: We miss a build system that is tailored towards enterprises Anything more specific on that? My 2 cent: 1. dub needs ability to work

Re: My two cents

2017-10-23 Thread Seb via Digitalmars-d
On Monday, 23 October 2017 at 09:13:45 UTC, Satoshi wrote: On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: Hi, I had been using D for almost 6 years and I want to share my opinion with you. I don't want to blame anyone but I'll focus more on bad things and possible improvements.

Re: My two cents

2017-10-23 Thread Satoshi via Digitalmars-d
On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: Hi, I had been using D for almost 6 years and I want to share my opinion with you. I don't want to blame anyone but I'll focus more on bad things and possible improvements. And this is just how I see D from my perspective. (Sorry

Re: My two cents

2017-10-23 Thread Arun Chandrasekaran via Digitalmars-d
On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: [...] The language for sure is huge and complicated and adding new features will only make it grow bigger. I'm not saying we shouldn't add any new features. It is important to have the right defaults to gain the critical mass for

Re: My two cents

2017-10-23 Thread drug via Digitalmars-d
20.10.2017 17:46, Martin Nowak пишет: On Thursday, 19 October 2017 at 06:50:12 UTC, Fra Mecca wrote: We miss a build system that is tailored towards enterprises Anything more specific on that? My 2 cent: 1. dub needs ability to work with other repository than standard ones. 2. multicore

Re: My two cents

2017-10-22 Thread bitwise via Digitalmars-d
On Saturday, 21 October 2017 at 21:31:45 UTC, Walter Bright wrote: On 10/21/2017 1:40 PM, Adam Wilson wrote: Walter has stated numerous times both here and at conferences that Async/Await is definitely a goal. Async/Await can be implemented by rewriting ("lowering") the code to simpler D

Re: My two cents

2017-10-22 Thread meppl via Digitalmars-d
On Sunday, 22 October 2017 at 15:07:10 UTC, meppl wrote: On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: syntactic sugar for: tuples as far as i know there was the will to implement tuples in the language, but there is still a deprecation in the way:

Re: My two cents

2017-10-22 Thread meppl via Digitalmars-d
On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: syntactic sugar for: tuples as far as i know there was the will to implement tuples in the language, but there is still a deprecation in the way: https://dlang.org/deprecate.html#Using%20the%20result%20of%20a%20comma%20expression

Re: My two cents

2017-10-22 Thread bauss via Digitalmars-d
On Sunday, 22 October 2017 at 07:23:14 UTC, meppl wrote: On Sunday, 22 October 2017 at 01:02:06 UTC, EntangledQuanta wrote: On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: ... ps, also i want something similar to this in D: new Foo() { property1 = 42, property2 = "bar" };

Re: My two cents

2017-10-22 Thread meppl via Digitalmars-d
On Sunday, 22 October 2017 at 01:02:06 UTC, EntangledQuanta wrote: On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: ... These guys are old now and don't have the drive they used to have. It happens, part of life. Unfortunately they do not realize this and do not want to pass

Re: My two cents

2017-10-22 Thread Walter Bright via Digitalmars-d
On 10/20/2017 11:11 AM, Adam D. Ruppe wrote: On Friday, 20 October 2017 at 16:36:28 UTC, jmh530 wrote: It might help to have some sense of how the main devs time on D is being used. Definitely, I currently have no clue what they are on. Whiling away the hours, conferring with the flowers,

Re: My two cents

2017-10-21 Thread EntangledQuanta via Digitalmars-d
On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: Hi, I had been using D for almost 6 years and I want to share my opinion with you. I don't want to blame anyone but I'll focus more on bad things and possible improvements. And this is just how I see D from my perspective. (Sorry

Re: My two cents

2017-10-21 Thread user1234 via Digitalmars-d
On Saturday, 21 October 2017 at 21:45:11 UTC, Adam D. Ruppe wrote: On Saturday, 21 October 2017 at 20:02:28 UTC, user1234 wrote: I'm not sure that people talked much about the elvis operator (which was introduced in the topic by M.Nowak). In the first message were mentioned the null

Re: My two cents

2017-10-21 Thread Adam D. Ruppe via Digitalmars-d
On Saturday, 21 October 2017 at 20:02:28 UTC, user1234 wrote: I'm not sure that people talked much about the elvis operator (which was introduced in the topic by M.Nowak). In the first message were mentioned the null coalescence operator "??" What's the difference between `?:` and `??`? As

Re: My two cents

2017-10-21 Thread Walter Bright via Digitalmars-d
On 10/21/2017 1:40 PM, Adam Wilson wrote: Walter has stated numerous times both here and at conferences that Async/Await is definitely a goal. However, it's not as high a priority as the @safe/@nogc work so it hasn't made it to any official vision statement. Also I just talked to him offline

Re: My two cents

2017-10-21 Thread Adam Wilson via Digitalmars-d
On 10/21/17 11:52, bitwise wrote: On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: async/await (vibe.d is nice but useless in comparison to C# or js async/await idiom) Reference counting when we cannot use GC... If I understand correctly, both of these depend on

Re: My two cents

2017-10-21 Thread user1234 via Digitalmars-d
On Saturday, 21 October 2017 at 19:39:31 UTC, Andrei Alexandrescu wrote: [...] Using the topic of the Elvis operator as a running example, a good DIP would contain motivation such as: * Present evidence of the successful use of ?: in other languages I'm not sure that people talked much

Re: My two cents

2017-10-21 Thread Andrei Alexandrescu via Digitalmars-d
On 10/21/17 9:47 AM, Martin Nowak wrote: On Friday, 20 October 2017 at 18:11:50 UTC, Adam D. Ruppe wrote: On Friday, 20 October 2017 at 16:36:28 UTC, jmh530 wrote: It might help to have some sense of how the main devs time on D is being used. Definitely, I currently have no clue what they

Re: My two cents

2017-10-21 Thread bitwise via Digitalmars-d
On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: async/await (vibe.d is nice but useless in comparison to C# or js async/await idiom) Reference counting when we cannot use GC... If I understand correctly, both of these depend on implementation of 'scope' which is being

Re: My two cents

2017-10-21 Thread Martin Nowak via Digitalmars-d
On Friday, 20 October 2017 at 22:25:20 UTC, Adam Wilson wrote: For example, ?? and ?. are ridiculously common idioms that we all perform every day in our D code. And as Mr. Ruppe rightly pointed out, it'd probably take about an hour each to knock together a complete PR for these features.

Re: My two cents

2017-10-21 Thread Martin Nowak via Digitalmars-d
On Friday, 20 October 2017 at 18:11:50 UTC, Adam D. Ruppe wrote: On Friday, 20 October 2017 at 16:36:28 UTC, jmh530 wrote: It might help to have some sense of how the main devs time on D is being used. Definitely, I currently have no clue what they are on. Tried that, didn't resonate that

Re: My two cents

2017-10-21 Thread Martin Nowak via Digitalmars-d
On Friday, 20 October 2017 at 20:05:51 UTC, jmh530 wrote: Interesting proposals, but IMHO, the only ESSENTIAL feature missing in D is the possibility to program in D using a built-in reference-counting based variant of the standard library. Look at the goals for H2 2017

Re: My two cents

2017-10-21 Thread Mark via Digitalmars-d
On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: Hi, I had been using D for almost 6 years and I want to share my opinion with you. I don't want to blame anyone but I'll focus more on bad things and possible improvements. And this is just how I see D from my perspective. (Sorry

Re: My two cents

2017-10-20 Thread Jonathan M Davis via Digitalmars-d
On Friday, October 20, 2017 15:25:20 Adam Wilson via Digitalmars-d wrote: > So far I have seen three arguments proffered for the ban syntax sugar. > > The first is "Walter/Andrei doesn't have the time." That actually has pretty much nothing to do with a feature request like syntactic sugar -

Re: My two cents

2017-10-20 Thread bauss via Digitalmars-d
On Friday, 20 October 2017 at 22:25:20 UTC, Adam Wilson wrote: On 10/20/17 04:04, Jonathan M Davis wrote: On Friday, October 20, 2017 02:49:34 Adam Wilson via Digitalmars-d wrote: Preach

Re: My two cents

2017-10-20 Thread Adam Wilson via Digitalmars-d
On 10/20/17 04:04, Jonathan M Davis wrote: On Friday, October 20, 2017 02:49:34 Adam Wilson via Digitalmars-d wrote: Here is the thing that bothers me about that stance. You are correct, but I don't think you've considered the logical conclusion of the direction your argument is headed. Pray

Re: My two cents

2017-10-20 Thread user1234 via Digitalmars-d
On Friday, 20 October 2017 at 20:11:46 UTC, jmh530 wrote: On Friday, 20 October 2017 at 19:54:09 UTC, user1234 wrote: On Friday, 20 October 2017 at 18:11:50 UTC, Adam D. Ruppe wrote: [...] The elvis operator, while trivial and unnecessary, would be easy to implement correctly and give a nice

Re: My two cents

2017-10-20 Thread jmh530 via Digitalmars-d
On Friday, 20 October 2017 at 19:54:09 UTC, user1234 wrote: On Friday, 20 October 2017 at 18:11:50 UTC, Adam D. Ruppe wrote: [...] The elvis operator, while trivial and unnecessary, would be easy to implement correctly and give a nice little PR boost to show that we care about the people

Re: My two cents

2017-10-20 Thread jmh530 via Digitalmars-d
On Friday, 20 October 2017 at 19:18:15 UTC, Ecstatic Coder wrote: Interesting proposals, but IMHO, the only ESSENTIAL feature missing in D is the possibility to program in D using a built-in reference-counting based variant of the standard library. Look at the goals for H2 2017

Re: My two cents

2017-10-20 Thread user1234 via Digitalmars-d
On Friday, 20 October 2017 at 18:11:50 UTC, Adam D. Ruppe wrote: [...] The elvis operator, while trivial and unnecessary, would be easy to implement correctly and give a nice little PR boost to show that we care about the people talking about it. If you go by there, the safe navigation

Re: My two cents

2017-10-20 Thread Ecstatic Coder via Digitalmars-d
On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: Hi, I had been using D for almost 6 years and I want to share my opinion with you. I don't want to blame anyone but I'll focus more on bad things and possible improvements. And this is just how I see D from my perspective. (Sorry

Re: My two cents

2017-10-20 Thread H. S. Teoh via Digitalmars-d
On Fri, Oct 20, 2017 at 06:20:52PM +, Random D user via Digitalmars-d wrote: > On Friday, 20 October 2017 at 02:20:31 UTC, Adam D. Ruppe wrote: > > On Friday, 20 October 2017 at 00:26:19 UTC, bauss wrote: > > > return foo ?? null; would be so much easier. > > return getOr(foo, null); > > I

Re: My two cents

2017-10-20 Thread Random D user via Digitalmars-d
On Friday, 20 October 2017 at 02:20:31 UTC, Adam D. Ruppe wrote: On Friday, 20 October 2017 at 00:26:19 UTC, bauss wrote: return foo ?? null; would be so much easier. return getOr(foo, null); I guess with UFCS you could get: return foo.PP(null); // vs. return foo ?? null; :D

Re: My two cents

2017-10-20 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 20 October 2017 at 16:36:28 UTC, jmh530 wrote: It might help to have some sense of how the main devs time on D is being used. Definitely, I currently have no clue what they are on. Is elvis operator more important than improving safe/scope/nogc/etc, I think most would say no. I

Re: My two cents

2017-10-20 Thread jmh530 via Digitalmars-d
On Friday, 20 October 2017 at 15:38:53 UTC, Martin Nowak wrote: Something I want to have for quite a while is a free-form poll for features, maybe running 2 weeks or so, to get a better understanding of community priorities. Maybe once a quarter, ;) It might help to have some sense of

Re: My two cents

2017-10-20 Thread Martin Nowak via Digitalmars-d
On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: First, D started as a great new language with the best from all languages. But now D seems more and more conservative. New syntactic sugars aren't added just because they can be found in phobos. (this was Walter's answer when I

Re: My two cents

2017-10-20 Thread Martin Nowak via Digitalmars-d
On Friday, 20 October 2017 at 08:09:59 UTC, Satoshi wrote: > return foo ?? null; would be so much easier. Definitely the Elvis operator is a small and sometimes useful addition. https://en.wikipedia.org/wiki/Elvis_operator Your best bet on getting it, is writing a small DIP, the organize

Re: My two cents

2017-10-20 Thread Martin Nowak via Digitalmars-d
On Thursday, 19 October 2017 at 06:50:12 UTC, Fra Mecca wrote: We miss a build system that is tailored towards enterprises Anything more specific on that?

Re: My two cents

2017-10-20 Thread Meta via Digitalmars-d
On Friday, 20 October 2017 at 00:26:19 UTC, bauss wrote: On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: conditional dereferencing and stuff about that (same as in C#) foo?.bar; foo?[bar]; return foo ?? null; Tbh. these are some I really wish were in D, because it becomes

Re: My two cents

2017-10-20 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 20 October 2017 at 09:40:26 UTC, Satoshi wrote: If you need reason why is writing less code better just calculate the time of it. getOne(foo, null) // costs 3 sec. foo ?? null // cost 1 sec. Note that I do NOT object to these additions. I think they'd be trivial, backward

  1   2   >