Re: Rant after trying Rust a bit

2015-07-27 Thread Jonathan M Davis via Digitalmars-d
On Monday, 27 July 2015 at 22:47:05 UTC, jmh530 wrote: On Monday, 27 July 2015 at 21:54:23 UTC, Jonathan M Davis wrote: On Monday, 27 July 2015 at 20:49:54 UTC, Andrei Alexandrescu wrote: I'll do my best to limit my participation in emotional debates, and suggest other D luminaries to do the

[Issue 3031] scoped static var conflicts

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3031 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords|link-failure| Summary|scoped

Re: Beta D 2.068.0-b2

2015-07-27 Thread extrawurst via Digitalmars-d-announce
On Monday, 27 July 2015 at 09:04:08 UTC, Martin Nowak wrote: On 07/26/2015 11:13 PM, anonymous wrote: Is std.expermimental.allocator planned for 2.068 ? I see it's still not merged and we already almost in August. We're trying hard here to meet some deadlines, so things are really simple.

[Issue 14831] Each function local symbols should have unique mangled name

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14831 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Blocks|3031| --- Comment #2 from Kenji

[Issue 3031] scoped static var conflicts while linking

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3031 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Depends on|14831 | --

[Issue 10619] Ambiguous mangling of local variable alias arguments to templates

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10619 --- Comment #5 from Kenji Hara k.hara...@gmail.com --- (In reply to Sönke Ludwig from comment #4) I assume that this has the same root cause: --- void checkAlias(X...)(int cmp) { assert(X[0] == cmp); } void main() { foreach (j; 0 .. 2)

Re: Read text file fast, how?

2015-07-27 Thread Johan Holmberg via Digitalmars-d
On Sun, Jul 26, 2015 at 5:36 PM, Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com wrote: On 7/26/15 10:35 AM, Johan Holmberg via Digitalmars-d wrote: On Sat, Jul 25, 2015 at 10:12 PM, Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com

[Issue 11720] Function-local static variables should cause already defined in another scope error

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11720 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED Depends

[Issue 14836] [REG2.068a] Multiple variadic template argument trick broken

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

[Issue 14834] [REG 2.068-b2] dirEntries with mask stopped working with -inline -debug

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

[Issue 14831] Each function local symbols should have unique mangled name

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14831 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added CC||hst...@quickfur.ath.cx ---

[Issue 10619] Ambiguous mangling of local variable alias arguments to templates

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10619 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 14820] Templates not reevaluated inside static loop unrolling

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14820 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 14831] Each function local symbols should have unique mangled name

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14831 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added CC||simend...@gmail.com ---

Re: Problem with casting instance reference to void* and back.

2015-07-27 Thread anonymous via Digitalmars-d-learn
On Monday, 27 July 2015 at 12:03:06 UTC, Vlad Leberstein wrote: Hi! My use case requires interaction with C API which in turn implies storing object instance reference as void *. I'm using gdc 4.9.2 and everything worked fine with object - void * - object conversion, but object - void * -

[Issue 14831] Each function local symbols should have unique mangled name

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14831 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Blocks|11720 | --

Problem with casting instance reference to void* and back.

2015-07-27 Thread Vlad Leberstein via Digitalmars-d-learn
Hi! My use case requires interaction with C API which in turn implies storing object instance reference as void *. I'm using gdc 4.9.2 and everything worked fine with object - void * - object conversion, but object - void * - interface failed. The stripped-down example is something like this:

[Issue 10619] Ambiguous mangling of local variable alias arguments to templates

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10619 Sönke Ludwig slud...@outerproduct.org changed: What|Removed |Added CC|

Re: Read text file fast, how?

2015-07-27 Thread John Colvin via Digitalmars-d
On Monday, 27 July 2015 at 12:03:40 UTC, Johan Holmberg wrote: On Sun, Jul 26, 2015 at 5:36 PM, Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com wrote: [...] Back on MacOS again, I thought I should try to run Instruments on my program. I'm not familiar with the DMD

[Issue 9748] Wrong scope of templated nested functions in static foreach

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9748 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED Depends

Re: Problem with casting instance reference to void* and back.

2015-07-27 Thread Artur Skawina via Digitalmars-d-learn
On 07/27/15 14:03, Vlad Leberstein via Digitalmars-d-learn wrote: Hi! My use case requires interaction with C API which in turn implies storing object instance reference as void *. I'm using gdc 4.9.2 and everything worked fine with object - void * - object conversion, but object - void * -

Wanted: Review manager for std.experimental.testing

2015-07-27 Thread Atila Neves via Digitalmars-d
Pretty sure I addressed all remaining comments. Atila

[Issue 14831] Each function local symbols should have unique mangled name

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14831 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Blocks|9748| CC|

Re: Problem with casting instance reference to void* and back.

2015-07-27 Thread anonymous via Digitalmars-d-learn
On Monday, 27 July 2015 at 13:11:33 UTC, anonymous wrote: In the first example, you pass a pointer to a class instance. You cannot get the vtbl entry for the interface like this. Instead try to do this in 2 steps: actually i meant you pass an untyped pointer, so when you cast as interface

[Issue 3031] scoped static var conflicts

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3031 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added CC||timothee.co...@gmail.com ---

[Issue 14837] Class constructor is not called under *certain* conditions

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14837 Daniel Čejchan czda...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 14837] Class constructor is not called under *certain* conditions

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14837 Daniel Čejchan czda...@gmail.com changed: What|Removed |Added CC||czda...@gmail.com --

[Issue 14837] New: Class constructor is not called under *certain* conditions

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14837 Issue ID: 14837 Summary: Class constructor is not called under *certain* conditions Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW

[Issue 14837] Class constructor is not called under *certain* conditions

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14837 --- Comment #1 from Daniel Čejchan czda...@gmail.com --- Also, it rather seems it behaves like the class had the default constructor only, as when trying to call constructors with arguments, it spits Error: no constructor for (...) --

[Issue 4733] Possible bugs caused by dynamic arrays in boolean evaluation context

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4733 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added Status|REOPENED|RESOLVED

Re: Yes or No Options

2015-07-27 Thread John Colvin via Digitalmars-d
On Monday, 27 July 2015 at 15:40:56 UTC, Alex wrote: Hey guys! I am super new to programming and still trying to learn the very basics via a book that I bought. [...] This isn't the right place for this sort of question, please use http://forum.dlang.org/group/learn, I'm sure someone will

[Issue 14837] Class constructor is not called under *certain* conditions

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14837 --- Comment #3 from Daniel Čejchan czda...@gmail.com --- Haha thanks, I guess I gotta get the build done :D --

[Issue 14837] Class constructor is not called under *certain* conditions

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14837 --- Comment #2 from Kenji Hara k.hara...@gmail.com --- Works with 2.068.0-beta2. --

Re: Why hide a trusted function as safe?

2015-07-27 Thread Steven Schveighoffer via Digitalmars-d-learn
On 7/26/15 9:11 AM, Dicebot wrote: I remember doing something like that in druntime because of objects - you can't override @safe method prototype with @trusted one. But you can, at least now you can, maybe it's changed. In answer to the original question, the given code is quite

Re: Wanted: Review manager for std.experimental.testing

2015-07-27 Thread via Digitalmars-d
I'm looking forward to this addition. Good job. Does unit-threaded (branch: experimental) contain the same as the pull request for std.experimental.testing? I've only read about it (PR+forum) so far and dying of curiosity to test it out for real. Questions. Does it contain a way to plugin

Re: Yes or No Options

2015-07-27 Thread Namespace via Digitalmars-d-learn
Look at my example: import std.stdio; import std.string; import std.conv : to; void main() { while (true) { write(Roll the dice: Enter a number: ); int dieNumber = readln.strip.to!int; if (dieNumber 4) { writeln(You won!); } else if

[Issue 14837] Class constructor is not called under *certain* conditions

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14837 Daniel Čejchan czda...@gmail.com changed: What|Removed |Added CC|czda...@gmail.com | --

Yes or No Options

2015-07-27 Thread Alex via Digitalmars-d-learn
Hey guys! I am super new to programming and still trying to learn the very basics via a book that I bought. My problem is the following: import std.stdio; import std.string; void main() { char[] yesno; write(Roll the dice: Enter a number!); int dieNumber;

Yes or No Options

2015-07-27 Thread Alex via Digitalmars-d
Hey guys! I am super new to programming and still trying to learn the very basics via a book that I bought. My problem is the following: import std.stdio; import std.string; void main() { char[] yesno; write(Roll the dice: Enter a number!); int dieNumber;

Re: Yes or No Options

2015-07-27 Thread Brad Anderson via Digitalmars-d
On Monday, 27 July 2015 at 15:40:56 UTC, Alex wrote: The program quits after writeln(Do you want to play again? Y/N?); It ignores readln. Furthermore: What I am actually trying to do is: If I type Y, the programm should just rerun from the beginning. I am really new to programming and there

Re: Yes or No Options

2015-07-27 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 27 July 2015 at 15:50:11 UTC, Alex wrote: readf( %s, dieNumber); What happens here is a bit tricky and trips up a lot of programmers: readf leaves the end-of-line character in the buffer, which readln then sees as meaning its job is done. When you enter, say, 5, then

Re: Beta D 2.068.0-b2

2015-07-27 Thread Joseph Cassman via Digitalmars-d-announce
On Monday, 27 July 2015 at 09:04:08 UTC, Martin Nowak wrote: On 07/26/2015 11:13 PM, anonymous wrote: Is std.expermimental.allocator planned for 2.068 ? I see it's still not merged and we already almost in August. We're trying hard here to meet some deadlines, so things are really simple.

Re: Read text file fast, how?

2015-07-27 Thread Johan Holmberg via Digitalmars-d
On Mon, Jul 27, 2015 at 11:03 AM, via Digitalmars-d digitalmars-d@puremagic.com wrote: Are you including program startup and exit in the timing? For comparison, can you include the timings of an empty do-nothing program in all the languages? Yes, I measure the whole program. But these

Re: Yes or No Options

2015-07-27 Thread Alex via Digitalmars-d-learn
On Monday, 27 July 2015 at 17:31:08 UTC, Ali Çehreli wrote: On 07/27/2015 08:50 AM, Alex wrote: a book that I bought The program looks a lot like one of the exercises in this chapter: http://ddili.org/ders/d.en/if.html You didn't actually pay for it, right? Because it is free. :) Ali

[Issue 13946] ddox should rebuild documentation incrementally

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13946 --- Comment #2 from Sönke Ludwig slud...@outerproduct.org --- I guess this can be closed now. 1: is solved (the --force workaround has been removed) 2: remains, but is fast. 3: is solved --

Re: Yes or No Options

2015-07-27 Thread Alex via Digitalmars-d-learn
Okay. By pure trying I found out what I did wrong: Apparently by typing Y I entered the shift key. Could that have been the problem? I changed it to a small y and it at least jumped back to the commandline instead of just being stuck. And by changing: writeln(Do you want to play again?

Re: Yes or No Options

2015-07-27 Thread Anonymous via Digitalmars-d-learn
On Monday, 27 July 2015 at 16:48:00 UTC, Alex wrote: Okay. By pure trying I found out what I did wrong: Apparently by typing Y I entered the shift key. Could that have been the problem? I changed it to a small y and it at least jumped back to the commandline instead of just being stuck. And

Re: Yes or No Options

2015-07-27 Thread Alex via Digitalmars-d-learn
Thank you! That helped me a lot. I'm sure that - in order to get to the point to repeat the whole first part of the program - I'll have to read further in the instructions I have BUT let's just say that I don't want it to repeat the first part of the program but just writeln something like

This Week in D 28: two new books, long argument, beta

2015-07-27 Thread Adam D. Ruppe via Digitalmars-d-announce
This Week in #Dlang - new beta, two new books announced, long argument on template duck types vs Rust traits: http://arsdnet.net/this-week-in-d/jul-26.html BTW I don't always post these to the announce forum or reddit each week, but I do tend to tweet them: https://twitter.com/adamdruppe

Re: Problem with casting instance reference to void* and back.

2015-07-27 Thread Vlad Leberstein via Digitalmars-d-learn
auto self = cast(TestInterface)cast(Object) rawSelf Works like a charm! Thank you both!

Re: Yes or No Options

2015-07-27 Thread CraigDillabaugh via Digitalmars-d-learn
On Monday, 27 July 2015 at 17:21:33 UTC, Anonymous wrote: On Monday, 27 July 2015 at 16:48:00 UTC, Alex wrote: Okay. By pure trying I found out what I did wrong: Apparently by typing Y I entered the shift key. Could that have been the problem? I changed it to a small y and it at least jumped

Re: Yes or No Options

2015-07-27 Thread Ali Çehreli via Digitalmars-d-learn
On 07/27/2015 08:50 AM, Alex wrote: a book that I bought The program looks a lot like one of the exercises in this chapter: http://ddili.org/ders/d.en/if.html You didn't actually pay for it, right? Because it is free. :) Ali

[Issue 13946] ddox should rebuild documentation incrementally

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13946 Sönke Ludwig slud...@outerproduct.org changed: What|Removed |Added Status|NEW |RESOLVED

Re: Yes or No Options

2015-07-27 Thread Tofu Ninja via Digitalmars-d-learn
On Monday, 27 July 2015 at 16:48:00 UTC, Alex wrote: Okay. By pure trying I found out what I did wrong: Apparently by typing Y I entered the shift key. Could that have been the problem? I changed it to a small y and it at least jumped back to the commandline instead of just being stuck. And

Re: Where can i find examples of multi-threaded fibers?

2015-07-27 Thread Gary Willoughby via Digitalmars-d-learn
On Monday, 27 July 2015 at 08:00:10 UTC, Marc Schütz wrote: On Sunday, 26 July 2015 at 18:07:51 UTC, Gary Willoughby wrote: In the description for Fiber in std.thread is the following[1]: Please note that there is no requirement that a fiber be bound to one specific thread. Rather, fibers may

Re: Beta D 2.068.0-b2

2015-07-27 Thread Joseph Cassman via Digitalmars-d-announce
On Saturday, 25 July 2015 at 12:21:19 UTC, Martin Nowak wrote: Second beta for the 2.068.0 release. http://downloads.dlang.org/pre-releases/2.x/2.068.0/ http://ftp.digitalmars.com/ Also available on Travis-CI as dmd-2.068.0-b2. The changelog (http://dlang.org/changelog.html#2.068.0)

Can't Compile Global Semaphores?

2015-07-27 Thread Jack Stouffer via Digitalmars-d-learn
Hi, I am currently working through a book on the fundamentals of computer concurrency and I wanted to do all of the exercises in D. But I ran into a problem when I tried to have a global semaphore: /usr/local/Cellar/dmd/2.067.1/include/d2/core/sync/semaphore.di(35): Error: constructor

Re: Rant after trying Rust a bit

2015-07-27 Thread Walter Bright via Digitalmars-d
On 7/26/2015 12:51 AM, Alix Pexton wrote: On 25/07/2015 9:48 PM, Walter Bright wrote: Unfortunately, Bruce Eckel's seminal article on it http://www.mindview.net/Etc/Discussions/CheckedExceptions has disappeared. Eckel is not a Java code monkey, he wrote the book Thinking In Java

Re: Rant after trying Rust a bit

2015-07-27 Thread deadalnix via Digitalmars-d
On Sunday, 26 July 2015 at 23:21:50 UTC, Walter Bright wrote: If the template constraint is 'isInputRange', and you pass it an 'InputRange' that is nothing beyond an input range, and it compiles, it is JUST AS GOOD as Rust traits, without needing to add 'isInputRange' to every template up the

[Issue 14838] New: Wrong attribute inference for auto-generated class destructor with static array of non-POD type

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14838 Issue ID: 14838 Summary: Wrong attribute inference for auto-generated class destructor with static array of non-POD type Product: D Version: D2 Hardware: All OS:

[Issue 14829] [REG2.066.0] wrong code with -O -inline

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14829 --- Comment #5 from Walter Bright bugzi...@digitalmars.com --- Even smaller: int stripLeft(int str, int dc) { while (true) { int a = str; int s = a; str += 1; if (dc) return s; } } void main () {

Re: Rant after trying Rust a bit

2015-07-27 Thread deadalnix via Digitalmars-d
On Monday, 27 July 2015 at 01:59:49 UTC, Jonathan M Davis wrote: On Sunday, 26 July 2015 at 22:59:09 UTC, deadalnix wrote: On Sunday, 26 July 2015 at 03:42:22 UTC, Walter Bright wrote: On 7/25/2015 3:28 PM, deadalnix wrote: Also, argument from ignorance is hard to maintain when the thread is

Re: Wanted: Review manager for std.data.json

2015-07-27 Thread Atila Neves via Digitalmars-d
On Sunday, 26 July 2015 at 09:09:51 UTC, Sönke Ludwig wrote: Am 07.04.2015 um 18:37 schrieb Sönke Ludwig: Anyone up to this? The issues of the previous discussion [1] have all been addressed now more or less, so the package is ready for a more thorough review. Code:

Re: Rant after trying Rust a bit

2015-07-27 Thread Jonathan M Davis via Digitalmars-d
On Saturday, 25 July 2015 at 20:35:08 UTC, Walter Bright wrote: On 7/25/2015 3:29 AM, Jonathan M Davis wrote: We're essentially using it with ranges already when we're implementing algorithms differently based on what type of range we're given or what extra capabilities the range has, so it

Re: Rant after trying Rust a bit

2015-07-27 Thread Tobias Müller via Digitalmars-d
Jonathan M Davis jmdavisp...@gmx.com wrote: On a related note, while I'd noticed it on some level, I don't think that it had ever clicked for me how restrictive interfaces are before this discussion. The simple fact that you can't ask for two of them at once really reduces how reusable your

Re: Read text file fast, how?

2015-07-27 Thread Tobias Müller via Digitalmars-d
Martin Nowak code+news.digitalm...@dawg.eu wrote: On 07/26/2015 09:04 PM, Jesse Phillips wrote: It would be better to compare with LDC or GDC to match the same backend as C++. That is a little harder since they don't have 2.068 yet. Reading a file is IO and memcpy limited, has nothing to

Re: Rant after trying Rust a bit

2015-07-27 Thread Tofu Ninja via Digitalmars-d
On Monday, 27 July 2015 at 19:11:53 UTC, deadalnix wrote: That is completely unmaintainable. I really don't get how the mess of unittests, mock data types, template constraints, and type interfaces that are just convention(ranges are just a convention, they don't exist anywhere) is

Re: Can't Compile Global Semaphores?

2015-07-27 Thread Steven Schveighoffer via Digitalmars-d-learn
On 7/27/15 3:10 PM, Jack Stouffer wrote: Hi, I am currently working through a book on the fundamentals of computer concurrency and I wanted to do all of the exercises in D. But I ran into a problem when I tried to have a global semaphore:

Re: force inline/not-inline

2015-07-27 Thread tcak via Digitalmars-d
On Monday, 27 July 2015 at 08:52:02 UTC, Marc Schütz wrote: On Monday, 27 July 2015 at 02:19:28 UTC, Jonathan M Davis wrote: [...] The result was that the pragma _forces_ inlining. If the compiler cannot inline it for whatever reason, it prints an error and exits. This is mostly to

[Issue 14839] New: [REG2.068.0-b2] Class with static array of Array!T fails to compile

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14839 Issue ID: 14839 Summary: [REG2.068.0-b2] Class with static array of Array!T fails to compile Product: D Version: D2 Hardware: All OS: All Status: NEW

Re: Can't Compile Global Semaphores?

2015-07-27 Thread Ali Çehreli via Digitalmars-d-learn
On 07/27/2015 12:56 PM, Steven Schveighoffer wrote: Instead, do this: shared Semaphore sem; shared static this() { sem = new Semaphore(); } Which will run during runtime startup. Or, you can initialize in main(). -Steve I tried that as well but there are tons of issues with shared. :(

Re: Beta D 2.068.0-b2

2015-07-27 Thread jmh530 via Digitalmars-d-announce
On Monday, 27 July 2015 at 18:58:33 UTC, Joseph Cassman wrote: Sorry for the following rant but I am frustrated by the poor quality of support for Windows 64 development. rant I understand that frustration. I had some modest problems getting it to work with -m64 on my home computer.

Re: Rant after trying Rust a bit

2015-07-27 Thread Andrei Alexandrescu via Digitalmars-d
On 7/27/15 3:35 PM, Tofu Ninja wrote: On Monday, 27 July 2015 at 19:11:53 UTC, deadalnix wrote: That is completely unmaintainable. I really don't get how the mess of unittests, mock data types, template constraints, and type interfaces that are just convention(ranges are just a convention,

Re: Rant after trying Rust a bit

2015-07-27 Thread Timon Gehr via Digitalmars-d
On 07/27/2015 01:29 AM, Walter Bright wrote: On 7/26/2015 3:44 PM, deadalnix wrote: or template code (which will blow up at instanciation time, or worse, do random shit). Um, all Rust traits do is test for a method signature match, so it compiles. It is NOT a defense against a random method

Re: Last call for AliasSeq

2015-07-27 Thread Timon Gehr via Digitalmars-d
On 07/27/2015 10:12 AM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: On Monday, 27 July 2015 at 02:14:57 UTC, Jonathan M Davis wrote: On technical merit, AliasSeq is one of the better choices; it was what TypeTuple had been changed to prior to the recent, On

[Issue 14840] New: [2.068.0-b2] failure to inline _trivial_ function

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14840 Issue ID: 14840 Summary: [2.068.0-b2] failure to inline _trivial_ function Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: major

Re: Wanted: Review manager for std.experimental.testing

2015-07-27 Thread Atila Neves via Digitalmars-d
On Monday, 27 July 2015 at 14:59:48 UTC, Joakim Brännström wrote: I'm looking forward to this addition. Good job. Does unit-threaded (branch: experimental) contain the same as the pull request for std.experimental.testing? Pretty much. I've only read about it (PR+forum) so far and dying of

Re: Rant after trying Rust a bit

2015-07-27 Thread Walter Bright via Digitalmars-d
On 7/27/2015 12:53 PM, deadalnix wrote: So, if I translate to regular D, here is what I get : I asked how you'd solve the problem with interfaces.

Re: Wanted: Review manager for std.data.json

2015-07-27 Thread Sönke Ludwig via Digitalmars-d
Am 27.07.2015 um 22:00 schrieb Atila Neves: On Sunday, 26 July 2015 at 09:09:51 UTC, Sönke Ludwig wrote: Am 07.04.2015 um 18:37 schrieb Sönke Ludwig: Anyone up to this? The issues of the previous discussion [1] have all been addressed now more or less, so the package is ready for a more

Re: Can't Compile Global Semaphores?

2015-07-27 Thread John Colvin via Digitalmars-d-learn
On Monday, 27 July 2015 at 19:56:15 UTC, Steven Schveighoffer wrote: On 7/27/15 3:10 PM, Jack Stouffer wrote: Hi, I am currently working through a book on the fundamentals of computer concurrency and I wanted to do all of the exercises in D. But I ran into a problem when I tried to have a

Re: Inout unclearness

2015-07-27 Thread Max Klimov via Digitalmars-d
On Sunday, 26 July 2015 at 13:06:50 UTC, Kagamin wrote: The example works like inout without inout, so you can use types with templates and virtual functions. Does constBack imply to have several static if constructions, function overloadings or template specializations? I mean does this

Re: Read text file fast, how?

2015-07-27 Thread Jesse Phillips via Digitalmars-d
On Monday, 27 July 2015 at 08:52:07 UTC, Martin Nowak wrote: On 07/26/2015 09:04 PM, Jesse Phillips wrote: It would be better to compare with LDC or GDC to match the same backend as C++. That is a little harder since they don't have 2.068 yet. Reading a file is IO and memcpy limited, has

Re: Can't Compile Global Semaphores?

2015-07-27 Thread Jack Stouffer via Digitalmars-d-learn
On Monday, 27 July 2015 at 20:12:10 UTC, John Colvin wrote: Yes, but then core.sync.semaphore doesn't support being shared, so... Ok, so I made the code run by using __gshared instead of shared. It seems really odd that a semaphore object doesn't support being shared, this that a bug? Here

Re: Rant after trying Rust a bit

2015-07-27 Thread Enamex via Digitalmars-d
On Monday, 27 July 2015 at 19:21:10 UTC, Tobias Müller wrote: trait A {...} trait B {...} trait C : A,B { } implT: A+B C for T { } fn myFunction(c: C) {...} Tobi Has to be: fn my_function(c: C) { ... } actually, because trait objects can only be passed by reference/borrowed-pointer.

Re: Rant after trying Rust a bit

2015-07-27 Thread Jonathan M Davis via Digitalmars-d
On Monday, 27 July 2015 at 19:21:10 UTC, Tobias Müller wrote: Jonathan M Davis jmdavisp...@gmx.com wrote: On a related note, while I'd noticed it on some level, I don't think that it had ever clicked for me how restrictive interfaces are before this discussion. The simple fact that you can't

Re: Rant after trying Rust a bit

2015-07-27 Thread jmh530 via Digitalmars-d
On Monday, 27 July 2015 at 21:54:23 UTC, Jonathan M Davis wrote: On Monday, 27 July 2015 at 20:49:54 UTC, Andrei Alexandrescu wrote: I'll do my best to limit my participation in emotional debates, and suggest other D luminaries to do the same. LOL. That's why I was originally planning to not

[Issue 14829] [REG2.066.0] wrong code with -O -inline

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14829 --- Comment #6 from Walter Bright bugzi...@digitalmars.com --- https://github.com/D-Programming-Language/dmd/pull/4841 --

Re: [RFC] std.experimental.concepts

2015-07-27 Thread deadalnix via Digitalmars-d
On Sunday, 26 July 2015 at 15:24:45 UTC, Andrei Alexandrescu wrote: I think we disagree here. It doesn't seem to me that adding features to D is helpful at this point. -- Andrei I'm all for not adding new stuff.

Re: Last call for AliasSeq

2015-07-27 Thread deadalnix via Digitalmars-d
On Monday, 27 July 2015 at 09:01:33 UTC, Marc Schütz wrote: On Monday, 27 July 2015 at 02:14:57 UTC, Jonathan M Davis wrote: AliasTuple in particular has serious issues with it from the perspective of teaching people what it is an how to use it, because it has Tuple in its name, People keep

Re: Rant after trying Rust a bit

2015-07-27 Thread Jonathan M Davis via Digitalmars-d
On Monday, 27 July 2015 at 20:49:54 UTC, Andrei Alexandrescu wrote: I'll do my best to limit my participation in emotional debates, and suggest other D luminaries to do the same. LOL. That's why I was originally planning to not say anything in this thread... - Jonathan M Davis

Re: Beta D 2.068.0-b2

2015-07-27 Thread Joseph Cassman via Digitalmars-d-announce
On Monday, 27 July 2015 at 20:43:38 UTC, jmh530 wrote: On Monday, 27 July 2015 at 18:58:33 UTC, Joseph Cassman wrote: Sorry for the following rant but I am frustrated by the poor quality of support for Windows 64 development. rant I understand that frustration. I had some modest problems

[Issue 14834] [REG 2.068-b2] dirEntries with mask stopped working with -inline -debug

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14834 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e5e0c3ebb1de765895d7ec0001bfe6e22cedb64f fix Issue 14834 -

Re: GC stats

2015-07-27 Thread via Digitalmars-d-learn
On Sunday, 26 July 2015 at 17:43:42 UTC, Martin Nowak wrote: On 07/26/2015 04:16 PM, Gary Willoughby wrote: I thought there is a recently added compiler option that profiles the GC and creates a report now? That's an allocation profiler, the other one mentioned by me reports GC stats as

[Issue 14829] [REG2.066.0] wrong code with -O -inline

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14829 --- Comment #7 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/bc2ae82f62fa1df91040c874542e8e6b9746178b fix Issue 14829 -

Why approxEqual not working for integers in dmd 2068-b2

2015-07-27 Thread lobo via Digitalmars-d-learn
Hi all, I have a bunch of unittests for template code taking any numeric type. Because I'm lazy I just use the approxEqual for both floating point and integer comparisons in these tests. In DMD 2067.1 everthing compiled OK but in 2068-b2 I get the errors shown at the end of this post for

Re: Beta D 2.068.0-b2

2015-07-27 Thread anonymous via Digitalmars-d-announce
On Monday, 27 July 2015 at 23:40:28 UTC, anonymous wrote: On Monday, 27 July 2015 at 09:04:08 UTC, Martin Nowak wrote: On 07/26/2015 11:13 PM, anonymous wrote: Is std.expermimental.allocator planned for 2.068 ? I see it's still not merged and we already almost in August. We're trying hard

Re: Beta D 2.068.0-b2

2015-07-27 Thread anonymous via Digitalmars-d-announce
On Monday, 27 July 2015 at 23:49:34 UTC, anonymous wrote: On Monday, 27 July 2015 at 23:40:28 UTC, anonymous wrote: On Monday, 27 July 2015 at 09:04:08 UTC, Martin Nowak wrote: On 07/26/2015 11:13 PM, anonymous wrote: [...] We're trying hard here to meet some deadlines, so things are

Re: force inline/not-inline

2015-07-27 Thread Daniel Murphy via Digitalmars-d
tcak wrote in message news:psflpqqpsukpfgpzh...@forum.dlang.org... Why not like pragma(inline, [try | force | no]) ? Walter liked the boolean version, which is certainly better than nothing.

Re: Last call for AliasSeq

2015-07-27 Thread Tofu Ninja via Digitalmars-d
On Monday, 27 July 2015 at 02:14:57 UTC, Jonathan M Davis wrote: Because the decision is not going to be made based on a popularity contest, and many of the folks who have been discussing this have not voted in that poll. Also, there is no clear winner in the poll anyway. AliasTuple is

[Issue 14836] [REG2.068a] Multiple variadic template argument trick broken

2015-07-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14836 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

  1   2   >