Re: mysql-native v2.1.0

2018-03-05 Thread aberba via Digitalmars-d-announce
On Tuesday, 6 March 2018 at 04:31:42 UTC, Nick Sabalausky (Abscissa) wrote: On 03/05/2018 09:23 AM, aberba wrote: On Saturday, 3 March 2018 at 07:37:38 UTC, Nick Sabalausky (Abscissa) wrote: An all-D MySQL/MariaDB client library: https://github.com/mysql-d/mysql-native

Re: Release D 2.079.0

2018-03-05 Thread Jonathan M Davis via Digitalmars-d-announce
On Tuesday, March 06, 2018 05:34:39 psychoticRabbit via Digitalmars-d- announce wrote: > On Tuesday, 6 March 2018 at 05:22:58 UTC, Void-995 wrote: > > Can somebody explain how [0] is more safe than array.ptr? > > Just want to understand why second statement isn't allowed in > > safe anymore. > >

Re: Release D 2.079.0

2018-03-05 Thread Adam Wilson via Digitalmars-d-announce
On 3/5/18 15:40, Atila Neves wrote: On Monday, 5 March 2018 at 17:47:13 UTC, Seb wrote: On Monday, 5 March 2018 at 15:16:14 UTC, Atila Neves wrote: On Saturday, 3 March 2018 at 01:50:25 UTC, Martin Nowak wrote: Glad to announce D 2.079.0. This release comes with experimental `@nogc`

Re: Article: Why Const Sucks

2018-03-05 Thread Jonathan M Davis via Digitalmars-d-announce
On Monday, March 05, 2018 22:21:47 Nick Sabalausky via Digitalmars-d- announce wrote: > On 03/05/2018 12:38 PM, H. S. Teoh wrote: > > This broke the by-value > > assumption inherent in much of Phobos code, > > Wait, seriously? Phobos frequently passes ranges by value? I sincerely > hope that's

Re: State of D 2018 Survey

2018-03-05 Thread Kagamin via Digitalmars-d-announce
On Monday, 5 March 2018 at 20:52:10 UTC, Russel Winder wrote: I do not see your reasoning here. Has the core D computational model changed? I think not. Major number per semver increases when interface changes, D does it pretty often, it is the fastest moving language I know. Does D issue

Re: Release D 2.079.0

2018-03-05 Thread psychoticRabbit via Digitalmars-d-announce
On Tuesday, 6 March 2018 at 05:22:58 UTC, Void-995 wrote: Can somebody explain how [0] is more safe than array.ptr? Just want to understand why second statement isn't allowed in safe anymore. int[] a; writeln([0]); // good - runtime produces a core.exception.RangeError //writeln(arr.ptr);

Re: Release D 2.079.0

2018-03-05 Thread Void-995 via Digitalmars-d-announce
Can somebody explain how [0] is more safe than array.ptr? Just want to understand why second statement isn't allowed in safe anymore.

Re: mysql-native v2.1.0

2018-03-05 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-announce
On 03/05/2018 09:23 AM, aberba wrote: On Saturday, 3 March 2018 at 07:37:38 UTC, Nick Sabalausky (Abscissa) wrote: An all-D MySQL/MariaDB client library: https://github.com/mysql-d/mysql-native == [...] Is unix socket connection supported? I'm not

Re: Article: Why Const Sucks

2018-03-05 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-announce
On 03/05/2018 12:38 PM, H. S. Teoh wrote: This broke the by-value assumption inherent in much of Phobos code, Wait, seriously? Phobos frequently passes ranges by value? I sincerely hope that's only true for class-based ranges and forward-ranges (and more specifically, only forward ranges

Re: Hamburg meets D

2018-03-05 Thread Mike Parker via Digitalmars-d-announce
On Monday, 5 March 2018 at 19:40:12 UTC, Stephan wrote: Hello fellow Dlers, thanks to last years DConf some German D developers agreed to meet for drinks in Hamburg. What time?

Re: Release D 2.079.0

2018-03-05 Thread jmh530 via Digitalmars-d-announce
On Tuesday, 6 March 2018 at 00:10:52 UTC, Sönke Ludwig wrote: BTW, the problems with this release are a strong hint that we should rethink the inclusion approach with std.experimental. Since breaking changes are tied to the DMD version, it makes those modules almost unusable outside of toy

Re: Release D 2.079.0

2018-03-05 Thread Sönke Ludwig via Digitalmars-d-announce
Am 06.03.2018 um 00:40 schrieb Atila Neves: (...) This doesn't change the fact that right now, somebody trying D for the 1st time with the latest official compiler will get an error if they try out the most popular dub package that I know of if they follow the instructions on code.dlang.org.

Re: Release D 2.079.0

2018-03-05 Thread psychoticRabbit via Digitalmars-d-announce
On Monday, 5 March 2018 at 23:40:35 UTC, Atila Neves wrote: I'd have a snowball's chance in hell convincing anyone at a "regular" company of adopting D if anyone there even imagined any of the above could happen. We have to do better than this. Atila Fair enough. Doing better is always a

Re: Release D 2.079.0

2018-03-05 Thread Atila Neves via Digitalmars-d-announce
On Monday, 5 March 2018 at 17:47:13 UTC, Seb wrote: On Monday, 5 March 2018 at 15:16:14 UTC, Atila Neves wrote: On Saturday, 3 March 2018 at 01:50:25 UTC, Martin Nowak wrote: Glad to announce D 2.079.0. This release comes with experimental `@nogc` exception throwing (-dip1008), a lazily

Re: LDC 1.8.0

2018-03-05 Thread Johannes Loher via Digitalmars-d-announce
On Monday, 5 March 2018 at 12:14:52 UTC, kinke wrote: On Monday, 5 March 2018 at 07:45:04 UTC, Johannes Loher wrote: Will there also be a armhf Release? Yep; it'll most likely be up this evening (CET). I just saw that it is up now, thats awesome, thank you very much for your efforts!

Re: State of D 2018 Survey

2018-03-05 Thread Russel Winder via Digitalmars-d-announce
On Sun, 2018-03-04 at 21:12 +, Kagamin via Digitalmars-d-announce wrote: > On Friday, 2 March 2018 at 12:01:33 UTC, Russel Winder wrote: > > So having D2.999 is fine per se, but advertises a lack of > > change and a lack of ambition since the language name is D not > > D2. > > D just

Re: Hamburg meets D

2018-03-05 Thread Iain Buclaw via Digitalmars-d-announce
On Monday, 5 March 2018 at 19:40:12 UTC, Stephan wrote: Hello fellow Dlers, thanks to last years DConf some German D developers agreed to meet for drinks in Hamburg. With this years DConf approaching we decided (finally) on an informal get together, just beer and talking on March 29th in

Hamburg meets D

2018-03-05 Thread Stephan via Digitalmars-d-announce
Hello fellow Dlers, thanks to last years DConf some German D developers agreed to meet for drinks in Hamburg. With this years DConf approaching we decided (finally) on an informal get together, just beer and talking on March 29th in Hamburg. Since I am not expecting a huge run (afterall

Re: Article: Why Const Sucks

2018-03-05 Thread Arun Chandrasekaran via Digitalmars-d-announce
On Monday, 5 March 2018 at 13:48:23 UTC, Adam D. Ruppe wrote: Just a semantic note, it is "straitjacket". "straight" is like a non-wiggly line. "strait" means narrow or constricted. Thus, the straitjacket is a jacket that constricts your movement. Of course, using "straight" is such a common

Re: Article: Why Const Sucks

2018-03-05 Thread Me via Digitalmars-d-announce
On Monday, 5 March 2018 at 13:48:23 UTC, Adam D. Ruppe wrote: Just a semantic note, it is "straitjacket". "straight" is like a non-wiggly line. "strait" means narrow or constricted. Thus, the straitjacket is a jacket that constricts your movement. Of course, using "straight" is such a common

Re: Article: Why Const Sucks

2018-03-05 Thread Me via Digitalmars-d-announce
On Monday, 5 March 2018 at 13:48:23 UTC, Adam D. Ruppe wrote: Just a semantic note, it is "straitjacket". "straight" is like a non-wiggly line. "strait" means narrow or constricted. Thus, the straitjacket is a jacket that constricts your movement. Of course, using "straight" is such a common

Re: Article: Why Const Sucks

2018-03-05 Thread H. S. Teoh via Digitalmars-d-announce
On Mon, Mar 05, 2018 at 11:04:49AM -0700, Jonathan M Davis via Digitalmars-d-announce wrote: > On Monday, March 05, 2018 09:38:52 H. S. Teoh via Digitalmars-d-announce > wrote: > > Eventually, I discovered that the underlying problem was that > > Result, as defined above, was a struct with a

Re: Article: Why Const Sucks

2018-03-05 Thread Jonathan M Davis via Digitalmars-d-announce
On Monday, March 05, 2018 09:38:52 H. S. Teoh via Digitalmars-d-announce wrote: > Eventually, I discovered > that the underlying problem was that Result, as defined above, was a > struct with a const member, and therefore it was illegal to assign it to > a variable of the same type outside of

Re: Article: Why Const Sucks

2018-03-05 Thread Jonathan M Davis via Digitalmars-d-announce
On Monday, March 05, 2018 17:35:28 ShadoLight via Digitalmars-d-announce wrote: > Very interesting and well written! Jonathan, your experiences > with const in C++/Java just about matches my experiences with it. > I also feel that the situation in D is less than ideal in this > regard. > > First,

Re: Release D 2.079.0

2018-03-05 Thread Seb via Digitalmars-d-announce
On Monday, 5 March 2018 at 15:16:14 UTC, Atila Neves wrote: On Saturday, 3 March 2018 at 01:50:25 UTC, Martin Nowak wrote: Glad to announce D 2.079.0. This release comes with experimental `@nogc` exception throwing (-dip1008), a lazily initialized GC, better support for minimal runtimes, and

Re: Article: Why Const Sucks

2018-03-05 Thread ShadoLight via Digitalmars-d-announce
Very interesting and well written! Jonathan, your experiences with const in C++/Java just about matches my experiences with it. I also feel that the situation in D is less than ideal in this regard. First, a small (for sure copy-pasta) typo in your article: const(int[]) arr1 = getArray();

Re: Article: Why Const Sucks

2018-03-05 Thread H. S. Teoh via Digitalmars-d-announce
On Mon, Mar 05, 2018 at 03:57:35AM -0700, Jonathan M Davis via Digitalmars-d-announce wrote: > Here's something I wrote up on const: > > http://jmdavisprog.com/articles/why-const-sucks.html > > I suppose that it's not exactly the most positive article, but I feel > that it's accurate. [...]

Re: Release D 2.079.0

2018-03-05 Thread Chris M. via Digitalmars-d-announce
On Saturday, 3 March 2018 at 01:50:25 UTC, Martin Nowak wrote: Glad to announce D 2.079.0. This release comes with experimental `@nogc` exception throwing (-dip1008), a lazily initialized GC, better support for minimal runtimes, and an experimental Windows toolchain based on the lld linker

Re: Article: Why Const Sucks

2018-03-05 Thread joe via Digitalmars-d-announce
On Monday, 5 March 2018 at 10:57:35 UTC, Jonathan M Davis wrote: Here's something I wrote up on const: http://jmdavisprog.com/articles/why-const-sucks.html I suppose that it's not exactly the most positive article, but I feel that it's accurate. - Jonathan M Davis Interesting read and it

Re: Release D 2.079.0

2018-03-05 Thread Atila Neves via Digitalmars-d-announce
On Saturday, 3 March 2018 at 01:50:25 UTC, Martin Nowak wrote: Glad to announce D 2.079.0. This release comes with experimental `@nogc` exception throwing (-dip1008), a lazily initialized GC, better support for minimal runtimes, and an experimental Windows toolchain based on the lld linker

Re: mysql-native v2.1.0

2018-03-05 Thread aberba via Digitalmars-d-announce
On Saturday, 3 March 2018 at 07:37:38 UTC, Nick Sabalausky (Abscissa) wrote: An all-D MySQL/MariaDB client library: https://github.com/mysql-d/mysql-native == [...] Is unix socket connection supported? I'm not seeing any information about it in the

Re: Article: Why Const Sucks

2018-03-05 Thread bauss via Digitalmars-d-announce
On Monday, 5 March 2018 at 10:57:35 UTC, Jonathan M Davis wrote: Here's something I wrote up on const: http://jmdavisprog.com/articles/why-const-sucks.html I suppose that it's not exactly the most positive article, but I feel that it's accurate. - Jonathan M Davis Great read for a Monday.

Re: Article: Why Const Sucks

2018-03-05 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 5 March 2018 at 10:57:35 UTC, Jonathan M Davis wrote: Here's something I wrote up on const: So as to the main thrust, I generally agree. In fact, I think const is almost useless even if you want to use it fully: you said immutable is better in many places, and yes, but in

Re: Article: Why Const Sucks

2018-03-05 Thread SimonN via Digitalmars-d-announce
On Monday, 5 March 2018 at 10:57:35 UTC, Jonathan M Davis wrote: Here's something I wrote up on const: Excellent read! I enjoyed the history of proposed solutions. I've run into the trouble with annotated opEquals in classes several times. I believe an empty/nonexistant Object class is the

Re: Article: Why Const Sucks

2018-03-05 Thread Jonathan M Davis via Digitalmars-d-announce
On Monday, March 05, 2018 11:38:05 Atila Neves via Digitalmars-d-announce wrote: > I used to use `immutable`, but gradually came around to only > using it if I have to send data to another thread, otherwise it's > too much of a hassle. Aside from the whole std.concurrency situation, I generally

Re: LDC 1.8.0

2018-03-05 Thread kinke via Digitalmars-d-announce
On Monday, 5 March 2018 at 07:45:04 UTC, Johannes Loher wrote: Will there also be a armhf Release? Yep; it'll most likely be up this evening (CET).

Re: Article: Why Const Sucks

2018-03-05 Thread Dejan Lekic via Digitalmars-d-announce
On Monday, 5 March 2018 at 10:57:35 UTC, Jonathan M Davis wrote: Here's something I wrote up on const: http://jmdavisprog.com/articles/why-const-sucks.html I suppose that it's not exactly the most positive article, but I feel that it's accurate. - Jonathan M Davis Brilliant article,

Re: Article: Why Const Sucks

2018-03-05 Thread Atila Neves via Digitalmars-d-announce
On Monday, 5 March 2018 at 10:57:35 UTC, Jonathan M Davis wrote: Here's something I wrote up on const: http://jmdavisprog.com/articles/why-const-sucks.html I suppose that it's not exactly the most positive article, but I feel that it's accurate. - Jonathan M Davis My biggest issues with

Article: Why Const Sucks

2018-03-05 Thread Jonathan M Davis via Digitalmars-d-announce
Here's something I wrote up on const: http://jmdavisprog.com/articles/why-const-sucks.html I suppose that it's not exactly the most positive article, but I feel that it's accurate. - Jonathan M Davis