Re: TickDuration deprecation

2017-11-19 Thread Jonathan M Davis via Digitalmars-d
On Sunday, November 19, 2017 16:55:06 Rumbu via Digitalmars-d wrote: > On Sunday, 19 November 2017 at 16:02:34 UTC, Jonathan M Davis > > wrote: > > Was the documentation on Duration not informative enough, or > > did you have trouble finding it from the documentation for the > > benchmarking functi

Re: TickDuration deprecation

2017-11-19 Thread Jonathan M Davis via Digitalmars-d
On Sunday, November 19, 2017 15:01:50 Rumbu via Digitalmars-d wrote: > On Saturday, 18 November 2017 at 22:46:20 UTC, Jon Degenhardt > > wrote: > > I admittedly don't understand the argument that it should be > > hard to user programs to convert time durations to alternate > > standard units of mea

Re: UDAs on Enum Members: Does it require a DIP?

2017-11-19 Thread Jonathan M Davis via Digitalmars-d
On Sunday, November 19, 2017 13:35:13 Michael V. Franklin via Digitalmars-d wrote: > Apparently user-defined attributes are not permitted on enum > members. > > Issue is documented here: > https://issues.dlang.org/show_bug.cgi?id=9701 > Pull request implementing the feature is here: > https://gith

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-18 Thread Jonathan M Davis via Digitalmars-d
On Saturday, November 18, 2017 15:24:49 Timon Gehr via Digitalmars-d wrote: > On 17.11.2017 15:53, Jonathan M Davis wrote: > > On Friday, November 17, 2017 15:05:48 Timon Gehr via Digitalmars-d wrote: > >> On 17.11.2017 12:22, Jonathan M Davis wrote: > >>> On Friday, November 17, 2017 09:44:01 rum

Re: Question about deprecation process

2017-11-18 Thread Jonathan M Davis via Digitalmars-d
On Saturday, November 18, 2017 23:12:45 Michael V. Franklin via Digitalmars- d wrote: > I've resurrected a PR that fixes an implementation bug. > https://github.com/dlang/dmd/pull/7332 > > The existing implementation does not comply with the spec. The > PR fixes that, but it may cause breakage, so

Re: TickDuration deprecation

2017-11-18 Thread Jonathan M Davis via Digitalmars-d
On Saturday, November 18, 2017 15:03:05 Timon Gehr via Digitalmars-d wrote: > This is quite annoying: > > void main(){ > import std.datetime; > StopWatch sw; > import std.stdio; > writeln(sw.peek().to!("seconds",double)); > } > > This gives the deprecation warning: > Deprecation

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread Jonathan M Davis via Digitalmars-d
On Friday, November 17, 2017 15:05:48 Timon Gehr via Digitalmars-d wrote: > On 17.11.2017 12:22, Jonathan M Davis wrote: > > On Friday, November 17, 2017 09:44:01 rumbu via Digitalmars-d wrote: > >> I know your aversion towards C#, but this not about C#, it's > >> about safety. And safety is one of

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread Jonathan M Davis via Digitalmars-d
On Friday, November 17, 2017 09:44:01 rumbu via Digitalmars-d wrote: > I know your aversion towards C#, but this not about C#, it's > about safety. And safety is one of the D taglines. Completely aside from whether having the compile-time checks would be good or not, I would point out that this is

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-17 Thread Jonathan M Davis via Digitalmars-d
On Friday, November 17, 2017 01:47:01 Michael V. Franklin via Digitalmars-d wrote: > With Microsoft's proposed change, the compiler will emit a > warning for Example C. If you want to opt out of the warning, > you'll need to declare `_instance` as `Test? _instance` (see the > '?' there). Persona

Re: Should aliasing a lambda expression be allowed?

2017-11-15 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, November 15, 2017 07:28:02 Steven Schveighoffer via Digitalmars-d wrote: > On 11/14/17 8:56 PM, Michael V. Franklin wrote: > > On Tuesday, 14 November 2017 at 23:41:39 UTC, Steven Schveighoffer wrote: > >> In fact, I'm surprised you can alias to an expression like that. > >> Usually

Re: Zig mentions D in justifying its existence

2017-11-13 Thread Jonathan M Davis via Digitalmars-d
On Monday, November 13, 2017 16:12:42 Joakim via Digitalmars-d wrote: > Probably a good sign that they mention D with C++ and Rust and > have looked at D features: > > https://github.com/zig-lang/zig/wiki/Why-Zig-When-There-is-Already-CPP%2C-> > D%2C-and-Rust%3F Glancing over what they say there,

Re: Deprecate implicit `int` to `bool` conversion for integer literals

2017-11-12 Thread Jonathan M Davis via Digitalmars-d
On Sunday, November 12, 2017 19:13:00 Dmitry Olshansky via Digitalmars-d wrote: > On Sunday, 12 November 2017 at 16:00:28 UTC, Ola Fosheim Grøstad > > wrote: > > On Sunday, 12 November 2017 at 13:34:50 UTC, Dmitry Olshansky > > > > wrote: > >> if (a & (flag1 | flag2)) > >> > >> to > >> > >> if ((a

Re: String import an entire directory

2017-11-11 Thread Jonathan M Davis via Digitalmars-d
On Saturday, November 11, 2017 15:35:23 Neia Neutuladh via Digitalmars-d wrote: > On Saturday, 11 November 2017 at 15:00:03 UTC, Jonathan M Davis > > wrote: > > You could always generate a file with the list of files that > > you want to import and then use that to generate the import > > statemen

Re: String import an entire directory

2017-11-11 Thread Jonathan M Davis via Digitalmars-d
On Saturday, November 11, 2017 14:11:50 Neia Neutuladh via Digitalmars-d wrote: > At my job, I put together a database migration tool for our > services. It scans for resources in your JAR file with an > appropriate path, interprets them as SQL scripts, and applies > them to the database if it has

Re: Deprecate implicit `int` to `bool` conversion for integer literals

2017-11-11 Thread Jonathan M Davis via Digitalmars-d
On Saturday, November 11, 2017 13:40:23 Michael V. Franklin via Digitalmars- d wrote: > What's the official word on this: > https://github.com/dlang/dmd/pull/6404 > > Does it need a DIP? > > If I revive it will it go anywhere? > > What needs to be done to move it forward? It probably needs a DIP,

Re: Project Elvis

2017-11-10 Thread Jonathan M Davis via Digitalmars-d
On Friday, November 10, 2017 11:39:48 codephantom via Digitalmars-d wrote: > On Friday, 10 November 2017 at 10:51:28 UTC, Jonathan M Davis > > wrote: > > Shooting down an idea just because it comes from Microsoft (or > > any other company) rather than judging it on its technical > > merits is just

Re: Project Elvis

2017-11-10 Thread Jonathan M Davis via Digitalmars-d
On Friday, November 10, 2017 10:36:01 codephantom via Digitalmars-d wrote: > On Friday, 10 November 2017 at 10:24:01 UTC, Adam Wilson wrote: > > And what? > > This Windows 10. > > https://www.youtube.com/watch?v=KHG6fXEba0A > > You want us to look the MSFT on how things should be done?? In general

Re: [OT] mobile rising

2017-11-09 Thread Jonathan M Davis via Digitalmars-d
On Thursday, November 09, 2017 23:42:37 codephantom via Digitalmars-d wrote: > On Wednesday, 8 November 2017 at 11:47:32 UTC, Jonathan M Davis > > wrote: > > Oh, I'm all for using FreeBSD, but most of the arguments for > > using FreeBSD over Windows apply to Linux. And if you can't get > > someone

Re: [OT] mobile rising

2017-11-08 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, November 08, 2017 12:35:19 codephantom via Digitalmars-d wrote: > On Wednesday, 8 November 2017 at 11:47:32 UTC, Jonathan M Davis > > wrote: > > Personally, I think that the best course of action in general > > as a developer is to try and make your software as > > cross-platform as

Re: [OT] mobile rising

2017-11-08 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, November 08, 2017 10:35:17 codephantom via Digitalmars-d wrote: > On Wednesday, 8 November 2017 at 09:34:39 UTC, Joakim wrote: > > ... > > Companies (along with their technologies and profits) are like > waves in the ocean..they come..and they go.. > > But BSD Unix.. like the energy

Re: Possible change to symbol protection

2017-11-07 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, November 08, 2017 02:52:14 bauss via Digitalmars-d wrote: > I believe it would be nice if we were allowed to pass symbols we > don't have access to into templates, but of course we shouldn't > be allowed to use them. > > Ex. > > foo.d > > ``` > module foo; > > private int bar; > ``` >

Re: Bug or "hidden" feature?

2017-11-06 Thread Jonathan M Davis via Digitalmars-d
On Monday, November 06, 2017 09:50:47 bauss via Digitalmars-d wrote: > On Monday, 6 November 2017 at 09:48:39 UTC, Temtaime wrote: > > On Monday, 6 November 2017 at 09:44:24 UTC, bauss wrote: > >> If a function has an UDA you don't need to give the function a > >> return type. > >> > >> Is that a b

Re: Project Elvis

2017-11-06 Thread Jonathan M Davis via Digitalmars-d
On Monday, November 06, 2017 09:26:24 Satoshi via Digitalmars-d wrote: > Look, this operator does not break anything. If you don't want to > use it, just don't, but why do you force everyone else to not to > use it, just because it is not adding anything "more valuable" > than just better syntax?

Re: Project Elvis

2017-11-06 Thread Jonathan M Davis via Digitalmars-d
On Monday, November 06, 2017 07:10:43 bauss via Digitalmars-d wrote: > On Monday, 6 November 2017 at 00:20:09 UTC, Neia Neutuladh wrote: > > On Saturday, 28 October 2017 at 11:38:52 UTC, Andrei > > > > Alexandrescu wrote: > >> Walter and I decided to kick-off project Elvis for adding the > >> homon

Re: Improve "Improve Contract Syntax" DIP 1009

2017-11-05 Thread Jonathan M Davis via Digitalmars-d
On Saturday, November 04, 2017 14:12:08 Adam D. Ruppe via Digitalmars-d wrote: > On Saturday, 4 November 2017 at 13:59:39 UTC, Jonathan M Davis > > wrote: > > I'm very much of the opinion that proper unit tests pretty much > > eliminate the need for out contracts. > > I think that sqrt example is

Re: Improve "Improve Contract Syntax" DIP 1009

2017-11-05 Thread Jonathan M Davis via Digitalmars-d
On Sunday, November 05, 2017 16:25:16 MrSmith via Digitalmars-d wrote: > On Saturday, 4 November 2017 at 15:38:42 UTC, Jonathan M Davis > > wrote: > > In principle, that would be nice, but in practice, it's not > > really feasible. In the general case, there's no way to save > > the state of the pa

Re: Improve "Improve Contract Syntax" DIP 1009

2017-11-04 Thread Jonathan M Davis via Digitalmars-d
On Saturday, November 04, 2017 15:27:39 Ola Fosheim Grøstad via Digitalmars- d wrote: > On Saturday, 4 November 2017 at 14:12:08 UTC, Adam D. Ruppe wrote: > > On Saturday, 4 November 2017 at 13:59:39 UTC, Jonathan M Davis > > > > wrote: > >> I'm very much of the opinion that proper unit tests prett

Re: Improve "Improve Contract Syntax" DIP 1009

2017-11-04 Thread Jonathan M Davis via Digitalmars-d
On Saturday, November 04, 2017 13:02:45 Nick Treleaven via Digitalmars-d wrote: > On Saturday, 4 November 2017 at 06:08:22 UTC, Jonathan M Davis > > wrote: > > Heck, take a really simply one like sqrt. All you have to check > > in the out contract is the return value. You have no idea what > > was

Re: What is the FreeBSD situation?

2017-11-04 Thread Jonathan M Davis via Digitalmars-d
On Saturday, November 04, 2017 09:34:05 codephantom via Digitalmars-d wrote: > On Saturday, 4 November 2017 at 08:46:37 UTC, Jonathan M Davis > > wrote: > > Well, the modules need names. So, either, the compiler is going > > to have to pick a name for you, or you're going to have to give > > it one

Re: What is the FreeBSD situation?

2017-11-04 Thread Jonathan M Davis via Digitalmars-d
On Saturday, November 04, 2017 01:30:12 Walter Bright via Digitalmars-d wrote: > On 11/3/2017 5:29 AM, Rainer Schuetze wrote: > >> Note that dmd still runs on Windows XP, though it is not officially > >> supported. You just need to be careful about using TLS variables on it > >> :-( > > > > to avo

Re: What is the FreeBSD situation?

2017-11-04 Thread Jonathan M Davis via Digitalmars-d
On Saturday, November 04, 2017 08:38:58 codephantom via Digitalmars-d wrote: > On Saturday, 4 November 2017 at 08:17:44 UTC, Jonathan M Davis > > wrote: > > Per the spec, if you don't give a module declaration, the name > > of the module is the name of the file (minus the extension). > > So, if you

Re: What is the FreeBSD situation?

2017-11-04 Thread Jonathan M Davis via Digitalmars-d
On Saturday, November 04, 2017 08:02:38 codephantom via Digitalmars-d wrote: > On Saturday, 4 November 2017 at 03:19:00 UTC, Jonathan M Davis > > wrote: > > So, that implies that you're doing something funny, but if > > you're installing dmd with an installer or package manager, > > then I would th

Re: Improve "Improve Contract Syntax" DIP 1009

2017-11-03 Thread Jonathan M Davis via Digitalmars-d
On Friday, November 03, 2017 12:34:22 Mark via Digitalmars-d wrote: > On Friday, 3 November 2017 at 02:32:41 UTC, Jonathan M Davis > > wrote: > > Pretty much the only case where out contracts work well is when > > you have a very specific, testable condition that all results > > must have and which

Re: What is the FreeBSD situation?

2017-11-03 Thread Jonathan M Davis via Digitalmars-d
On Saturday, November 04, 2017 01:28:24 codephantom via Digitalmars-d wrote: > On Friday, 3 November 2017 at 19:36:51 UTC, Jonathan M Davis > > wrote: > > What version of dmd are you running? > > > > - Jonathan M Davis > > > DMD (installed on

Re: What is the FreeBSD situation?

2017-11-03 Thread Jonathan M Davis via Digitalmars-d
On Friday, November 03, 2017 11:04:12 codephantom via Digitalmars-d wrote: > On Friday, 3 November 2017 at 10:26:42 UTC, Jonathan M Davis > > wrote: > > I think that there's a decent chance that some of Phobos won't > > work with XP though > > Same for FreeBSD ;-) > > e.g: below compile fine on

Re: What is the FreeBSD situation?

2017-11-03 Thread Jonathan M Davis via Digitalmars-d
On Friday, November 03, 2017 09:50:37 codephantom via Digitalmars-d wrote: > On Friday, 3 November 2017 at 09:40:01 UTC, Walter Bright wrote: > > Note that dmd still runs on Windows XP, though it is not > > officially supported. You just need to be careful about using > > TLS variables on it :-( >

Re: What is the FreeBSD situation?

2017-11-02 Thread Jonathan M Davis via Digitalmars-d
On Thursday, November 02, 2017 19:28:50 Walter Bright via Digitalmars-d wrote: > On 11/2/2017 2:25 PM, Jonathan M Davis wrote: > > On Thursday, November 02, 2017 13:46:11 Walter Bright via Digitalmars-d > > > > wrote: > >> On 11/1/2017 10:11 PM, Jonathan M Davis wrote: > >>> But we > >>> don't cur

Re: Improve "Improve Contract Syntax" DIP 1009

2017-11-02 Thread Jonathan M Davis via Digitalmars-d
On Friday, November 03, 2017 02:08:43 codephantom via Digitalmars-d wrote: > On Thursday, 2 November 2017 at 18:40:26 UTC, bauss wrote: > > I disagree with that, because it would make the language very > > verbose. > > Personally, I think function headers are starting to become to > verbose. > > I

Re: What is the FreeBSD situation?

2017-11-02 Thread Jonathan M Davis via Digitalmars-d
On Thursday, November 02, 2017 13:46:11 Walter Bright via Digitalmars-d wrote: > On 11/1/2017 10:11 PM, Jonathan M Davis wrote: > > But we > > don't currently have a way to version code for a particular version of > > FreeBSD even if we wanted to. > > The FreeBSD version can be detected at runtime

Re: Project Elvis

2017-11-02 Thread Jonathan M Davis via Digitalmars-d
On Thursday, November 02, 2017 09:46:06 H. S. Teoh via Digitalmars-d wrote: > On Thu, Nov 02, 2017 at 12:50:47PM +, Nick Treleaven via Digitalmars-d > wrote: [..] > > > I'd like to mention null-coalescing assignment syntax. Perl has `$a > > //= $b`, and PHP has voted to support `$a ??= $b`, exp

Re: What is the FreeBSD situation?

2017-11-02 Thread Jonathan M Davis via Digitalmars-d
On Thursday, November 02, 2017 11:33:39 Steven Schveighoffer via Digitalmars-d wrote: > On 11/2/17 10:56 AM, Andrei Alexandrescu wrote: > > On 11/02/2017 08:46 AM, Steven Schveighoffer wrote: > >> Well, that is only header compatibility, not binary compatibility. In > >> other words, that still me

Re: What is the FreeBSD situation?

2017-11-01 Thread Jonathan M Davis via Digitalmars-d
On Thursday, November 02, 2017 00:25:26 Andrei Alexandrescu via Digitalmars- d wrote: > From the recent PR-related discussion I gather that FreeBSD 12 has made > some breaking changes to file primitives such as stat. > > Do binaries built for pre-v12 crash on v12? If that's the case we should > ha

Re: Note from a donor

2017-10-31 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, November 01, 2017 05:36:21 Dmitry Olshansky via Digitalmars-d wrote: > On Wednesday, 1 November 2017 at 03:55:14 UTC, Jonathan M Davis > > But the fact remains that plenty of applications need 64-bit or > > would benefit from 64-bit, and plenty of applications need > > access to COFF

Re: Note from a donor

2017-10-31 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, October 31, 2017 06:33:02 Dmitry Olshansky via Digitalmars-d wrote: > On Tuesday, 31 October 2017 at 01:25:31 UTC, Adam D Ruppe wrote: > > A 32 bit program can do most the same stuff. > > Client applications probably do not care much. Servers and > cluster software can use more RAM and

Re: Is this actually a bug or?

2017-10-31 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, October 31, 2017 20:06:12 bauss via Digitalmars-d wrote: > If you look at: > https://github.com/DiamondMVC/Diamond/blob/master/authentication/permissio > ns.d#L13 > > I have to import "diamond.http.method" manually, although the > package "diamond.http" imports the module public like: >

Re: Required Reading: "How Non-Member Functions Improve Encapsulation"

2017-10-30 Thread Jonathan M Davis via Digitalmars-d
On Monday, October 30, 2017 22:10:26 Steven Schveighoffer via Digitalmars-d wrote: > On 10/30/17 9:59 PM, codephantom wrote: > > On Tuesday, 31 October 2017 at 01:47:39 UTC, Steven Schveighoffer wrote: > >> I once thought as you do (though not as the syntax you propose). I now > >> embrace UFCS fu

Re: Project Elvis

2017-10-30 Thread Jonathan M Davis via Digitalmars-d
On Monday, October 30, 2017 21:47:50 Ola Fosheim Grøstad via Digitalmars-d wrote: > On Monday, 30 October 2017 at 19:51:30 UTC, Jonathan M Davis > > The fact that NaN == NaN is false and yet cast(bool)NaN is true > > though is just attrocious though. We aren't source compatible > > with C like C++

Re: Required Reading: "How Non-Member Functions Improve Encapsulation"

2017-10-30 Thread Jonathan M Davis via Digitalmars-d
On Monday, October 30, 2017 14:18:56 Steven Schveighoffer via Digitalmars-d wrote: > On 10/30/17 1:40 PM, H. S. Teoh wrote: > > Page 2 of this article is essentially another reason why UFCS in D > > totally rawkz. In D, we can take Scott's advice *without* suffering > > > from syntactic inconsist

Re: Project Elvis

2017-10-30 Thread Jonathan M Davis via Digitalmars-d
On Monday, October 30, 2017 11:04:32 Steven Schveighoffer via Digitalmars-d wrote: > On 10/29/17 3:10 PM, Nemanja Boric wrote: > > We've already reported this as a bug (I actually got quite burned on it, > > trusting assert(float_value) to prevent NaN's escaping the function), > > but there were d

Re: "dmd -O" does not support Mir Algorithm

2017-10-30 Thread Jonathan M Davis via Digitalmars-d
On Monday, October 30, 2017 08:34:16 bauss via Digitalmars-d wrote: > On Monday, 30 October 2017 at 05:48:16 UTC, Ilya Yaroshenko wrote: > > Hi, > > > > I added unittest-release builds into Travis. LDC works well but > > DMD fails in few places. > > > > One DMD bug was filled [1]. I will explore ot

Re: Project Elvis

2017-10-29 Thread Jonathan M Davis via Digitalmars-d
On Sunday, October 29, 2017 17:35:25 Nemanja Boric via Digitalmars-d wrote: > On Sunday, 29 October 2017 at 17:19:44 UTC, Jonathan M Davis > > wrote: > > On Sunday, October 29, 2017 16:44:39 Ola Fosheim Grøstad via > > > > Digitalmars-d wrote: > >> On Sunday, 29 October 2017 at 16:29:57 UTC, Jonath

Re: Project Elvis

2017-10-29 Thread Jonathan M Davis via Digitalmars-d
On Sunday, October 29, 2017 16:44:39 Ola Fosheim Grøstad via Digitalmars-d wrote: > On Sunday, 29 October 2017 at 16:29:57 UTC, Jonathan M Davis > > wrote: > > valid using ?:, I would think that you'd want to be doing the > > same check with stuff like if statements anyway. So, it sounds > > to me

Re: Project Elvis

2017-10-29 Thread Jonathan M Davis via Digitalmars-d
On Sunday, October 29, 2017 16:18:43 Ola Fosheim Grøstad via Digitalmars-d wrote: > On Sunday, 29 October 2017 at 14:37:57 UTC, Jonathan M Davis > > wrote: > > everything, but I could have missed something). As proposed > > thus far, the Elvis operator is just the ternary operator where > > the co

Re: Note from a donor

2017-10-29 Thread Jonathan M Davis via Digitalmars-d
On Sunday, October 29, 2017 16:14:11 12345swordy via Digitalmars-d wrote: > On Sunday, 29 October 2017 at 02:39:21 UTC, codephantom wrote: > > On Sunday, 29 October 2017 at 02:09:31 UTC, 12345swordy wrote: > > > > What I am, is: > > > > anti-bloat > > anti-too-many-unecessary-dependencies > > anti

Re: Project Elvis

2017-10-29 Thread Jonathan M Davis via Digitalmars-d
On Sunday, October 29, 2017 14:27:34 Ola Fosheim Grøstad via Digitalmars-d wrote: > On Sunday, 29 October 2017 at 11:23:19 UTC, Steven Schveighoffer > > wrote: > >> So, what will the member function be called? «opElvis»? No… > > > > opCast for bool. > > That means you cannot create your own type-s

Re: Required Reading: "How Non-Member Functions Improve Encapsulation"

2017-10-29 Thread Jonathan M Davis via Digitalmars-d
On Sunday, October 29, 2017 08:45:15 w0rp via Digitalmars-d wrote: > I've noticed the benefits of writing non member functions in > Python codebases. Say if you have a User model in a Django ORM, > and you have a Thing model, and some operation on User and Thing. > I've noticed that your code is al

Re: hacky way to get explicit default constructor on struct :P

2017-10-28 Thread Jonathan M Davis via Digitalmars-d
On Saturday, October 28, 2017 16:59:03 LunaticWare via Digitalmars-d wrote: > Event if there is no default constructor on struct we can still > make one that work as well as if it were implemented, here is my > example n__n This idiom gets suggested from time to time, and I'm sure that it gets use

Re: Required Reading: "Functional Programming in C++"

2017-10-28 Thread Jonathan M Davis via Digitalmars-d
On Saturday, October 28, 2017 21:51:50 Ola Fosheim Grøstad via Digitalmars-d wrote: > On Wednesday, 25 October 2017 at 22:19:21 UTC, Walter Bright > > wrote: > > for core D devs. Of course, this is much easier in D than in > > C++ because of D's const and pure attributes. > > Nah, the type system

Re: druntime unittest failing under wine

2017-10-28 Thread Jonathan M Davis via Digitalmars-d
On Saturday, October 28, 2017 19:06:29 Dmitry Olshansky via Digitalmars-d wrote: > On Saturday, 28 October 2017 at 18:58:50 UTC, Andrei Alexandrescu > > wrote: > > I am using wine to build our Windows toolchain on Linux per > > https://wiki.dlang.org/Building_under_Posix. After building > > dmd, I

Re: Note from a donor

2017-10-28 Thread Jonathan M Davis via Digitalmars-d
On Saturday, October 28, 2017 07:12:13 Paulo Pinto via Digitalmars-d wrote: > Visual Studio 2017 has native support for cmake as project format. > > It is also the new official format for Android NDK development. > > So we are quite ok with using cmake. :) That definitely sounds like an improvemen

Re: Note from a donor

2017-10-27 Thread Jonathan M Davis via Digitalmars-d
On Saturday, October 28, 2017 03:45:02 evilrat via Digitalmars-d wrote: > On Saturday, 28 October 2017 at 03:00:16 UTC, Jonathan M Davis > > wrote: > > ... I rewrote our build stuff so that it was all generated with > > cmake. Then editing the build was the same on both platforms, > > and building

Re: Note from a donor

2017-10-27 Thread Jonathan M Davis via Digitalmars-d
On Saturday, October 28, 2017 02:50:39 codephantom via Digitalmars-d wrote: > On Saturday, 28 October 2017 at 01:08:57 UTC, Mengu wrote: > > looks like d has a long way to go on freebsd as well. > > I've had no issues with D in FreeBSD at all... > > ...and it's been a really smooth transition to D.

Re: Note from a donor

2017-10-27 Thread Jonathan M Davis via Digitalmars-d
On Saturday, October 28, 2017 02:48:00 evilrat via Digitalmars-d wrote: > On Saturday, 28 October 2017 at 02:30:50 UTC, codephantom wrote: > > On Saturday, 28 October 2017 at 01:42:52 UTC, evilrat wrote: > >> Since you already on that wave, can you test Windows SDK > >> installation and make DMD's

Re: Note from a donor

2017-10-27 Thread Jonathan M Davis via Digitalmars-d
On Friday, October 27, 2017 09:46:21 Kagamin via Digitalmars-d wrote: > On Friday, 27 October 2017 at 01:40:07 UTC, Jonathan M Davis > > wrote: > > The problem is that to reasonably interact with the rest of the > > Windows C/C++ ecosystem, you're pretty much stuck using > > Microsoft's linker. If

Re: delete & its deprecation

2017-10-27 Thread Jonathan M Davis via Digitalmars-d
On Friday, October 27, 2017 12:30:58 bauss via Digitalmars-d wrote: > Are there any plans to completely remove the delete keyword so > members of ex. a class can be called delete? Or is there still > code within DMD or Phobos that uses it? It's been the plan for ages that delete was to be deprecat

Re: D for microservices

2017-10-26 Thread Jonathan M Davis via Digitalmars-d
On Thursday, October 26, 2017 19:19:57 Adam Wilson via Digitalmars-d wrote: > On 10/26/17 17:51, Jonathan M Davis wrote: > > On Thursday, October 26, 2017 03:25:24 Adam Wilson via Digitalmars-d wrote: > >> On 10/25/17 23:57, Jacob Carlborg wrote: > >>> I'm more concerned that I don't think we'll m

Re: Note from a donor

2017-10-26 Thread Jonathan M Davis via Digitalmars-d
On Friday, October 27, 2017 02:00:53 evilrat via Digitalmars-d wrote: > On Friday, 27 October 2017 at 01:40:07 UTC, Jonathan M Davis > > wrote: > > On Friday, October 27, 2017 01:12:53 codephantom via > > > > Digitalmars-d wrote: > >> VS is the most bloated piece of crap that's ever come out of > >

Re: Note from a donor

2017-10-26 Thread Jonathan M Davis via Digitalmars-d
On Friday, October 27, 2017 01:12:53 codephantom via Digitalmars-d wrote: > VS is the most bloated piece of crap that's ever come out of > Microsoft! > Why encourage/force D developers to use it? The problem is that to reasonably interact with the rest of the Windows C/C++ ecosystem, you're pretty

Re: D for microservices

2017-10-26 Thread Jonathan M Davis via Digitalmars-d
On Monday, October 23, 2017 12:13:12 Laeeth Isharc via Digitalmars-d wrote: > How can we generate a static binary ? I asked about this before, > and the response was that it's a bad idea because of security > vulns and so on. True if you are running on a conventional Linux > host. But on the oth

Re: D for microservices

2017-10-26 Thread Jonathan M Davis via Digitalmars-d
On Thursday, October 26, 2017 03:25:24 Adam Wilson via Digitalmars-d wrote: > On 10/25/17 23:57, Jacob Carlborg wrote: > > I'm more concerned that I don't think we'll manage to implement a > > complete API and 100% bug free at the first try. > > Depends on how one defines first try. Phobos as a pre

Re: Required Reading: "How Non-Member Functions Improve Encapsulation"

2017-10-26 Thread Jonathan M Davis via Digitalmars-d
On Thursday, October 26, 2017 16:29:24 Walter Bright via Digitalmars-d wrote: > On 10/26/2017 3:05 PM, Jonathan M Davis wrote: > > As has been pointed out elsewhere in this thread, the encapsulation > > benefits don't exist in the same way in D unless you put the free > > functions in separate mod

Re: Required Reading: "How Non-Member Functions Improve Encapsulation"

2017-10-26 Thread Jonathan M Davis via Digitalmars-d
On Thursday, October 26, 2017 12:53:38 JN via Digitalmars-d wrote: > On Wednesday, 25 October 2017 at 22:19:23 UTC, Walter Bright > > wrote: > > for core D devs. > > > > "How Non-Member Functions Improve Encapsulation" by Scott Meyers > > > > http://www.drdobbs.com/cpp/how-non-member-functions-impr

Re: Assertions getting corrupted

2017-10-26 Thread Jonathan M Davis via Digitalmars-d
On Thursday, October 26, 2017 10:05:11 bauss via Digitalmars-d wrote: > If D really wants to succeed with such things, then we cannot > assume the program is in an invalid state. It must be up to the > developer themselves to figure out if it's in an invalid state or > not. We've been over this be

Re: Assertions getting corrupted

2017-10-26 Thread Jonathan M Davis via Digitalmars-d
On Thursday, October 26, 2017 11:15:52 Shachar Shemesh via Digitalmars-d wrote: > On 26/10/17 09:27, Jonathan M Davis wrote: > > since almost no one ever derives from Throwable, > > and I don't think it's really intended that anyone do so much as it is > > possible (and I'm not sure why you would)

Re: Assertions getting corrupted

2017-10-25 Thread Jonathan M Davis via Digitalmars-d
On Thursday, October 26, 2017 09:04:56 Shachar Shemesh via Digitalmars-d wrote: > I'm going to hate myself for suggesting this, but here goes. > > There's a fundamental problem with scope(exit) and scope(failure). > Consider the following code: > > { >a = allocate_something(); >scope(exit)

Re: Advice requested for fixing issue 17914

2017-10-25 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, October 25, 2017 09:26:26 Steven Schveighoffer via Digitalmars-d wrote: > On 10/23/17 12:56 PM, Brian Schott wrote: > > Context: https://issues.dlang.org/show_bug.cgi?id=17914 > > > > I need to get this issue resolved as soon as possible so that the fix > > makes it into the next com

Re: Note from a donor

2017-10-25 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, October 25, 2017 13:22:46 Kagamin via Digitalmars-d wrote: > On Tuesday, 24 October 2017 at 16:37:10 UTC, H. S. Teoh wrote: > > (Having said all that, though, D is probably a far better > > language for implementing crypto algorithms -- built-in bounds > > checking would have prevente

Re: Named arguments

2017-10-25 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, October 25, 2017 13:56:51 bauss via Digitalmars-d wrote: > On Wednesday, 25 October 2017 at 06:48:26 UTC, Jonathan M Davis > > wrote: > > On Wednesday, October 25, 2017 06:23:52 bauss via Digitalmars-d > > > > wrote: > >> [...] > > > > The issue I'm talking about is that if we had nam

Re: Named arguments

2017-10-24 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, October 25, 2017 06:23:52 bauss via Digitalmars-d wrote: > On Tuesday, 24 October 2017 at 22:08:57 UTC, Jonathan M Davis > > wrote: > > On Tuesday, October 24, 2017 13:36:00 H. S. Teoh via > > > > Digitalmars-d wrote: > >> On Tue, Oct 24, 2017 at 01:22:41PM -0600, Jonathan M Davis via

Re: Named arguments

2017-10-24 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, October 24, 2017 13:36:00 H. S. Teoh via Digitalmars-d wrote: > On Tue, Oct 24, 2017 at 01:22:41PM -0600, Jonathan M Davis via > > It also wouldn't play well with separate compilation unless the > > parameter names were mangled into the function names, and symbol names > > in D are alre

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 export

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: Named arguments

2017-10-24 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, October 24, 2017 17:30:27 Andrey via Digitalmars-d wrote: > Hello, why there are no named arguments for functions like, for > > example, in kotlin i.e.: > > int sum(in int a, in int b) { > > > > return a + b; > > > > } > > > > sum(a = 1, b = 2); Named arguments are not something th

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 - espec

Re: My two cents

2017-10-20 Thread Jonathan M Davis via Digitalmars-d
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 tell, why must we stop adding > syntactic s

Re: My two cents

2017-10-20 Thread Jonathan M Davis via Digitalmars-d
On Friday, October 20, 2017 08:09:59 Satoshi via Digitalmars-d wrote: > On Friday, 20 October 2017 at 04:26:24 UTC, Jonathan M Davis > > wrote: > > On Friday, October 20, 2017 02:20:31 Adam D. Ruppe via > > > > Digitalmars-d wrote: > >> On Friday, 20 October 2017 at 00:26:19 UTC, bauss wrote: > >>

Re: My two cents

2017-10-19 Thread Jonathan M Davis via Digitalmars-d
On Friday, October 20, 2017 02:20:31 Adam D. Ruppe via Digitalmars-d wrote: > On Friday, 20 October 2017 at 00:26:19 UTC, bauss wrote: > > return foo ? foo : null; > > > > where > > > > return foo ?? null; would be so much easier. > > return getOr(foo, null); > > That's really easy to do genericall

Re: Back to SDL question

2017-10-19 Thread Jonathan M Davis via Digitalmars-d
On Thursday, October 19, 2017 13:34:31 Suliman via Digitalmars-d wrote: > First of all I would like to say sorry for Ludwig, that 2 years > ago I was initiator to making JSON back by default for dub > config. It was really my mistake. > Only some time later I understand that it was big error. > > S

Re: My first experience as a D Newbie

2017-10-18 Thread Jonathan M Davis via Digitalmars-d
On Thursday, October 19, 2017 02:08:13 Laeeth Isharc via Digitalmars-d wrote: > There's an old joke about hiring. I haven't heard that one before, but I've heard essentially the same joke except that it was Bill Gates who died, and it turns out that the version of Hell that he visited on the firs

Re: what means... auto ref Args args?

2017-10-18 Thread Jonathan M Davis via Digitalmars-d
On Thursday, October 19, 2017 00:00:54 Dave Jones via Digitalmars-d wrote: > On Wednesday, 18 October 2017 at 22:16:32 UTC, Moritz Maxeiner > > wrote: > > On Wednesday, 18 October 2017 at 21:38:41 UTC, Dave Jones wrote: > >> Poking around in the source code for emplace and I noticed... > >> > >> T*

Re: [OT] Re: Why Physicists Still Use Fortran

2017-10-16 Thread Jonathan M Davis via Digitalmars-d
On Monday, October 16, 2017 11:42:56 Manu via Digitalmars-d wrote: > That... and they drive on the wrong side of the road! ;) http://jokes.cc.com/funny-lookin--good/yn3vw9/the-wrong-way - Jonathan M Davis

Re: Why Physicists Still Use Fortran

2017-10-15 Thread Jonathan M Davis via Digitalmars-d
On Sunday, October 15, 2017 17:26:20 H. S. Teoh via Digitalmars-d wrote: > On Sun, Oct 15, 2017 at 03:09:21PM -0700, Walter Bright via Digitalmars-d wrote: > > http://moreisdifferent.com/2015/07/16/why-physicsts-still-use-fortran/ > > > > Some good information there! > > 1-based array indexing...

Re: Weird interaction of design choices: Duration + sum

2017-10-13 Thread Jonathan M Davis via Digitalmars-d
On Friday, October 13, 2017 15:28:03 Steven Schveighoffer via Digitalmars-d wrote: > On 10/13/17 3:24 PM, Steven Schveighoffer wrote: > > On 10/13/17 3:11 PM, jmh530 wrote: > >> On Friday, 13 October 2017 at 18:36:58 UTC, Luís Marques wrote: > >>> [snip] > >> > >> What if it were package instead o

Re: Weird interaction of design choices: Duration + sum

2017-10-13 Thread Jonathan M Davis via Digitalmars-d
On Friday, October 13, 2017 18:36:58 Luís Marques via Digitalmars-d wrote: > If you do this: > > import std.algorithm : sum; > import core.time : Duration; > > Duration[] parts; > auto total = parts.sum; > > You'll get an error ("struct core.time.Duration member this is > not ac

Re: Weird interaction of design choices: Duration + sum

2017-10-13 Thread Jonathan M Davis via Digitalmars-d
On Friday, October 13, 2017 19:11:40 jmh530 via Digitalmars-d wrote: > On Friday, 13 October 2017 at 18:36:58 UTC, Luís Marques wrote: > > [snip] > > What if it were package instead of private? What, Duration's constructor? Duration is in core.time, whereas sum is in std.algorithm. They aren't in

Re: My first experience as a D Newbie

2017-10-12 Thread Jonathan M Davis via Digitalmars-d
On Thursday, October 12, 2017 08:05:04 Dmitry via Digitalmars-d wrote: > On Wednesday, 11 October 2017 at 22:20:01 UTC, Rion wrote: > > Its probably more the fact that most of the developers use Unix > > based system for development, be it OSx or Linux. As a result > > Windows is the overlooked sys

Re: Enum AA with classes not allowed anymore?

2017-10-11 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, October 11, 2017 17:05:19 Daniel Kozak via Digitalmars-d wrote: > so you can try to use static immutable insted of enum Yeah. Similarly, you could just have a regular function that you call at compile time that returns what you want (assuming that it's not being assigned to an enum)

Re: [OT] vim tip with column limits

2017-10-11 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, October 11, 2017 07:59:51 Eduard Staniloiu via Digitalmars-d wrote: > On Monday, 9 October 2017 at 13:38:18 UTC, lithium iodate wrote: > > On Monday, 9 October 2017 at 00:24:02 UTC, Jonathan M Davis > > > > wrote: > >>[…] > >> > > Thanks for the tip! > > You might also want to use au

Re: is private broken?

2017-10-10 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, October 10, 2017 15:33:30 Steven Schveighoffer via Digitalmars-d wrote: > On 10/10/17 3:20 PM, Jonathan Marler wrote: > > On windows I was able to compile the following using both dmd.2.075.1 > > and dmd.2.076.1 > > > > From what I understand, you shouldn't be able to access private >

Re: is private broken?

2017-10-10 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, October 10, 2017 19:50:49 Jonathan Marler via Digitalmars-d wrote: > On Tuesday, 10 October 2017 at 19:33:30 UTC, Steven Schveighoffer > > wrote: > > On 10/10/17 3:20 PM, Jonathan Marler wrote: > >> On windows I was able to compile the following using both > >> dmd.2.075.1 and dmd.2.07

<    2   3   4   5   6   7   8   9   10   11   >