Re: A better way to deal with overloading?

2017-01-27 Thread rjframe via Digitalmars-d
On Fri, 27 Jan 2017 10:38:53 +, Profile Anaysis wrote: > Do you realize > > 1. That without change there can be no progress? > > ... > If people with your mentality rules the world we would still be using > sticks and stones. This is a fact... I won't argue whether it would be > the best

Re: Is it acceptable to not parse unittest blocks when unittests are disabled ?

2017-03-30 Thread rjframe via Digitalmars-d
On Thu, 30 Mar 2017 09:04:28 +, ixid wrote: > Why is it harmful (actually asking, not telling you you're wrong)? I > thought we were going to use a pay for what you use philosophy, if a > unit test is not run then why is it paid for? A person that doesn't run `dmd -unittest` (or `dub test`)

Re: The nail in the coffin of C++ or why don't GO there...

2017-03-30 Thread rjframe via Digitalmars-d
On Thu, 30 Mar 2017 11:15:10 +, Ervin Bosenbacher wrote: > I have already accepted the fact that if > I want to optimize my Python code in certain situations, not all because > you can use better algos, data structures, etc then I have to drop down > to C++ or C using say pybind11. Instead of

Re: Is it acceptable to not parse unittest blocks when unittests are disabled ?

2017-04-01 Thread rjframe via Digitalmars-d
On Sat, 01 Apr 2017 07:39:49 +, Stefan Koch wrote: > On Saturday, 1 April 2017 at 02:12:46 UTC, Walter Bright wrote: >> On 3/31/2017 6:33 PM, Jonathan M Davis via Digitalmars-d wrote: >>> [...] >> >> I know. But it is worth it. It should enable D compilers to scale to >> handling very large

Re: Proposal 2: Exceptions and @nogc

2017-04-11 Thread rjframe via Digitalmars-d
On Mon, 10 Apr 2017 16:43:40 -0700, Walter Bright wrote: > On 4/10/2017 2:44 PM, Jonathan Marler wrote: >> Another way to think of it is that this proposal makes "throw new" into >> a special operator that is different than composing the "throw" and >> "new" operations independently. Once you

Re: Named multi-imports

2017-08-17 Thread rjframe via Digitalmars-d
On Wed, 16 Aug 2017 12:04:13 +, jmh530 wrote: > > Well I knew that renamed imports were allowed, but I didn't realize you > could do re-named selective imports (the " : writeln, > write" part of it). I just double-checked and it worked. I don't recall > it working in the past. > > I see that

Re: .NET Library In D

2017-07-10 Thread rjframe via Digitalmars-d
On Mon, 10 Jul 2017 21:36:05 +, FoxyBrown wrote: > The goal is that, one day, we can effectively replace the phobos with > .NET semantics if we want. It, being a nicer library, and all the source > code available through reflection, makes it a nice target. While the > source code cannot be

Re: DIP 1012--Attributes--Preliminary Review Round 1

2017-07-27 Thread rjframe via Digitalmars-d
On Thu, 27 Jul 2017 14:44:23 +, Mike Parker wrote: > DIP 1012 is titled "Attributes". > > https://github.com/dlang/DIPs/blob/master/DIPs/DIP1012.md 1. I would like to see consistency; I'd rather see @nogc and @gc than @nogc and @core.attributes.[whatever].gc, so all these attributes

Re: DIP 1003 Formal Review

2017-05-13 Thread rjframe via Digitalmars-d
On Fri, 12 May 2017 16:17:03 +, Mike Parker wrote: > The first stage of the formal review for DIP 1003 [1], "Remove body as a > Keyword", is now underway. From now until 11:59 PM ET on May 26 (3:59 AM > GMT on May 27), the community has the opportunity to provide last-minute > feedback. If

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

2017-11-23 Thread rjframe via Digitalmars-d
On Thu, 23 Nov 2017 01:08:45 +, codephantom wrote: > So yeah, you can change the language.. or you can change the way people > think about their code. When they think differently, their code will > change accordingly. > > My point about sophisticated IDE's and AI like compilers, is that they

Re: Chocolatey Packages for DMD, LDC, and GDC

2017-11-28 Thread rjframe via Digitalmars-d
On Tue, 28 Nov 2017 19:04:06 +, Manuel Maier wrote: > I didn't know about that tool yet, but I like the idea! However, when I > played around with it just now, I ran into the "Cannot find > dmd-2.0.x.x.bat file" issue [1]. And yes, I misread the installation > instructions (thought it said

Re: Building is slow!

2017-12-01 Thread rjframe via Digitalmars-d
On Sat, 02 Dec 2017 00:24:12 +, Ivan Trombley wrote: > When DUB bulds the gtk-d library, it takes a long time. This is mostly > because it's only using one processor. It hasn't been such a big deal on > Linux but I'm building my app on Windows right now and it been building > gtk-d for the

Re: Is it possible to request a code review?

2017-12-14 Thread rjframe via Digitalmars-d
On Wed, 13 Dec 2017 03:15:11 +, IM wrote: > Being new to D, I probably made many mistakes, or did things in a way > where there's a more optimum one to do in D. I'm eager to know how to > improve, and would like to know if there is any experienced D developer > who is thankfully willing to

Re: What is the FreeBSD situation?

2017-11-04 Thread rjframe via Digitalmars-d
On Sat, 04 Nov 2017 09:51:12 +, codephantom wrote: >> It might also make sense, that if a source code file does not contain a >> module statement, then it should not be treated as a module, and the >> compiler should look to the import statements instead of implicitly >> making in a module.

Re: D as a betterC a game changer ?

2017-12-30 Thread rjframe via Digitalmars-d
On Sat, 30 Dec 2017 23:04:21 +, Nicholas Wilson wrote: > I can hear him already, "Post it on buzzkill or it won't get fixed!" He does have a point. At work, people often email me directly, or stop me in the hallway, to report things that belong on the issue tracker. I consistently tell

Re: Maybe D is right about GC after all !

2017-12-27 Thread rjframe via Digitalmars-d
On Tue, 26 Dec 2017 14:54:14 -0800, Walter Bright wrote: > On 12/26/2017 1:03 AM, Paolo Invernizzi wrote: >> The point is that the presence of one @safe: line in the module can be >> mechanically checked, over one million devs working on a codebase. >> >> The whole point of Walter argumentation

Re: What do you want to see for a mature DLang?

2017-12-29 Thread rjframe via Digitalmars-d
On Fri, 29 Dec 2017 13:34:14 -0800, Walter Bright wrote: > On 12/28/2017 11:53 PM, IM wrote: >> Simple things like these make a big difference. D Lang has been around >> for a long while now, and hence signs of its maturity has to show >> everywhere, especially in the compiler, as well as the

Re: What don't you switch to GitHub issues

2017-12-31 Thread rjframe via Digitalmars-d
On Sun, 31 Dec 2017 23:50:04 +, Mengu wrote: > - d leadership is dusty and so are their tools. we are no js community > and hope we never become anything like them but bugzilla is a hundred > years old. i am on github, i am on this ml and i also need a bugzilla > account? That's probably not

Re: What don't you switch to GitHub issues

2017-12-31 Thread rjframe via Digitalmars-d
On Sun, 31 Dec 2017 17:19:22 -0700, Jonathan M Davis wrote: > Yes, it would be a pain to switch away from github at this point, but if > github went down permanently tomorrow, it would just be an annoying > roadblock. We almost certainly wouldn't lose any code (at most, a few > commits, if no one

Re: Some Observations on the D Development Process

2018-01-06 Thread rjframe via Digitalmars-d
On Fri, 05 Jan 2018 18:53:38 -0800, Walter Bright wrote: > On 1/5/2018 7:39 AM, Seb wrote: >> We should put things like this somewhere where it can easily be seen by >> others. >> The obvious candidates are the Wiki and Bugzilla, but both have >> historically proven to yield poor results, e.g. >

Re: I closed a very old bug!

2018-01-18 Thread rjframe via Digitalmars-d
On Thu, 18 Jan 2018 02:46:03 -0500, Andrei Alexandrescu wrote: > There's been some discussion about what to do with issues that propose > enhancements like this. We want to make them available and searchable > just in case someone working on a related proposal is looking for > precedent and

Re: __traits(documentation, X)

2018-01-17 Thread rjframe via Digitalmars-d
On Wed, 17 Jan 2018 11:52:40 -0500, Steven Schveighoffer wrote: > version(DDoc) is very different. It's a command line option passed to > the build, and affecting the build with command line options is > expected. > > This proposal has comment *contents* affecting the build. The charter of >

Re: Tuple DIP

2018-01-13 Thread rjframe via Digitalmars-d
On Sat, 13 Jan 2018 19:43:48 +, aberba wrote: > > When I raised this feature for D, suggestions on the use of () instead > of {} got me concerned. All languages that I know to have this feature > (known as destructuring) use curly braces. Thats what kotlin and > JavaScript (that I know have

Re: Tuple DIP

2018-01-13 Thread rjframe via Digitalmars-d
On Sat, 13 Jan 2018 21:57:31 +0100, Timon Gehr wrote: > On 13.01.2018 21:39, rjframe wrote: >> Python and Pony use (). C++17 uses []. > > Any idea why C++17 went with [] ? I don't know; the paper[1] says it was due to "feedback from the EWG session in Jacksonville". > > It would actually be

Re: Developing blockchain software with D, not C++

2018-01-14 Thread rjframe via Digitalmars-d
On Sun, 14 Jan 2018 18:03:27 -0500, Andrei Alexandrescu wrote: > On 1/4/18 8:42 AM, deadalnix wrote: >> I would *LOVE* to be able to use more D on a day to day basis, but >> these 2 problems make it very hard. It is especially sad considering 1/ >> could be solved very easily. It literally took

Re: How programmers transition between languages

2018-01-30 Thread rjframe via Digitalmars-d
On Tue, 30 Jan 2018 09:20:37 +, aberba wrote: > That's one big potential mistake. Enterprises care about making money > with whatever will help them do that (impress investors). Its developers > who care about languages that help them write code that suites their > requirements. The focus

Re: Quora: Why hasn't D started to replace C++?

2018-01-31 Thread rjframe via Digitalmars-d
On Wed, 31 Jan 2018 10:55:56 +, Benny wrote: > On Wednesday, 31 January 2018 at 10:35:06 UTC, Benny wrote: >> Let me say this again > > *uch* Never mind this rant. I am just fed up with the issues. I will not > post anymore as its just a wast of time for everybody involved. I wouldn't call

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread rjframe via Digitalmars-d
On Thu, 01 Feb 2018 11:11:20 +, Martin Tschierschke wrote: > Idea: There should be some kind of news ticker for all enhancements and > important decisions, maybe at first just via twitter with a special > #tag beside #dlang where all updates are announced. And a place on the > homepage,

[RFC] IDE starter kit

2018-02-01 Thread rjframe via Digitalmars-d
As a followup to [0], I want to take a look at packaging DlangIDE with a DMD compiler and tools, so we have an out-of-the box IDE for people giving D a try. This would be independent of the rest of the system, so moving on (either to Visual Studio, ldc, gdc, or whatever the programmer's

Re: Quora: Why hasn't D started to replace C++?

2018-02-02 Thread rjframe via Digitalmars-d
On Fri, 02 Feb 2018 20:04:33 +, Seb wrote: > Not could - it's now is: > https://forum.dlang.org/post/tzyleprmwjmdnjhhp...@forum.dlang.org Sometimes y'all get things done so quickly I'm surprised everybody's a volunteer. --Ryan

Re: [RFC] IDE starter kit

2018-02-02 Thread rjframe via Digitalmars-d
On Fri, 02 Feb 2018 06:14:03 +, b4s1L3 b. wrote: > Actually nowadays if DMD is already setup, Coedit doesn't require more > configuration. Completion, all DCD features, and D-Scanner warnings just > work out of the box since the tools are distributed with the IDE. In a > way Coedit is already

Re: An idea for commercial support for D

2018-02-03 Thread rjframe via Digitalmars-d
On Sat, 03 Feb 2018 12:08:21 +, psychoticRabbit wrote: > On Saturday, 3 February 2018 at 10:49:06 UTC, Joakim wrote: >> And what we find is that when you allow such mixing with >> permissively-licensed projects (that the GPL makes much more >> difficult), . > > I've never been a fan of

Re: How programmers transition between languages

2018-01-27 Thread rjframe via Digitalmars-d
On Sat, 27 Jan 2018 00:32:21 +, Ola Fosheim Grøstad wrote: > ... Anyway, with Python 3.6 you get fairly good > type annotation capabilities which allows static type checking that is > closing on what you get with statically typed languages. Maybe that is > a factor too. If you use an IDE

Re: How programmers transition between languages

2018-01-27 Thread rjframe via Digitalmars-d
On Sat, 27 Jan 2018 22:59:17 +, Ola Fosheim Grostad wrote: > On Saturday, 27 January 2018 at 13:56:35 UTC, rjframe wrote: >> If you use an IDE or analysis/lint tool, you'll get type checking. The >> interpreter will happily ignore those annotations. > > You need to use a type checker to get

Re: How programmers transition between languages

2018-01-28 Thread rjframe via Digitalmars-d
On Sun, 28 Jan 2018 11:44:05 +, Ola Fosheim Grøstad wrote: > The reference interpreter doesn't make much use of static type > information. I think it makes sense to have separate type checkers until > this new aspect of Python has reached maturity. That doesn't prevent > third parties to

Re: [RFC] IDE starter kit

2018-02-01 Thread rjframe via Digitalmars-d
On Thu, 01 Feb 2018 22:38:51 +0100, Jacob Carlborg wrote: > On 2018-02-01 13:21, rjframe wrote: > >> CONS: >> - Working outside the IDE requires installing D again, from the >> official >>installer. If this pack isn't immediately abandoned, multiple D >>versions are in use that could

Re: [RFC] IDE starter kit

2018-02-01 Thread rjframe via Digitalmars-d
On Fri, 02 Feb 2018 01:23:46 +, Seb wrote: > I wouldn't worry about the compiler being duplicated as (1) it's pretty > small (~30 MB with docs and all) and (2) I have seen so many NodeJS > projects doing simple things with multiple gigabytes of dependencies. > And if that really turns out to

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread rjframe via Digitalmars-d
On Fri, 02 Feb 2018 01:42:08 +, Meta wrote: > On Wednesday, 31 January 2018 at 11:42:14 UTC, Seb wrote: > >> Yes, obviously the current situation isn't ideal, but it's not too bad >> either and we have found one good, but probably not so well-known yet >> way to tackle this: the

Re: How programmers transition between languages

2018-01-30 Thread rjframe via Digitalmars-d
On Tue, 30 Jan 2018 20:59:16 +, aberba wrote: > Is the foundation allowed to publicise its financial status as an NGO > based on US laws? It's required to file with the IRS, and those filings are public. The 2016 990-EZ filing:

Re: How programmers transition between languages

2018-01-30 Thread rjframe via Digitalmars-d
On Wed, 31 Jan 2018 00:34:48 +, Benny wrote: > https://crates.io/categories Thanks. I wish that was easier to find though. I still don't see how to get there without knowing it already exists. > The issue is that a lot of D's packages are even less maintained then > Rust, mostly because

Re: How programmers transition between languages

2018-01-30 Thread rjframe via Digitalmars-d
On Tue, 30 Jan 2018 10:38:31 +, Russel Winder wrote: > On Mon, 2018-01-29 at 17:18 +, Mafi via Digitalmars-d wrote: >> > […] >> What would you say are the most important differences between dub and >> Cargo? What does Cargo do better than dub (or worse for that matter)? >> Superficially,

Re: A betterC base

2018-02-08 Thread rjframe via Digitalmars-d
On Thu, 08 Feb 2018 17:08:41 +, bachmeier wrote: > On Thursday, 8 February 2018 at 15:55:09 UTC, JN wrote: > >> Python was also a smashing success, but it doesn't use a garbage >> collector in it's default implementation (CPython). > > I'm pretty sure CPython uses a mark-and-sweep GC

Re: Which language futures make D overcompicated?

2018-02-10 Thread rjframe via Digitalmars-d
On Fri, 09 Feb 2018 22:36:19 +, Ralph Doncaster wrote: > Frankly, I think it is doomed to be a niche-use language. While many > more things were done right compared to C++, too many things were done > wrong and there doesn't seem to be interest in breaking backward > compatibility to excise

Re: Annotation of functions

2018-02-22 Thread rjframe via Digitalmars-d
On Thu, 22 Feb 2018 10:41:48 +, psychoticRabbit wrote: > On Tuesday, 20 February 2018 at 15:26:12 UTC, Adam D. Ruppe wrote: >> dmd -X spits out the json file with a list of functions and classes and >> other stuff. Then you can just filter that. > > do you know why the first and last

Re: code.dlang.org name collision

2017-12-22 Thread rjframe via Digitalmars-d
On Fri, 22 Dec 2017 11:34:21 +, user1234 wrote: > On Friday, 22 December 2017 at 05:50:15 UTC, drug wrote: >> 22.12.2017 01:11, Steven Schveighoffer пишет: >>> On 12/21/17 4:55 PM, Walter Bright wrote: >>> [...] >> We should also consider provider's name - github, bitbucket, >> gitlab etc.

Re: Maybe D is right about GC after all !

2017-12-27 Thread rjframe via Digitalmars-d
On Wed, 27 Dec 2017 08:36:13 +, codephantom wrote: > btw. I'd like to see D 3.x introduce a breaking change and make @safe > the default, instead of @system. I think that would be huge boost for D > going forward. > > How practical that is, I would have no idea. > > But as an 'end user' of

Re: TypeInfo_Class.interfaces[n].classinfo has TypeInfo_Class and not TypeInfo_Interface?

2017-12-27 Thread rjframe via Digitalmars-d
On Wed, 27 Dec 2017 23:28:27 +, Tofu Ninja wrote: > On Sunday, 24 December 2017 at 05:21:44 UTC, Tofu Ninja wrote: > > I guess I will just not get an answer to this, seems like just some > weirdness of D that will just stick there. The typeinfo system seems > really half baked and really

Re: Maybe D is right about GC after all !

2017-12-27 Thread rjframe via Digitalmars-d
On Thu, 28 Dec 2017 00:57:41 +0100, Timon Gehr wrote: > On 27.12.2017 16:37, rjframe wrote: >> If the programmer opts-in to those checks... it's a +1 for pragmatism >> but does make marketing the language a bit weird -- one-liners spawn >> objections to the integrity of the claim (such as a

Re: Some Observations on the D Development Process

2018-01-04 Thread rjframe via Digitalmars-d
On Thu, 04 Jan 2018 10:34:05 +, Mike Franklin wrote: > This is in response to some of the frustrations offered in the thread > staring with > http://forum.dlang.org/post/oeigdutfphxhenexc...@forum.dlang.org > > I share some of those frustrations, and I've been vocal about such > things

Re: What don't you switch to GitHub issues

2018-01-04 Thread rjframe via Digitalmars-d
On Thu, 04 Jan 2018 06:16:45 +, codephantom wrote: > This is not my area of experise, but, if I were a manager evaluating the > merits of D for use in a corporate software project, and then I went off > to bugzilla and looked at the items for D.. I'd pause and think.wtf > is going on

Re: Is there any good reason why C++ namespaces are "closed" in D?

2018-08-02 Thread rjframe via Digitalmars-d
On Wed, 01 Aug 2018 16:04:01 -0700, Walter Bright wrote: > On 8/1/2018 10:24 AM, Jonathan M Davis wrote: >> Not to say that that can't work, but I have to say that it seems pretty >> ugly if using extern(C++, NS) requires a bunch of aliases just to use >> symbols normally. > > What is normal is

Re: DMD installation prompts "Windows protected your PC"

2018-08-06 Thread rjframe via Digitalmars-d
On Mon, 06 Aug 2018 14:13:02 +, Timoses wrote: > Thanks Windows, not! > > Since our department switched to Windows 10 I'm now unable to install > DMD. > > To make it even worse, there's no way I see to install a virtual machine > any more (VirtualBox or VMWare) since they collide with

Re: D is dead

2018-09-01 Thread rjframe via Digitalmars-d
On Thu, 23 Aug 2018 15:34:34 +, Matheus wrote: > Well, I'm D hobbyist and of course it's not a perfect language and you > have some valid points, but on the other hand I think it's very > disrespectful to come into a community and say the product that people > are working mainly as volunteers

Re: D is dead

2018-09-01 Thread rjframe via Digitalmars-d
On Sat, 01 Sep 2018 11:25:31 +, rjframe wrote: > Should you have to fix the bugs you run into? No. But if they keep you > from doing your work, it seems like the economics of fixing D's bugs can > make sense. If Weka were to assign its own priorities to D's bugs*, and > have one person, once

Re: D is dead (was: Dicebot on leaving D: It is anarchy driven development in all its glory.)

2018-09-01 Thread rjframe via Digitalmars-d
On Thu, 23 Aug 2018 15:35:45 +, Joakim wrote: >> * Language complexity >> >> Raise your hand if you know how a class with both opApply and the >> get/next/end functions behaves when you pass it to foreach. >> How about a struct? Does it matter if it allows copying or not? >> >> The language

Re: D is dead

2018-09-01 Thread rjframe via Digitalmars-d
On Thu, 23 Aug 2018 19:34:46 +, Abdulhaq wrote: > There is a class of developers who expect things to Just Work TM, > especially if they are told that it Just Works. Each time that they > discover some combination of features that doesn't work they have to > refactor their code and remember

Re: D is dead (was: Dicebot on leaving D: It is anarchy driven development in all its glory.)

2018-09-01 Thread rjframe via Digitalmars-d
On Thu, 23 Aug 2018 14:29:23 +, bachmeier wrote: > Weka is an awesome project, but I don't know that most people > considering D should use your experience as the basis of their decision. > At least in my areas, I expect considerable growth in the usage of D > over the next 10 years. Maybe it

Re: D is dead

2018-09-01 Thread rjframe via Digitalmars-d
On Thu, 23 Aug 2018 21:04:36 +0300, Shachar Shemesh wrote: > On 23/08/18 20:52, bachmeier wrote: >> On Thursday, 23 August 2018 at 17:19:41 UTC, Ali wrote: >>> On Thursday, 23 August 2018 at 16:22:54 UTC, Shachar Shemesh wrote: On 23/08/18 17:01, Steven Schveighoffer wrote: My main job

Re: D is dead

2018-09-01 Thread rjframe via Digitalmars-d
On Thu, 23 Aug 2018 04:02:37 -0700, Walter Bright wrote: > On 8/23/2018 2:09 AM, Shachar Shemesh wrote: >> * The community >> >> Oh boy. >> >> Someone who carries weight needs to step in when the forum is trying to >> squash down on criticism. For Mecca, I'm able to do that [2], but for >> D,

Re: D is dead

2018-09-01 Thread rjframe via Digitalmars-d
On Thu, 23 Aug 2018 07:27:56 +, JN wrote: > I think a large part is defining what kind of users D wants to attract. I've begun wondering whether "pragmatism" is sometimes used as a code word for indecision. > Is it possible to make a language that both groups would be happy to > use?

Re: D IDE

2018-09-04 Thread rjframe via Digitalmars-d
On Tue, 04 Sep 2018 11:56:54 +, ShadoLight wrote: > I know the "we use Vim/Emacs, why don't you pitch in and help on VisualD > if you want to use it" view is valid opinion, but it will not bring the > masses since it will never happen - the critical mass is composed of > devs that want to

Re: Mobile is the new PC and AArch64 is the new x64

2018-09-10 Thread rjframe via Digitalmars-d
On Mon, 10 Sep 2018 13:43:46 +, Joakim wrote: > Despite all this, D may never do very well on mobile or AArch64, > even though I think it's well-suited for that market. But at the very > least, you should be looking at mobile and AArch64, as they're taking > over the computing market. I was

Re: This is why I don't use D.

2018-09-08 Thread rjframe via Digitalmars-d
On Fri, 07 Sep 2018 09:35:29 -0700, H. S. Teoh wrote: > ([*] I was going to suggest including dmd-nightly as well, but that > poses the problem of load: running it every night will cause a lot of CI > churn, which also generates a lot of mostly-useless information -- no > one will care about

Re: Tuple DIP

2018-01-13 Thread rjframe via Digitalmars-d
On Sat, 13 Jan 2018 22:10:39 +, rjframe wrote: > On Sat, 13 Jan 2018 21:57:31 +0100, Timon Gehr wrote: > >> On 13.01.2018 21:39, rjframe wrote: >>> Python and Pony use (). C++17 uses []. >> >> Any idea why C++17 went with [] ? > > I don't know; the paper[1] says it was due to "feedback

Re: D mentioned in Infoworld

2018-03-26 Thread rjframe via Digitalmars-d
On Mon, 26 Mar 2018 17:51:49 +, bauss wrote: > Clearly it's written by someone who has never used D and just googled D > real quick. It looks like the article was written by someone that doesn't know much about most of those languages.

Re: DIP 1006 - Preliminary Review Round 1

2018-03-04 Thread rjframe via Digitalmars-d
On Sat, 03 Mar 2018 20:30:31 -0800, Walter Bright wrote: > The default is that they're all on. So to just have one on, first turn > them all off then turn on the desired ones. Would I be correct to interpret this as "turn them all off with -release"? E.g., "dmd -check=in a.d" is unnecessary;

Re: Thinktank: CI's, compiler lists, and project automation

2018-03-03 Thread rjframe via Digitalmars-d
On Fri, 02 Mar 2018 01:07:25 -0500, Nick Sabalausky (Abscissa) wrote: > Another sample point of discussion: One possible approach is to have a > bot generate PRs to update project's compiler lists. But that leads to > other questions: How/when is the bot triggered? On what machine does it > run?

Re: You don't like GC? Do you?

2018-10-13 Thread rjframe via Digitalmars-d
On Fri, 12 Oct 2018 23:35:19 +, Stanislav Blinov wrote: >>> Precisely where in memory your data is, how it got there and how it's >>> laid out should be bread and butter of any D programmer. >> >> Of any D programmer writing code that's performance sensitive. > > All code is performance

Re: You don't like GC? Do you?

2018-10-15 Thread rjframe via Digitalmars-d
On Sat, 13 Oct 2018 12:22:29 +, Stanislav Blinov wrote: > On Saturday, 13 October 2018 at 12:15:07 UTC, rjframe wrote: > >> ...I didn't even keep the script; I'll never need it again. There are >> times when the easy or simple solution really is the best one for the >> task at hand. > >

Re: Please don't do a DConf 2018, consider alternatives

2018-10-04 Thread rjframe via Digitalmars-d
On Tue, 02 Oct 2018 14:49:31 +, bachmeier wrote: > I think this is something that could be done *in addition to* DConf. I > honestly don't think DConf is very effective at promoting D, except > perhaps to a small sliver of the overall population of programmers, due > to the content of most of

Re: Help needed for D support in SCons on Windows

2018-10-07 Thread rjframe via Digitalmars-d
On Tue, 02 Oct 2018 06:51:10 +0100, Russel Winder wrote: > It turns out there are a number problems with the SCons tests running on > Windows, many of them associated with the D support. > > https://github.com/SCons/scons/issues/3205 > > As you will see I am choosing not to get involved in

Re: Walter's Guide to Translating Code From One Language to Another

2018-09-21 Thread rjframe via Digitalmars-d
On Thu, 20 Sep 2018 23:00:33 -0700, Walter Bright wrote: > The procedure is: > ... > 4. translate the code with as few edits as practical. Do not > reformat the code. Do not refactor it. Do not fix anything, no matter > how tempting. Reproduce the behavior of the original as much as > possible.

Re: Updating D beyond Unicode 2.0

2018-09-26 Thread rjframe via Digitalmars-d
On Fri, 21 Sep 2018 16:27:46 +, Neia Neutuladh wrote: > I've got this coded up and can submit a PR, but I thought I'd get > feedback here first. > > Does anyone see any horrible potential problems here? > > Or is there an interestingly better option? > > Does this need a DIP? I just want

Re: Namespaces like C++

2017-01-16 Thread rjframe via Digitalmars-d-learn
On Mon, 16 Jan 2017 18:02:09 +, Andrey wrote: > Hello, can I using namespaces like in C++, for example: ui::Widget or > ui::Manager? I created ui/widget.d and ui/manager.d for implementation > classes Widget and Manager, bun I can't import their correctly for using > ui.Manager uiManager; >

Re: DMD specify VS version in sc.ini

2016-12-27 Thread rjframe via Digitalmars-d-learn
On Tue, 27 Dec 2016 22:09:49 +, Ryan wrote: > I have a C library I want to link against that was compiled with VS > 2013. I have VS2013 and VS2015 installed. I want DMD to use the 2013 > version, since the C-runtime in 2015 is not backwards compatible. > > Looking at sc.ini I see several

Re: It makes me sick!

2017-07-28 Thread rjframe via Digitalmars-d-learn
On Fri, 28 Jul 2017 05:14:16 +, FoxyBrown wrote: > > You can make any claim you want like: "The end user should install in to > a clean dir so that DMD doesn't get confused and load a module that > doesn't actually have any implementation" but that's just your opinion. I have never seen

bluejay - integration/application test runner

2017-08-11 Thread rjframe via Digitalmars-d-announce
Bluejay is an application test runner, allowing easy writing of cross- platform tests. Bluejay uses Lua (via LuaD) with a small test library and is on the dub registry at http://code.dlang.org/packages/bluejay I also converted the first 37 test cases of DCD[1] to try it out - so those tests

Re: Call for arms: Arch Linux D package maintenance

2017-07-10 Thread rjframe via Digitalmars-d-announce
On Sun, 09 Jul 2017 21:33:15 +, bachmeier wrote: > The answer (assuming things are still run the way they > were back then) is that you're not able to do anything about it. You > won't see anything done with the official package and you won't be able > to put anything in AUR because there is

Re: GDC generate wrong .exe ("not a valid win32 application")

2017-06-19 Thread rjframe via Digitalmars-d-learn
On Mon, 19 Jun 2017 14:08:56 +, Patric Dexheimer wrote: > Fresh install of GDC. (tried with 32x ad 32_64x) > > GDC: 6.3.0 DUB: 1.3.0 > > dub run --build=release --arch=x86 --compiler=gdc > > (...) > Running .\main Failed to spawn new process (%1 is not a valid win32 > application) If you

Re: Why do I have to cast arguments from int to byte?

2017-10-10 Thread rjframe via Digitalmars-d-learn
On Tue, 10 Oct 2017 19:55:36 +, Chirs Forest wrote: > It wouldn't be so bad if I didn't have to use the word cast before each > cast, bust since I have to specify both the word cast and the cast type > and then wrap both the cast type and the value in brackets... it just > explodes my code

Re: D program in Windows Task Scheduler.

2017-11-28 Thread rjframe via Digitalmars-d-learn
On Tue, 28 Nov 2017 09:44:39 +, Vino wrote: > Hi All, > > I have small D program which run's perfectly when i run it > manually, but when I schedule the same via windows task scheduler and > choose the option "Run whether user is logged on or not" the program > does not execute, the task

Re: dirEntries() and exceptions

2017-11-24 Thread rjframe via Digitalmars-d-learn
On Fri, 24 Nov 2017 12:02:47 +, doc wrote: > I'm trying recursively find files, and have some trouble to catch > exceptions if have no permission to read directory. > ... > > std.file.FileException@std/file.d(3798): > /tmp/systemd-private-8338348a306b4d589e3f6ba2bfd0c8fe-systemd-

Re: Windows Share Path

2017-12-03 Thread rjframe via Digitalmars-d-learn
On Sun, 03 Dec 2017 16:42:46 +, vino wrote: > Question: > Is there a way to map network drive in windows using D code, similar to > the windows command such as "net use" or "pushd" or powershell command > New-PSDrive.? > > From, > Vino.B There's WNetAddConnection2[1] and

Re: Windows Share Path

2017-12-02 Thread rjframe via Digitalmars-d-learn
On Sat, 02 Dec 2017 14:16:17 +, Vino wrote: > Hi, > >The script is schedule using a domain user id(domain\user id), > and the windows share are mapped using the same user id /password and > ran the scheduled task by login with the same domain user(Not > Administrator) , the script

Re: Windows Share Path

2017-12-02 Thread rjframe via Digitalmars-d-learn
On Sat, 02 Dec 2017 07:48:14 +, Vino wrote: > On Saturday, 2 December 2017 at 05:08:27 UTC, Vino wrote: >> Hi All, >> >> Request your help, I have samll program which validates the >> file path, the script run perfectly when i run it manually, but if i >> run it via windows task scheduler i

Re: Sort in return statement

2017-12-08 Thread rjframe via Digitalmars-d-learn
On Sat, 09 Dec 2017 02:34:29 +, codephantom wrote: > Anyone got ideas on how to get sort() working in the *return* > statement? > > // > > ushort[] draw8Numbers() > { > import std.meta : aliasSeqOf; > import std.range : iota; > ushort[] numbers = [

Re: GSoC 2018 - Your project ideas

2017-12-11 Thread rjframe via Digitalmars-d-announce
On Mon, 11 Dec 2017 09:14:29 +, Martin Tschierschke wrote: > I recommend to add a "donate for button", and to evaluate and visualize > how many people are donating, for a certain package. This might give > strong evidence where to invest more time - man power. > In the first step the D

Re: Sort in return statement

2017-12-09 Thread rjframe via Digitalmars-d-learn
On Sat, 09 Dec 2017 07:32:42 +, Seb wrote: > > Use .release to obtain the underlying array. No need to do another > allocation! > > ``` > numbers.take(8).sort.release; > ``` I did not realize that was there; thanks.

Re: "Start a Minimal web server" example do not work.

2018-05-08 Thread rjframe via Digitalmars-d-learn
On Tue, 08 May 2018 13:23:07 +, BoQsc wrote: > On Tuesday, 8 May 2018 at 13:04:12 UTC, Seb wrote: >> >> Did you try the newer MSCOFF format >> >> dub --arch=x86_mscoff start_minimum_server.d >> >> or >> >> dub --arch=x64 start_minimum_server.d > > C:\Users\Vaidas\Desktop>dub

Generate documentation for mixin'd function?

2018-06-01 Thread rjframe via Digitalmars-d-learn
Hi I'm making an API for a web service, and have a small collection of endpoints where I'd basically be creating copy+paste functions (a small enough number that this isn't really that important for this project). I thought I'd generate them via a mixin, but haven't seen that I can generate

Re: GDC on Travis-CI

2018-06-02 Thread rjframe via Digitalmars-d-learn
On Sat, 02 Jun 2018 03:15:56 +, crimaniak wrote: > I started to work with Travis-CI, building packages using all three main > compilers, and noticed that I have problems with gdc every time and need > to tweak code because of many things missing. > For example:

Re: Generate documentation for mixin'd function?

2018-06-02 Thread rjframe via Digitalmars-d-learn
On Fri, 01 Jun 2018 22:48:41 -0600, Jonathan M Davis wrote: > > It's currently possible to put ddoc on template mixins but not string > mixins: > > https://issues.dlang.org/show_bug.cgi?id=2420 > > It was fix for template mixins with > > https://issues.dlang.org/show_bug.cgi?id=648 > > but

Re: Determine if CTFE or RT

2018-06-24 Thread rjframe via Digitalmars-d-learn
On Sun, 24 Jun 2018 14:43:09 +, Mr.Bingo wrote: > let is(CTFE == x) mean that x is a compile time constant. CTFE(x) > converts a x to this compile time constant. Passing any compile time > constant essentially turns the variable in to a compile time > constant(effectively turns it in to a

Re: take symbol as parameter

2017-12-30 Thread rjframe via Digitalmars-d-learn
On Sat, 30 Dec 2017 13:07:49 +, Marc wrote: > how do I take a symbol as parameter? > > for example: > >> template nameof(alias S) { >> import std.array : split; >> enum nameof = S.stringof.split(".")[$-1]; >>} > > Works fine for say a enum member such nameof!(myEnum.X) but this:

Re: structs inheriting from and implementing interfaces

2017-12-29 Thread rjframe via Digitalmars-d-learn
On Fri, 29 Dec 2017 12:39:25 +, Nicholas Wilson wrote: > On Friday, 29 December 2017 at 12:03:59 UTC, Mike Franklin wrote: > > The problem is that interfaces are a runtime thing (e.g. you can cast a > class to an interface) > structs implement compile time interfaces via template duck typing

Re: The D Blog in 2017

2018-01-06 Thread rjframe via Digitalmars-d-announce
On Sat, 06 Jan 2018 16:08:06 +, Mike Parker wrote: > My annual retrospective on the D Blog is up. Managing the blog really is > a lot of fun for me. Every time I click the publish button I stay glued > to reddit and the stats page to see how it's being received, with a > glance now and again

Re: ArithEval v0.5.0 released

2018-01-08 Thread rjframe via Digitalmars-d-announce
On Mon, 08 Jan 2018 09:53:22 +, Dechcaudron wrote: > I guess it would not hurt > to change the license to MIT. Would that encourage use by the community? Choosing the license really comes down to what you want to see with the code; if you want to maintain control and ensure that people

Re: dmd error - unrecognized file extension

2018-01-29 Thread rjframe via Digitalmars-d-learn
On Mon, 29 Jan 2018 17:25:34 +, Evan Burkey wrote: > Hi there, I have a problem that is eluding me, hoping someone can help > me see the light. I'm on Windows 10 using the latest version of dmd. I > have a directory with 2 files: "version.txt" and "versioncheck.d". > version.txt contains a

Re: How to proceed with learning to code Windows desktop applications?

2018-01-30 Thread rjframe via Digitalmars-d-learn
On Tue, 30 Jan 2018 05:56:51 +, DanielG wrote: > Then there's all the modern Microsoft stuff (WPF/XAML/WinRT/etc), > but you pretty much have to use either .NET or C++ for that. VS release builds compile to native now by default; for easy Windows programming, you really can't beat C# and

Re: assert and enforce both compiled out with -release

2018-01-27 Thread rjframe via Digitalmars-d-learn
On Sat, 27 Jan 2018 13:52:47 +, kdevel wrote: > https://dlang.org/phobos/std_exception.html#enforce states: > > | Also, do not use enforce inside of contracts (i.e. inside of in and > out blocks | and invariants), because they will be compiled out when > compiling with -release. > | Use

  1   2   >