Re: D is dead

2018-08-25 Thread Walter Bright via Digitalmars-d
On 8/24/2018 6:34 AM, Shachar Shemesh wrote: No, unlike what I suggest, that doesn't work without carefully reviewing every single place you put it to see whether the constructor actually supports destructing a partially constructed object. All D objects are default-initialized before the

Re: [OT] "I like writing in D" - Hans Zimmer

2018-08-25 Thread Bauss via Digitalmars-d
On Wednesday, 22 August 2018 at 22:51:58 UTC, Piotrek wrote: You may already know that from youtube. It seems D starts getting traction even among musicians: https://www.youtube.com/watch?v=yCX1Ze3OcKo=youtu.be=64 That really put a smile on my face :D And it would be a nice example of a D

Re: Embrace the from template?

2018-08-25 Thread Jonathan M Davis via Digitalmars-d
On Saturday, August 25, 2018 3:30:27 AM MDT Jonathan M Davis via Digitalmars-d wrote: > from is not the entire problem, but IMHO, it's definitely the straw that > breaks the camel's back. It's taking all of this specificity way too far. > I don't want to have to write or read code that's

Re: Is @safe still a work-in-progress?

2018-08-25 Thread Nicholas Wilson via Digitalmars-d
On Saturday, 25 August 2018 at 02:25:41 UTC, Walter Bright wrote: I'm not hostile to debate. I just don't care for "this is uncharted territory, so let's do nothing" which has been going on for probably 4 years now, coincident with "scope is incomplete, D sux". I.e. lead, follow, or get out

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

2018-08-25 Thread Paolo Invernizzi via Digitalmars-d
On Friday, 24 August 2018 at 21:57:55 UTC, Meta wrote: On Friday, 24 August 2018 at 21:53:18 UTC, H. S. Teoh wrote: I think it's clear by now that most of D's woes are not really technical in nature, but managerial. Agreed. I'm not sure how to improve this situation, since I'm no manager

Re: Embrace the from template?

2018-08-25 Thread Daniel N via Digitalmars-d
On Saturday, 25 August 2018 at 08:02:51 UTC, Jonathan Marler wrote: If we defined ':' as the special "from operator" then the following would be equivalent: foo.bar:baz from!"foo.bar".baz I agree with almost everything you wrote, but I think it would have to be double :: foo.bar::baz

Re: Embrace the from template?

2018-08-25 Thread Jonathan M Davis via Digitalmars-d
On Saturday, August 25, 2018 2:02:51 AM MDT Jonathan Marler via Digitalmars- d wrote: > So assuming we're on the same page, you mentioned that the `from` > template is too verbose. I can see this point. To measure this I > consider the least verbose syntax for achieving the semantics of > the

Re: Embrace the from template?

2018-08-25 Thread Jonathan Marler via Digitalmars-d
On Saturday, 25 August 2018 at 09:30:27 UTC, Jonathan M Davis wrote: On Saturday, August 25, 2018 2:02:51 AM MDT Jonathan Marler via Digitalmars- d wrote: [...] Honestly, I don't want to be doing _anything_ like from with _any_ syntax. It's not just a question of from itself being too long.

Re: Embrace the from template?

2018-08-25 Thread Jonathan Marler via Digitalmars-d
On Saturday, 25 August 2018 at 04:25:56 UTC, Jonathan M Davis wrote: On Friday, August 24, 2018 7:03:37 PM MDT Jonathan Marler via Digitalmars-d wrote: > What uses does this actually have, I only see one example > from the article and it is an oversimplistic example that > effectively

Re: D is dead

2018-08-25 Thread Nicholas Wilson via Digitalmars-d
On Saturday, 25 August 2018 at 07:56:55 UTC, Walter Bright wrote: On 8/24/2018 6:34 AM, Shachar Shemesh wrote: No, unlike what I suggest, that doesn't work without carefully reviewing every single place you put it to see whether the constructor actually supports destructing a partially

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

2018-08-25 Thread Dukc via Digitalmars-d
On Friday, 24 August 2018 at 22:04:49 UTC, H. S. Teoh wrote: I don't know how to reconcile these two. Perhaps if we had the manpower, we could maintain older versions for long enough to allow users to gradually rewrite to work with newer compilers, while the development branch can be bolder

Re: Embrace the from template?

2018-08-25 Thread Basile B. via Digitalmars-d
On Friday, 24 August 2018 at 10:58:29 UTC, aliak wrote: On Friday, 24 August 2018 at 06:41:35 UTC, Jonathan Marler wrote: Ever since I read https://dlang.org/blog/2017/02/13/a-new-import-idiom/ I've very much enjoyed using the new `from` template. [...] Of course, if we don't want to encourage

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

2018-08-25 Thread Nicholas Wilson via Digitalmars-d
On Saturday, 25 August 2018 at 01:43:19 UTC, Walter Bright wrote: On 8/24/2018 4:22 PM, tide wrote: struct SomeStruct {     void foo() {     // use SomeStruct     } } void broken() {     void function() foo =     foo(); // runtime error, isn't actually safe uses wrong calling

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

2018-08-25 Thread Laeeth Isharc via Digitalmars-d
On Saturday, 25 August 2018 at 10:52:04 UTC, Chris wrote: On Friday, 24 August 2018 at 19:26:40 UTC, Walter Bright wrote: On 8/24/2018 6:04 AM, Chris wrote: For about a year I've had the feeling that D is moving too fast and going nowhere at the same time. D has to slow down and get stable. D

Re: Is @safe still a work-in-progress?

2018-08-25 Thread Chris M. via Digitalmars-d
On Saturday, 25 August 2018 at 02:37:00 UTC, Walter Bright wrote: On 8/23/2018 5:58 PM, Chris M. wrote: Seems to be more of a warning of what issues we may face if DIP25/DIP1000 are finally implemented. It would be good to consider NLLs as well before D is committed. No point in repeating

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

2018-08-25 Thread Chris via Digitalmars-d
On Friday, 24 August 2018 at 19:26:40 UTC, Walter Bright wrote: On 8/24/2018 6:04 AM, Chris wrote: For about a year I've had the feeling that D is moving too fast and going nowhere at the same time. D has to slow down and get stable. D is past the experimental stage. Too many people use it

Clock.currTime differs from SysTime

2018-08-25 Thread Ivo via Digitalmars-d-learn
I am using Clock.currTime.stdTime to get a unique timestamp in my program. Now I need to produce something similar in a different programming language; so I'm trying to understand how Clock.currTime works. According the the documentation Clock.currTime.stdTime should return the number of

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

2018-08-25 Thread tide via Digitalmars-d
On Saturday, 25 August 2018 at 01:43:19 UTC, Walter Bright wrote: On 8/24/2018 4:22 PM, tide wrote: struct SomeStruct {     void foo() {     // use SomeStruct     } } void broken() {     void function() foo =     foo(); // runtime error, isn't actually safe uses wrong calling

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

2018-08-25 Thread Chris via Digitalmars-d
On Saturday, 25 August 2018 at 12:16:06 UTC, Laeeth Isharc wrote: Nassim Taleb writes about hormesis. I'm not sure that breakage of a non-serious kind is necessarily terrible. It might be terrible for you personally - that's not for me to judge. But it has the effect of building

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

2018-08-25 Thread Timon Gehr via Digitalmars-d
On 25.08.2018 03:43, Walter Bright wrote: On 8/24/2018 4:22 PM, tide wrote: struct SomeStruct { void foo() { // use SomeStruct } } void broken() { void function() foo = foo(); // runtime error, isn't actually safe uses wrong calling convention as well } Not

Re: D is dead

2018-08-25 Thread Shachar Shemesh via Digitalmars-d
On 25/08/18 10:56, Walter Bright wrote: On 8/24/2018 6:34 AM, Shachar Shemesh wrote: No, unlike what I suggest, that doesn't work without carefully reviewing every single place you put it to see whether the constructor actually supports destructing a partially constructed object. All D

Null-Coalescing Operator and Extensions

2018-08-25 Thread SG via Digitalmars-d-learn
Hi, 1) I program in C# and I'm wondering if there is something like ?? (Null-Coalescing Operator) in D? (I remember some proposals in the past). 2) Is possible to create Extensions like in C#? For example: public int StrToInt (this string s){ return int.Parse(s); } var i =

Re: Clock.currTime differs from SysTime

2018-08-25 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, August 25, 2018 6:53:24 AM MDT Ivo via Digitalmars-d-learn wrote: > I am using Clock.currTime.stdTime to get a unique timestamp in my > program. > Now I need to produce something similar in a different > programming language; so I'm trying to understand how > Clock.currTime works. >

[Issue 19189] New: Accessing private template member allowed

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19189 Issue ID: 19189 Summary: Accessing private template member allowed Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: critical

[Issue 19148] Alignment of section does not reflect the maximum alignment of its contents

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19148 --- Comment #4 from Joakim --- Which ldc and DMD versions? Does the just-released LDC 1.11 have this problem? --

[Issue 19190] Circular reference error resolved by getting allMembers

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19190 --- Comment #1 from Yuxuan Shui --- Sorry, wrong version of the code is attached. Here is the offending code: struct lr1 { lr1* a; } template proxy(T) { private alias G = gen!T; static if (is(typeof(G.str))) enum str = G.str; }

[Issue 11431] std.file.slurp with Windows newlines

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11431 Basile B. changed: What|Removed |Added Keywords|rejects-valid | CC|

[Issue 11431] std.file.slurp fails with Windows newlines

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11431 Basile B. changed: What|Removed |Added Summary|std.file.slurp with Windows |std.file.slurp fails with

[Issue 11431] std.file.slurp fails with Windows newlines

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11431 Basile B. changed: What|Removed |Added Keywords||pull --- Comment #1 from Basile B. --- pull :

Re: Null-Coalescing Operator and Extensions

2018-08-25 Thread JN via Digitalmars-d-learn
On Saturday, 25 August 2018 at 13:33:58 UTC, SG wrote: Hi, 1) I program in C# and I'm wondering if there is something like ?? (Null-Coalescing Operator) in D? (I remember some proposals in the past). 2) Is possible to create Extensions like in C#? For example: public int StrToInt (this

[Issue 19189] Accessing private member of template allowed

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19189 Yuxuan Shui changed: What|Removed |Added Summary|Accessing private template |Accessing private member of

Re: Circular reference error gone after inspecting members

2018-08-25 Thread Yuxuan Shui via Digitalmars-d-learn
Issue filed: https://issues.dlang.org/show_bug.cgi?id=19190

[Issue 19190] Circular reference error resolved by getting allMembers

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19190 --- Comment #2 from Yuxuan Shui --- The behavior of the compiler seems to be sensitive to pragma: ... // This is the second `gen` template gen(T: S*, S) { private alias rc = proxy!S; pragma(msg, is(typeof(rc.str))); // false

[Issue 11052] pathSplitter cannot be converted to string[], and to!() template fails

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11052 Basile B. changed: What|Removed |Added Keywords||pull CC|

Circular reference error gone after inspecting members

2018-08-25 Thread Yuxuan Shui via Digitalmars-d-learn
The offending code base is a little big and hard to reduce. I'll try if code is required, but here is the gist of the problem: This snippet of code in my project: ... alias tmp = genCode!T; enum str = tmp.str; // This line here ... Generate a circular reference error.

Re: Circular reference error gone after inspecting members

2018-08-25 Thread rikki cattermole via Digitalmars-d-learn
On 26/08/2018 2:10 AM, Yuxuan Shui wrote: The offending code base is a little big and hard to reduce. I'll try if code is required, but here is the gist of the problem: This snippet of code in my project:     ...     alias tmp = genCode!T;     enum str = tmp.str; // This line here     ...

Suggestion: Bug fix releases (Re: Dicebot on leaving D: It is anarchy driven development in all its glory.)

2018-08-25 Thread Yuxuan Shui via Digitalmars-d
On Wednesday, 22 August 2018 at 11:59:37 UTC, Paolo Invernizzi wrote: Just found by chance, if someone is interested [1] [2]. /Paolo [1] https://gitlab.com/mihails.strasuns/blog/blob/master/articles/on_leaving_d.md [2]

Re: Null-Coalescing Operator and Extensions

2018-08-25 Thread SG via Digitalmars-d-learn
On Saturday, 25 August 2018 at 13:42:30 UTC, JN wrote: 2) Yes, through UFCS (Uniform Function Call Syntax). It doesn't require any special syntax, for example: Very simple indeed. Thanks.

Re: [OT] "I like writing in D" - Hans Zimmer

2018-08-25 Thread Anton Fediushin via Digitalmars-d
On Wednesday, 22 August 2018 at 22:51:58 UTC, Piotrek wrote: You may already know that from youtube. It seems D starts getting traction even among musicians: https://www.youtube.com/watch?v=yCX1Ze3OcKo=youtu.be=64 That really put a smile on my face :D And it would be a nice example of a D

Re: D is dead

2018-08-25 Thread Jonathan M Davis via Digitalmars-d
On Saturday, August 25, 2018 7:33:47 AM MDT Shachar Shemesh via Digitalmars- d wrote: > On 25/08/18 10:56, Walter Bright wrote: > > On 8/24/2018 6:34 AM, Shachar Shemesh wrote: > >> No, unlike what I suggest, that doesn't work without carefully > >> reviewing every single place you put it to see

Re: LDC 1.11.0

2018-08-25 Thread Joakim via Digitalmars-d-announce
On Saturday, 18 August 2018 at 16:47:35 UTC, kinke wrote: Glad to announce LDC 1.11: * Based on D 2.081.2. * Prebuilt packages now using LLVM 6.0.1 and including additional cross-compilation targets (MIPS, MSP430, RISC-V and WebAssembly). * Rudimentary support for compiling & linking directly

[Issue 19189] Accessing private member of template allowed

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19189 Basile B. changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 19190] New: Circular reference error resolved by getting allMembers

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19190 Issue ID: 19190 Summary: Circular reference error resolved by getting allMembers Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW

Re: Clock.currTime differs from SysTime

2018-08-25 Thread Ivo via Digitalmars-d-learn
Thanks a lot. The issue was indeed the time zone.

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

2018-08-25 Thread Dave Jones via Digitalmars-d
On Saturday, 25 August 2018 at 12:16:06 UTC, Laeeth Isharc wrote: On Saturday, 25 August 2018 at 10:52:04 UTC, Chris wrote: On Friday, 24 August 2018 at 19:26:40 UTC, Walter Bright wrote: There are quite a few different sorts of concerns raised on this thread and they are linked by how

Re: Circular reference error gone after inspecting members

2018-08-25 Thread Yuxuan Shui via Digitalmars-d-learn
On Saturday, 25 August 2018 at 14:13:18 UTC, rikki cattermole wrote: On 26/08/2018 2:10 AM, Yuxuan Shui wrote: The offending code base is a little big and hard to reduce. I'll try if code is required, but here is the gist of the problem: This snippet of code in my project:     ...    

Re: RFC: initial release of dtoh

2018-08-25 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-08-24 12:09, Uknown wrote: This is all very nice. I agree that this kind of thing should be a part of the compiler, but I think it should be a compiler plugin. If dmd had compiler plugins, I think stuff like this and `dpp` would be much nicer to use. We have the front end available

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

2018-08-25 Thread Walter Bright via Digitalmars-d
On 8/25/2018 3:52 AM, Chris wrote: On Friday, 24 August 2018 at 19:26:40 UTC, Walter Bright wrote: Every programmer who says this also demands new (and breaking) features. "Every programmer who..." Really? You want to remove autodecoding (so do I) and that will break just about every D

[Issue 11052] allow pathSplitter and to!() template fails

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11052 Basile B. changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

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

2018-08-25 Thread Nicholas Wilson via Digitalmars-d
On Saturday, 25 August 2018 at 20:52:06 UTC, Walter Bright wrote: On 8/25/2018 3:52 AM, Chris wrote: On Friday, 24 August 2018 at 19:26:40 UTC, Walter Bright wrote: Every programmer who says this also demands new (and breaking) features. "Every programmer who..." Really? You want to remove

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

2018-08-25 Thread Radu via Digitalmars-d
On Saturday, 25 August 2018 at 22:55:05 UTC, RhyS wrote: On Saturday, 25 August 2018 at 12:16:06 UTC, Laeeth Isharc wrote: And yet some of the heaviest users of D have said in public 'please break our code". I wonder why that could be. My answer to that is simply: Break stuff so it becomes

Re: Using a C++ class in a D associative array

2018-08-25 Thread Jacob Carlborg via Digitalmars-d
On 2018-08-22 23:00, kinke wrote: It could be simpler (and slower ;)) by using `m_flags & ClassFlags.isCPPclass`. There's Objective-C classes as well, which does not seem to have an entry in TypeInfo_Class.ClassFlags. -- /Jacob Carlborg

Re: How do you actually run the "Start a minimal webserver" example on the home page

2018-08-25 Thread Chris M. via Digitalmars-d-learn
On Saturday, 25 August 2018 at 20:17:35 UTC, AN wrote: I downloaded the script and made it executable. I also have dub on `/usr/bin/dub` . The example just stalls with no output. After fidgeting around for 5 minutes I realized it was downloading silently in the background. (I think for

[Issue 13300] pure function 'std.array.Appender!(T[]).Appender.ensureAddable' cannot call impure function 'test.T.__fieldPostBlit'

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13300 Basile B. changed: What|Removed |Added CC||b2.t...@gmx.com --- Comment #5 from Basile B.

[Issue 18992] Appender doesn't work with structs that have impure postblit

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18992 Basile B. changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

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

2018-08-25 Thread David Nadlinger via Digitalmars-d
On Saturday, 25 August 2018 at 20:52:06 UTC, Walter Bright wrote: If I fix the bug, I break existing code, and apparently a substantial amount of existing code. What's your advice on how to proceed with this? At least for the transition period, I'd have attributes only apply to the

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

2018-08-25 Thread bpr via Digitalmars-d
On Saturday, 25 August 2018 at 22:55:05 UTC, RhyS wrote: Be honest, how many people will use BetterC in production! Much, MUCH more likely than that I would ever use full D with GC in production. Really, if I want a language with a GC, D is not that good. Why wouldn't I use a JVM language

[Issue 19148] Alignment of section does not reflect the maximum alignment of its contents

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19148 --- Comment #5 from Yuxuan Shui --- (In reply to Joakim from comment #4) > Which ldc and DMD versions? Does the just-released LDC 1.11 have this > problem? Most recent ldc release fix the build problem. But this is a dmd bug nonetheless. This bug

Re: Null-Coalescing Operator and Extensions

2018-08-25 Thread Jacob Carlborg via Digitalmars-d-learn
On 2018-08-25 15:33, SG wrote: Hi, 1) I program in C# and I'm wondering if there is something like ?? (Null-Coalescing Operator) in D? (I remember some proposals in the past). Not in the language but it can be implemented as a library function by overloading "opDispatch". See [1] for an

[Issue 19191] New: Memory allocation failure with -profile=gc and dynamic array of opaque handles

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19191 Issue ID: 19191 Summary: Memory allocation failure with -profile=gc and dynamic array of opaque handles Product: D Version: D2 Hardware: x86_64 OS: Windows

Re: D is dead

2018-08-25 Thread Walter Bright via Digitalmars-d
On 8/25/2018 7:37 AM, Jonathan M Davis wrote: In general, any place where D was designed around the idea that something would _always_ be there (e.g. init values and default initialization) but we've then later added the ability to get around it (e.g. void initialization or @disable) has tended

How do you actually run the "Start a minimal webserver" example on the home page

2018-08-25 Thread AN via Digitalmars-d-learn
I downloaded the script and made it executable. I also have dub on `/usr/bin/dub` . The example just stalls with no output. After fidgeting around for 5 minutes I realized it was downloading silently in the background. (I think for homepage examples, they should be running in verbose mode as

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

2018-08-25 Thread Walter Bright via Digitalmars-d
On 8/25/2018 6:32 AM, Timon Gehr wrote: (Or at least, not wrong. Using e.g. `void*` instead of an incompatible type would already be an improvement.) Making it void* is a reasonable idea.

Re: GDC with D frontend 2.081.2

2018-08-25 Thread Daniel Kozak via Digitalmars-d-announce
On Sat, Aug 25, 2018 at 10:10 PM Anonymouse via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: > On Friday, 24 August 2018 at 08:30:35 UTC, Daniel Kozak wrote: > > On Friday, 24 August 2018 at 05:35:13 UTC, Eugene Wissner wrote: > >> As some of you may know D frontend was

Re: GDC with D frontend 2.081.2

2018-08-25 Thread Eugene Wissner via Digitalmars-d-announce
On Saturday, 25 August 2018 at 20:59:56 [...] Thanks for supporting us on Arch, Daniel!

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

2018-08-25 Thread RhyS via Digitalmars-d
On Friday, 24 August 2018 at 17:12:53 UTC, H. S. Teoh wrote: I got bitten by this just yesterday. Update dmd git master, update vibe.d git master, now my vibe.d project doesn't compile anymore due to some silly string.d error somewhere in one of vibe.d's dependencies. :-/ Welcome to my life

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

2018-08-25 Thread Walter Bright via Digitalmars-d
On 8/25/2018 2:46 PM, David Nadlinger wrote: On Saturday, 25 August 2018 at 20:52:06 UTC, Walter Bright wrote: If I fix the bug, I break existing code, and apparently a substantial amount of existing code. What's your advice on how to proceed with this? At least for the transition period, I'd

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

2018-08-25 Thread Nicholas Wilson via Digitalmars-d
On Saturday, 25 August 2018 at 20:19:44 UTC, Walter Bright wrote: On 8/25/2018 6:32 AM, Timon Gehr wrote: (Or at least, not wrong. Using e.g. `void*` instead of an incompatible type would already be an improvement.) Making it void* is a reasonable idea. If/when (I really hope the latter)

Re: D is dead

2018-08-25 Thread Walter Bright via Digitalmars-d
On 8/25/2018 6:33 AM, Shachar Shemesh wrote: If you allow a feature to be disabled, you really need to keep in mind that feature might be well and truly disabled. Disabling default initializations is not @safe, and that means taking responsibility for it not being default initialized. It's

Re: GDC with D frontend 2.081.2

2018-08-25 Thread Anonymouse via Digitalmars-d-announce
On Friday, 24 August 2018 at 08:30:35 UTC, Daniel Kozak wrote: On Friday, 24 August 2018 at 05:35:13 UTC, Eugene Wissner wrote: As some of you may know D frontend was merged into GDC some time ago and is up to date. D version currently supported by GDC is 2.081.2 and it can be found in "gdc-7"

Re: How do you actually run the "Start a minimal webserver" example on the home page

2018-08-25 Thread Everlast via Digitalmars-d-learn
On Saturday, 25 August 2018 at 20:28:55 UTC, Chris M. wrote: On Saturday, 25 August 2018 at 20:17:35 UTC, AN wrote: I downloaded the script and made it executable. I also have dub on `/usr/bin/dub` . The example just stalls with no output. After fidgeting around for 5 minutes I realized it was

[Issue 11052] pathSplitter cannot be converted to string[], and to!() template fails

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11052 Basile B. changed: What|Removed |Added Severity|normal |enhancement --- Comment #2 from Basile B. ---

Re: How do you actually run the "Start a minimal webserver" example on the home page

2018-08-25 Thread Radu via Digitalmars-d-learn
On Saturday, 25 August 2018 at 20:37:04 UTC, Everlast wrote: On Saturday, 25 August 2018 at 20:28:55 UTC, Chris M. wrote: On Saturday, 25 August 2018 at 20:17:35 UTC, AN wrote: I downloaded the script and made it executable. I also have dub on `/usr/bin/dub` . The example just stalls with no

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

2018-08-25 Thread Boris-Barboris via Digitalmars-d
On Saturday, 25 August 2018 at 20:52:06 UTC, Walter Bright wrote: I.e. a nothrow constructor now must call a throwing destructor. This is not some made up example, it breaks existing code: https://github.com/dlang/dmd/pull/6816 If I fix the bug, I break existing code, and apparently a

Re: GDC with D frontend 2.081.2

2018-08-25 Thread Anonymouse via Digitalmars-d-announce
On Saturday, 25 August 2018 at 20:59:56 UTC, Daniel Kozak wrote: Hmm I am not sure, but how long did you have this gdc package installed? It seems I forgot to update .SRCINFO. There should be gdc-8.2.0-2 which has 2.081.1 d frontend. I will fix this on monday, until than you can uninstall gdc

Re: "The D Way" to run a sequence of executables?

2018-08-25 Thread JN via Digitalmars-d-learn
On Friday, 24 August 2018 at 17:36:25 UTC, Matthew OConnor wrote: I'd like to run a sequence of executables with something like std.process.execute, but I would like the sequence to error out if one of the executables returns a non-zero return code. What is the recommended way to do this? A

Re: "The D Way" to run a sequence of executables?

2018-08-25 Thread JN via Digitalmars-d-learn
On Saturday, 25 August 2018 at 22:00:47 UTC, JN wrote: It's kind of a dirty and not very portable solution, but if you run by executeShell, you could so something like executeShell("cmd1 && cmd2 && cmd3") and let the shell do the sequence for you. Oops, didn't notice it was suggested

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

2018-08-25 Thread RhyS via Digitalmars-d
On Saturday, 25 August 2018 at 12:16:06 UTC, Laeeth Isharc wrote: And yet some of the heaviest users of D have said in public 'please break our code". I wonder why that could be. My answer to that is simply: Break stuff so it becomes STABLE! Remove junk and clutter. Do NOT break stuff to add

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

2018-08-25 Thread Chris via Digitalmars-d
On Saturday, 25 August 2018 at 23:46:54 UTC, Radu wrote: I think you need to look at Dlang as what it is - still WIP and mostly *community driven*. I got used to the occasional breaking or regression, and the best I can advise is to try to report or fix them if you can. There are still

[Issue 19148] Alignment of section does not reflect the maximum alignment of its contents

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19148 --- Comment #8 from Joakim --- OK, if you're so sure it's a problem in dmd's backend, a pull request is welcome. --

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

2018-08-25 Thread David Nadlinger via Digitalmars-d
On Saturday, 25 August 2018 at 22:53:44 UTC, Walter Bright wrote: On 8/25/2018 2:46 PM, David Nadlinger wrote: At least for the transition period, I'd have attributes only apply to the user-specified code and infer them for the actual full constructor. (We can still print a deprecation warning

Solving the impossible?

2018-08-25 Thread Everlast via Digitalmars-d-learn
void print() { } void print(T, A...)(T t, A a) { import std.stdio; writeln(t); print(a); } The problem is, suppose one wants to specify A void print(T, int... A)(T t, A a) while tricks can be used, why doesn't D support such an obvious syntax? We can specify an arbitrary type but

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

2018-08-25 Thread Ali via Digitalmars-d
On Wednesday, 22 August 2018 at 11:59:37 UTC, Paolo Invernizzi wrote: Just found by chance, if someone is interested [1] [2]. /Paolo [1] https://gitlab.com/mihails.strasuns/blog/blob/master/articles/on_leaving_d.md [2]

Re: RFC: initial release of dtoh

2018-08-25 Thread rikki cattermole via Digitalmars-d-announce
On 26/08/2018 7:08 AM, Jacob Carlborg wrote: On 2018-08-24 12:09, Uknown wrote: This is all very nice. I agree that this kind of thing should be a part of the compiler, but I think it should be a compiler plugin. If dmd had compiler plugins, I think stuff like this and `dpp` would be much

[Issue 19148] Alignment of section does not reflect the maximum alignment of its contents

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19148 --- Comment #7 from Yuxuan Shui --- (In reply to Joakim from comment #6) > There was an issue with a ldc header mismatch that kinke found when merging > the 2.081 frontend into ldc: are you sure that's not what you're seeing > instead? > >

Re: Solving the impossible?

2018-08-25 Thread Paul Backus via Digitalmars-d-learn
On Sunday, 26 August 2018 at 02:26:58 UTC, Everlast wrote: The problem is, suppose one wants to specify A void print(T, int... A)(T t, A a) while tricks can be used, why doesn't D support such an obvious syntax? We can specify an arbitrary type but can't restrict it in an obvious way, in

[Issue 13416] dead-lock in FreeBSD suspend handler

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13416 --- Comment #12 from Joakim --- Sorry, only seeing your question now. I was simply checking the D tests on FreeBSD back then but I haven't used that OS in years, so can't look into it further now. --

[Issue 19148] Alignment of section does not reflect the maximum alignment of its contents

2018-08-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19148 --- Comment #6 from Joakim --- There was an issue with a ldc header mismatch that kinke found when merging the 2.081 frontend into ldc: are you sure that's not what you're seeing instead?