Re: D is not popular enough because..

2016-08-22 Thread jklp via Digitalmars-d
On Monday, 22 August 2016 at 23:40:50 UTC, Bill Hicks wrote: On Monday, 22 August 2016 at 06:47:43 UTC, Johnjo Willoughby wrote: "We decided not to fix the suspension but we painted some cool flames on the bonnet for you... isn't it awesome!!!". "Huh???" "Well you can still drive it, just try

Re: [GSoC] Mir.random.flex - Generic non-uniform random sampling

2016-08-22 Thread Ilya Yaroshenko via Digitalmars-d-announce
On Monday, 22 August 2016 at 18:09:28 UTC, Meta wrote: On Monday, 22 August 2016 at 15:34:47 UTC, Seb wrote: Hey all, I am proud to publish a report of my GSoC work as two extensive blog posts, which explain non-uniform random sampling and the mir.random.flex package (part of Mir >

Re: Rebind template(bug?)

2016-08-22 Thread ag0aep6g via Digitalmars-d-learn
On 08/23/2016 03:23 AM, Engine Machine wrote: On Monday, 22 August 2016 at 22:52:28 UTC, ag0aep6g wrote: [...] Simply not replying is an option, too. It may be a bit less polite, but it's better than escalating things. True, but then you should also take your own advice. Yeah, I'm going to

Re: [GSoC] Mir.random.flex - Generic non-uniform random sampling

2016-08-22 Thread Mike Parker via Digitalmars-d-announce
On Monday, 22 August 2016 at 15:34:47 UTC, Seb wrote: Hey all, I am proud to publish a report of my GSoC work as two extensive blog posts, which explain non-uniform random sampling and the mir.random.flex package (part of Mir > 0.16-beta2):

Re: How to avoid ctRegex (solved)

2016-08-22 Thread ag0aep6g via Digitalmars-d-learn
On 08/23/2016 06:06 AM, cy wrote: On Sunday, 21 August 2016 at 21:18:11 UTC, ag0aep6g wrote: I may be missing the point here, but just putting `auto pattern = regex("foobar");` at module level works for me. Really? I thought global variables could only be initialized with static stuff

Re: D is not popular enough because..

2016-08-22 Thread cy via Digitalmars-d
Why fix the suspension? You can pass it as a template parameter and have your driving skills work on any broke-ass suspension!

Re: Queuing up operations to run as a batch (example)

2016-08-22 Thread cy via Digitalmars-d
And now I remember that people still use the stupid default of 8 spaces per tab, and I can't specify to use 2 in the text. mixin template Batch(alias transaction, alias operation, size_t max = 0x10) { import std.typecons: Tuple, tuple; import std.traits: Parameters,ReturnType; import

Queuing up operations to run as a batch (example)

2016-08-22 Thread cy via Digitalmars-d
aka I finally found a use for mixin templates :p When I can batch up operations and run them quicker all at once, I usually make a list of those operations and append to it in lieu of calling the operation. Then periodically flushing the list, and actually calling the operation. Database

Re: How to avoid ctRegex (solved)

2016-08-22 Thread cy via Digitalmars-d-learn
On Sunday, 21 August 2016 at 21:18:11 UTC, ag0aep6g wrote: I may be missing the point here, but just putting `auto pattern = regex("foobar");` at module level works for me. Really? I thought global variables could only be initialized with static stuff available during compile time, and you

[Issue 16416] New: Phobos std.uni out of date (should be updated to latest Unicode standard)

2016-08-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16416 Issue ID: 16416 Summary: Phobos std.uni out of date (should be updated to latest Unicode standard) Product: D Version: D2 Hardware: All OS: All

[Issue 14238] DIP25: escape checks can be circumvented with delegate

2016-08-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14238 --- Comment #2 from Walter Bright --- https://github.com/dlang/dmd/pull/5972 --

Re: Always false float comparisons

2016-08-22 Thread Timon Gehr via Digitalmars-d
On 22.08.2016 20:26, Joakim wrote: Sorry, I stopped reading this thread after my last response, as I felt I was wasting too much time on this discussion, so I didn't read your response till now. ... No problem. Would have been fine with me if it stayed that way. On Saturday, 21 May 2016 at

Re: Rebind template(bug?)

2016-08-22 Thread Engine Machine via Digitalmars-d-learn
On Monday, 22 August 2016 at 22:52:28 UTC, ag0aep6g wrote: On Monday, 22 August 2016 at 21:46:35 UTC, Engine Machine wrote: I'm sorry if it confuses you... it doesn't confuse me. You needed quite some help to get this thing to work. And you made some mistakes and wrong statements in the

[Issue 16409] Add support for assign-style switches

2016-08-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16409 Andrej Mitrovic changed: What|Removed |Added CC|

[Issue 16122] user-friendly CLI interface for dmd

2016-08-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16122 Andrej Mitrovic changed: What|Removed |Added Status|NEW |RESOLVED

Re: D is not popular enough because..

2016-08-22 Thread Bill Hicks via Digitalmars-d
On Monday, 22 August 2016 at 06:47:43 UTC, Johnjo Willoughby wrote: "We decided not to fix the suspension but we painted some cool flames on the bonnet for you... isn't it awesome!!!". "Huh???" "Well you can still drive it, just try to avoid hitting any pot holes" I think it's more like

Re: Rebind template(bug?)

2016-08-22 Thread ag0aep6g via Digitalmars-d-learn
On Monday, 22 August 2016 at 21:46:35 UTC, Engine Machine wrote: I'm sorry if it confuses you... it doesn't confuse me. You needed quite some help to get this thing to work. And you made some mistakes and wrong statements in the process. That's perfectly fine, but please don't act as if Jack

Metaprogramming, generate argument list.

2016-08-22 Thread ciechowoj via Digitalmars-d-learn
Is it possible to generate an argument list that contains pointers to local variables at compile time? For example, consider following code: template Repeat(alias int N, alias variable) { // Magic alias Repeat = /* Even more magic */; } void foo(int* x, int* y, int* z) { // [...]

Re: Rebind template(bug?)

2016-08-22 Thread Engine Machine via Digitalmars-d-learn
On Monday, 22 August 2016 at 19:09:34 UTC, Jack Applegame wrote: On Monday, 22 August 2016 at 18:04:43 UTC, Engine Machine wrote: How do you seriously think this is cleaner/simpler? 1. No extra encrypted things, such as InstantiateOrEmptySeq 2. Much more understandable. You have two classes.

Re: Autotesting dub packages with dmd nightly

2016-08-22 Thread Sebastiaan Koppe via Digitalmars-d-announce
On Wednesday, 10 August 2016 at 18:35:03 UTC, Sebastiaan Koppe wrote: So true. Then I will do PR's first. I finally got around implementing running dmd/druntime/phobos pull requests against all dub packages. Thank you digger, for making it so easy. I did a run of master + druntime#1602.

Re: Creating an array of user-defined structs

2016-08-22 Thread Jesse Phillips via Digitalmars-d-learn
On Monday, 22 August 2016 at 07:00:23 UTC, brian wrote: On Monday, 22 August 2016 at 06:19:00 UTC, Mike Parker wrote: Terminology wise, we distinguish between associative arrays (AA) and arrays. The former should never simply be called 'array', otherwise people will assume you are referring to

Re: Rebind template(bug?)

2016-08-22 Thread Jack Applegame via Digitalmars-d-learn
On Monday, 22 August 2016 at 19:56:08 UTC, ag0aep6g wrote: So this is just to avoid typing out `class Pug : Dog {...} class Dog : Animal {...} class Animal {...}`? This allows you to create different inheritance chains with the same components quickly and easily. I don't know any use case, but

[Issue 16409] Add support for assign-style switches

2016-08-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16409 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/e3c9f21acac9c086b98389185d917952e0b397cb Fix Issue 16409 - Add support for assign switches All

[Issue 16409] Add support for assign-style switches

2016-08-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16409 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: Rebind template(bug?)

2016-08-22 Thread ag0aep6g via Digitalmars-d-learn
On 08/22/2016 08:54 PM, Engine Machine wrote: Yeah, but a name means nothing. Change it if you want ;) Even with a better name it still requires a good amount of thinking by the reader to see what's going on. [...] What it achieves is a uniform way to create a hierarchical relationship

[Issue 16415] Overload conflicts with mixin templates

2016-08-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16415 --- Comment #1 from Artem Borisovskiy --- Oh, almost forgot: it's DMD v2.071.1 and the message says: src/main.d(26): Error: main.Visitor!(A, B).Visitor.generateMethods!(A, B).generateMethods!(B).generateMethod!(B).visit at

[Issue 16415] New: Overload conflicts with mixin templates

2016-08-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16415 Issue ID: 16415 Summary: Overload conflicts with mixin templates Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority:

Re: Rebind template(bug?)

2016-08-22 Thread Jack Applegame via Digitalmars-d-learn
On Monday, 22 August 2016 at 18:48:12 UTC, ag0aep6g wrote: You can take this further with template constraints. Gives it a more uniform appearance at the price of some repetition: class T() { int x; } class T(A...) : T!(A[0..$-1]) if (A.length > 0 && A[$-1] == "Animal") { int

Re: Rebind template(bug?)

2016-08-22 Thread Jack Applegame via Digitalmars-d-learn
On Monday, 22 August 2016 at 18:04:43 UTC, Engine Machine wrote: How do you seriously think this is cleaner/simpler? 1. No extra encrypted things, such as InstantiateOrEmptySeq 2. Much more understandable. You have two classes. No. I have one template with two specializations. Class template

Re: Rebind template(bug?)

2016-08-22 Thread Engine Machine via Digitalmars-d-learn
On Monday, 22 August 2016 at 18:48:12 UTC, ag0aep6g wrote: On 08/22/2016 08:04 PM, Engine Machine wrote: How do you seriously think this is cleaner/simpler? You have two classes. Their is no uniformity between them. You have uniformity between all the derived classes then have a special case

Re: Rebind template(bug?)

2016-08-22 Thread ag0aep6g via Digitalmars-d-learn
On 08/22/2016 08:04 PM, Engine Machine wrote: How do you seriously think this is cleaner/simpler? You have two classes. Their is no uniformity between them. You have uniformity between all the derived classes then have a special case for the base class. A certain easy to follow pattern is set up

Re: Always false float comparisons

2016-08-22 Thread Joakim via Digitalmars-d
Sorry, I stopped reading this thread after my last response, as I felt I was wasting too much time on this discussion, so I didn't read your response till now. On Saturday, 21 May 2016 at 14:38:20 UTC, Timon Gehr wrote: On 20.05.2016 13:32, Joakim wrote: Yet you're the one arguing against

Re: How about a special null template parameter?

2016-08-22 Thread Engine Machine via Digitalmars-d
On Monday, 22 August 2016 at 15:58:14 UTC, Meta wrote: On Sunday, 21 August 2016 at 21:21:22 UTC, Engine Machine wrote: Well, I see that a template with 0 parameters can act as a "type", if you will. Just like functions void foo(T)(T x) acts like a normal function foo(3) even though it is a

Re: Float values are wrong in union

2016-08-22 Thread Engine Machine via Digitalmars-d-learn
On Monday, 22 August 2016 at 05:02:41 UTC, jkpl wrote: On Monday, 22 August 2016 at 04:52:40 UTC, Cauterite wrote: [...] That's a 32 bit codegen issue then because DMD64 's disasm shows that SSE regs are used: void foo() { union test { int i; float f; } test t = { i :

Re: DIP1000: Scoped Pointers (Discussion)

2016-08-22 Thread H. S. Teoh via Digitalmars-d
On Mon, Aug 22, 2016 at 06:02:20PM +, Meta via Digitalmars-d wrote: > On Monday, 22 August 2016 at 17:22:28 UTC, H. S. Teoh wrote: > > I think it should be possible even with recursion, at least if there > > is a non-recursive branch in the function(s). Of course, it may not > > necessarily be

Re: [GSoC] Mir.random.flex - Generic non-uniform random sampling

2016-08-22 Thread Meta via Digitalmars-d-announce
On Monday, 22 August 2016 at 15:34:47 UTC, Seb wrote: Hey all, I am proud to publish a report of my GSoC work as two extensive blog posts, which explain non-uniform random sampling and the mir.random.flex package (part of Mir > 0.16-beta2):

Re: DIP1000: Scoped Pointers (Discussion)

2016-08-22 Thread Meta via Digitalmars-d
On Monday, 22 August 2016 at 17:22:28 UTC, H. S. Teoh wrote: I think it should be possible even with recursion, at least if there is a non-recursive branch in the function(s). Of course, it may not necessarily be *feasible* to implement the required analysis in the compiler. But maybe for the

Re: Rebind template(bug?)

2016-08-22 Thread Engine Machine via Digitalmars-d-learn
On Monday, 22 August 2016 at 07:54:36 UTC, Jack Applegame wrote: On Monday, 22 August 2016 at 00:43:00 UTC, Engine Machine wrote: The following code works and does what I want! template InstantiateOrEmptySeq(alias tmpl, args...) { alias Seq(T...)=T; static if (args.length > 0)

Re: Check out blog post on vibe.d

2016-08-22 Thread Meta via Digitalmars-d
On Monday, 22 August 2016 at 15:47:34 UTC, karabuta wrote: I made a blog post on vibe.d for people who might be into node.js and other web frameworks. Its not meant for everybody especially not for softwares engineers or hardcore coders :) Please let me know what you think. It's a nice

Re: DIP1000: Scoped Pointers (Discussion)

2016-08-22 Thread H. S. Teoh via Digitalmars-d
On Mon, Aug 15, 2016 at 04:46:15PM -0700, Walter Bright via Digitalmars-d wrote: > On 8/15/2016 4:30 PM, H. S. Teoh via Digitalmars-d wrote: > > I'm looking forward to the day we have pervasive attribute > > inferrence throughout the language. It's the only sane way to deal > > with attributes,

Re: Check out blog post on vibe.d

2016-08-22 Thread jmh530 via Digitalmars-d
On Monday, 22 August 2016 at 16:16:43 UTC, karabuta wrote: Oh my bad :) What was I thinking? Here https://laberba.github.io/2016/hello-world-app-with-the-vibe.d-web-framework/ Something like 40% of the screen is covered up by a sidebar...

Re: [GSoC] Mir.random.flex - Generic non-uniform random sampling

2016-08-22 Thread jmh530 via Digitalmars-d-announce
On Monday, 22 August 2016 at 15:34:47 UTC, Seb wrote: Hey all, I am proud to publish a report of my GSoC work as two extensive blog posts, which explain non-uniform random sampling and the mir.random.flex package (part of Mir > 0.16-beta2):

[Issue 16046] ScopedAllocator does not set prev, causing segfaults

2016-08-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16046 Andrei Alexandrescu changed: What|Removed |Added CC||and...@erdani.com

Re: Check out blog post on vibe.d

2016-08-22 Thread Andrei Alexandrescu via Digitalmars-d
On 08/22/2016 12:16 PM, karabuta wrote: On Monday, 22 August 2016 at 15:50:55 UTC, Edwin van Leeuwen wrote: On Monday, 22 August 2016 at 15:47:34 UTC, karabuta wrote: I made a blog post on vibe.d for people who might be into node.js and other web frameworks. Its not meant for everybody

Re: Check out blog post on vibe.d

2016-08-22 Thread karabuta via Digitalmars-d
On Monday, 22 August 2016 at 15:50:55 UTC, Edwin van Leeuwen wrote: On Monday, 22 August 2016 at 15:47:34 UTC, karabuta wrote: I made a blog post on vibe.d for people who might be into node.js and other web frameworks. Its not meant for everybody especially not for softwares engineers or

Re: How about a special null template parameter?

2016-08-22 Thread Meta via Digitalmars-d
On Sunday, 21 August 2016 at 21:21:22 UTC, Engine Machine wrote: Well, I see that a template with 0 parameters can act as a "type", if you will. Just like functions void foo(T)(T x) acts like a normal function foo(3) even though it is a templated function. In fact, I see very little

Re: Check out blog post on vibe.d

2016-08-22 Thread Edwin van Leeuwen via Digitalmars-d
On Monday, 22 August 2016 at 15:47:34 UTC, karabuta wrote: I made a blog post on vibe.d for people who might be into node.js and other web frameworks. Its not meant for everybody especially not for softwares engineers or hardcore coders :) Please let me know what you think. Sounds good, but

Check out blog post on vibe.d

2016-08-22 Thread karabuta via Digitalmars-d
I made a blog post on vibe.d for people who might be into node.js and other web frameworks. Its not meant for everybody especially not for softwares engineers or hardcore coders :) Please let me know what you think.

[GSoC] Mir.random.flex - Generic non-uniform random sampling

2016-08-22 Thread Seb via Digitalmars-d-announce
Hey all, I am proud to publish a report of my GSoC work as two extensive blog posts, which explain non-uniform random sampling and the mir.random.flex package (part of Mir > 0.16-beta2): http://blog.mir.dlang.io/random/2016/08/19/intro-to-random-sampling.html

Re: Phobos uni methods

2016-08-22 Thread Jack Stouffer via Digitalmars-d
On Monday, 22 August 2016 at 07:58:50 UTC, Andrew wrote: Hi, It appears as though the Phobos Unicode methods (such as std.uni.isAlpha()) are compatible with Unicode 6.2 (i.e. the 2012 standard, which is now nearly 5 years old). Unicode is now up to version 9.0. Changes do include changes to

[Issue 16405] Trojan Win32/Ipac.B!cl detected on dmd-2.071.1.exe

2016-08-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16405 --- Comment #5 from Sobirari Muhomori --- I uploaded the file at https://www.microsoft.com/en-us/security/portal/submission/submit.aspx for online scan with microsoft antivirus and it tells that the file is not detected.

Re: Why D is not popular enough?

2016-08-22 Thread Shachar Shemesh via Digitalmars-d
On 21/08/16 19:31, Andrei Alexandrescu wrote: On 08/20/2016 11:25 AM, Shachar Shemesh wrote: On 20/08/16 00:51, Walter Bright wrote: On 8/18/2016 7:59 PM, Adam D. Ruppe wrote: Alas, C insisted on making everything int all the time and D followed that :( Actually, Adam's suggestion on how

Re: Why D is not popular enough?

2016-08-22 Thread Adam D. Ruppe via Digitalmars-d
On Sunday, 21 August 2016 at 16:31:41 UTC, Andrei Alexandrescu wrote: Consider: void fun(byte); void fun(int); fun(b + c); Does anybody actually do that in the real world? Given the int promotion rule, such an overload is something i'd flag as always bug prone and confusing anyway. With

Re: Why D is not popular enough?

2016-08-22 Thread Adam D. Ruppe via Digitalmars-d
On Monday, 22 August 2016 at 05:54:17 UTC, Shachar Shemesh wrote: On 21/08/16 12:47, ag0aep6g wrote: Consider `ubyte(255) * ubyte(2) / ubyte(2)`. If the operands are promoted to a larger type, you get 255 as the result. If they are not, you have the equivalent of `ubyte x = 255; x *= 2; x /=

[Issue 3284] snn linked programs never release memory back to the OS

2016-08-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3284 --- Comment #6 from Sobirari Muhomori --- The original description probably complains about C malloc too - worth checking. --

Re: __traits(getOverloads, Type, member) order of elements in tuple.

2016-08-22 Thread Lodovico Giaretta via Digitalmars-d-learn
On Monday, 22 August 2016 at 12:14:41 UTC, Alexandru Ermicioi wrote: Good day. In current implementation of dmd/ldc/gdc, does this trait guarantee, that the order of elements returned in tuple, is same, in several calls of it on same Type and member? Also, is guaranteed that in future

Re: D support for the Meson build system

2016-08-22 Thread jkpl via Digitalmars-d-announce
On Monday, 22 August 2016 at 11:45:37 UTC, Matthias Klumpp wrote: On Monday, 22 August 2016 at 01:34:36 UTC, jkpl wrote: On Sunday, 21 August 2016 at 19:08:59 UTC, Matthias Klumpp wrote: for a project like Terminix, dub with LDC builds in 8.6s, while Meson and ninja take only 6s here. Did

__traits(getOverloads, Type, member) order of elements in tuple.

2016-08-22 Thread Alexandru Ermicioi via Digitalmars-d-learn
Good day. In current implementation of dmd/ldc/gdc, does this trait guarantee, that the order of elements returned in tuple, is same, in several calls of it on same Type and member? Also, is guaranteed that in future versions of dmd, the order of elements won't change?

Re: DIP1000: Scoped Pointers

2016-08-22 Thread Nick Treleaven via Digitalmars-d-announce
On Thursday, 18 August 2016 at 17:05:05 UTC, Dicebot wrote: On 08/11/2016 04:38 PM, Sönke Ludwig wrote: That will just leave one hole in conjunction with the @trusted destructor, which is (presumably) not easy to fix without much larger changes to the type system, as well as to how container

Re: D support for the Meson build system

2016-08-22 Thread Matthias Klumpp via Digitalmars-d-announce
On Monday, 22 August 2016 at 01:34:36 UTC, jkpl wrote: On Sunday, 21 August 2016 at 19:08:59 UTC, Matthias Klumpp wrote: for a project like Terminix, dub with LDC builds in 8.6s, while Meson and ninja take only 6s here. Did you try to build with DUB but with WIFI or ethernet interface

[Issue 3284] snn linked programs never release memory back to the OS

2016-08-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3284 Cauterite changed: What|Removed |Added Status|RESOLVED|REOPENED

Re: Why D is not popular enough?

2016-08-22 Thread Vadim Lopatin via Digitalmars-d
On Monday, 22 August 2016 at 07:05:01 UTC, Shachar Shemesh wrote: On 22/08/16 09:31, Vadim Lopatin wrote: On Friday, 12 August 2016 at 19:29:42 UTC, Shachar Shemesh - No RAII support, despite the fact everybody here seems to think that D supports RAII. Shachar There IS RAII in D. I'm using

Re: Phobos uni methods

2016-08-22 Thread Lodovico Giaretta via Digitalmars-d
On Monday, 22 August 2016 at 10:26:35 UTC, Cauterite wrote: On Monday, 22 August 2016 at 07:58:50 UTC, Andrew wrote: Note that changing isAlpha() can potentially break any D code with unicode in its identifiers, because the DMD frontend uses isAlpha() to determine which characters are

Re: Phobos uni methods

2016-08-22 Thread Cauterite via Digitalmars-d
On Monday, 22 August 2016 at 07:58:50 UTC, Andrew wrote: Note that changing isAlpha() can potentially break any D code with unicode in its identifiers, because the DMD frontend uses isAlpha() to determine which characters are allowed in identifiers.

[Issue 3284] snn linked programs never release memory back to the OS

2016-08-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3284 --- Comment #4 from Sobirari Muhomori --- As I understand, the test is as follows: import core.memory, core.stdc.stdio; void main() { void*[100] arrays; // allocate and free lots of 10MB arrays foreach (ref x;

[Issue 16414] New: final opCmp in interface: throws at runtime. (OK if abstract class instead of interface)

2016-08-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16414 Issue ID: 16414 Summary: final opCmp in interface: throws at runtime. (OK if abstract class instead of interface) Product: D Version: D2 Hardware: x86_64 OS:

Re: On the future of DIP1000

2016-08-22 Thread Kagamin via Digitalmars-d-announce
On Monday, 22 August 2016 at 06:44:11 UTC, Jacob Carlborg wrote: It would be nice to have the whole picture now, before implementing DIP1000. It can be reviewed after the spec is inferred from implementation. But yes, it can be unclear how the implementation can affect the review process.

Re: QtE5 - is a wrapping of Qt-5 for D

2016-08-22 Thread eugene via Digitalmars-d-announce
On Monday, 22 August 2016 at 08:38:12 UTC, MGW wrote: The excellent programming language is D. I all the projects make, nearly two years, only on D (dmd) + Qt (QtE4 and QtE5). What are the advantages and drawbacks you faced and face while working with D? How are old D programs compiled with

Re: Get current date and time with std.datetime

2016-08-22 Thread Joel via Digitalmars-d-learn
On Friday, 1 July 2016 at 15:28:04 UTC, Zekereth wrote: On Thursday, 30 June 2016 at 21:18:22 UTC, Luke Picardo wrote: Why is it so hard to simply get the current date and time formatted properly in a string? There are no examples of this in your documentation yet this is probably one of

[Issue 16413] New: multiSort doesn't work with @system comparison function

2016-08-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16413 Issue ID: 16413 Summary: multiSort doesn't work with @system comparison function Product: D Version: D2 Hardware: All OS: All Status: NEW

Re: Creating an array of user-defined structs

2016-08-22 Thread Mike Parker via Digitalmars-d-learn
On Monday, 22 August 2016 at 07:00:23 UTC, brian wrote: That's a terribly confusing naming convention for beginners then! :P Is this D-specific terminology, or is this a more general convention that AA are not actually arrays? This might help my understanding of when to use or not use one

[Issue 16365] cannot allow calling function pointer from delegate in @safe code

2016-08-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16365 Walter Bright changed: What|Removed |Added CC|

Re: QtE5 - is a wrapping of Qt-5 for D

2016-08-22 Thread MGW via Digitalmars-d-announce
On Sunday, 21 August 2016 at 17:21:14 UTC, eugene wrote: On Sunday, 21 August 2016 at 13:18:04 UTC, MGW wrote: Hello, could you share your experience with D language? How it feels to work with it? The excellent programming language is D. I all the projects make, nearly two years, only on D

Phobos uni methods

2016-08-22 Thread Andrew via Digitalmars-d
Hi, It appears as though the Phobos Unicode methods (such as std.uni.isAlpha()) are compatible with Unicode 6.2 (i.e. the 2012 standard, which is now nearly 5 years old). Unicode is now up to version 9.0. Changes do include changes to std.uni.isAlpha(), and other methods. Is there either

Re: Rebind template(bug?)

2016-08-22 Thread Jack Applegame via Digitalmars-d-learn
On Monday, 22 August 2016 at 00:43:00 UTC, Engine Machine wrote: The following code works and does what I want! template InstantiateOrEmptySeq(alias tmpl, args...) { alias Seq(T...)=T; static if (args.length > 0) alias InstantiateOrEmptySeq = tmpl!(args[0 .. $-1]); else

Re: Why D is not popular enough?

2016-08-22 Thread Solomon E via Digitalmars-d
On Sunday, 21 August 2016 at 23:07:43 UTC, Solomon E wrote: The D spec is full of errors, literally, or teasers sometimes. Erroneous code should be omitted from a spec, or at least clearly marked such as by a red background. I'd like to respond critically to my own silly comment.

Re: Why D is not popular enough?

2016-08-22 Thread Shachar Shemesh via Digitalmars-d
On 22/08/16 09:31, Vadim Lopatin wrote: On Friday, 12 August 2016 at 19:29:42 UTC, Shachar Shemesh wrote: I'll give some highlights, but those are, mostly, things that I've already listed in this forum and in my lightening talk. - No RAII support, despite the fact everybody here seems to think

Re: Creating an array of user-defined structs

2016-08-22 Thread brian via Digitalmars-d-learn
On Monday, 22 August 2016 at 06:19:00 UTC, Mike Parker wrote: Terminology wise, we distinguish between associative arrays (AA) and arrays. The former should never simply be called 'array', otherwise people will assume you are referring to either or both of foo[] (dynamic array/slice) or foo[N]

Re: On the future of DIP1000

2016-08-22 Thread Robert burner Schadek via Digitalmars-d-announce
On Monday, 22 August 2016 at 06:44:11 UTC, Jacob Carlborg wrote: It would be nice to have the whole picture now, before implementing DIP1000. Then it's possible to review them together, making sure the end goal is actual possible to achieve. Now we just have to trust Andrei and Walter that all

D is not popular enough because..

2016-08-22 Thread Johnjo Willoughby via Digitalmars-d
"We decided not to fix the suspension but we painted some cool flames on the bonnet for you... isn't it awesome!!!". "Huh???" "Well you can still drive it, just try to avoid hitting any pot holes"

Re: On the future of DIP1000

2016-08-22 Thread Jacob Carlborg via Digitalmars-d-announce
On 2016-08-21 22:01, Dicebot wrote: This week I had a tele-meeting with Andrei and Walter regarding the fate of DIP1000 (https://github.com/dlang/DIPs/blob/master/DIPs/DIP1000.md) and intented way to move forward with it. This is a short summary of the meeting. Approval of DIP1000

Re: Why D is not popular enough?

2016-08-22 Thread Vadim Lopatin via Digitalmars-d
On Friday, 12 August 2016 at 19:29:42 UTC, Shachar Shemesh wrote: I'll give some highlights, but those are, mostly, things that I've already listed in this forum and in my lightening talk. - No RAII support, despite the fact everybody here seems to think that D supports RAII. Shachar There

Re: Creating an array of user-defined structs

2016-08-22 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 21 August 2016 at 23:57:27 UTC, brian wrote: On Sunday, 21 August 2016 at 23:37:38 UTC, Adam D. Ruppe wrote: testStruct[int] testStructArray; That's not actually an array per se, that is a key/value map where the keys are ints. I understand it's a map, but does my syntax not define

Re: Mem Mgmt: With & Without the GC

2016-08-22 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 21 August 2016 at 19:30:51 UTC, Guillaume Piolat wrote: 5) Is there a way to do simple heap allocation with 'new' while ensuring the GC doesn't deallocate until I want it to? Keep a reference somewhere reachable (by default: stack, heap, globals: everything is reachable and