Re: Fact checking for my talk

2016-08-15 Thread Ethan Watson via Digitalmars-d
On Sunday, 14 August 2016 at 18:05:12 UTC, ZombineDev wrote: Rust stugg Exactly what I was after, thanks.

Re: Code signing to help with Windows virus false positives

2016-08-15 Thread Ethan Watson via Digitalmars-d
On Monday, 15 August 2016 at 20:43:59 UTC, Basile B. wrote: I'm afraid to see people overreacting in front of a minor and temporary problem. This is not the first time this is a problem. Our scanner at Remedy regularly used to block code sent to and from Walter at the email level. Sometimes

Re: [OT] The coolest (literally) desktop machine I've ever had

2016-08-15 Thread WhatMeWorry via Digitalmars-d
On Friday, 12 August 2016 at 19:13:12 UTC, Andrei Alexandrescu wrote: I was using a large Lenovo Y70-70 laptop as a pseudo-desktop machine and additional monitor. It's quite powerful, but its fans would run at all times. Getting really tired of that, I googled for the better part of an

[Issue 16394] TypeInfo.init() for static arrays returns single element instead of whole array

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16394 --- Comment #9 from Eyal --- > Or functioning as designed, just not properly documented. > This part of TypeInfo is meant to be used internally. I don't think this > corner case warrants a compiler change, as the current state is

Re: Template type reduction

2016-08-15 Thread Engine Machine via Digitalmars-d-learn
On Monday, 15 August 2016 at 19:40:37 UTC, Steven Schveighoffer wrote: On 8/15/16 3:31 PM, Engine Machine wrote: Suppose I have a templated type like struct S(T) { int x; static if (T is Y) int y; } I would like to be able to create a reference to S(T) for any T, struct Q { S!* s; // Can

[Issue 16319] std.experimental.allocator.make subtly wrong with nested classes

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16319 --- Comment #1 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/b96a330b77d2c947c7c9f50e9d954b31cdf3c82e fix issue 16319 --

Re: new XML and JSON libs and replacement of std.net.curl

2016-08-15 Thread rikki cattermole via Digitalmars-d-learn
On 16/08/2016 3:35 AM, Seb wrote: On Monday, 15 August 2016 at 15:25:22 UTC, rikki cattermole wrote: On 16/08/2016 3:20 AM, Seb wrote: On Monday, 15 August 2016 at 15:04:29 UTC, rikki cattermole wrote: On 16/08/2016 3:01 AM, Oleg B wrote: As replacement of std.net.curl I found

Re: [OT] The coolest (literally) desktop machine I've ever had

2016-08-15 Thread Jonathan M Davis via Digitalmars-d
On Monday, August 15, 2016 16:34:40 Dominikus Dittes Scherkl via Digitalmars-d wrote: > On Sunday, 14 August 2016 at 23:51:44 UTC, Jonathan M Davis wrote: > > On Friday, August 12, 2016 15:13:12 Andrei Alexandrescu via > > > > Digitalmars-d wrote: > >> Thought this might help others looking for a

Re: Why 16Mib static array size limit?

2016-08-15 Thread Yuxuan Shui via Digitalmars-d
On Tuesday, 16 August 2016 at 01:28:05 UTC, Ali Çehreli wrote: On 08/15/2016 12:09 PM, Ali Çehreli wrote: [...] Could you please help me understand the following results, possibly by analyzing the produced assembly? [...] There seem to be two things at work here: 1) when not accessed

Re: Command Line Utility Library

2016-08-15 Thread Jonathan Marler via Digitalmars-d-learn
On Monday, 15 August 2016 at 10:48:11 UTC, Seb wrote: Are you trying to parse arguments? There's a lot of good stuff for it already: https://dlang.org/phobos/std_getopt.html https://code.dlang.org/packages/darg https://blog.thecybershadow.net/2014/08/05/ae-utils-funopt/ For configuration

Re: Command Line Utility Library

2016-08-15 Thread Seb via Digitalmars-d-learn
On Tuesday, 16 August 2016 at 01:23:16 UTC, UDW wrote: On Monday, 15 August 2016 at 10:48:11 UTC, Seb wrote: [...] Thanks for the suggestions Seb, https://blog.thecybershadow.net/2014/08/05/ae-utils-funopt/ looks very nice :). I just thought there would be a standard library, stdclib,

Re: Why 16Mib static array size limit?

2016-08-15 Thread ketmar via Digitalmars-d
On Tuesday, 16 August 2016 at 01:28:05 UTC, Ali Çehreli wrote: for x86 dmd, the results are: 0m0.694s 0m1.176s 0m0.722s 0m1.454s x86_64 codegen looks... not normal.

Re: Cyclomatic complexity in D ?

2016-08-15 Thread Basile B. via Digitalmars-d
On Tuesday, 16 August 2016 at 00:34:36 UTC, Stefan Koch wrote: On Monday, 15 August 2016 at 22:36:41 UTC, Basile B. wrote: Last night I've done a bit of documentation work on cyclomatic complexity. From this work it looks like the tools that do this static analysis are only using the AST (e.g

Re: Why 16Mib static array size limit?

2016-08-15 Thread Ali Çehreli via Digitalmars-d
On 08/15/2016 12:09 PM, Ali Çehreli wrote: dmd does not allow anything larger. Could you please help me understand the following results, possibly by analyzing the produced assembly? I wanted to see whether there were any performance penalties when one used D's recommendation of using

Re: Command Line Utility Library

2016-08-15 Thread UDW via Digitalmars-d-learn
On Monday, 15 August 2016 at 10:48:11 UTC, Seb wrote: Are you trying to parse arguments? There's a lot of good stuff for it already: https://dlang.org/phobos/std_getopt.html https://code.dlang.org/packages/darg https://blog.thecybershadow.net/2014/08/05/ae-utils-funopt/ For configuration

Re: Cyclomatic complexity in D ?

2016-08-15 Thread Basile B. via Digitalmars-d
On Monday, 15 August 2016 at 22:36:41 UTC, Basile B. wrote: Last night I've done a bit of documentation work on cyclomatic complexity. From this work it looks like the tools that do this static analysis are only using the AST (e.g the CC is computed for a each single function, and function

Re: Cyclomatic complexity in D ?

2016-08-15 Thread Stefan Koch via Digitalmars-d
On Monday, 15 August 2016 at 22:36:41 UTC, Basile B. wrote: Last night I've done a bit of documentation work on cyclomatic complexity. From this work it looks like the tools that do this static analysis are only using the AST (e.g the CC is computed for a each single function, and function

Re: Code signing to help with Windows virus false positives

2016-08-15 Thread Basile B. via Digitalmars-d
On Monday, 15 August 2016 at 23:58:01 UTC, Mike Parker wrote: On Monday, 15 August 2016 at 20:43:59 UTC, Basile B. wrote: It's not trolling (unless you define trolling as "everything that goes againt my position"), I just exposed my arguments. I'm afraid to see people overreacting in front of

[Issue 16394] TypeInfo.init() for static arrays returns single element instead of whole array

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16394 --- Comment #8 from Steven Schveighoffer --- (In reply to ag0aep6g from comment #7) > I.e., it's a long-standing bug. Or functioning as designed, just not properly documented. > Pretty much every bug fix can be considered a

Re: Code signing to help with Windows virus false positives

2016-08-15 Thread Mike Parker via Digitalmars-d
On Monday, 15 August 2016 at 20:43:59 UTC, Basile B. wrote: It's not trolling (unless you define trolling as "everything that goes againt my position"), I just exposed my arguments. I'm afraid to see people overreacting in front of a minor and temporary problem. It seems that 3 or 4 posts are

Re: DIP1000: Scoped Pointers (Discussion)

2016-08-15 Thread Walter Bright via Digitalmars-d
On 8/15/2016 4:30 PM, H. S. Teoh via Digitalmars-d wrote: I'm looking forward to the day we have pervasive attribute inferrence throughout the language. It's the only sane way to deal with attributes, because they inevitably grow unmanageably numerous. In an ideal world I'd say *all* attributes

Re: DIP1000: Scoped Pointers (Discussion)

2016-08-15 Thread H. S. Teoh via Digitalmars-d
On Mon, Aug 15, 2016 at 02:43:01PM -0700, Walter Bright via Digitalmars-d wrote: > On 8/15/2016 7:48 AM, Chris Wright wrote: > > Oh god, the attribute explosion is getting worse. > > > > I think at this point the proper way to use attribute-based D > > features is to write your code without them,

Re: [OT] The coolest (literally) desktop machine I've ever had

2016-08-15 Thread Israel via Digitalmars-d
On Friday, 12 August 2016 at 19:13:12 UTC, Andrei Alexandrescu wrote: I was using a large Lenovo Y70-70 laptop as a pseudo-desktop machine and additional monitor. It's quite powerful, but its fans would run at all times. Getting really tired of that, I googled for the better part of an

[Issue 16394] TypeInfo.init() for static arrays returns single element instead of whole array

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16394 ag0ae...@gmail.com changed: What|Removed |Added CC||ag0ae...@gmail.com --- Comment #7 from

[Issue 16394] TypeInfo.init() for static arrays returns single element instead of whole array

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16394 --- Comment #6 from Steven Schveighoffer --- I mean it's a doc issue in that the documentation doesn't reflect what initializer() actually does (and has always done). There isn't much to say except that I don't think we can

[Issue 16394] TypeInfo.init() for static arrays returns single element instead of whole array

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16394 --- Comment #5 from Eyal --- I disagree, a function which has subtle corner cases that cause cryptic bugs is never a "documentation issue". Maybe if it were called "unsafe_init_val" -- you'd know that documentation is crucial here.

[Issue 16394] TypeInfo.init() for static arrays returns single element instead of whole array

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16394 --- Comment #4 from Steven Schveighoffer --- typeid(T).initializer is not meant to be used without understanding what it does in all cases. There are other subtle issues with it. I think this is just a documentation issue. I

Cyclomatic complexity in D ?

2016-08-15 Thread Basile B. via Digitalmars-d
Last night I've done a bit of documentation work on cyclomatic complexity. From this work it looks like the tools that do this static analysis are only using the AST (e.g the CC is computed for a each single function, and function calls inside the graph are considered as "connected

[Issue 16394] TypeInfo.init() for static arrays returns single element instead of whole array

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16394 --- Comment #3 from Eyal --- The workaround is pretty clear. But this is nasty! Anyone who uses typeid(T).init in a generic way (not caring what T is) is going to be broken. It would be better to have typeid(staticArr).init throw a

Re: Autotester farm is down

2016-08-15 Thread Brad Roberts via Digitalmars-d
Network connectivity issues. That set of machines runs out of my house and the comcast connection isn't happy, apparently. On 8/15/16 12:55 PM, Lodovico Giaretta via Digitalmars-d wrote: I don't know much about PRs and the autotester, so I'm probably wrong, but... It looks like [1] the

[Issue 16394] TypeInfo.init() for static arrays returns single element instead of whole array

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16394 Steven Schveighoffer changed: What|Removed |Added CC|

[Issue 16394] TypeInfo.init() for static arrays returns single element instead of whole array

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16394 --- Comment #2 from Steven Schveighoffer --- It has been this way since the beginning (traced it back to this commit: https://github.com/dlang/druntime/commit/1532910c769ab718a528c94c9157fecebd753c66) Looking at the code, there

[Issue 16394] TypeInfo.init() for static arrays returns single element instead of whole array

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16394 --- Comment #1 from Eyal --- As a result, std.algorithm:initializeAll is also buggy: import std.stdio; unittest { struct Int { ~this() {} int x = 3; } import std.algorithm : initializeAll; Int[2] xs =

Re: Autotester farm is down

2016-08-15 Thread Lodovico Giaretta via Digitalmars-d
On Monday, 15 August 2016 at 19:55:35 UTC, Lodovico Giaretta wrote: It looks like [1] the autotester farm is down: most hosts have been unreachable for more than two hours and a half, as of this writing. [1] https://auto-tester.puremagic.com/hosts/ Ping. Almost five hours now.

Re: [OT] The coolest (literally) desktop machine I've ever had

2016-08-15 Thread Philip Daniels via Digitalmars-d
I have had a fanless desktop for 3 years now, it's a Core i7 3770k. Dunno what the power draw is, but for passive cooling I went for 1. A specical, very well ventilated case. 2. A massive passive CPU cooler. 3. A fanless power supply. 4. A fanless graphics card (that can still drive 3x1200p

[Issue 14740] __traits(allMembers) returns erroneous 'this' member for types declared in functions.

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14740 Max Alibaev changed: What|Removed |Added CC||o...@ololo.im --

[Issue 16387] getSymbolsByUDA works with structs but fails with classes

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16387 gruen_tob...@web.de changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 16387] getSymbolsByUDA works with structs but fails with classes

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16387 gruen_tob...@web.de changed: What|Removed |Added Assignee|gruen_tob...@web.de |nob...@puremagic.com --

Re: DIP1000: Scoped Pointers (Discussion)

2016-08-15 Thread Walter Bright via Digitalmars-d
On 8/15/2016 7:48 AM, Chris Wright wrote: Oh god, the attribute explosion is getting worse. I think at this point the proper way to use attribute-based D features is to write your code without them, then write a tool that will add all the attributes to your source code that it can while not

[Issue 16394] New: TypeInfo.init() for static arrays returns single element instead of whole array

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16394 Issue ID: 16394 Summary: TypeInfo.init() for static arrays returns single element instead of whole array Product: D Version: D2 Hardware: x86_64 OS: Linux

Re: DIP1000: Scoped Pointers

2016-08-15 Thread Walter Bright via Digitalmars-d-announce
On 8/15/2016 6:54 AM, Rory McGuire via Digitalmars-d-announce wrote: okay nice, so that code would not compile but code such as: void test() { scope rnd = new Rnd; // reference semantic and stack allocated auto rnd2 = rnd; some_sneaky_function_that_saves_global_state(rnd); } would still

[Issue 16392] drop win32.mak

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

[Issue 16393] New: Move install.sh to a more stable machine

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16393 Issue ID: 16393 Summary: Move install.sh to a more stable machine Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement

[Issue 16387] getSymbolsByUDA works with structs but fails with classes

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16387 gruen_tob...@web.de changed: What|Removed |Added Assignee|nob...@puremagic.com|gruen_tob...@web.de --

OT Re: Code signing to help with Windows virus false positives

2016-08-15 Thread Seb via Digitalmars-d
On Monday, 15 August 2016 at 20:43:59 UTC, Basile B. wrote: It's not trolling (unless you define trolling as "everything that goes againt my position"), I just exposed my arguments. I'm afraid to see people overreacting in front of a minor and temporary problem. It seems that 3 or 4 posts are

Re: Why 16Mib static array size limit?

2016-08-15 Thread NX via Digitalmars-d
You can apply a patch if you're willing to compile dmd from source by doing the following: Find the following code in file 'mtype.d' at line 4561: bool overflow = false; if (mulu(tbn.size(loc), d2, overflow) >= 0x100 || overflow) // put a 'reasonable' limit

Re: Code signing to help with Windows virus false positives

2016-08-15 Thread Basile B. via Digitalmars-d
On Monday, 15 August 2016 at 19:58:14 UTC, Brad Anderson wrote: On Monday, 15 August 2016 at 18:52:03 UTC, Basile B. wrote: On Monday, 15 August 2016 at 17:05:32 UTC, Brad Anderson wrote: With all of the issues people are having with Windows [...] There is already an issue created for this

[Issue 16387] getSymbolsByUDA works with structs but fails with classes

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16387 gruen_tob...@web.de changed: What|Removed |Added CC||gruen_tob...@web.de --- Comment #1

Re: Code signing to help with Windows virus false positives

2016-08-15 Thread Basile B. via Digitalmars-d
On Monday, 15 August 2016 at 20:07:30 UTC, Seb wrote: On Monday, 15 August 2016 at 19:58:14 UTC, Brad Anderson wrote: At work we added class 3 code signing and it helped quite a bit with McAfee's warnings about our software for end users. In that case it was warnings about new releases of our

Re: Why 16Mib static array size limit?

2016-08-15 Thread NX via Digitalmars-d
https://issues.dlang.org/show_bug.cgi?id=14859 This limitation is put there because of optlink (which fails to link when you have enough static data), and is actually entirely meaningless when combined with -m32mscoff & -m64 switches (since other linkers handle huge static data just fine).

Re: DIP1000: Scoped Pointers

2016-08-15 Thread Rory McGuire via Digitalmars-d-announce
On Mon, Aug 15, 2016 at 4:05 PM, Dicebot via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: > On 08/15/2016 04:54 PM, Rory McGuire via Digitalmars-d-announce wrote: > > okay nice, so that code would not compile but code such as: > > void test() { > > scope rnd = new Rnd;

Re: Code signing to help with Windows virus false positives

2016-08-15 Thread Seb via Digitalmars-d
On Monday, 15 August 2016 at 19:58:14 UTC, Brad Anderson wrote: At work we added class 3 code signing and it helped quite a bit with McAfee's warnings about our software for end users. In that case it was warnings about new releases of our software that hadn't had many installs yet.

Re: DIP1000: Scoped Pointers (Discussion)

2016-08-15 Thread Robert burner Schadek via Digitalmars-d
public final void foo() scope inout @nogc nothrow @safe pure {} I think the solution is to turn every function into a no-args template, but then you can't use virtual methods. ** sarcasm on ** Don't say that, you give them ideas ;-) ** sarcasm off **

Re: Code signing to help with Windows virus false positives

2016-08-15 Thread Brad Anderson via Digitalmars-d
On Monday, 15 August 2016 at 18:52:03 UTC, Basile B. wrote: On Monday, 15 August 2016 at 17:05:32 UTC, Brad Anderson wrote: With all of the issues people are having with Windows Defender now would be a good time to start code signing the Windows installer and binaries (doing this is the first

Autotester farm is down

2016-08-15 Thread Lodovico Giaretta via Digitalmars-d
I don't know much about PRs and the autotester, so I'm probably wrong, but... It looks like [1] the autotester farm is down: most hosts have been unreachable for more than two hours and a half, as of this writing. This may slow down the PRs, as all FreeBSD and all Windows hosts are gone.

Re: Code signing to help with Windows virus false positives

2016-08-15 Thread ketmar via Digitalmars-d
On Monday, 15 August 2016 at 19:08:56 UTC, Basile B. wrote: How this is called in everyday's world ? racketeering ? exactly.

Re: Template type reduction

2016-08-15 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/15/16 3:31 PM, Engine Machine wrote: Suppose I have a templated type like struct S(T) { int x; static if (T is Y) int y; } I would like to be able to create a reference to S(T) for any T, struct Q { S!* s; // Can hold any type of S. } and be able to access s.x, since it is common to

Template type reduction

2016-08-15 Thread Engine Machine via Digitalmars-d-learn
Suppose I have a templated type like struct S(T) { int x; static if (T is Y) int y; } I would like to be able to create a reference to S(T) for any T, struct Q { S!* s; // Can hold any type of S. } and be able to access s.x, since it is common to all S. Can D do anything like this? It is

[Issue 16390] __traits not accepted where a type is expected

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16390 Jonathan M Davis changed: What|Removed |Added CC|

[Issue 14027] segmentation fault in dmd in some circular import situation

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14027 Ali Cehreli changed: What|Removed |Added Keywords||industry

[Issue 16301] CTFE execution of opApply keeps wrong "this" context in foreach's body

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16301 Ali Cehreli changed: What|Removed |Added Keywords||industry

[Issue 15094] __traits(getMember) fails when the source is a struct/class field

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15094 Ali Cehreli changed: What|Removed |Added Keywords||industry

Why 16Mib static array size limit?

2016-08-15 Thread Ali Çehreli via Digitalmars-d
dmd does not allow anything larger. Shouldn't the limit depend on the .data segment size, which can be specified by the system? Is there a technical reason? Observing that the limit is actually one less (note -1 below), it's probably due to an old limitation where indexes were limited to 24

[Issue 14451] static-foreach uses huge stack for no reason

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14451 Ali Cehreli changed: What|Removed |Added Keywords||industry

Re: Code signing to help with Windows virus false positives

2016-08-15 Thread Basile B. via Digitalmars-d
On Monday, 15 August 2016 at 18:52:03 UTC, Basile B. wrote: On Monday, 15 August 2016 at 17:05:32 UTC, Brad Anderson wrote: With all of the issues people are having with Windows Defender now would be a good time to start code signing the Windows installer and binaries (doing this is the first

Re: dmd download issues

2016-08-15 Thread Seb via Digitalmars-d
On Monday, 15 August 2016 at 18:41:40 UTC, Basile B. wrote: On Monday, 15 August 2016 at 11:24:38 UTC, Seb wrote: On Monday, 15 August 2016 at 01:06:13 UTC, Seb wrote: On Monday, 15 August 2016 at 00:07:37 UTC, luminousone wrote: Just a heads up, chrome is throwing a virus detected error in

Re: Code signing to help with Windows virus false positives

2016-08-15 Thread Basile B. via Digitalmars-d
On Monday, 15 August 2016 at 17:05:32 UTC, Brad Anderson wrote: With all of the issues people are having with Windows Defender now would be a good time to start code signing the Windows installer and binaries (doing this is the first thing Microsoft suggests on their page for Software

Re: dmd download issues

2016-08-15 Thread Basile B. via Digitalmars-d
On Monday, 15 August 2016 at 11:24:38 UTC, Seb wrote: On Monday, 15 August 2016 at 01:06:13 UTC, Seb wrote: On Monday, 15 August 2016 at 00:07:37 UTC, luminousone wrote: Just a heads up, chrome is throwing a virus detected error in the dmd-2.071.1.exe file. Wow that's the third thread:

Re: [OT] The coolest (literally) desktop machine I've ever had

2016-08-15 Thread Andrei Alexandrescu via Digitalmars-d
On 08/15/2016 12:34 PM, Dominikus Dittes Scherkl wrote: So, a computer should be quiet because it use few watts, not because it manages to generate the heat silent. Good point. The Airtop has a OLED on it that shows the power drawn. It is 28-30 watt when in casual use. -- Andrei

Re: dmd download issues

2016-08-15 Thread Basile B. via Digitalmars-d
On Monday, 15 August 2016 at 00:07:37 UTC, luminousone wrote: Just a heads up, chrome is throwing a virus detected error in the dmd-2.071.1.exe file. Can you give more details about the report ? Chrome can report that a download might be malicious if it's an ".exe", a ".rpm", a ".deb", etc.

[Issue 16390] __traits not accepted where a type is expected

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16390 --- Comment #3 from b2.t...@gmx.com --- (In reply to Lodovico Giaretta from comment #2) > (In reply to b2.temp from comment #1) > If this was meant to be a workaround, it doesn't seem to work for me (the > trait returns a type, while typeof expects

Re: Why D is not popular enough?

2016-08-15 Thread Ali Çehreli via Digitalmars-d
On 08/14/2016 07:07 AM, Andrei Alexandrescu wrote: > On 08/14/2016 01:18 AM, Shachar Shemesh wrote: >> Also, part of our >> problems with this is that introspection also does not see refs, which >> causes the following two functions to report the same signature: >> >> void func1(int arg); >>

[Issue 16390] __traits not accepted where a type is expected

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16390 --- Comment #2 from Lodovico Giaretta --- (In reply to b2.temp from comment #1) > This is really common to use typeof() on the result of a __traits() > > template ParentType(T) > { > alias ParentType =

Code signing to help with Windows virus false positives

2016-08-15 Thread Brad Anderson via Digitalmars-d
With all of the issues people are having with Windows Defender now would be a good time to start code signing the Windows installer and binaries (doing this is the first thing Microsoft suggests on their page for Software Developers about Windows Defender false positives). I propose the D

Re: [OT] The coolest (literally) desktop machine I've ever had

2016-08-15 Thread Dominikus Dittes Scherkl via Digitalmars-d
On Sunday, 14 August 2016 at 23:51:44 UTC, Jonathan M Davis wrote: On Friday, August 12, 2016 15:13:12 Andrei Alexandrescu via Digitalmars-d wrote: Thought this might help others looking for a fanless dekstop. You don't have to go fanless to have a quiet computer, but there are other pros

[Issue 16390] __traits not accepted where a type is expected

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

Re: new XML and JSON libs and replacement of std.net.curl

2016-08-15 Thread ikod via Digitalmars-d-learn
On Monday, 15 August 2016 at 15:01:13 UTC, Oleg B wrote: Hello. As replacement of std.net.curl I found https://github.com/ikod/dlang-requests. Who know's about this lib? Is this good replacement of std.net.curl? Maybe if I need json and http requests I must fully use vibe for these things?

Re: new XML and JSON libs and replacement of std.net.curl

2016-08-15 Thread Lodovico Giaretta via Digitalmars-d-learn
On Monday, 15 August 2016 at 15:01:13 UTC, Oleg B wrote: Hello. In std.xml docs I read that is deprecated, [...] For XML I found this project https://github.com/lodo1995/experimental.xml. Is this really candidate to std, or author just called it as he want? Hi! I'm the developer of that XML

Re: new XML and JSON libs and replacement of std.net.curl

2016-08-15 Thread Seb via Digitalmars-d-learn
On Monday, 15 August 2016 at 15:25:22 UTC, rikki cattermole wrote: On 16/08/2016 3:20 AM, Seb wrote: On Monday, 15 August 2016 at 15:04:29 UTC, rikki cattermole wrote: On 16/08/2016 3:01 AM, Oleg B wrote: As replacement of std.net.curl I found https://github.com/ikod/dlang-requests. Who

Re: Fact checking for my talk

2016-08-15 Thread Seb via Digitalmars-d
On Monday, 15 August 2016 at 14:40:14 UTC, Chris Wright wrote: You still haven't defined the term "design by introspection". Some searching around says it's the pattern of: template Foo(T) { static if (is(typeof(T.bar)) { // preferred implementation takes advantage of T.bar } else {

Re: new XML and JSON libs and replacement of std.net.curl

2016-08-15 Thread rikki cattermole via Digitalmars-d-learn
On 16/08/2016 3:20 AM, Seb wrote: On Monday, 15 August 2016 at 15:04:29 UTC, rikki cattermole wrote: On 16/08/2016 3:01 AM, Oleg B wrote: As replacement of std.net.curl I found https://github.com/ikod/dlang-requests. Who know's about this lib? Is this good replacement of std.net.curl? Nope,

Re: new XML and JSON libs and replacement of std.net.curl

2016-08-15 Thread Seb via Digitalmars-d-learn
On Monday, 15 August 2016 at 15:04:29 UTC, rikki cattermole wrote: On 16/08/2016 3:01 AM, Oleg B wrote: As replacement of std.net.curl I found https://github.com/ikod/dlang-requests. Who know's about this lib? Is this good replacement of std.net.curl? Nope, not a replacement. Why? I like

Re: Multi-Thread message passing approach

2016-08-15 Thread Charles Hixson via Digitalmars-d-learn
I misunderstood the problem. The problem was that a dynamically sized array cannot be sent as a message. So this works: import std.concurrency; import std.stdio; import core.thread; enum tidMax = 10; struct Start { int tidCnt = 0; Tid[tidMax] tids; } struct Msg { int

new XML and JSON libs and replacement of std.net.curl

2016-08-15 Thread Oleg B via Digitalmars-d-learn
Hello. In std.xml docs I read that is deprecated, and std.net.curl can be deprecated too (not remember here I read about std.net.curl). About std.json I read what it's has slow (de)serialization. What I must use at this time? vibe.data.json has evolution

Re: new XML and JSON libs and replacement of std.net.curl

2016-08-15 Thread rikki cattermole via Digitalmars-d-learn
On 16/08/2016 3:01 AM, Oleg B wrote: Hello. In std.xml docs I read that is deprecated, and std.net.curl can be deprecated too (not remember here I read about std.net.curl). About std.json I read what it's has slow (de)serialization. What I must use at this time? vibe.data.json has evolution

Re: DIP1000: Scoped Pointers (Discussion)

2016-08-15 Thread Chris Wright via Digitalmars-d
On Mon, 15 Aug 2016 06:36:00 -0700, Walter Bright wrote: > If the method is annotated with scope, the scope applies to the 'this' > pointer. Oh god, the attribute explosion is getting worse. I think at this point the proper way to use attribute-based D features is to write your code without

Re: Virus detected

2016-08-15 Thread Kagamin via Digitalmars-d-learn
On Monday, 15 August 2016 at 06:51:35 UTC, Joel wrote: Thanks rikki. Did you install it? Try to copy the installed files to a folder visible to windows defender, maybe only one file is a culprit - which one?

Re: Fact checking for my talk

2016-08-15 Thread Chris Wright via Digitalmars-d
On Mon, 15 Aug 2016 06:43:11 +, ZombineDev wrote: > Well, I guess it would hard for me to convince you if you don't know > what Design by Introspection means. Some years ago I was on #d on freenode and someone made a reference to high-order functions. I hadn't encountered the term, so I

Re: ArrayFire, a GPU library, is now open source

2016-08-15 Thread Pavan Yalamanchili via Digitalmars-d-announce
On Tuesday, 9 August 2016 at 15:31:21 UTC, Engine Machine wrote: On Thursday, 13 November 2014 at 02:06:03 UTC, bachmeier wrote: ArrayFire is open source, as announced on Hacker News and Reddit https://github.com/arrayfire/arrayfire Overview here: http://www.arrayfire.com/docs/index.htm

Re: dmd download issues

2016-08-15 Thread Kagamin via Digitalmars-d
Or here https://www.microsoft.com/en-us/security/portal/submission/submit.aspx

Re: dmd download issues

2016-08-15 Thread Kagamin via Digitalmars-d
On Monday, 15 August 2016 at 01:06:13 UTC, Seb wrote: Does someone know how we can get windows defender not to threat dmd as a threat? Usually antiviruses have an interface to send a sample for analysis. That's supposed to help.

[Issue 16392] New: drop win32.mak

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16392 Issue ID: 16392 Summary: drop win32.mak Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P1

Re: From the D Blog: Martin Nowak on the DMD release process

2016-08-15 Thread Chris Wright via Digitalmars-d-announce
On Mon, 15 Aug 2016 06:55:18 +, Suliman wrote: > On Friday, 29 July 2016 at 12:09:46 UTC, Mike Parker wrote: >> It was time for another Core Team Update on the D Blog. This time >> around, Martin Nowak shares how he got involved with the DMD release >> process and where you can learn more

Re: DIP1000: Scoped Pointers

2016-08-15 Thread Dicebot via Digitalmars-d-announce
On 08/15/2016 04:54 PM, Rory McGuire via Digitalmars-d-announce wrote: > okay nice, so that code would not compile but code such as: > void test() { > scope rnd = new Rnd; // reference semantic and stack allocated > auto rnd2 = rnd; > some_sneaky_function_that_saves_global_state(rnd); > }

Re: DIP1000: Scoped Pointers

2016-08-15 Thread Rory McGuire via Digitalmars-d-announce
On Mon, Aug 15, 2016 at 2:49 PM, Dicebot via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: > On 08/15/2016 03:41 PM, Rory McGuire via Digitalmars-d-announce wrote: > > scope rnd = new Rnd; // reference semantic and stack allocated > > auto rnd2 = rnd; > > > > rnd.i = 2; >

[Issue 16389] "const" should be inferred for template methods

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16389 --- Comment #3 from Andrei Alexandrescu --- (In reply to greenify from comment #2) > > Currently defining const and non-const versions of methods in generic code > > is redundant and error-prone. > > FWIW isn't inout a solution

Re: Why D is not popular enough?

2016-08-15 Thread Chris via Digitalmars-d
On Monday, 15 August 2016 at 13:10:01 UTC, Emre Temelkuran wrote: It's easy to understand conservative programmers, you can even use C++ for web programming but it's waste of time and it won't give you the performance of Dropoid toolkit for Java. Also it's reliability is depends on your

Re: DIP1000: Scoped Pointers (Discussion)

2016-08-15 Thread Walter Bright via Digitalmars-d
On 8/15/2016 5:17 AM, Dicebot wrote: On 08/15/2016 02:52 PM, Walter Bright wrote: On 8/15/2016 2:32 AM, Kagamin wrote: On Sunday, 14 August 2016 at 20:02:35 UTC, Walter Bright wrote: auto r = range; You said that if a value (range in this case) is returned by scope, its lifetime is

[Issue 16389] "const" should be inferred for template methods

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

[Issue 16389] "const" should be inferred for template methods

2016-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16389 Steven Schveighoffer changed: What|Removed |Added CC|

  1   2   >