[Issue 17339] ambiguous mangling with module level const values as alias template argument

2017-04-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17339 --- Comment #1 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/b21f445de6e4e8aeb5447c09fde0e8fb179ce99c workaround Issue 17339 - ambiguous mangling with const alias

[Issue 17338] [Reg 2.075] link failure unsupported symbol section 0xff01

2017-04-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17338 --- Comment #3 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/c1caf39360fde901605336796fb09d2b4cb44132 add regression test for Issue 17338 --

Re: Python : Pythonista / Ruby: Rubyist : / D : ?

2017-04-21 Thread Jonathan M Davis via Digitalmars-d
On Friday, April 21, 2017 17:20:14 Vasudev Ram via Digitalmars-d wrote: > Hi list, > > I hope the question is self-evident from the message subject. If > not, it means: what are D developers generally called (to > indicate that they develop in D)? The question occurred to me > somehow while

Re: {OT} Youtube Video: newCTFE: Starting to write the x86 JIT

2017-04-21 Thread Stefan Koch via Digitalmars-d
On Saturday, 22 April 2017 at 03:03:32 UTC, evilrat wrote: On Thursday, 20 April 2017 at 14:54:20 UTC, Stefan Koch wrote: On Thursday, 20 April 2017 at 14:35:27 UTC, Suliman wrote: Could you explain where it can be helpful? It's helpful for newCTFE's development. :) The I estimate the jit

Re: {OT} Youtube Video: newCTFE: Starting to write the x86 JIT

2017-04-21 Thread evilrat via Digitalmars-d
On Thursday, 20 April 2017 at 14:54:20 UTC, Stefan Koch wrote: On Thursday, 20 April 2017 at 14:35:27 UTC, Suliman wrote: Could you explain where it can be helpful? It's helpful for newCTFE's development. :) The I estimate the jit will easily be 10 times faster then my bytecode interpreter.

[Issue 17340] [REG 2.074.0] isNumeric!bool should not be true

2017-04-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17340 Jack Stouffer changed: What|Removed |Added CC||j...@jackstouffer.com

Re: Python : Pythonista / Ruby: Rubyist : / D : ?

2017-04-21 Thread evilrat via Digitalmars-d
On Friday, 21 April 2017 at 21:33:59 UTC, Vasudev Ram wrote: On Friday, 21 April 2017 at 19:26:34 UTC, Moritz Maxeiner wrote: Duh. Deity. Disciples. Denizens. Dastards. Demons. Deliverers. Dreamers. Dis thread seems to be doing well, wonder what de devil it will be like in hell. De D

Re: DMD VS2017 Support

2017-04-21 Thread Mike Parker via Digitalmars-d
On Saturday, 22 April 2017 at 02:39:41 UTC, evilrat wrote: Also VS 2017 is much more modular now, so its now lighter than ever before. but of course for C++ (and D) you still need Windows SDK. The SDK stuff is installed with VS. IIRC D also can be used without VS or WinSDK at all, just

Re: DMD VS2017 Support

2017-04-21 Thread Mike Parker via Digitalmars-d
On Saturday, 22 April 2017 at 02:22:56 UTC, NotSpooky wrote: I don't have Windows so I don't know if this has changed, but last time I tried to install dmd there it asked to install VS 2013, I know some people that didn't want to install DMD because VS is huge, now that the build tools are

Re: DMD VS2017 Support

2017-04-21 Thread evilrat via Digitalmars-d
On Saturday, 22 April 2017 at 02:22:56 UTC, NotSpooky wrote: On Saturday, 22 April 2017 at 02:13:09 UTC, Mike Parker wrote: There's no issue with compatibility. DMD is perfectly compatible with all recent versions of VS, including 2017. The issue is that 2017 has changed its directory tree

Re: Problems with Zlib - data error

2017-04-21 Thread Era Scarecrow via Digitalmars-d-learn
On Friday, 21 April 2017 at 17:40:03 UTC, Era Scarecrow wrote: I think I'll just go with full memory compression and make a quick simple filter to manage the large blocks of 0's to something more manageable. That will reduce the memory allocation issues. Done and I'm happy with the results.

Re: DMD VS2017 Support

2017-04-21 Thread NotSpooky via Digitalmars-d
On Saturday, 22 April 2017 at 02:13:09 UTC, Mike Parker wrote: There's no issue with compatibility. DMD is perfectly compatible with all recent versions of VS, including 2017. The issue is that 2017 has changed its directory tree and the DMD *installer* can't pick it up automatically. Now

Re: DMD VS2017 Support

2017-04-21 Thread Mike Parker via Digitalmars-d
On Friday, 21 April 2017 at 14:37:40 UTC, NotSpooky wrote: I'd be very nice if instead of offering to install VS, it offered the build tools. Also mentioning which installations are compatible so that the user can select the one he/she prefers. A lot of people are confused with this.

Re: DConf 2017 Berlin - bicycles

2017-04-21 Thread Walter Bright via Digitalmars-d
On 4/21/2017 2:10 PM, Adrian Matoga wrote: I don't know about Boston, but I've heard many times that Lisbon was too hilly to ride a bike there, but in reality it wasn't all that bad (well, maybe on the hottest summer days), I grew up in Phoenix, and rode my bike everywhere. It's completely

Last Minute Tickets to DConf

2017-04-21 Thread Walter Bright via Digitalmars-d-announce
The kiosk closes Sunday Apr 23 at midnight. If you're on the fence, get them now! http://dconf.org/2017/registration.html

[Issue 17337] SIGILL for AVX vector initialization

2017-04-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17337 --- Comment #1 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/3a2b76115bb7727652b6505898594b8c8e6a57d7 fix Issue 17337 - SIGILL for AVX vector initialization

[Issue 17337] SIGILL for AVX vector initialization

2017-04-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17337 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 17340] isNumeric!bool should not be true

2017-04-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17340 --- Comment #2 from thomas.bock...@gmail.com --- I submitted a fix: https://github.com/dlang/phobos/pull/5343 --

[Issue 17340] isNumeric!bool should not be true

2017-04-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17340 --- Comment #1 from thomas.bock...@gmail.com --- The new (wrong) behaviour was also retroactively added to the documentation in a later commit: https://github.com/dlang/phobos/commit/118f2d773317d0da76c0d9054e7bcddd2e83f887 However, prior to DMD

[Issue 17340] New: isNumeric!bool should not be true

2017-04-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17340 Issue ID: 17340 Summary: isNumeric!bool should not be true Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression Priority: P1

Re: Python : Pythonista / Ruby: Rubyist : / D : ?

2017-04-21 Thread ix via Digitalmars-d
On Friday, 21 April 2017 at 17:20:14 UTC, Vasudev Ram wrote: I hope the question is self-evident from the message subject. If not, it means: what are D developers generally called (to indicate that they develop in D)? The question occurred to me somehow while browsing some D posts on the

[Issue 17339] New: ambiguous mangling with module level const values as alias template argument

2017-04-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17339 Issue ID: 17339 Summary: ambiguous mangling with module level const values as alias template argument Product: D Version: D2 Hardware: All OS: All

Re: Interpolated strings

2017-04-21 Thread Kapps via Digitalmars-d
On Thursday, 20 April 2017 at 18:28:30 UTC, Atila Neves wrote: On Monday, 17 April 2017 at 19:38:33 UTC, Kapps wrote: On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen wrote: [...] C# got this feature recently. I didn't expect it to be a significant difference, but I do find it a

Re: Python : Pythonista / Ruby: Rubyist : / D : ?

2017-04-21 Thread Namespace via Digitalmars-d
On Friday, 21 April 2017 at 17:20:14 UTC, Vasudev Ram wrote: Hi list, I hope the question is self-evident from the message subject. If not, it means: what are D developers generally called (to indicate that they develop in D)? The question occurred to me somehow while browsing some D posts

[Issue 17338] [Reg 2.075] link failure unsupported symbol section 0xff01

2017-04-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17338 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/7ccbbb589219cf24076b559f947388825712807e fix Issue 17338 - [Reg 2.075] link failure unsupported symbol

[Issue 17338] [Reg 2.075] link failure unsupported symbol section 0xff01

2017-04-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17338 Walter Bright changed: What|Removed |Added CC|

Re: Python : Pythonista / Ruby: Rubyist : / D : ?

2017-04-21 Thread Vasudev Ram via Digitalmars-d
On Friday, 21 April 2017 at 19:26:34 UTC, Moritz Maxeiner wrote: On Friday, 21 April 2017 at 17:20:14 UTC, Vasudev Ram wrote: Hi list, I hope the question is self-evident from the message subject. If not, it means: what are D developers generally called (to indicate that they develop in D)?

Re: DConf 2017 Berlin - bicycles

2017-04-21 Thread Adrian Matoga via Digitalmars-d
On Friday, 21 April 2017 at 13:37:17 UTC, Steven Schveighoffer wrote: After the bike tour I had last year, I can 100% agree that having a bike is a fabulous way to get around the city quickly. You can ride the subway with your bike (although IIRC, you need to buy a ticket for it), but the

Re: Algebra With Types

2017-04-21 Thread Meta via Digitalmars-d-learn
On Friday, 21 April 2017 at 18:54:38 UTC, David Sanders wrote: Thank-you for your input. With your help, I was able to figure out number whether a type is an instantiation of std.variant.Algebraic. Now, I need help on concatenating Template Sequence Parameters. See the block comments below.

Re: multiple `alias this` suggestion

2017-04-21 Thread Stefan Koch via Digitalmars-d
On Friday, 21 April 2017 at 16:41:45 UTC, Meta wrote: On Friday, 21 April 2017 at 16:21:57 UTC, H. S. Teoh wrote: On Fri, Apr 21, 2017 at 08:17:28AM -0400, Andrei Alexandrescu via Digitalmars-d wrote: [...] This is interesting, and would be timely to discuss before an implementation of

Re: DConf 2017 Berlin - bicycles

2017-04-21 Thread Adrian Matoga via Digitalmars-d
On Friday, 21 April 2017 at 16:49:36 UTC, Iain Buclaw wrote: On 19 April 2017 at 20:22, Adrian Matoga via Digitalmars-d wrote: I'm arriving at Berlin Ostbahnhof on Wednesday evening and will be heading to Britz Hotel, but last year I learnt that the best way to

[Issue 17320] Visual Studio 2017 is not detected

2017-04-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17320 Rainer Schuetze changed: What|Removed |Added Keywords||pull

[Issue 17280] dmd -m64 mode hard-code error libpath with vs2017

2017-04-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17280 Rainer Schuetze changed: What|Removed |Added Keywords||pull

Re: Python : Pythonista / Ruby: Rubyist : / D : ?

2017-04-21 Thread Adrian Matoga via Digitalmars-d
On Friday, 21 April 2017 at 17:20:14 UTC, Vasudev Ram wrote: Hi list, I hope the question is self-evident from the message subject. If not, it means: what are D developers generally called (to indicate that they develop in D)? The question occurred to me somehow while browsing some D posts

Re: Compare boost::hana to D

2017-04-21 Thread Adrian Matoga via Digitalmars-d
On Friday, 21 April 2017 at 13:10:43 UTC, Adam D. Ruppe wrote: On Wednesday, 19 April 2017 at 18:02:46 UTC, Adrian Matoga wrote: [2] https://epi.github.io/2017/03/18/less_fun.html BTW in your D foreach, you could also have done `switch` void trigger(string event) { switch(event) {

Re: Compare boost::hana to D

2017-04-21 Thread Adrian Matoga via Digitalmars-d
On Friday, 21 April 2017 at 12:37:03 UTC, Mike Parker wrote: On Friday, 21 April 2017 at 12:34:53 UTC, Mike Parker wrote: On Thursday, 20 April 2017 at 07:37:17 UTC, Mike Parker wrote: On Thursday, 20 April 2017 at 05:01:17 UTC, Adrian Matoga wrote: On Wednesday, 19 April 2017 at 19:22:11 UTC,

Re: Compare boost::hana to D

2017-04-21 Thread Adrian Matoga via Digitalmars-d
On Friday, 21 April 2017 at 12:34:53 UTC, Mike Parker wrote: On Thursday, 20 April 2017 at 07:37:17 UTC, Mike Parker wrote: On Thursday, 20 April 2017 at 05:01:17 UTC, Adrian Matoga wrote: On Wednesday, 19 April 2017 at 19:22:11 UTC, Ali Çehreli wrote: Thank you. Has this been on Reddit yet?

[Issue 17337] SIGILL for AVX vector initialization

2017-04-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17337 Jack Stouffer changed: What|Removed |Added CC||j...@jackstouffer.com

[Issue 17335] Function calls in conjunctions do not short circuit when evaluated during compilation

2017-04-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17335 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/4d1eba7b28f8e06717252c488c4bd2b6bf2d3070 fix Issue 17335 - Function calls in conjunctions do not short

Re: Python : Pythonista / Ruby: Rubyist : / D : ?

2017-04-21 Thread Moritz Maxeiner via Digitalmars-d
On Friday, 21 April 2017 at 17:20:14 UTC, Vasudev Ram wrote: Hi list, I hope the question is self-evident from the message subject. If not, it means: what are D developers generally called (to indicate that they develop in D)? The question occurred to me somehow while browsing some D posts

[Issue 17338] New: [Reg 2.075] link failure unsupported symbol section 0xff01

2017-04-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17338 Issue ID: 17338 Summary: [Reg 2.075] link failure unsupported symbol section 0xff01 Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW

Re: Compile time foreach with switch

2017-04-21 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, Apr 21, 2017 at 07:17:32PM +, Adam D. Ruppe via Digitalmars-d-learn wrote: > On Friday, 21 April 2017 at 19:09:25 UTC, Johan Fjeldtvedt wrote: > > void foo(string s) { > > enum es = tuple("a", "b", "c"); > > switch (s) { > > foreach (e; es) { > > case e: > >

Re: Compile time foreach with switch

2017-04-21 Thread Johan Fjeldtvedt via Digitalmars-d-learn
On Friday, 21 April 2017 at 19:17:32 UTC, Adam D. Ruppe wrote: On Friday, 21 April 2017 at 19:09:25 UTC, Johan Fjeldtvedt wrote: void foo(string s) { enum es = tuple("a", "b", "c"); switch (s) { foreach (e; es) { case e: writeln("matched ", e);

Re: Compile time foreach with switch

2017-04-21 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 21 April 2017 at 19:09:25 UTC, Johan Fjeldtvedt wrote: void foo(string s) { enum es = tuple("a", "b", "c"); switch (s) { foreach (e; es) { case e: writeln("matched ", e); break; } Let me remove some surrounding stuff and ask you

Re: Algebra With Types

2017-04-21 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, Apr 21, 2017 at 06:54:38PM +, David Sanders via Digitalmars-d-learn wrote: [...] > Now, I need help on concatenating Template Sequence Parameters. See > the block comments below. [...] > } else static if (is(T _ == VariantN!V, V...)) { > static if(is(U _ ==

Re: Interpolated strings

2017-04-21 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 04/21/2017 08:45 AM, Gary Willoughby wrote: On Friday, 21 April 2017 at 12:32:01 UTC, Nick Sabalausky (Abscissa) wrote: "Completely unnecessary" features like that are exactly what make D worthwhile in the first place. Otherwise may as well stick to C++ or Java. Multiple ways of doing the

Compile time foreach with switch

2017-04-21 Thread Johan Fjeldtvedt via Digitalmars-d-learn
I was a bit surprised to find out (https://forum.dlang.org/post/csiwyetjkttlxxnwn...@forum.dlang.org) that compile time foreach-loops can be used inside switch-statements. I tried the following: import std.stdio; import std.typecons; void foo(string s) { enum es = tuple("a", "b", "c");

Re: Python : Pythonista / Ruby: Rubyist : / D : ?

2017-04-21 Thread Daniel N via Digitalmars-d
On Friday, 21 April 2017 at 18:26:30 UTC, Stanislav Blinov wrote: On Friday, 21 April 2017 at 18:16:55 UTC, Meta wrote: I prefer the term Deity. Talk about D'lusions of granD're ;) Disciples

Re: Algebra With Types

2017-04-21 Thread David Sanders via Digitalmars-d-learn
On Friday, 21 April 2017 at 17:33:22 UTC, Meta wrote: On Friday, 21 April 2017 at 16:31:37 UTC, H. S. Teoh wrote: On Fri, Apr 21, 2017 at 04:16:30PM +, David Sanders via Digitalmars-d-learn wrote: I'm trying to do algebra with types ala

[Issue 15246] Destructor inheritance doesn't inherit attributes properly

2017-04-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15246 Rainer Schuetze changed: What|Removed |Added CC||r.sagita...@gmx.de

Re: htod for linux

2017-04-21 Thread Sebastien Alaiwan via Digitalmars-d-learn
On Friday, 21 April 2017 at 11:40:45 UTC, Mike Parker wrote: On Friday, 21 April 2017 at 10:54:26 UTC, سليمان السهمي (Soulaïman Sahmi) wrote: Is there an htod for linux or an equivalent that works with Cpp, there is dstep but it does not support Cpp. From the very bottom of the htod doc page

Re: Python : Pythonista / Ruby: Rubyist : / D : ?

2017-04-21 Thread Stanislav Blinov via Digitalmars-d
On Friday, 21 April 2017 at 18:16:55 UTC, Meta wrote: I prefer the term Deity. Talk about D'lusions of granD're ;)

Re: Compare boost::hana to D

2017-04-21 Thread Joakim via Digitalmars-d
On Friday, 21 April 2017 at 12:34:53 UTC, Mike Parker wrote: On Thursday, 20 April 2017 at 07:37:17 UTC, Mike Parker wrote: On Thursday, 20 April 2017 at 05:01:17 UTC, Adrian Matoga wrote: On Wednesday, 19 April 2017 at 19:22:11 UTC, Ali Çehreli wrote: Thank you. Has this been on Reddit yet?

Re: Python : Pythonista / Ruby: Rubyist : / D : ?

2017-04-21 Thread Meta via Digitalmars-d
On Friday, 21 April 2017 at 17:20:14 UTC, Vasudev Ram wrote: Hi list, I hope the question is self-evident from the message subject. If not, it means: what are D developers generally called (to indicate that they develop in D)? The question occurred to me somehow while browsing some D posts

[Issue 17337] New: SIGILL for AVX vector initialization

2017-04-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17337 Issue ID: 17337 Summary: SIGILL for AVX vector initialization Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement

Re: Problems with Zlib - data error

2017-04-21 Thread Era Scarecrow via Digitalmars-d-learn
On Friday, 21 April 2017 at 12:57:25 UTC, Adam D. Ruppe wrote: But I didn't realize your thing was a literal example from the docs. Ugh, can't even trust that. Which was a larger portion of why I was confused by it all than otherwise. Still, it's much easier to salvage if I knew how the

Re: Interpolated strings

2017-04-21 Thread bitwise via Digitalmars-d
On Friday, 21 April 2017 at 12:45:39 UTC, Gary Willoughby wrote: Go and Rust are both smashing D in popularity and user share, maybe we could learn why that's the case. Can't rely on RAII, can't rely on GC. This is the single biggest problem to me. GC performs slowly, and RAII is

Re: Python : Pythonista / Ruby: Rubyist : / D : ?

2017-04-21 Thread Vasudev Ram via Digitalmars-d
On Friday, 21 April 2017 at 17:29:37 UTC, ketmar wrote: Vasudev Ram wrote: Hi list, I hope the question is self-evident from the message subject. If not, it means: what are D developers generally called (to indicate that they develop in D)? The question occurred to me somehow while

Re: Algebra With Types

2017-04-21 Thread Meta via Digitalmars-d-learn
On Friday, 21 April 2017 at 16:31:37 UTC, H. S. Teoh wrote: On Fri, Apr 21, 2017 at 04:16:30PM +, David Sanders via Digitalmars-d-learn wrote: I'm trying to do algebra with types ala http://chris-taylor.github.io/blog/2013/02/10/the-algebra-of-algebraic-data-types/ Below you will find my

Re: Python : Pythonista / Ruby: Rubyist : / D : ?

2017-04-21 Thread ketmar via Digitalmars-d
Vasudev Ram wrote: Hi list, I hope the question is self-evident from the message subject. If not, it means: what are D developers generally called (to indicate that they develop in D)? The question occurred to me somehow while browsing some D posts on the forums just now. DLanger?

Python : Pythonista / Ruby: Rubyist : / D : ?

2017-04-21 Thread Vasudev Ram via Digitalmars-d
Hi list, I hope the question is self-evident from the message subject. If not, it means: what are D developers generally called (to indicate that they develop in D)? The question occurred to me somehow while browsing some D posts on the forums just now. DLanger? DLangist? D'er? Doer? :) I

Re: NG technical issues: Is it just me?

2017-04-21 Thread Mike Wey via Digitalmars-d
On 04/21/2017 10:27 AM, Vladimir Panteleev wrote: On Thursday, 20 April 2017 at 23:37:25 UTC, Ali Çehreli wrote: *Looks* like a server/network issue but behaves like a screwy local issue. Started happening more in recent weeks. I don't select automatic checking for messages. I just click on

Re: vibe.d error on OS X 10.6

2017-04-21 Thread Schmo via Digitalmars-d
On Friday, 7 March 2014 at 09:40:04 UTC, Antonio wrote: $ brew install libevent If you are using Homebrew Thanks, that worked like a charm!

Re: DConf 2017 Berlin - bicycles

2017-04-21 Thread Iain Buclaw via Digitalmars-d
On 19 April 2017 at 20:22, Adrian Matoga via Digitalmars-d wrote: > I'm arriving at Berlin Ostbahnhof on Wednesday evening and will be heading > to Britz Hotel, but last year I learnt that the best way to get around the > city is on a bicycle. Can you recommend a

Re: multiple `alias this` suggestion

2017-04-21 Thread Meta via Digitalmars-d
On Friday, 21 April 2017 at 16:21:57 UTC, H. S. Teoh wrote: On Fri, Apr 21, 2017 at 08:17:28AM -0400, Andrei Alexandrescu via Digitalmars-d wrote: [...] This is interesting, and would be timely to discuss before an implementation of multiple alias this gets started. -- Andrei Whatever

Re: htod for linux

2017-04-21 Thread Matthias Klumpp via Digitalmars-d-learn
You may also want to try dstep - I just recently used that tool for the first time, and it worked really well (required a bit of tweaking of the source and result files though, but nothing major). => https://github.com/jacob-carlborg/dstep

Re: Algebra With Types

2017-04-21 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, Apr 21, 2017 at 04:16:30PM +, David Sanders via Digitalmars-d-learn wrote: > I'm trying to do algebra with types ala > http://chris-taylor.github.io/blog/2013/02/10/the-algebra-of-algebraic-data-types/ > > Below you will find my attempts at "adding" types in D. I've outlined the >

Re: multiple `alias this` suggestion

2017-04-21 Thread H. S. Teoh via Digitalmars-d
On Fri, Apr 21, 2017 at 08:17:28AM -0400, Andrei Alexandrescu via Digitalmars-d wrote: [...] > This is interesting, and would be timely to discuss before an > implementation of multiple alias this gets started. -- Andrei Whatever happened to the almost-complete implementation of alias this that

Algebra With Types

2017-04-21 Thread David Sanders via Digitalmars-d-learn
I'm trying to do algebra with types ala http://chris-taylor.github.io/blog/2013/02/10/the-algebra-of-algebraic-data-types/ Below you will find my attempts at "adding" types in D. I've outlined the parts I'm having trouble with using block comments. 1) How do I figure out whether a type is an

Re: multiple `alias this` suggestion

2017-04-21 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 21 April 2017 at 15:30:14 UTC, jmh530 wrote: alias m3, m2, m1 this; I thought they were deprecating the comma operator. That's not the comma operator.

Re: Chennai D Meetup April 22: Introducing D, Rust, and Swift

2017-04-21 Thread Vasudev Ram via Digitalmars-d-announce
On Thursday, 13 April 2017 at 14:10:13 UTC, Chennai Danatic wrote: Please RSVP if you plan to attend: https://www.meetup.com/Chennai-D/events/238949573/?showDescription=true Btw, Chennai, a large port city in South India, now has the most members of any D Meetup group, passing even Silicon

Re: multiple `alias this` suggestion

2017-04-21 Thread jmh530 via Digitalmars-d
On Wednesday, 19 April 2017 at 18:32:43 UTC, Carl Sturtivant wrote: struct top { mem3 m3; mem2 m2; mem1 m1; alias m3, m2, m1 this; // ... } I thought they were deprecating the comma operator.

Re: multiple `alias this` suggestion

2017-04-21 Thread Steven Schveighoffer via Digitalmars-d
On 4/21/17 8:17 AM, Andrei Alexandrescu wrote: On 04/20/2017 04:35 PM, Carl Sturtivant wrote: On Wednesday, 19 April 2017 at 18:32:43 UTC, Carl Sturtivant wrote: Imagine the existing single `alias this` is extended to provide such a heierarchy of lookups. For example, struct top { mem3

Re: multiple `alias this` suggestion

2017-04-21 Thread Meta via Digitalmars-d
On Thursday, 20 April 2017 at 20:35:04 UTC, Carl Sturtivant wrote: On Wednesday, 19 April 2017 at 18:32:43 UTC, Carl Sturtivant wrote: Imagine the existing single `alias this` is extended to provide such a heierarchy of lookups. For example, struct top { mem3 m3; mem2 m2; mem1 m1;

Re: Interpolated strings

2017-04-21 Thread Nick Treleaven via Digitalmars-d
On Thursday, 20 April 2017 at 20:43:35 UTC, H. S. Teoh wrote: If you're doing internationalization, though, neither option is a good one (I gave an example using dates in another post): printf-style formats have ordering issues (is it year first, then month, then day? Or month first then day

Re: DMD VS2017 Support

2017-04-21 Thread NotSpooky via Digitalmars-d
On Thursday, 20 April 2017 at 04:58:55 UTC, Mike Parker wrote: You can install the MS Build Tools 2015. DMD will work with that. I'd be very nice if instead of offering to install VS, it offered the build tools. Also mentioning which installations are compatible so that the user can select

Re: Interpolated strings

2017-04-21 Thread Nick Treleaven via Digitalmars-d
On Thursday, 20 April 2017 at 21:34:44 UTC, Steven Schveighoffer wrote: Dmitry's solution is superior I think: $"{a} times 3 is {a * 3}" -> AliasSeq!(a, " times 3 is ", a * 3) +1, this is more flexible. Would work fine with writeln. Yep, and std.conv.text. We might want a function that

Re: Interpolated strings

2017-04-21 Thread Nick Treleaven via Digitalmars-d
On Thursday, 20 April 2017 at 19:02:20 UTC, Kagamin wrote: Also how various kinds of strings would work? r$"{can}\i\has{slashes}" $`same {here}` r"" and `` are WysiwygStrings. Interpolation is not WYSIWYG. $"" would need to support escaping of the interpolation start character, so may as

Re: htod for linux

2017-04-21 Thread via Digitalmars-d-learn
I think we need a dub package for the cpp standard library. If somebody has managed to get that together, it would be a great step towards better cpp interoperability.

Xcode 8 and DMD

2017-04-21 Thread Steven Schveighoffer via Digitalmars-d
Having installed Xcode 8 recently, I have discovered that the linker and DMD do not play nice together. See my bug report here: https://issues.dlang.org/show_bug.cgi?id=17289 I'm a bit concerned that the misalignment of pointers might cause performance degradation, so I'm going to switch to

Re: DConf 2017 Berlin - bicycles

2017-04-21 Thread Steven Schveighoffer via Digitalmars-d
On 4/20/17 1:29 AM, Adrian Matoga wrote: On Wednesday, 19 April 2017 at 20:13:52 UTC, Walter Bright wrote: On 4/19/2017 11:22 AM, Adrian Matoga wrote: I'm arriving at Berlin Ostbahnhof on Wednesday evening and will be heading to Britz Hotel, but last year I learnt that the best way to get

Re: DMD requirements (VC runtime version) where?

2017-04-21 Thread XavierAP via Digitalmars-d-learn
On Friday, 21 April 2017 at 11:37:07 UTC, Mike Parker wrote: sc.ini manually is the better option if you don't need or want the 2015 build tools. Thanks! Nevertheless I think it would be good that the supported version of VS is documented on the website of DMD, just like it is on

[Issue 17336] Implicit type conversion of size_t.init to int causes standard type compatibility test to break

2017-04-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17336 Steven Schveighoffer changed: What|Removed |Added Status|NEW |RESOLVED

Re: Compare boost::hana to D

2017-04-21 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 19 April 2017 at 18:02:46 UTC, Adrian Matoga wrote: [2] https://epi.github.io/2017/03/18/less_fun.html BTW in your D foreach, you could also have done `switch` void trigger(string event) { switch(event) { foreach (i, e; events) { case e: foreach (c;

Re: Interpolated strings

2017-04-21 Thread Anonymouse via Digitalmars-d
On Friday, 21 April 2017 at 12:45:39 UTC, Gary Willoughby wrote: Multiple ways of doing the same thing are not valuable or progressive. Go and Rust are both smashing D in popularity and user share, maybe we could learn why that's the case. Corporate backing and word-of-mouth? I recall

Re: Interpolated strings

2017-04-21 Thread ketmar via Digitalmars-d
Gary Willoughby wrote: Go and Rust are both smashing D in popularity and user share, maybe we could learn why that's the case. 'cause go backed by google, and rust backed by mozilla.

Re: Problems with Zlib - data error

2017-04-21 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 21 April 2017 at 11:18:55 UTC, Era Scarecrow wrote: So that's what's going on. But if I have to dup the blocks then I have the same problem as before with limited memory issues. I kinda wish more there was the gz_open that is in the C interface and let it deal with the

Re: Playing arround with mixin - alias?

2017-04-21 Thread ketmar via Digitalmars-d-learn
Martin Tschierschke wrote: i doubt so. So my "solution" on how to get a short cut for using: writeln(mixin(interp!"${name} you are app. ${age*365} days old")); .. NEVER. EVER. USE. THE. FOLOWING. IN. YOUR. CODE. NEVER!!! import std.stdio; mixin template usesexpand() { import

Re: Interpolated strings

2017-04-21 Thread Gary Willoughby via Digitalmars-d
On Friday, 21 April 2017 at 12:32:01 UTC, Nick Sabalausky (Abscissa) wrote: "Completely unnecessary" features like that are exactly what make D worthwhile in the first place. Otherwise may as well stick to C++ or Java. Multiple ways of doing the same thing are not valuable or progressive.

Re: Compare boost::hana to D

2017-04-21 Thread Mike Parker via Digitalmars-d
On Friday, 21 April 2017 at 12:34:53 UTC, Mike Parker wrote: On Thursday, 20 April 2017 at 07:37:17 UTC, Mike Parker wrote: On Thursday, 20 April 2017 at 05:01:17 UTC, Adrian Matoga wrote: On Wednesday, 19 April 2017 at 19:22:11 UTC, Ali Çehreli wrote: Thank you. Has this been on Reddit yet?

Re: Compare boost::hana to D

2017-04-21 Thread Mike Parker via Digitalmars-d
On Thursday, 20 April 2017 at 07:37:17 UTC, Mike Parker wrote: On Thursday, 20 April 2017 at 05:01:17 UTC, Adrian Matoga wrote: On Wednesday, 19 April 2017 at 19:22:11 UTC, Ali Çehreli wrote: Thank you. Has this been on Reddit yet? I haven't posted it there, I don't have an account. I'll

Re: Interpolated strings

2017-04-21 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 04/21/2017 04:11 AM, Gary Willoughby wrote: On Thursday, 20 April 2017 at 18:28:30 UTC, Atila Neves wrote: I don't understand how writeln($"{a} times 3 is {a * 3}"); is even marginally better than writeln(a, " times 3 is ", a * 3); // look ma, works right now! It's not even fewer

Re: NG technical issues: Is it just me?

2017-04-21 Thread captaindet via Digitalmars-d
tried the 'check for new messages every 2 minutes' hotfix suggestion (was set to 10), but it does not help in my case. correction: this seems to help quite a bit, got only one connection refused since.

Re: multiple `alias this` suggestion

2017-04-21 Thread Andrei Alexandrescu via Digitalmars-d
On 04/20/2017 04:35 PM, Carl Sturtivant wrote: On Wednesday, 19 April 2017 at 18:32:43 UTC, Carl Sturtivant wrote: Imagine the existing single `alias this` is extended to provide such a heierarchy of lookups. For example, struct top { mem3 m3; mem2 m2; mem1 m1; alias m3, m2, m1

Re: htod for linux

2017-04-21 Thread via Digitalmars-d-learn
On Friday, 21 April 2017 at 12:10:04 UTC, Mike Parker wrote: The only thing I'm aware of is Binderoo [1]. According to the currently skinny wiki, binderoo_util [2] can be used to generate bindings if you're invested in using the whole set up. Ethan's scheduled to give a talk about it on Day 2

Re: htod for linux

2017-04-21 Thread Mike Parker via Digitalmars-d-learn
On Friday, 21 April 2017 at 12:04:02 UTC, سليمان السهمي (Soulaïman Sahmi) wrote: On Friday, 21 April 2017 at 11:40:45 UTC, Mike Parker wrote: "No Linux version." That's a shame, any alternative with cpp support? It's quite painful to "port" something ubiquitous like std::string by hand.

Re: Playing arround with mixin - alias?

2017-04-21 Thread Martin Tschierschke via Digitalmars-d-learn
On Friday, 21 April 2017 at 11:58:13 UTC, Martin Tschierschke wrote: On Friday, 21 April 2017 at 10:31:46 UTC, ketmar wrote: biozic wrote: I thought way to complicated: Just define the string at top: enum exho="auto mixinter(string x)(){return mixin(interp!x);} auto exho(string x)(){return

Re: htod for linux

2017-04-21 Thread via Digitalmars-d-learn
On Friday, 21 April 2017 at 11:40:45 UTC, Mike Parker wrote: "No Linux version." That's a shame, any alternative with cpp support? It's quite painful to "port" something ubiquitous like std::string by hand. base_string.h is ugly, is arcane, even a parser would have a hard time with it.

Re: Playing arround with mixin - alias?

2017-04-21 Thread Martin Tschierschke via Digitalmars-d-learn
On Friday, 21 April 2017 at 10:31:46 UTC, ketmar wrote: biozic wrote: On Friday, 21 April 2017 at 09:42:33 UTC, ketmar wrote: Martin Tschierschke wrote: Is it possible to define an alias for something like mixin(import("local_function_file.d")); to write only use_local_function;

Re: htod for linux

2017-04-21 Thread Mike Parker via Digitalmars-d-learn
On Friday, 21 April 2017 at 10:54:26 UTC, سليمان السهمي (Soulaïman Sahmi) wrote: Is there an htod for linux or an equivalent that works with Cpp, there is dstep but it does not support Cpp. From the very bottom of the htod doc page [1]: "No Linux version." https://dlang.org/htod.html

  1   2   >