Re: [OT] Windows install

2016-07-15 Thread H. S. Teoh via Digitalmars-d
On Fri, Jul 15, 2016 at 10:33:05PM -0700, Walter Bright via Digitalmars-d wrote: > On 7/15/2016 10:09 PM, H. S. Teoh via Digitalmars-d wrote: > > Even though Linux sucks too, at least it doesn't force-install > > newer, more broken versions of itself without you asking for it. > > You have to go

Re: [OT] Windows install

2016-07-15 Thread Walter Bright via Digitalmars-d
On 7/15/2016 10:09 PM, H. S. Teoh via Digitalmars-d wrote: Even though Linux sucks too, at least it doesn't force-install newer, more broken versions of itself without you asking for it. You have to go into the windows update menu and select the only install critical updates. I upgraded my

Re: [OT] Windows install

2016-07-15 Thread Walter Bright via Digitalmars-d
On 7/15/2016 9:30 PM, Joakim wrote: As for printing, you're still printing? I think I've printed maybe three or four times in the last decade, but then I almost never read anything on paper during that time either. Sometimes I have to sign a document, scan it, and email it back. An inevitable

Re: [OT] Windows install

2016-07-15 Thread H. S. Teoh via Digitalmars-d
On Sat, Jul 16, 2016 at 04:30:31AM +, Joakim via Digitalmars-d wrote: > On Friday, 15 July 2016 at 05:10:29 UTC, Walter Bright wrote: > > I'm excluding the pain of Windows reinstall, as it took 14 hours of > > sitting there blankly "checking for updates". I wonder what it was > > possibly

Re: Card on fire

2016-07-15 Thread H. S. Teoh via Digitalmars-d
On Fri, Jul 15, 2016 at 05:02:55PM -0700, Walter Bright via Digitalmars-d wrote: > On 7/15/2016 3:43 PM, H. S. Teoh via Digitalmars-d wrote: > > One of the many reasons I gave up on Windows many years ago, and > > never looked back. ;-) > > I have my grump list for Linux, too. Tried to install it

Re: DIP1001: Exception Handling Extensions

2016-07-15 Thread Superstar64 via Digitalmars-d-announce
On Sunday, 10 July 2016 at 19:55:37 UTC, Superstar64 wrote: link: https://github.com/dlang/DIPs/pull/9 file: https://github.com/Superstar64/DIPs/blob/exception_extensions/DIPs/DIP1001.md I decided to close the PR. The my proposal had too many problems with it.

[OT] Windows install

2016-07-15 Thread Joakim via Digitalmars-d
On Friday, 15 July 2016 at 05:10:29 UTC, Walter Bright wrote: I'm excluding the pain of Windows reinstall, as it took 14 hours of sitting there blankly "checking for updates". I wonder what it was possibly doing that took 14 hours (the disk was fresh, there was nothing to transmit to the NSA).

Re: Card on fire

2016-07-15 Thread H. S. Teoh via Digitalmars-d
On Fri, Jul 15, 2016 at 10:55:06PM +, Adam D. Ruppe via Digitalmars-d wrote: > On Friday, 15 July 2016 at 22:48:14 UTC, Walter Bright wrote: > > For a time at Symantec I pushed through making the compiler runnable > > directly off of the CD without requiring an installation. > > Fun fact:

Re: Vision for the D language - stabilizing complexity?

2016-07-15 Thread Walter Bright via Digitalmars-d
On 7/15/2016 8:25 PM, Andrew Godfrey wrote: I agree and I like mechanically checkable things. But I also like compiler features that mix mechanical checking with the ability to attest to something that can't be mechanically checked. Like the @system attribute. So this line of reasoning feels

Re: Vision for the D language - stabilizing complexity?

2016-07-15 Thread Andrew Godfrey via Digitalmars-d
On Friday, 15 July 2016 at 23:00:45 UTC, Walter Bright wrote: On 7/15/2016 1:48 PM, Shachar Shemesh wrote: On 15/07/16 22:50, Walter Bright wrote: You can do logical const in D just like in C++, and get those performance gains. You just can't call it "const". But you can call it

Re: extern (C++) including bodies of member functions?

2016-07-15 Thread cy via Digitalmars-d-learn
On Friday, 15 July 2016 at 19:20:52 UTC, Jacob Carlborg wrote: Yes. Just as it's possible to call C function from D, it's possible to implement functions in D that can be called from C. This compatibility applies C++ and Objective-C as well. So, it applies to member functions too (for C++)?

Re: Template args

2016-07-15 Thread Max Klimov via Digitalmars-d-learn
On Friday, 15 July 2016 at 23:07:20 UTC, Andrey wrote: Hi guys! Can any one tell me - how to pass an array of int's in to the template struct at compile-time, and how to use int there? Like this: https://dpaste.dzfl.pl/844057da81e9 ?

Re: Card on fire

2016-07-15 Thread Walter Bright via Digitalmars-d
On 7/15/2016 3:55 PM, Adam D. Ruppe wrote: On Friday, 15 July 2016 at 22:48:14 UTC, Walter Bright wrote: For a time at Symantec I pushed through making the compiler runnable directly off of the CD without requiring an installation. Fun fact: this was basically THE killer feature of the

Re: Card on fire

2016-07-15 Thread Walter Bright via Digitalmars-d
On 7/15/2016 3:43 PM, H. S. Teoh via Digitalmars-d wrote: One of the many reasons I gave up on Windows many years ago, and never looked back. ;-) I have my grump list for Linux, too. Tried to install it once on an HP laptop, and the installer crashed with some long error message in hex. Like

Template args

2016-07-15 Thread Andrey via Digitalmars-d-learn
Hi guys! Can any one tell me - how to pass an array of int's in to the template struct at compile-time, and how to use int there?

Re: Vision for the D language - stabilizing complexity?

2016-07-15 Thread Walter Bright via Digitalmars-d
On 7/15/2016 1:58 PM, Shachar Shemesh wrote: Do enlighten me how to use intrusive reference counting in D. I am quite interested in the answer. Andrei and I are working on it. As he's expressed elsewhere, the idea is to maintain the reference count in memory that is outside the type system.

Re: Vision for the D language - stabilizing complexity?

2016-07-15 Thread Walter Bright via Digitalmars-d
On 7/15/2016 1:58 PM, Shachar Shemesh wrote: I think your argument there is completely destroyed :-) I do not understand the joy both you and Andrei express when you think you have "won" an "argument". This gives me the feeling that I'm not part of a process designed to make the language

Re: Vision for the D language - stabilizing complexity?

2016-07-15 Thread Walter Bright via Digitalmars-d
On 7/15/2016 1:48 PM, Shachar Shemesh wrote: On 15/07/16 22:50, Walter Bright wrote: You can do logical const in D just like in C++, and get those performance gains. You just can't call it "const". But you can call it /*logical_const*/ and get the same result. No, you can't. The fact that

Re: Card on fire

2016-07-15 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 15 July 2016 at 22:48:14 UTC, Walter Bright wrote: For a time at Symantec I pushed through making the compiler runnable directly off of the CD without requiring an installation. Fun fact: this was basically THE killer feature of the Digital Mars compiler for me way back when. I

Iterate through getOverloads trait

2016-07-15 Thread Max Klimov via Digitalmars-d-learn
I'm wondering how I can use the output of __traits(getOverloads, a, "name"). The example in the doc uses direct indexing (like __traits(getOverloads, a, "name")[0](param)) and it works. But I'm struggling with iterating through the result or storing the resulting tuple into a local var.

Re: Card on fire

2016-07-15 Thread H. S. Teoh via Digitalmars-d
On Fri, Jul 15, 2016 at 03:44:20PM -0700, Walter Bright via Digitalmars-d wrote: > On 7/15/2016 12:16 PM, Meta wrote: > > On Friday, 15 July 2016 at 05:10:29 UTC, Walter Bright wrote: > > > I'm excluding the pain of Windows reinstall, as it took 14 hours > > > of sitting there blankly "checking

Re: Card on fire

2016-07-15 Thread Walter Bright via Digitalmars-d
On 7/15/2016 12:46 PM, Jack Stouffer wrote: On Friday, 15 July 2016 at 05:10:29 UTC, Walter Bright wrote: The absolutely easiest reinstall was dmd - I just copied the directory over from the backup - but I suppose handing out awards to ourselves is a bit narcissistic. Always nice to dog food

Re: Card on fire

2016-07-15 Thread Walter Bright via Digitalmars-d
On 7/15/2016 12:16 PM, Meta wrote: On Friday, 15 July 2016 at 05:10:29 UTC, Walter Bright wrote: I'm excluding the pain of Windows reinstall, as it took 14 hours of sitting there blankly "checking for updates". I wonder what it was possibly doing that took 14 hours (the disk was fresh, there

Re: Vision for the D language - stabilizing complexity?

2016-07-15 Thread jmh530 via Digitalmars-d
On Friday, 15 July 2016 at 21:24:12 UTC, Andrei Alexandrescu wrote: On 07/15/2016 04:58 PM, Shachar Shemesh wrote: I do not understand the joy both you and Andrei express when you think you have "won" an "argument". This gives me the feeling that I'm not part of a process designed to make the

Re: Export GC Usage Statistics on Request for Profiling

2016-07-15 Thread Andrei Alexandrescu via Digitalmars-d
On 07/15/2016 03:42 PM, tcak wrote: If it is about speed, we can still use a public shared memory for that purpose. So, statistical messages can be written in shared memory, and other program reads from that to get those messages. A suitable communication protocol can be implemented in way. At

Re: Vision for the D language - stabilizing complexity?

2016-07-15 Thread Andrei Alexandrescu via Digitalmars-d
On 07/15/2016 04:58 PM, Shachar Shemesh wrote: I do not understand the joy both you and Andrei express when you think you have "won" an "argument". This gives me the feeling that I'm not part of a process designed to make the language better, but rather part of an argument meant to prove to me

Re: Article: "Profile-Guided Optimization with LDC"

2016-07-15 Thread Dechcaudron via Digitalmars-d-announce
On Friday, 15 July 2016 at 08:11:31 UTC, Johan Engelen wrote: Profile-Guided Optimization (PGO) This is dope. I'm learning a shitload about general programming and optimization techniques since I joined the D community a couple months ago. Great article :)

Re: [OT] Re: Card on fire

2016-07-15 Thread Ali Çehreli via Digitalmars-d
On 07/14/2016 09:18 PM, Basile B. wrote: > On Friday, 15 July 2016 at 00:17:35 UTC, Ali Çehreli wrote: >>> https://www.youtube.com/watch?v=NOErZuzZpS8 >>> >> >> OK, this is really going off off topic but thank you for posting that. >> I've discovered Arthur Brown (you? ;) ). An

Re: new cpuid is ready for comments

2016-07-15 Thread Zoadian via Digitalmars-d-announce
On Monday, 11 July 2016 at 16:30:44 UTC, Ilya Yaroshenko wrote: Please report your CPU (GitHub/Gist): my results for Intel Core i7-6700K CPU @ 4.00GHz rev.2 (the one with sgx) https://gist.github.com/Zoadian/f53d818e714a849ba7f34bbec2f3339a awesome!

Re: Vision for the D language - stabilizing complexity?

2016-07-15 Thread Shachar Shemesh via Digitalmars-d
On 15/07/16 22:06, Walter Bright wrote: 2. memory allocation - D programmers can use any of C++'s allocation methods Do enlighten me how to use intrusive reference counting in D. I am quite interested in the answer. Or, for that matter, tracking lifetime through an external linked list with

Re: Vision for the D language - stabilizing complexity?

2016-07-15 Thread Shachar Shemesh via Digitalmars-d
On 15/07/16 22:50, Walter Bright wrote: You can do logical const in D just like in C++, and get those performance gains. You just can't call it "const". But you can call it /*logical_const*/ and get the same result. No, you can't. The fact that the compiler enforces the no const to mutable

Re: new cpuid is ready for comments

2016-07-15 Thread Kai Nacke via Digitalmars-d-announce
Output cpuid for Intel(R) Core(TM) i5-3320M CPU @ 2.6 GHz: https://gist.github.com/redstar/a1c9c85f17f2c24834050b5b0b734d3d

Re: Why modules is so strongly limited?

2016-07-15 Thread imbaFireFenix via Digitalmars-d
On Thursday, 14 July 2016 at 09:36:17 UTC, Jonathan M Davis wrote: Java does basically the same thing (though they take it even farther, since they only allow one, public class per module), and IIRC, a number of other languages do as well (haskell does from what I recall, and python might; I

Re: new cpuid is ready for comments

2016-07-15 Thread Kai Nacke via Digitalmars-d-announce
On Tuesday, 12 July 2016 at 15:24:29 UTC, Guillaume Chatelet wrote: On Tuesday, 12 July 2016 at 13:23:46 UTC, Ilya Yaroshenko wrote: On Tuesday, 12 July 2016 at 12:46:26 UTC, Guillaume Chatelet wrote: On Monday, 11 July 2016 at 16:30:44 UTC, Ilya Yaroshenko wrote: Hello :-) `cpuid` package

Re: Battle-plan for CTFE

2016-07-15 Thread Stefan Koch via Digitalmars-d-announce
On Thursday, 14 July 2016 at 00:45:53 UTC, Stefan Koch wrote: On Saturday, 9 July 2016 at 20:09:14 UTC, Stefan Koch wrote: I decided to keep a gist updated to represent the current state the new engine can handle. https://gist.github.com/UplinkCoder/89faa06311e417aa93ea99bc92934d3e This is

[Issue 16263] Error: template std.algorithm.iteration.permutations cannot deduce function from argument types !()(char[])

2016-07-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16263 --- Comment #11 from Wyatt --- (In reply to ag0aep6g from comment #10) > (In reply to Wyatt from comment #8) > > I'm afraid I disagree: things not behaving as documented is always a bug. > > As far as I see, everything works as

Re: Vision for the D language - stabilizing complexity?

2016-07-15 Thread Walter Bright via Digitalmars-d
On 7/15/2016 12:55 PM, Jack Stouffer wrote: On Friday, 15 July 2016 at 19:06:15 UTC, Walter Bright wrote: 4. making use of asserts to provide information to the optimizer Do dmd/ldc/gdc actually do this? dmd doesn't. I don't know about other compilers. The point is it's possible because

Re: Vision for the D language - stabilizing complexity?

2016-07-15 Thread deadalnix via Digitalmars-d
On Friday, 15 July 2016 at 18:01:43 UTC, Andrei Alexandrescu wrote: Read or write. For const(T) , same thing, but limited to write. Thanks. Reworked: "During and after mutating a memory location typed as (unqualified) type T, no thread in the program (including the current thread) is

Re: Vision for the D language - stabilizing complexity?

2016-07-15 Thread Jack Stouffer via Digitalmars-d
On Friday, 15 July 2016 at 19:06:15 UTC, Walter Bright wrote: 4. making use of asserts to provide information to the optimizer Do dmd/ldc/gdc actually do this?

Re: Vision for the D language - stabilizing complexity?

2016-07-15 Thread Walter Bright via Digitalmars-d
On 7/15/2016 7:43 AM, Andrew Godfrey wrote: One example is if you make a class that has an internal cache of something. Updating or invalidating that cache has no logical effect on the externally-observable state of the class. So you should be able to modify the cache even on a 'const' object.

Re: Card on fire

2016-07-15 Thread Jack Stouffer via Digitalmars-d
On Friday, 15 July 2016 at 05:10:29 UTC, Walter Bright wrote: The absolutely easiest reinstall was dmd - I just copied the directory over from the backup - but I suppose handing out awards to ourselves is a bit narcissistic. Always nice to dog food every once and a while to confirm it

Re: Export GC Usage Statistics on Request for Profiling

2016-07-15 Thread tcak via Digitalmars-d
On Friday, 15 July 2016 at 17:04:35 UTC, Andrei Alexandrescu wrote: On 07/15/2016 12:31 PM, tcak wrote: Do you know about --profile=gc? 1. Never worked for me in a multithreaded program. Could you please give it another look. Walter fixed it relatively recently. Hmm, I will check it

Re: Export GC Usage Statistics on Request for Profiling

2016-07-15 Thread tcak via Digitalmars-d
On Friday, 15 July 2016 at 19:22:41 UTC, Jacob Carlborg wrote: On 2016-07-15 18:14, tcak wrote: It is great to see memory usage on Xcode while running an iOS app. Have you tried to run a D application inside Xcode to get the same information? Or is it not available due to the GC? Never

Re: LDC 1.1.0-alpha1 has been released!

2016-07-15 Thread Kai Nacke via Digitalmars-d-announce
On Friday, 15 July 2016 at 17:34:15 UTC, Ilya Yaroshenko wrote: On Friday, 15 July 2016 at 15:56:08 UTC, Kai Nacke wrote: On Friday, 15 July 2016 at 15:11:30 UTC, Ilya Yaroshenko wrote: On Friday, 15 July 2016 at 06:25:47 UTC, Kai Nacke wrote: Hi everyone, LDC 1.1.0-alpha1, the LLVM-based D

Re: Variadic Tuple of Structs with Mixed Types

2016-07-15 Thread jmh530 via Digitalmars-d-learn
On Friday, 15 July 2016 at 17:41:21 UTC, Michael Coulombe wrote: Your issue is this line: alias boxAR(A) = Box!(A, R); This means that A must be a type, but you are trying to instantiate it with lambdas. If you switch to: alias boxAR(alias A) = Box!(A, R); But now you are back to the

Re: Export GC Usage Statistics on Request for Profiling

2016-07-15 Thread Jacob Carlborg via Digitalmars-d
On 2016-07-15 18:14, tcak wrote: It is great to see memory usage on Xcode while running an iOS app. Have you tried to run a D application inside Xcode to get the same information? Or is it not available due to the GC? -- /Jacob Carlborg

Re: extern (C++) including bodies of member functions?

2016-07-15 Thread Jacob Carlborg via Digitalmars-d-learn
On 2016-07-15 19:52, cy wrote: I would never (ever) do this myself, but trying to understand dmd, the code is absolutely packed with things like this: extern(C++) class Package : ScopeDSymbol { ... override const(char)* kind() const { return "package"; } ... override final

Re: Card on fire

2016-07-15 Thread Meta via Digitalmars-d
On Friday, 15 July 2016 at 05:10:29 UTC, Walter Bright wrote: I'm excluding the pain of Windows reinstall, as it took 14 hours of sitting there blankly "checking for updates". I wonder what it was possibly doing that took 14 hours (the disk was fresh, there was nothing to transmit to the NSA).

Re: Vision for the D language - stabilizing complexity?

2016-07-15 Thread Walter Bright via Digitalmars-d
On 7/15/2016 3:25 AM, Shachar Shemesh wrote: On 15/07/16 13:13, Walter Bright wrote: 1. no protection against casting away const and changing it anyway 2. no protection against adding 'mutable' members and changing it anyway 3. only good for one level, no way to specify a data structure of

Re: DMD RPM

2016-07-15 Thread Russel Winder via Digitalmars-d
On Fri, 2016-07-15 at 20:04 +0200, Jordi Sayol via Digitalmars-d wrote: > El 15/07/16 a les 15:42, Russel Winder via Digitalmars-d ha escrit: > > However there is a PreDepends on multiarch-support. I am trying to > > get > > rid of this package but that means dmd, dcd, dfmt, dscanner, gtkd, > >

Allocator troubles

2016-07-15 Thread Luís Marques via Digitalmars-d
I'm not having success trying to use the allocator API. What am doing wrong here? (OS X, 64-bit) void main() { import std.exception; import std.experimental.allocator; import std.experimental.allocator.building_blocks.region; import std.stdio;

[Issue 16263] Error: template std.algorithm.iteration.permutations cannot deduce function from argument types !()(char[])

2016-07-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16263 --- Comment #9 from Ketmar Dark --- feel free to reopen it if you think it will be better this way. i still think that it is not a bug, but i'm not D designer, thus may be wrong here. or, maybe, it will be even better to

Re: Vision for the D language - stabilizing complexity?

2016-07-15 Thread Andrei Alexandrescu via Digitalmars-d
On 07/15/2016 01:27 PM, deadalnix wrote: On Friday, 15 July 2016 at 14:45:41 UTC, Andrei Alexandrescu wrote: On 07/14/2016 12:17 PM, Jesse Phillips wrote: On Tuesday, 12 July 2016 at 05:15:09 UTC, Shachar Shemesh wrote: C++ fully defines when it is okay to cast away constness, gives you aids

Re: DMD RPM

2016-07-15 Thread Jordi Sayol via Digitalmars-d
El 15/07/16 a les 15:42, Russel Winder via Digitalmars-d ha escrit: > However there is a PreDepends on multiarch-support. I am trying to get > rid of this package but that means dmd, dcd, dfmt, dscanner, gtkd, etc. > all have to go. You are right. I'll remove it.

[Issue 16263] Error: template std.algorithm.iteration.permutations cannot deduce function from argument types !()(char[])

2016-07-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16263 --- Comment #8 from Wyatt --- (In reply to Ketmar Dark from comment #6) > not a bug within the current state of things I'm afraid I disagree: things not behaving as documented is always a bug. > not "WONTFIX", as it *may* be

extern (C++) including bodies of member functions?

2016-07-15 Thread cy via Digitalmars-d-learn
I would never (ever) do this myself, but trying to understand dmd, the code is absolutely packed with things like this: extern(C++) class Package : ScopeDSymbol { ... override const(char)* kind() const { return "package"; } ... override final inout(Package) isPackage() inout {

Re: Variadic Tuple of Structs with Mixed Types

2016-07-15 Thread Michael Coulombe via Digitalmars-d-learn
On Friday, 15 July 2016 at 17:00:09 UTC, jmh530 wrote: I was working with the lightweight wrapper and it seemed to work for simple stuff, but then I started getting a bunch of errors when I tried to integrate it in to my project. Below is the stripped down version of what I've been working

[Issue 16284] New: [REG2.067] CTFE internal error: bad compare

2016-07-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16284 Issue ID: 16284 Summary: [REG2.067] CTFE internal error: bad compare Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Keywords: CTFE, ice

Re: LDC 1.1.0-alpha1 has been released!

2016-07-15 Thread Ilya Yaroshenko via Digitalmars-d-announce
On Friday, 15 July 2016 at 15:56:08 UTC, Kai Nacke wrote: On Friday, 15 July 2016 at 15:11:30 UTC, Ilya Yaroshenko wrote: On Friday, 15 July 2016 at 06:25:47 UTC, Kai Nacke wrote: Hi everyone, LDC 1.1.0-alpha1, the LLVM-based D compiler, is available for download! This ALPHA release is based

Re: Vision for the D language - stabilizing complexity?

2016-07-15 Thread deadalnix via Digitalmars-d
On Friday, 15 July 2016 at 14:43:35 UTC, Andrew Godfrey wrote: On Friday, 15 July 2016 at 11:09:24 UTC, Patrick Schluter wrote: On Friday, 15 July 2016 at 10:25:16 UTC, Shachar Shemesh wrote: I think the one that hurts the most is fixing "C++ fault" #3. It means there are many scenarios in

Re: Vision for the D language - stabilizing complexity?

2016-07-15 Thread deadalnix via Digitalmars-d
On Friday, 15 July 2016 at 14:45:41 UTC, Andrei Alexandrescu wrote: On 07/14/2016 12:17 PM, Jesse Phillips wrote: On Tuesday, 12 July 2016 at 05:15:09 UTC, Shachar Shemesh wrote: C++ fully defines when it is okay to cast away constness, gives you aids so that you know that that's what you are

Re: How to group similar member functions from different classes?

2016-07-15 Thread cy via Digitalmars-d-learn
On Monday, 20 June 2016 at 16:39:54 UTC, Marc Schütz wrote: Untested: Seems to only work if A and B are both defined in the same file as Foos (defeating the purpose). Putting A and B in a.d and b.d respectively gives me these errors: a.d(2): Error: undefined identifier 'Foos' a.d(2):

Re: Export GC Usage Statistics on Request for Profiling

2016-07-15 Thread Andrei Alexandrescu via Digitalmars-d
On 07/15/2016 12:31 PM, tcak wrote: Do you know about --profile=gc? 1. Never worked for me in a multithreaded program. Could you please give it another look. Walter fixed it relatively recently. 2. I am not able to retrieve that data on runtime by another application to see close to

Re: Variadic Tuple of Structs with Mixed Types

2016-07-15 Thread jmh530 via Digitalmars-d-learn
On Saturday, 9 July 2016 at 05:40:10 UTC, ag0aep6g wrote: On 07/09/2016 12:33 AM, jmh530 wrote: I'm trying to create a tuple of variadic length containing structs with mixed types. So for instance, given struct Foo(T, U) { T x; U y; } I want to create something like

[Issue 16263] Error: template std.algorithm.iteration.permutations cannot deduce function from argument types !()(char[])

2016-07-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16263 --- Comment #6 from Ketmar Dark --- this behavior is in the line with other autodecoding issues. while i don't agree with it, it is not a bug within the current state of things, and it is not "WONTFIX", as it *may* be fixed

[Issue 16263] Error: template std.algorithm.iteration.permutations cannot deduce function from argument types !()(char[])

2016-07-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16263 Wyatt changed: What|Removed |Added CC||wyatt@gmail.com ---

Re: Export GC Usage Statistics on Request for Profiling

2016-07-15 Thread tcak via Digitalmars-d
On Friday, 15 July 2016 at 16:21:15 UTC, Jack Stouffer wrote: On Friday, 15 July 2016 at 16:14:39 UTC, tcak wrote: It is great to see memory usage on Xcode while running an iOS app. What I thought is that: 1. GC knows available heap memory locations and their length. 2. GC can detect what

Re: Export GC Usage Statistics on Request for Profiling

2016-07-15 Thread Jack Stouffer via Digitalmars-d
On Friday, 15 July 2016 at 16:14:39 UTC, tcak wrote: It is great to see memory usage on Xcode while running an iOS app. What I thought is that: 1. GC knows available heap memory locations and their length. 2. GC can detect what parts of heap is in use. 3. A program can create a file to write

Re: new cpuid is ready for comments

2016-07-15 Thread H. S. Teoh via Digitalmars-d-announce
On Mon, Jul 11, 2016 at 04:30:44PM +, Ilya Yaroshenko via Digitalmars-d-announce wrote: [...] > Please report your CPU (GitHub/Gist): > > ``` > dub fetch cpuid > dub test cpuid > ``` > ... AMD was not tested at all and I hope to see your reports. [...] AMD Phenom(tm) II X6 1055T Processor

Re: new cpuid is ready for comments

2016-07-15 Thread Claude via Digitalmars-d-announce
On Friday, 15 July 2016 at 15:05:53 UTC, Ilya Yaroshenko wrote: On Friday, 15 July 2016 at 12:10:22 UTC, Claude wrote: [...] Yes! Finally we need the final code for LDC, it support ARM assembler. http://wiki.dlang.org/LDC_inline_assembly_expressions [...] No, I have not. Thank you for

Export GC Usage Statistics on Request for Profiling

2016-07-15 Thread tcak via Digitalmars-d
It is great to see memory usage on Xcode while running an iOS app. What I thought is that: 1. GC knows available heap memory locations and their length. 2. GC can detect what parts of heap is in use. 3. A program can create a file to write (stdout, stderr, etc.) So, when desired (e.g. use of

Re: Vision for the D language - stabilizing complexity?

2016-07-15 Thread Mike Parker via Digitalmars-d
On Friday, 15 July 2016 at 15:35:37 UTC, Dicebot wrote: One example is if you make a class that has an internal cache of something. Updating or invalidating that cache has no logical effect on the externally-observable state of the class. So you should be able to modify the cache even on a

Re: LDC 1.1.0-alpha1 has been released!

2016-07-15 Thread Kai Nacke via Digitalmars-d-announce
On Friday, 15 July 2016 at 15:11:30 UTC, Ilya Yaroshenko wrote: On Friday, 15 July 2016 at 06:25:47 UTC, Kai Nacke wrote: Hi everyone, LDC 1.1.0-alpha1, the LLVM-based D compiler, is available for download! This ALPHA release is based on the 2.071.1 frontend and standard library and supports

Re: How define such scheleton classes

2016-07-15 Thread Kagamin via Digitalmars-d-learn
Use an intermediate class: abstract class OtherObject1(S) : AbstractObject!S { abstract void Foo(int a, int b); class OtherObject(S, bool R) : OtherObject1!S { int x; override void Foo(int a, int b)

Re: Are templates with variadic value parameters possible?

2016-07-15 Thread Mike Parker via Digitalmars-d-learn
On Friday, 15 July 2016 at 15:04:22 UTC, Devin Hill wrote: to the condition. It works pretty well! Granted, it doesn't allow for calling it in two ways like a variadic version would have: foo(1, 2, 3) // works with this setup foo([1, 2, 3]) // doesn't, but would only be occasionally

How define such scheleton classes

2016-07-15 Thread Learner via Digitalmars-d-learn
abstract class AbstractObject(S) if (IsSomeString!S) { } class OtherObject(S, bool R) : AbstractObject!S { int x; void Foo(int a, int b) { x = a + b; static if (R) // error { // more codes . } } } class OtherObjects(S) :

Re: Berlin D Meetup July 2016

2016-07-15 Thread bob belcher via Digitalmars-d-announce
On Monday, 11 July 2016 at 10:05:15 UTC, Ben Palmer wrote: Hi All, The July Berlin D Meetup will be happening at 20:00 on Friday the 15th of July at Berlin Co-Op (http://co-up.de/) on the fifth floor. This time we will be doing a hackathon with DUB. Mathias Lang will be present to give a

Re: Vision for the D language - stabilizing complexity?

2016-07-15 Thread Dicebot via Digitalmars-d
On 07/15/2016 05:43 PM, Andrew Godfrey wrote: > On Friday, 15 July 2016 at 11:09:24 UTC, Patrick Schluter wrote: >> On Friday, 15 July 2016 at 10:25:16 UTC, Shachar Shemesh wrote: >>> >>> I think the one that hurts the most is fixing "C++ fault" #3. It >>> means there are many scenarios in which I

Re: LDC with ARM backend

2016-07-15 Thread Kai Nacke via Digitalmars-d-learn
Hi Claude! On Friday, 15 July 2016 at 14:09:40 UTC, Claude wrote: Hello, I would like to cross-compile a D program from a x86 machine to an ARM target. [...] So I'm a bit confused of what the current state of LDC+ARM is. For example, is the run-time fully ported on ARM/Linux? LDC is fully

Re: LDC with ARM backend

2016-07-15 Thread Claude via Digitalmars-d-learn
On Friday, 15 July 2016 at 15:02:15 UTC, Radu wrote: Hi, LDC on Linux ARM is fairly complete. I think it is a fully supported platform (all tests are passing). Check in https://wiki.dlang.org/Compilers the LDC column. This is the close for a tutorial for cross-compiling

Re: LDC 1.1.0-alpha1 has been released!

2016-07-15 Thread Ilya Yaroshenko via Digitalmars-d-announce
On Friday, 15 July 2016 at 06:25:47 UTC, Kai Nacke wrote: Hi everyone, LDC 1.1.0-alpha1, the LLVM-based D compiler, is available for download! This ALPHA release is based on the 2.071.1 frontend and standard library and supports LLVM 3.5-3.8. We provide binaries for Linux, OX X, Win32 &

Re: Interior immutability and rvalues

2016-07-15 Thread ag0aep6g via Digitalmars-d-learn
On 07/15/2016 02:51 PM, maik klein wrote: Thanks I didn't know that you could have type qualifiers inside templates, D still surprises me sometimes. Qualifiers are part of the type. So wherever you can have a type, you can have a qualified type. I don't think it is practical to call move

Re: new cpuid is ready for comments

2016-07-15 Thread Ilya Yaroshenko via Digitalmars-d-announce
On Friday, 15 July 2016 at 12:10:22 UTC, Claude wrote: On Monday, 11 July 2016 at 16:30:44 UTC, Ilya Yaroshenko wrote: [...] What exactly do you need for ARM architecture? I have an ARM target and I have tried to run a library[1] to get some CPU info. I hacked in the source files to just

[Issue 16283] [Modules]

2016-07-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16283 --- Comment #5 from Sobirari Muhomori --- Not sure if this is a bug: what's syntactically valid is not necessarily semantically valid, and you're asking for a context-sensitive and bloated grammar, you'll have to duplicate

Re: Are templates with variadic value parameters possible?

2016-07-15 Thread Devin Hill via Digitalmars-d-learn
On Friday, 15 July 2016 at 05:23:15 UTC, Basile B. wrote: even better: template sameType(T...) { import std.meta; static if (!T.length) enum sameType = false; else enum sameType = NoDuplicates!T.length == 1; } Yeah, that's basically what I ended up doing, but

Re: LDC with ARM backend

2016-07-15 Thread Radu via Digitalmars-d-learn
On Friday, 15 July 2016 at 14:09:40 UTC, Claude wrote: Hello, I would like to cross-compile a D program from a x86 machine to an ARM target. I work on GNU/Linux Ubuntu 64-bit. I have an ARM gcc toolchain, which I can use to make programs on an ARM Cortex-A9 architecture running a Linux

Re: Vision for the D language - stabilizing complexity?

2016-07-15 Thread Andrei Alexandrescu via Digitalmars-d
On 07/14/2016 12:17 PM, Jesse Phillips wrote: On Tuesday, 12 July 2016 at 05:15:09 UTC, Shachar Shemesh wrote: C++ fully defines when it is okay to cast away constness, gives you aids so that you know that that's what you are doing, and nothing else, and gives you a method by which you can do

Re: Vision for the D language - stabilizing complexity?

2016-07-15 Thread Andrew Godfrey via Digitalmars-d
On Friday, 15 July 2016 at 11:09:24 UTC, Patrick Schluter wrote: On Friday, 15 July 2016 at 10:25:16 UTC, Shachar Shemesh wrote: I think the one that hurts the most is fixing "C++ fault" #3. It means there are many scenarios in which I could put const in C++, and I simply can't in D, because

LDC with ARM backend

2016-07-15 Thread Claude via Digitalmars-d-learn
Hello, I would like to cross-compile a D program from a x86 machine to an ARM target. I work on GNU/Linux Ubuntu 64-bit. I have an ARM gcc toolchain, which I can use to make programs on an ARM Cortex-A9 architecture running a Linux kernel 3.4.11+. I managed to build and install LLVM 3.8.1

Re: DMD RPM

2016-07-15 Thread Russel Winder via Digitalmars-d
On Thu, 2016-07-14 at 20:54 +0200, Jordi Sayol via Digitalmars-d wrote: > El 14/07/16 a les 17:13, Dicebot via Digitalmars-d ha escrit: > > Very likely it has same packaging mistake as DMD in d-apt, listing > > gcc-multilib dependencies as mandatory and not optional, even if > > you are never

What is the current progress on "Safety and Memory Management"?

2016-07-15 Thread maik klein via Digitalmars-d
https://wiki.dlang.org/Vision/2016H2 Safety and Memory Management Safety and making the GC optional remain important concerns through the end of this year. We are putting them together because the GC alternatives we endorse must address safety. Has there been any progress so far? Are there

Re: Interior immutability and rvalues

2016-07-15 Thread maik klein via Digitalmars-d-learn
On Friday, 15 July 2016 at 12:05:47 UTC, ag0aep6g wrote: On 07/15/2016 10:29 AM, maik klein wrote: [...] Sure. Just instantiate Rc with a const/immutable T. I.e., write `Rc!(const int)` instead of `const Rc!int`. Or with auto and makeRc: `auto rc = makeRc(immutable int(5));`. [...]

Re: Result Types and void usage

2016-07-15 Thread nik via Digitalmars-d-learn
On Friday, 15 July 2016 at 11:36:27 UTC, ag0aep6g wrote: On 07/15/2016 10:11 AM, nik wrote: [...] [...] [...] void is somewhat special. It can't be used to declare variables or as a parameter type. So you'll have to approach this a bit differently. You also can't have a struct constructor

Re: new cpuid is ready for comments

2016-07-15 Thread jmh530 via Digitalmars-d-announce
On Monday, 11 July 2016 at 16:30:44 UTC, Ilya Yaroshenko wrote: Please report your CPU (GitHub/Gist): Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz https://gist.github.com/jmh530/2f1694711085176e007461ae8218a759 Intel(R) Core(TM) i3-4130T CPU @ 2.90GHz

Re: new cpuid is ready for comments

2016-07-15 Thread Claude via Digitalmars-d-announce
On Monday, 11 July 2016 at 16:30:44 UTC, Ilya Yaroshenko wrote: ARM contributors are wanted! What exactly do you need for ARM architecture? I have an ARM target and I have tried to run a library[1] to get some CPU info. I hacked in the source files to just build and link the CPU info code.

Re: Interior immutability and rvalues

2016-07-15 Thread ag0aep6g via Digitalmars-d-learn
On 07/15/2016 10:29 AM, maik klein wrote: There are two things that bothered me for quite some time Interior immutability: Consider a something like this https://dpaste.dzfl.pl/fa5be84d26bc The implementation is totally wrong and it doesn't make sense, but it shows that Rc can not be

Re: unittests not being run

2016-07-15 Thread Bahman Movaqar via Digitalmars-d-learn
On 07/15/2016 04:16 PM, Jerry wrote: > Unittests have to be inside a module to be run on DMD atleast. > So putting module foo at top should fix it. Strange. Still not getting picked up. $ dmd --version DMD64 D Compiler v2.071.0 Copyright (c) 1999-2015 by Digital Mars written by

Re: persistence, serialization, history (run-to-run) in small self-contained program

2016-07-15 Thread Jacob Carlborg via Digitalmars-d-learn
On 2016-07-15 04:17, dan wrote: Thanks Jacob! I was unaware of Orange. Available on Dub now as well: https://code.dlang.org/packages/orange -- /Jacob Carlborg

Re: unittests not being run

2016-07-15 Thread Jerry via Digitalmars-d-learn
Unittests have to be inside a module to be run on DMD atleast. So putting module foo at top should fix it.

Re: Bug? somearrayofclassinstances.filter(...).array fails because of .init() method in class

2016-07-15 Thread ag0aep6g via Digitalmars-d-learn
On 07/15/2016 12:54 PM, dom wrote: i just had a scenario like the one below. when calling .array on the filterresult dmd goes nuts because of the init() function in Players. Renaming to initialize() solved the problem. Solution: As .init is used for struct initialization and such

  1   2   >