Re: Linking to static libraries with a local DMD install

2016-08-20 Thread rikki cattermole via Digitalmars-d-learn
On 21/08/2016 5:01 PM, Henry GOuk wrote: On Sunday, 21 August 2016 at 04:32:29 UTC, rikki cattermole wrote: On 21/08/2016 3:54 PM, Henry GOuk wrote: Please post the error message, without it we're guessing. $ dub build Performing "debug" build using dmd for x86_64. vibe-d:utils 0.7.29:

Re: Why D is not popular enough?

2016-08-20 Thread Shachar Shemesh via Digitalmars-d
On 20/08/16 21:00, Walter Bright wrote: On 8/20/2016 8:25 AM, Shachar Shemesh wrote: Actually, Adam's suggestion on how things should work is precisely how C works No, it's subtly different. Which is my point that one must be very, very careful when proposing different behavior. Can you

Re: Linking to static libraries with a local DMD install

2016-08-20 Thread Henry GOuk via Digitalmars-d-learn
On Sunday, 21 August 2016 at 04:32:29 UTC, rikki cattermole wrote: On 21/08/2016 3:54 PM, Henry GOuk wrote: Please post the error message, without it we're guessing. $ dub build Performing "debug" build using dmd for x86_64. vibe-d:utils 0.7.29: target for configuration "library" is up to

Re: Linking to static libraries with a local DMD install

2016-08-20 Thread rikki cattermole via Digitalmars-d-learn
On 21/08/2016 3:54 PM, Henry GOuk wrote: Hi, Due to some security limitations, I've had to install DMD in my home folder on one of my university computers. When trying to build a basic vibe.d application (i.e., the one created by dub init test --type=vibe.d), linking fails with a large number

Linking to static libraries with a local DMD install

2016-08-20 Thread Henry GOuk via Digitalmars-d-learn
Hi, Due to some security limitations, I've had to install DMD in my home folder on one of my university computers. When trying to build a basic vibe.d application (i.e., the one created by dub init test --type=vibe.d), linking fails with a large number of undefined references to functions

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

2016-08-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16405 b2.t...@gmx.com changed: What|Removed |Added CC||b2.t...@gmx.com --- Comment #4 from

What is the correct way to run the auto-tester tests on FreeBSD?

2016-08-20 Thread Jeremy DeHaan via Digitalmars-d-learn
I'm trying to figure out how to run the auto-tester tests locally on FreeBSD and I'm running into an issue. I managed to get the tests to run on a 32 bit after a fashion, but I can't seem to get the tests to run successfully on the 64 bit version. Here's what I've done so far. git cloned

Re: How about a special null template parameter?

2016-08-20 Thread Timon Gehr via Digitalmars-d
On 20.08.2016 21:20, Engine Machine wrote: That is It would be nice to have something like alias Type = Type!(); class Type(T...): TypeParent!T if(T.length==1){ int x; static if (T is Dog) int y; } I don't understand how this is related. The only difference is the alias

Re: Rebind template

2016-08-20 Thread Engine Machine via Digitalmars-d-learn
On Saturday, 20 August 2016 at 22:21:00 UTC, ag0aep6g wrote: On 08/21/2016 12:11 AM, Engine Machine wrote: Is there a way to rebind the arguments of a template? template foo(X) { // X is like A!(a,b,c) Y = Rebind!(X,d,e,f); // Y is like A!(d,e,f); } foo(A!(a,b,c)); ? template

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

2016-08-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16405 --- Comment #3 from Jonathas --- Created attachment 1610 --> https://issues.dlang.org/attachment.cgi?id=1610=edit After installing it I disabled Windows defender and installed, now the antivirus kicks in again complaining

Re: Rebind template

2016-08-20 Thread ag0aep6g via Digitalmars-d-learn
On 08/21/2016 12:11 AM, Engine Machine wrote: Is there a way to rebind the arguments of a template? template foo(X) { // X is like A!(a,b,c) Y = Rebind!(X,d,e,f); // Y is like A!(d,e,f); } foo(A!(a,b,c)); ? template Rebind(alias instance, newArgs...) { import std.traits:

Re: Rebind template

2016-08-20 Thread Engine Machine via Digitalmars-d-learn
On Saturday, 20 August 2016 at 22:11:40 UTC, Engine Machine wrote: Is there a way to rebind the arguments of a template? template foo(X) { // X is like A!(a,b,c) Y = Rebind!(X,d,e,f); // Y is like A!(d,e,f); } foo(A!(a,b,c)); ? I'd also be happy if I could just remove the last

Rebind template

2016-08-20 Thread Engine Machine via Digitalmars-d-learn
Is there a way to rebind the arguments of a template? template foo(X) { // X is like A!(a,b,c) Y = Rebind!(X,d,e,f); // Y is like A!(d,e,f); } foo(A!(a,b,c)); ?

Re: Examples block

2016-08-20 Thread Dicebot via Digitalmars-d
On Saturday, 20 August 2016 at 20:39:13 UTC, Engine Machine wrote: We have a unittest, what about an examples? https://dlang.org/spec/unittest.html#documented-unittests

Examples block

2016-08-20 Thread Engine Machine via Digitalmars-d
We have a unittest, what about an examples? Examples are self contained short programs, each block acts as a "main" function. One can run all the examples and spit out all the output consecutively. It also allows for more robust testing since it adds another layer. It would provide better

Re: ggplotd version 1.0.0 released

2016-08-20 Thread Dechcaudron via Digitalmars-d-announce
On Saturday, 20 August 2016 at 16:37:29 UTC, Edwin van Leeuwen wrote: The main addition is support for legends. I've been using your library, legends definitely come in handy. Thanks a bunch for the work!

Re: Auto-testing issue on FreeBSD

2016-08-20 Thread Jeremy DeHaan via Digitalmars-d
I apologize as this might be better in the learn section, but I'm having another issue trying to run tests on FreeBSD. On a 64 bit system (tests ran just fine on a 32 bit system) I'm getting this error on the first test ran: Running runnable tests ... runnable/issue8671.d (-inline

Re: CT Inheritence structures

2016-08-20 Thread Engine Machine via Digitalmars-d-learn
On Saturday, 20 August 2016 at 06:28:47 UTC, Enamex wrote: On Saturday, 20 August 2016 at 00:46:15 UTC, Engine Machine wrote: I am trying to get Timon Gehr's code working, with some modifications: void main() { import std.traits; auto a = new Type!("Animal", "Dog", "Pug")();

Re: How about a special null template parameter?

2016-08-20 Thread Engine Machine via Digitalmars-d
On Saturday, 20 August 2016 at 10:04:07 UTC, Timon Gehr wrote: On 20.08.2016 00:07, Engine Machine wrote: On Friday, 19 August 2016 at 21:07:42 UTC, Timon Gehr wrote: On 19.08.2016 20:25, Engine Machine wrote: So we can create types relationships easier: class Type(T) : Type!null { int x;

Re: CT Inheritence structures

2016-08-20 Thread Engine Machine via Digitalmars-d-learn
On Saturday, 20 August 2016 at 09:42:08 UTC, Jack Applegame wrote: On Saturday, 20 August 2016 at 00:46:15 UTC, Engine Machine wrote: Any ideas? Something like this? mixin template TypeData(string type: "Animal") { int y; } mixin template TypeData(string type: "Dog") { int z; } mixin

Re: How about a special null template parameter?

2016-08-20 Thread Engine Machine via Digitalmars-d
On Saturday, 20 August 2016 at 13:45:59 UTC, poliklosio wrote: On Friday, 19 August 2016 at 18:25:06 UTC, Engine Machine wrote: So we can create types relationships easier: class Type(T) : Type!null { int x; static if (T is Dog) int y; } Type == Type!null (!null implicit, only if

Re: Auto-testing issue on FreeBSD

2016-08-20 Thread Kai Nacke via Digitalmars-d
On Saturday, 20 August 2016 at 17:23:38 UTC, Jeremy DeHaan wrote: Hey All. I'm trying to track down an auto-tester failure on FreeBSD, so I decided to run the same tests myself locally. I encountered the following error: runnable/extra-files/cppb.cpp:297:37: error: 'va_list' has not been

[Issue 16112] Enhance ddoc with more markdown support

2016-08-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16112 --- Comment #8 from greensunn...@gmail.com --- > although I'm not speaking out of experience. Everyone interested in more > MarkDown can use that instead of pure DDoc today and gather some intel. Maybe > even those not interested in it, to see if

Re: Why D is not popular enough?

2016-08-20 Thread Walter Bright via Digitalmars-d
On 8/20/2016 8:25 AM, Shachar Shemesh wrote: Actually, Adam's suggestion on how things should work is precisely how C works No, it's subtly different. Which is my point that one must be very, very careful when proposing different behavior.

[Issue 15779] DWARF EH fails when using stack stomping (-gx)

2016-08-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15779 Brad Roberts changed: What|Removed |Added Blocks||16407 --

[Issue 16407] New: fix from test15779 fails on windows 10 32bit builds

2016-08-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16407 Issue ID: 16407 Summary: fix from test15779 fails on windows 10 32bit builds Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: major

Auto-testing issue on FreeBSD

2016-08-20 Thread Jeremy DeHaan via Digitalmars-d
Hey All. I'm trying to track down an auto-tester failure on FreeBSD, so I decided to run the same tests myself locally. I encountered the following error: runnable/extra-files/cppb.cpp:297:37: error: 'va_list' has not been declared void myvprintfx(const char* format, va_list); I added

Re: ggplotd version 1.0.0 released

2016-08-20 Thread Edwin van Leeuwen via Digitalmars-d-announce
On Saturday, 20 August 2016 at 16:37:29 UTC, Edwin van Leeuwen wrote: I just wanted to announce the 1.0.0 version release of ggplotd [1]. The main addition is support for legends. Other than that the release focused on cleaning up/refactoring the code. It should still be backwards compatible

ggplotd version 1.0.0 released

2016-08-20 Thread Edwin van Leeuwen via Digitalmars-d-announce
I just wanted to announce the 1.0.0 version release of ggplotd [1]. The main addition is support for legends. Other than that the release focused on cleaning up/refactoring the code. It should still be backwards compatible though. As always I also released a new version of plotcli (the

Re: Why D is not popular enough?

2016-08-20 Thread Shachar Shemesh via Digitalmars-d
On 20/08/16 00:51, Walter Bright wrote: On 8/18/2016 7:59 PM, Adam D. Ruppe wrote: Alas, C insisted on making everything int all the time and D followed that :( Actually, Adam's suggestion on how things should work is precisely how C works (except it trails off at int). a = b + c; if b

[Issue 16309] DMD segfault with __traits(getProtection)

2016-08-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16309 Cauterite changed: What|Removed |Added Keywords||ice, ice-on-valid-code --

[Issue 16406] Compiler segfaults on __traits(getprotection, symbol)

2016-08-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16406 Cauterite changed: What|Removed |Added Keywords||ice CC|

[Issue 16406] New: Compiler segfaults on __traits(getprotection, symbol)

2016-08-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16406 Issue ID: 16406 Summary: Compiler segfaults on __traits(getprotection, symbol) Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal

Re: How about a special null template parameter?

2016-08-20 Thread poliklosio via Digitalmars-d
On Friday, 19 August 2016 at 18:25:06 UTC, Engine Machine wrote: So we can create types relationships easier: class Type(T) : Type!null { int x; static if (T is Dog) int y; } Type == Type!null (!null implicit, only if defined in the above way. Essentially an alias is created for

Re: Code signing to help with Windows virus false positives

2016-08-20 Thread Basile B. via Digitalmars-d
On Saturday, 20 August 2016 at 13:26:03 UTC, Martin Nowak wrote: On 08/20/2016 03:21 PM, Martin Nowak wrote: On Monday, 15 August 2016 at 20:47:10 UTC, Basile B. wrote: Please share your suggestions for how to help with the false positive issue (or just continue laughing in ignorance based on

Re: Code signing to help with Windows virus false positives

2016-08-20 Thread Martin Nowak via Digitalmars-d
On 08/20/2016 03:21 PM, Martin Nowak wrote: > On Monday, 15 August 2016 at 20:47:10 UTC, Basile B. wrote: >>> Please share your suggestions for how to help with the false positive >>> issue (or just continue laughing in ignorance based on an assumption >>> of something I never said). >> >> If the

Re: Code signing to help with Windows virus false positives

2016-08-20 Thread Martin Nowak via Digitalmars-d
On Monday, 15 August 2016 at 20:47:10 UTC, Basile B. wrote: Please share your suggestions for how to help with the false positive issue (or just continue laughing in ignorance based on an assumption of something I never said). If the origin of the problem is NSIS then in a first time it

Re: Code signing to help with Windows virus false positives

2016-08-20 Thread Martin Nowak via Digitalmars-d
On Tuesday, 16 August 2016 at 05:38:00 UTC, Ethan Watson wrote: D code seems to be sufficiently different that virus scanners get confused. Both Windows Defender and F-Secure complained about it being the same trojan in fact. Don't see any F-Secure problem for dmd-2.071.1.exe.

Re: DIP1000: Scoped Pointers

2016-08-20 Thread Martin Nowak via Digitalmars-d-announce
On Wednesday, 10 August 2016 at 20:35:23 UTC, Dicebot wrote: - Please submit pull requests to adjust the markdown document if you want to propose any improvements (mentioning @WalterBright and @andralex for confirmation). Not completely through yet, but it looks really promising. Already made

[Issue 15520] Phobos Pull Requests Should Have Automatic Coverage Statistics

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

[Issue 4761] std.array.mul()

2016-08-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4761 greenify changed: What|Removed |Added Status|NEW |RESOLVED CC|

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

2016-08-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16405 greenify changed: What|Removed |Added CC||greeen...@gmail.com ---

Re: How about a special null template parameter?

2016-08-20 Thread Timon Gehr via Digitalmars-d
On 20.08.2016 00:07, Engine Machine wrote: On Friday, 19 August 2016 at 21:07:42 UTC, Timon Gehr wrote: On 19.08.2016 20:25, Engine Machine wrote: So we can create types relationships easier: class Type(T) : Type!null { int x; static if (T is Dog) int y; alias Seq(T...)=T;

Re: Why D is not popular enough?

2016-08-20 Thread Iain Buclaw via Digitalmars-d
On 19 August 2016 at 00:50, John Smith via Digitalmars-d wrote: > Well there are some things I feel could be improved, a lot of the things are > really just minor but what is a deal breaker for me mostly is the compilers. > The GCC and Clang implementations are really

Re: CT Inheritence structures

2016-08-20 Thread Jack Applegame via Digitalmars-d-learn
On Saturday, 20 August 2016 at 00:46:15 UTC, Engine Machine wrote: Any ideas? Something like this? mixin template TypeData(string type: "Animal") { int y; } mixin template TypeData(string type: "Dog") { int z; } mixin template TypeData(string type: "Pug") { int s; } template

Re: MurmurHash3 behaviour

2016-08-20 Thread Ilya Yaroshenko via Digitalmars-d-learn
On Saturday, 20 August 2016 at 09:15:00 UTC, Ilya Yaroshenko wrote: On Friday, 19 August 2016 at 20:28:13 UTC, Cauterite wrote: Regarding the MurmurHash3 implementation in core.internal.hash, it is my understanding that: // assuming a and b are uints bytesHash([a, b], 0) ==

Re: MurmurHash3 behaviour

2016-08-20 Thread Ilya Yaroshenko via Digitalmars-d-learn
On Friday, 19 August 2016 at 20:28:13 UTC, Cauterite wrote: Regarding the MurmurHash3 implementation in core.internal.hash, it is my understanding that: // assuming a and b are uints bytesHash([a, b], 0) == bytesHash([b], bytesHash([a], 0)) Is this correct? I'm just not quite certain of

Re: Why D is not popular enough?

2016-08-20 Thread Lodovico Giaretta via Digitalmars-d
On Saturday, 20 August 2016 at 08:57:48 UTC, Bill Hicks wrote: On Saturday, 20 August 2016 at 06:11:54 UTC, rikki cattermole wrote: And yet it is steadily growing. A brain tumor grows too, until it kills. We might have lost the battles with programming languages such as JavaScript, C++,

Re: Why D is not popular enough?

2016-08-20 Thread Bill Hicks via Digitalmars-d
On Saturday, 20 August 2016 at 06:11:54 UTC, rikki cattermole wrote: And yet it is steadily growing. A brain tumor grows too, until it kills. We might have lost the battles with programming languages such as JavaScript, C++, etc, but we still have a fighting chance against D, and we must

Re: Why D is not popular enough?

2016-08-20 Thread ikod via Digitalmars-d
On Saturday, 20 August 2016 at 06:08:21 UTC, Bill Hicks wrote: F*CK, here we go again. Why do you spend your precious time posting these messages? Are you real Batman?

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

2016-08-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16405 Lodovico Giaretta changed: What|Removed |Added CC|

Re: MurmurHash3 behaviour

2016-08-20 Thread Seb via Digitalmars-d-learn
On Friday, 19 August 2016 at 21:29:43 UTC, Cauterite wrote: On Friday, 19 August 2016 at 21:03:22 UTC, Seb wrote: http://dlang.org/phobos-prerelease/std_digest_murmurhash.html Ah great, I just finished writing my own murmurhash digest module (

[Issue 16112] Enhance ddoc with more markdown support

2016-08-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16112 Marco Leise changed: What|Removed |Added CC||marco.le...@gmx.de ---

Re: CT Inheritence structures

2016-08-20 Thread Enamex via Digitalmars-d-learn
On Saturday, 20 August 2016 at 00:46:15 UTC, Engine Machine wrote: I am trying to get Timon Gehr's code working, with some modifications: void main() { import std.traits; auto a = new Type!("Animal", "Dog", "Pug")(); Type!("Animal", "Dog") b = a;

Re: Why D is not popular enough?

2016-08-20 Thread rikki cattermole via Digitalmars-d
On 20/08/2016 6:08 PM, Bill Hicks wrote: On Monday, 1 August 2016 at 15:31:35 UTC, Emre Temelkuran wrote: For years, i was travelling along Golang, Rust, Perl, Ruby, Python, PHP, JScript, JVM Languages. Lastly Crystal Lang and Nimrod, Julia, Haskell, Swift and many more that i can't remember.

Re: Why D is not popular enough?

2016-08-20 Thread Bill Hicks via Digitalmars-d
On Monday, 1 August 2016 at 15:31:35 UTC, Emre Temelkuran wrote: For years, i was travelling along Golang, Rust, Perl, Ruby, Python, PHP, JScript, JVM Languages. Lastly Crystal Lang and Nimrod, Julia, Haskell, Swift and many more that i can't remember. I'm 24 years old, my first lang was PHP