Re: Array declaration warning

2015-06-03 Thread Ali Çehreli via Digitalmars-d-learn
On 06/03/2015 01:28 PM, Paul wrote: Ooops, this is what I meant to post: struct CoOrd { int x, y; } CoOrd[][NumPaths]pathList; I append values like so... pathList[][n] ~= CoOrd(cX, cY); I don't think you need the empty [] there. pathList[n] is one of the paths and you are

Assoc array typesafe variadic functions

2015-06-03 Thread Mint via Digitalmars-d
I'm a little puzzled by the fact that typesafe variadic functions may be declared to take an associative array, but there seems to be no way of calling the function to take advantage of this. ie. foo is a valid function when declared as: void foo(int[string] bar...) { import

Re: Array declaration warning

2015-06-03 Thread Paul via Digitalmars-d-learn
On Wednesday, 3 June 2015 at 20:33:02 UTC, Ali Çehreli wrote: pathList[][n] ~= CoOrd(cX, cY); I don't think you need the empty [] there. pathList[n] is one of the paths and you are adding a coordinate to it: Urgh, *that* is how I was confusing myself, the rest of the code 'looks right'.

[Issue 14642] [REG2.066] ICE in ctfeInterpret

2015-06-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14642 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e555b562d733e23bc632c12917505e680b10 fix Issue 14642 - ICE in

[Issue 14646] Add a documented way to invoke postblit

2015-06-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14646 --- Comment #1 from timon.g...@gmx.ch --- Forum discussion: http://forum.dlang.org/thread/kmvlhvzfxtocnsxqi...@forum.dlang.org?page=4#post-mklmbc:242bem:241:40digitalmars.com --

[Issue 14646] Add a documented way to invoke postblit

2015-06-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14646 timon.g...@gmx.ch changed: What|Removed |Added Hardware|x86_64 |All OS|Linux

Re: Union redux

2015-06-03 Thread Timon Gehr via Digitalmars-d
On 06/03/2015 03:47 AM, Andrei Alexandrescu wrote: On 6/2/15 5:53 PM, Timon Gehr wrote: Indeed, but I think this facility is undocumented. Maybe it should be exposed via the standard library? A good idea, please bugzilla so we don't forget. -- Andrei

Re: rvalue references

2015-06-03 Thread Timon Gehr via Digitalmars-d
On 06/03/2015 05:43 AM, bitwise wrote: Why can't const ref accept rvalues? const being too restrictive doesn't seem like a real reason, because although its undesirable for some cases, doesn't mean it can't be useful in a _lot_ of other cases. Its a real reason unless you endorse patchwork

[Issue 14646] New: Add a documented way to invoke postblit

2015-06-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14646 Issue ID: 14646 Summary: Add a documented way to invoke postblit Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement

Re: rvalue references

2015-06-03 Thread Timon Gehr via Digitalmars-d
On 06/02/2015 11:21 PM, Andrei Alexandrescu wrote: Yah, auto ref for templates is great. We only need to add auto ref for non-templates with the semantics like ref, except (a) accepts rvalues on the caller side, (b) does not allow escaping the ref from the function. What if one wants those

Re: Reggae: a metabuild system in D (Daniel, you should read this). Now with more dub. And package builds.

2015-06-03 Thread Dicebot via Digitalmars-d-announce
Looks promising so far. I will create separate issues in actual repo for desired improvements.

Re: Negation of attributes (DIP 79)

2015-06-03 Thread tcak via Digitalmars-d
If this DIP will be accepted, please make it work for !shared as well. I don't know whether any of you has experienced though, in some cases, cast() doesn't remove shared attribute at all, and I need to write half the screen, name of same class again.

[Issue 14647] New: std.random like 3015 heisenbug with FreeBSD_32

2015-06-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14647 Issue ID: 14647 Summary: std.random like 3015 heisenbug with FreeBSD_32 Product: D Version: D2 Hardware: x86 OS: FreeBSD Status: NEW Severity: normal

[Issue 14647] std.random line 3015 heisenbug with FreeBSD_32

2015-06-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14647 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Summary|std.random like 3015|std.random line 3015

[Issue 14648] New: DIP25's return attribute breaks safety checks

2015-06-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14648 Issue ID: 14648 Summary: DIP25's return attribute breaks safety checks Product: D Version: D2 Hardware: x86_64 URL: https://gist.github.com/Hackerpilot/d665a0d5c80ddc1634

Re: Negation of attributes (DIP 79)

2015-06-03 Thread Andrei Alexandrescu via Digitalmars-d
On 6/3/15 2:19 PM, Jonathan M Davis wrote: Regardless, I think that attribute(boolean expression) is the clear winner, because it's for more flexible. Yes please. -- Andrei

Re: Use SIMD to accelerate comment lexing

2015-06-03 Thread Walter Bright via Digitalmars-d
On 6/2/2015 4:08 PM, Manu via Digitalmars-d wrote: I'll wear responsibility for this, but std.simd is proving really hard for me to finish. I think in order to get something in there to start with, I need to reduce the scope to the simplest bits, get them in, then build outwards. It's fairly

Call-ie return on behalf of caller?

2015-06-03 Thread Tofu Ninja via Digitalmars-d-learn
Is there a way other than exceptions for a called function to force the caller to return? Specifically, I know the return type of the caller(its always bool) and under certain circumstances I would like the caller to just give up and return false if the called function fails. With as little

Re: Negation of attributes (DIP 79)

2015-06-03 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, 2 June 2015 at 10:29:35 UTC, Daniel Kozak wrote: I am working on dip which will try to addressed negation of attributes issue. http://wiki.dlang.org/DIP79 You need to iron out what happens with attributes like @safe/@trusted/@system or public/protected/package/private. Simply

[Issue 14578] [ddemangle] core.exception.InvalidMemoryOperationError@(0) handling large symbol list

2015-06-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14578 --- Comment #11 from Iain Buclaw ibuc...@gdcproject.org --- (In reply to Steven Schveighoffer from comment #10) I finally reproduced with 2.067 and 2.067.1, it's definitely Linux specific. However, this is fixed in the HEAD version (at least using

Re: Assoc array typesafe variadic functions

2015-06-03 Thread extrawurst via Digitalmars-d
On Wednesday, 3 June 2015 at 19:09:52 UTC, Mint wrote: I'm a little puzzled by the fact that typesafe variadic functions may be declared to take an associative array, but there seems to be no way of calling the function to take advantage of this. ie. foo is a valid function when declared as:

Re: Use SIMD to accelerate comment lexing

2015-06-03 Thread Walter Bright via Digitalmars-d
On 6/2/2015 5:45 PM, deadalnix wrote: Well, I discussed that with clang people a while ago and here are how they do it and their measurement : You go though character and look for a '/'. When you hit one, you check if the character before it is a *, and if so, you have the end of the comment.

Re: rvalue references

2015-06-03 Thread Namespace via Digitalmars-d
This code needs to be disallowed under DIP25 (or whatever the final DIP will be), of course. But should work with return ref instead.

Re: rvalue references

2015-06-03 Thread via Digitalmars-d
On Tuesday, 2 June 2015 at 18:06:32 UTC, Namespace wrote: On Tuesday, 2 June 2015 at 17:22:07 UTC, Marc Schütz wrote: On Tuesday, 2 June 2015 at 16:02:56 UTC, Namespace wrote: Thanks to DIP 25 I think it's time to review this again. I would implement it (if no one else wants to do it), but

Re: rvalue references

2015-06-03 Thread via Digitalmars-d
On Tuesday, 2 June 2015 at 17:31:56 UTC, Jonathan M Davis wrote: On Tuesday, 2 June 2015 at 17:22:07 UTC, Marc Schütz wrote: On Tuesday, 2 June 2015 at 16:02:56 UTC, Namespace wrote: Thanks to DIP 25 I think it's time to review this again. I would implement it (if no one else wants to do it),

Re: dmd makes D appear slow

2015-06-03 Thread via Digitalmars-d
On Wednesday, 3 June 2015 at 07:50:53 UTC, Paulo Pinto wrote: On Wednesday, 3 June 2015 at 07:05:37 UTC, Dicebot wrote: Project size is irrelevant here. I had 500 line C++ project that took 10 minutes to compile (hello boost::spirit). It is impossible for C++ to compile faster than D by

Re: rvalue references

2015-06-03 Thread via Digitalmars-d
On Wednesday, 3 June 2015 at 07:09:09 UTC, Namespace wrote: On Wednesday, 3 June 2015 at 03:57:38 UTC, bitwise wrote: I forgot to mention, in terms of this statement I made: I can't remember right now what the reasoning was for 'const ref' not to take rvalues in the first place. I think it

[Issue 14644] Wikipedia page on Generic Programming should have a section on D

2015-06-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14644 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added CC|

Re: Allow deprecated to accept more than string literals while parsing

2015-06-03 Thread Daniel Murphy via Digitalmars-d
Dicebot wrote in message news:odfsgqcftykjkztsg...@forum.dlang.org... Is there any reason to not allow argument to be any expression and reject non-string ones at semantic phase? The original reason is that trying to reference manifest constants etc from that context resulted in forward

Re: Premake officially gains D support

2015-06-03 Thread Atila Neves via Digitalmars-d
On Tuesday, 2 June 2015 at 20:51:36 UTC, weaselcat wrote: On Tuesday, 2 June 2015 at 08:23:08 UTC, Manu wrote: Curious to know if anyone here uses Premake, or cares...? would care more if it had ninja support, ninja is vastly superior to makefiles when using a meta buildtool system.

How does the compiler avoid creating a closure here?

2015-06-03 Thread Andrei Alexandrescu via Digitalmars-d
Consider http://dpaste.dzfl.pl/fork/ae75176d7d3f. It's a bit roundabout but in brief it instantiates a template with a nested function. The nested function, in turn, uses a parameter in its environment. By the canon, that function needs to create a closure with dynamically-allocated

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-03 Thread Jacob Carlborg via Digitalmars-d
On 2015-06-02 22:02, Atila Neves wrote: So does cerealed, in one of two ways, postBlit being the _much_ better one: I forgot to mention that Orange also supports pre and post actions/callbacks [1]. [1] https://github.com/jacob-carlborg/orange/blob/master/tests/Events.d -- /Jacob Carlborg

Re: Anybody know of a large D project for me to time builds on?

2015-06-03 Thread Jacob Carlborg via Digitalmars-d
On 2015-06-02 23:00, Atila Neves wrote: Largest I've found so far is Phobos (90k SLOC according to dscanner), which I have to write a build description for. I really want to get some memory and speed stats and compare the current state of affairs with using Ninja on it. _Especially_ when it

Re: dmd makes D appear slow

2015-06-03 Thread Paulo Pinto via Digitalmars-d
On Wednesday, 3 June 2015 at 07:05:37 UTC, Dicebot wrote: Project size is irrelevant here. I had 500 line C++ project that took 10 minutes to compile (hello boost::spirit). It is impossible for C++ to compile faster than D by design. Any time it seems so you either aren't comparing same thing

[OT] Chromebook

2015-06-03 Thread Joakim via Digitalmars-d
On Wednesday, 3 June 2015 at 04:36:31 UTC, weaselcat wrote: chromebooks weren't even really usable until the latter half of 2013/start of 2014 when Acer/HP/Dell/Toshiba/etc all got on board and it stopped being just Samsung making them. 2% is huge for less than 2 years. That was the chromebook

Re: Premake officially gains D support

2015-06-03 Thread Manu via Digitalmars-d
On 3 June 2015 at 06:51, weaselcat via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 2 June 2015 at 08:23:08 UTC, Manu wrote: Curious to know if anyone here uses Premake, or cares...? would care more if it had ninja support, ninja is vastly superior to makefiles when using a

Re: rvalue references

2015-06-03 Thread Namespace via Digitalmars-d
On Wednesday, 3 June 2015 at 10:07:41 UTC, Marc Schütz wrote I don't see an argument against `scope ref` in DIP36, quite the opposite... I know I was one of the authors. But it was rejected.

Re: rvalue references

2015-06-03 Thread via Digitalmars-d
On Wednesday, 3 June 2015 at 09:53:36 UTC, Namespace wrote: This code needs to be disallowed under DIP25 (or whatever the final DIP will be), of course. But should work with return ref instead. It can even be allowed with an extension to DIP25: struct Sprite { private Texture* _tex;

[Issue 14642] ICE in ctfeInterpret

2015-06-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14642 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Hardware|x86 |All

Re: [OT] Chromebook

2015-06-03 Thread weaselcat via Digitalmars-d
On Wednesday, 3 June 2015 at 09:27:49 UTC, Paulo Pinto wrote: On Wednesday, 3 June 2015 at 08:48:03 UTC, weaselcat wrote: On Wednesday, 3 June 2015 at 08:44:28 UTC, Paulo Pinto wrote: Stream?! I had to search for it, only found the HP Stream model, running a full Windows 8.1 OS, not a

Re: Breaking changes in Visual C++ 2015

2015-06-03 Thread Bruno Medeiros via Digitalmars-d
On 08/05/2015 15:03, Chris wrote: The funny thing is that people keep complaining about the lack of tools for D, and when a tool is built into the language they say That tool shouldn't be part of the language. Yet, if it were omitted, people would say Why doesn't D have this tool built in?.

Re: std.experimental.testing PR review

2015-06-03 Thread Atila Neves via Digitalmars-d
On Wednesday, 3 June 2015 at 07:30:31 UTC, Jacob Carlborg wrote: On 2015-04-20 15:28, Atila Neves wrote: Original library: http://code.dlang.org/packages/unit-threaded PR: https://github.com/D-Programming-Language/phobos/pull/3207 * Would it be possible to make the should functions more

Re: std.experimental.testing PR review

2015-06-03 Thread Atila Neves via Digitalmars-d
On Wednesday, 3 June 2015 at 07:42:58 UTC, Jacob Carlborg wrote: On 2015-04-20 15:28, Atila Neves wrote: Original library: http://code.dlang.org/packages/unit-threaded PR: https://github.com/D-Programming-Language/phobos/pull/3207 No Cucumber tests? This is what you're up against [1] ;). I

Re: string to char array?

2015-06-03 Thread Kyoji Klyden via Digitalmars-d-learn
Ooooh okay, I'm starting to get it. I think this last question should clear it up for me: When a string is made, how is the struct Slice handled? What does ptr get assigned?

Re: dmd makes D appear slow

2015-06-03 Thread via Digitalmars-d
sure what you mean. A theoretical compiler doesn't matter; what actual compilers do does. Of course it does, it defines how far you can go in a concurrent build process before hitting an unsurpassable bottle-neck. (not that I personally care, as I find both C++ and D compilers to be fast

Re: Make dub part of the standard dmd distribution

2015-06-03 Thread Jacob Carlborg via Digitalmars-d
On 2015-06-02 10:54, ketmar wrote: that was the thing i once proposed. see, we have a powerful scripting language inside DMD: D! yet we never used all it's power to do something really exciting -- like, for example, preparing command lines for external package fetching tool and parsing the

Re: dmd makes D appear slow

2015-06-03 Thread Atila Neves via Digitalmars-d
There are lots of features in D, that C++ does not have, that will make separate compilation and partial evaluation/incomplete types difficult. So C++ is faster than D by design, even when the compiler isn't. I've tried to parse that last sentence a few times and I'm not sure what you mean.

[Issue 14644] Wikipedia page on Generic Programming should have a section on D

2015-06-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14644 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: dmd makes D appear slow

2015-06-03 Thread via Digitalmars-d
On Wednesday, 3 June 2015 at 11:06:39 UTC, weaselcat wrote: it can get even better if you properly modularize your projects instead of having 1-2 files that build slow, which causes a lot of waiting. Yes, sure. You can probably get the same build speeds as with C if you organize your code in

Re: dmd makes D appear slow

2015-06-03 Thread via Digitalmars-d
On Wednesday, 3 June 2015 at 11:35:43 UTC, weaselcat wrote: ah yes, those famous fast C build times. Excuse me while I go take half an hour to build GDB. Heh... It is possible to write very fast C compilers with high concurrency in builds, if there is a market for it, but most people want

Re: Anybody know of a large D project for me to time builds on?

2015-06-03 Thread Jacob Carlborg via Digitalmars-d
On 2015-06-03 09:53, Jacob Carlborg wrote: Both Tango [1] and DWT [2] are large projects. They are mostly using D1 features, not so much templates and similar stuff. It could be interesting as well. [1] https://github.com/SiegeLord/Tango-D2 [2] https://github.com/d-widget-toolkit/dwt Number

Re: Uphill

2015-06-03 Thread via Digitalmars-d
On Wednesday, 3 June 2015 at 07:47:04 UTC, Dan Olson wrote: Dan Olson go...@comcast.net writes: Meant Is there a way? to do such a thing with templates. I don't think there is a way to turn symbols into strings without a table or #preprocessing. In C++ I would personally have used a table

Re: Make dub part of the standard dmd distribution

2015-06-03 Thread Jacob Carlborg via Digitalmars-d
On 2015-06-02 16:52, Steven Schveighoffer wrote: Actually, I don't. dmd *.d generally works fine. I if it works for you, great. It doesn't work for me. And that shell globbing doesn't work on Windows. -- /Jacob Carlborg

Re: Wikipedia article on Generic Programming should have a section on D

2015-06-03 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, 3 June 2015 at 03:14:02 UTC, Andrei Alexandrescu wrote: Any takers? https://issues.dlang.org/show_bug.cgi?id=14644 -- Andrei Wait, didn't you just give a talk about how generic programming must go? ;)

Re: [OT] Chromebook

2015-06-03 Thread weaselcat via Digitalmars-d
On Wednesday, 3 June 2015 at 08:44:28 UTC, Paulo Pinto wrote: Stream?! I had to search for it, only found the HP Stream model, running a full Windows 8.1 OS, not a browser pretending to be an OS. -- Paulo Yes, and that full Windows 8.1 OS makes it run 2-3x slower than equivalent hardware

Re: Use SIMD to accelerate comment lexing

2015-06-03 Thread Johannes Pfau via Digitalmars-d
Am Wed, 3 Jun 2015 09:08:52 +1000 schrieb Manu via Digitalmars-d digitalmars-d@puremagic.com: As an aside, I need a test environment for each compiler, targetting x86, x64 and arm at least, where I can submit some code, and have it run the unittests on a matrix of appropriate targets. (ideally

Re: rvalue references

2015-06-03 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, 3 June 2015 at 03:43:09 UTC, bitwise wrote: I can't remember right now what the reasoning was for 'const ref' not to take rvalues in the first place. I think it was that you could escape the reference, but this isn't true anymore with DIP25 right? The one to ask is Andrei. I

[Issue 14644] Wikipedia page on Generic Programming should have a section on D

2015-06-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14644 bb.t...@gmx.com changed: What|Removed |Added CC||bb.t...@gmx.com --- Comment #4 from

Re: Uphill

2015-06-03 Thread Paulo Pinto via Digitalmars-d
On Wednesday, 3 June 2015 at 04:40:14 UTC, weaselcat wrote: On Wednesday, 3 June 2015 at 04:36:31 UTC, weaselcat wrote: On Wednesday, 3 June 2015 at 03:41:39 UTC, Joakim wrote: On Tuesday, 2 June 2015 at 22:38:47 UTC, weaselcat wrote: They're insanely popular, especially in educational

Re: Use SIMD to accelerate comment lexing

2015-06-03 Thread Jacob Carlborg via Digitalmars-d
On 2015-06-03 01:08, Manu via Digitalmars-d wrote: It's fairly large to cover everything I think is important, and there's a few tools missing still; I can't finish without some way to know the SIMD flags fed to the compiler from the command line (some standard versions?), and it's also

Re: Uphill

2015-06-03 Thread Dan Olson via Digitalmars-d
Dan Olson go...@comcast.net writes: Stringify - here I want to rapidly prototype code with syscalls that need return values checked, and get nice output when they fails. My C++ template skills are weak and was unable to come up with an equivalent replacement. Is this a way? Meant Is there a

Re: [OT] Chromebook

2015-06-03 Thread weaselcat via Digitalmars-d
On Wednesday, 3 June 2015 at 08:34:22 UTC, Joakim wrote: On Wednesday, 3 June 2015 at 04:36:31 UTC, weaselcat wrote: chromebooks weren't even really usable until the latter half of 2013/start of 2014 when Acer/HP/Dell/Toshiba/etc all got on board and it stopped being just Samsung making them.

Re: dmd makes D appear slow

2015-06-03 Thread via Digitalmars-d
On Wednesday, 3 June 2015 at 07:05:37 UTC, Dicebot wrote: It is impossible for C++ to compile faster than D by design. Any time it seems so you either aren't comparing same thing or get misinformed. Or do straightforward separate compilation. There are lots of features in D, that C++ does not

Re: Travis-CI support for D

2015-06-03 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-06-02 23:37, extrawurst wrote: I remember the linter did not chew my config files either months ago, maybe it is not in-sync with the rest of the platform.. german wertarbeit Yeah, I remember testing the linter just when the D support was announced, it didn't work back then. --

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-03 Thread Atila Neves via Digitalmars-d
On Wednesday, 3 June 2015 at 07:00:23 UTC, Jacob Carlborg wrote: On 2015-06-02 22:02, Atila Neves wrote: So does cerealed, in one of two ways, postBlit being the _much_ better one: I forgot to mention that Orange also supports pre and post actions/callbacks [1]. [1]

Re: std.experimental.testing PR review

2015-06-03 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-20 15:28, Atila Neves wrote: Original library: http://code.dlang.org/packages/unit-threaded PR: https://github.com/D-Programming-Language/phobos/pull/3207 * Would it be possible to make the should functions more composeable. Instead of a.shouldEqual(b) something like

Re: [OT] Chromebook

2015-06-03 Thread Paulo Pinto via Digitalmars-d
On Wednesday, 3 June 2015 at 08:38:09 UTC, weaselcat wrote: On Wednesday, 3 June 2015 at 08:34:22 UTC, Joakim wrote: On Wednesday, 3 June 2015 at 04:36:31 UTC, weaselcat wrote: chromebooks weren't even really usable until the latter half of 2013/start of 2014 when Acer/HP/Dell/Toshiba/etc all

Re: DevDocs.io: voting for D

2015-06-03 Thread Robert M. Münch via Digitalmars-d-announce
On 2015-06-02 16:42:40 +, sigod said: Hi everyone. Please vote for D to be added to https://DevDocs.io: https://trello.com/c/bCgqhZ4s/123-d About DevDocs (copy-pasted from index page): ``` For OSX users I can recommend: https://kapeli.com/dash No D documentaiton (yet) but could be

Re: Make dub part of the standard dmd distribution

2015-06-03 Thread Jacob Carlborg via Digitalmars-d
On 2015-06-02 17:01, Nick Sabalausky wrote: Related to this, does anyone happen to recall why rdmd uses dmd -v to get dependencies instead of dmd -deps? IIRC, it used to use -deps back at one time. I would assumed it uses -v because it existed before -deps? I guess -deps was explicitly

Re: How does the compiler avoid creating a closure here?

2015-06-03 Thread Walter Bright via Digitalmars-d
On 6/2/2015 11:05 PM, Andrei Alexandrescu wrote: Consider http://dpaste.dzfl.pl/fork/ae75176d7d3f. It's a bit roundabout but in brief it instantiates a template with a nested function. The nested function, in turn, uses a parameter in its environment. By the canon, that function needs to create

Re: dmd makes D appear slow

2015-06-03 Thread Shachar Shemesh via Digitalmars-d
On 02/06/15 21:56, weaselcat wrote: On Monday, 1 June 2015 at 15:40:55 UTC, Steven Schveighoffer wrote: My original statement was obviously exaggerated, I would not put up with days-long compile times, I'd find another way to do development. But compile time is not as important to me as it is

Re: rvalue references

2015-06-03 Thread Namespace via Digitalmars-d
On Wednesday, 3 June 2015 at 03:57:38 UTC, bitwise wrote: I forgot to mention, in terms of this statement I made: I can't remember right now what the reasoning was for 'const ref' not to take rvalues in the first place. I think it was that you could escape the reference, but this isn't true

Re: dmd makes D appear slow

2015-06-03 Thread Dicebot via Digitalmars-d
Project size is irrelevant here. I had 500 line C++ project that took 10 minutes to compile (hello boost::spirit). It is impossible for C++ to compile faster than D by design. Any time it seems so you either aren't comparing same thing or get misinformed. Or do straightforward separate

Re: Uphill

2015-06-03 Thread Dan Olson via Digitalmars-d
Ola Fosheim Grøstad\ ola.fosheim.grostad+dl...@gmail.com writes: On Monday, 1 June 2015 at 16:09:34 UTC, Dan Olson wrote: Timely! I and stack overflow struggled for a couple hours to find an equivalent C++ template for something that was straightforward with a couple macros. …but without

[Issue 14644] Wikipedia page on Generic Programming should have a section on D

2015-06-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14644 dennis.m.ritc...@mail.ru changed: What|Removed |Added CC||dennis.m.ritc...@mail.ru ---

Re: Why aren't you using D at work?

2015-06-03 Thread Rikki Cattermole via Digitalmars-d
On 3/06/2015 5:22 p.m., Kelet wrote: On Wednesday, 3 June 2015 at 03:47:00 UTC, Rikki Cattermole wrote: On 3/06/2015 3:35 p.m., Kelet wrote: For a small amount of software at work I'm able to use D. Most recently, I used D vibe.d to communicate with a conveyor belt system for a warehouse. I'd

Re: Premake officially gains D support

2015-06-03 Thread weaselcat via Digitalmars-d
On Wednesday, 3 June 2015 at 06:00:42 UTC, Atila Neves wrote: On Tuesday, 2 June 2015 at 20:51:36 UTC, weaselcat wrote: On Tuesday, 2 June 2015 at 08:23:08 UTC, Manu wrote: Curious to know if anyone here uses Premake, or cares...? would care more if it had ninja support, ninja is vastly

Re: Why aren't you using D at work?

2015-06-03 Thread Dan Olson via Digitalmars-d
Jacob Carlborg d...@me.com writes: On 2015-06-01 18:38, Dan Olson wrote: Yeah, we need to work on getting iOS support into LDC main offering. For now there is a stumbling block (at least perceived by me) of requiring a patched LLVM to support TLS on iOS. How you tried contributing that

Re: std.experimental.testing PR review

2015-06-03 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-20 15:28, Atila Neves wrote: Original library: http://code.dlang.org/packages/unit-threaded PR: https://github.com/D-Programming-Language/phobos/pull/3207 No Cucumber tests? This is what you're up against [1] ;). I think the Cucumber tests in RSpec are a perfect example of how to

Re: Use SIMD to accelerate comment lexing

2015-06-03 Thread Manu via Digitalmars-d
On 3 June 2015 at 17:50, Jacob Carlborg via Digitalmars-d digitalmars-d@puremagic.com wrote: On 2015-06-03 01:08, Manu via Digitalmars-d wrote: It's fairly large to cover everything I think is important, and there's a few tools missing still; I can't finish without some way to know the SIMD

Re: [OT] Chromebook

2015-06-03 Thread Paulo Pinto via Digitalmars-d
On Wednesday, 3 June 2015 at 08:48:03 UTC, weaselcat wrote: On Wednesday, 3 June 2015 at 08:44:28 UTC, Paulo Pinto wrote: Stream?! I had to search for it, only found the HP Stream model, running a full Windows 8.1 OS, not a browser pretending to be an OS. -- Paulo Yes, and that full

Re: dmd makes D appear slow

2015-06-03 Thread weaselcat via Digitalmars-d
On Wednesday, 3 June 2015 at 09:21:55 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 3 June 2015 at 07:05:37 UTC, Dicebot wrote: It is impossible for C++ to compile faster than D by design. Any time it seems so you either aren't comparing same thing or get misinformed. Or do straightforward

Re: dmd makes D appear slow

2015-06-03 Thread weaselcat via Digitalmars-d
On Wednesday, 3 June 2015 at 11:25:50 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 3 June 2015 at 11:06:39 UTC, weaselcat wrote: it can get even better if you properly modularize your projects instead of having 1-2 files that build slow, which causes a lot of waiting. Yes, sure. You can

Re: dmd makes D appear slow

2015-06-03 Thread Steven Schveighoffer via Digitalmars-d
On 6/3/15 3:50 AM, Paulo Pinto wrote: On Wednesday, 3 June 2015 at 07:05:37 UTC, Dicebot wrote: Project size is irrelevant here. I had 500 line C++ project that took 10 minutes to compile (hello boost::spirit). It is impossible for C++ to compile faster than D by design. Any time it seems so

Re: dmd makes D appear slow

2015-06-03 Thread Steven Schveighoffer via Digitalmars-d
On 6/3/15 10:19 AM, Paulo Pinto wrote: On Wednesday, 3 June 2015 at 14:08:33 UTC, Steven Schveighoffer wrote: On 6/3/15 3:50 AM, Paulo Pinto wrote: On Wednesday, 3 June 2015 at 07:05:37 UTC, Dicebot wrote: Project size is irrelevant here. I had 500 line C++ project that took 10 minutes to

Re: dmd makes D appear slow

2015-06-03 Thread Paulo Pinto via Digitalmars-d
On Wednesday, 3 June 2015 at 14:08:33 UTC, Steven Schveighoffer wrote: On 6/3/15 3:50 AM, Paulo Pinto wrote: On Wednesday, 3 June 2015 at 07:05:37 UTC, Dicebot wrote: Project size is irrelevant here. I had 500 line C++ project that took 10 minutes to compile (hello boost::spirit). It is

Re: Why aren't you using D at work?

2015-06-03 Thread Jonas Drewsen via Digitalmars-d
On Wednesday, 3 June 2015 at 04:53:05 UTC, ketmar wrote: On Wed, 03 Jun 2015 03:27:35 +, weaselcat wrote: On Wednesday, 3 June 2015 at 03:15:32 UTC, Jonathan M Davis wrote: On Sunday, 31 May 2015 at 03:03:22 UTC, Danni Coy wrote: so is std.xml the exception? How many other parts of the

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-03 Thread Jonas Drewsen via Digitalmars-d
On Monday, 1 June 2015 at 19:41:58 UTC, Jacob Carlborg wrote: On 2015-06-01 21:22, CraigDillabaugh wrote: I noticed there hasn't been any activity on the Github repo for 8 months. Why is that? Do you consider this a completely finished product, or are you held up by the PHobos review

[Issue 14642] [REG2.066] ICE in ctfeInterpret

2015-06-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14642 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||ice, pull

[Issue 14644] Wikipedia page on Generic Programming should have a section on D

2015-06-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14644 --- Comment #7 from Andrei Alexandrescu and...@erdani.com --- (In reply to Vladimir Panteleev from comment #6) https://en.wikipedia.org/wiki/Generic_programming#Templates_in_D Thanks Vladimir!! --

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-03 Thread Jacob Carlborg via Digitalmars-d
On 2015-06-03 09:26, Atila Neves wrote: From the unit tests, that doesn't seem to do the same thing, but I could be wrong. No, it does not. But it can still be useful. Like if you want to do any post processing after deserialization. -- /Jacob Carlborg

[Issue 2091] D2 final cannot be applied to variable

2015-06-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2091 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull --- Comment #4 from

Re: Working on new binary serialization module for phobos (hopefully)

2015-06-03 Thread Atila Neves via Digitalmars-d
On Wednesday, 3 June 2015 at 12:15:43 UTC, Jacob Carlborg wrote: On 2015-06-03 09:26, Atila Neves wrote: From the unit tests, that doesn't seem to do the same thing, but I could be wrong. No, it does not. But it can still be useful. Like if you want to do any post processing after

Re: Why aren't you using D at work?

2015-06-03 Thread Jacob Carlborg via Digitalmars-d
On 2015-06-03 09:43, Dan Olson wrote: Not yet. I greedily work on puzzles I think I can solve.. But since you have patched LLVM you have already solved the issue ;) On the other hand, a Rust dev last year was able to use the iOS TLS patch to LLVM and perhaps made some progress. Or found

Re: Breaking changes in Visual C++ 2015

2015-06-03 Thread Paulo Pinto via Digitalmars-d
On Wednesday, 3 June 2015 at 10:40:14 UTC, Bruno Medeiros wrote: On 08/05/2015 15:03, Chris wrote: The funny thing is that people keep complaining about the lack of tools for D, and when a tool is built into the language they say That tool shouldn't be part of the language. Yet, if it were

Re: dmd makes D appear slow

2015-06-03 Thread Paulo Pinto via Digitalmars-d
On Wednesday, 3 June 2015 at 10:37:24 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 3 June 2015 at 07:50:53 UTC, Paulo Pinto wrote: On Wednesday, 3 June 2015 at 07:05:37 UTC, Dicebot wrote: Project size is irrelevant here. I had 500 line C++ project that took 10 minutes to compile (hello

Re: dmd makes D appear slow

2015-06-03 Thread via Digitalmars-d
On Wednesday, 3 June 2015 at 12:20:29 UTC, Paulo Pinto wrote: Yes really, specially when comparing with Turbo Pascal, Delphi, Modula-2, Oberon and a few other languages not tied to UNIX linker model. Yeah, I agree that the implementation for Turbo Pascal was good for the hardware it ran on.

Re: Negation of attributes (DIP 79)

2015-06-03 Thread Kenji Hara via Digitalmars-d
For final, override, abstract, and synchronized attributes, I'm trying to relax the limitation in: https://issues.dlang.org/show_bug.cgi?id=2091 https://github.com/D-Programming-Language/dmd/pull/4714 Kenji Hara 2015-06-03 13:47 GMT+09:00 ketmar via Digitalmars-d digitalmars-d@puremagic.com:

[Issue 14645] New: Russian Wikipedia page on D needs a total revision

2015-06-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14645 Issue ID: 14645 Summary: Russian Wikipedia page on D needs a total revision Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

[Issue 14645] Russian Wikipedia page on D needs a total revision

2015-06-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14645 dennis.m.ritc...@mail.ru changed: What|Removed |Added CC||dennis.m.ritc...@mail.ru --

  1   2   >