Re: DConf 2017 Berlin - bicycles

2017-04-19 Thread Adrian Matoga via Digitalmars-d
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 around the city is on a bicycle. Can you recom

Re: DConf 2017 Berlin - bicycles

2017-04-19 Thread Adrian Matoga via Digitalmars-d
On Wednesday, 19 April 2017 at 19:03:40 UTC, Fool wrote: No personal experience, but http://www.yaambike.de/ sounds like an option. Looks good, thanks.

Re: DMD VS2017 Support

2017-04-19 Thread Mike Parker 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. You have two options to do so -- download the installer at the link below or run the VS 2017 installer and select it in the "Individual Components" tab. I'm on my M

Re: Compare boost::hana to D

2017-04-19 Thread Adrian Matoga via Digitalmars-d
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. Two typos: 1) A missing underscore made me believe C++ gained a new keyword (make). :) auto events = make event_system("foo"_s,

Re: DMD VS2017 Support

2017-04-19 Thread Mike Parker via Digitalmars-d
On Wednesday, 19 April 2017 at 20:47:51 UTC, Jolly James wrote: I cannot even fix it myself because DMD is looking for "bin\link.exe". But with VS2017 the path would actually be something like "\bin\HostX64\x64". You can install the MS Build Tools 2015. DMD will work with that. You have two o

Re: [OT] PC sales down

2017-04-19 Thread rikki cattermole via Digitalmars-d
On 20/04/2017 5:09 AM, Joakim wrote: I don't know why you get so worked up about this. Yes, the new entrant won't have features the old computers had. I was using virtual desktops on UNIX workstations regularly decades ago, but Microsoft didn't add that to the OS till Windows 10 a couple years

Re: DPaste is down

2017-04-19 Thread ANtlord via Digitalmars-d
There is screenshot of http://dpaste.dzfl.pl http://screencloud.net/v/rCE6i

[OT] PC sales down

2017-04-19 Thread Joakim via Digitalmars-d
On Wednesday, 19 April 2017 at 17:47:50 UTC, Nick Sabalausky (Abscissa) wrote: On 04/13/2017 06:16 PM, Joakim wrote: From a certain point of view, you could say PC sales are only down 25% from their peak, that's not dead yet. But the chart I linked shows their share of personal computing devi

DPaste is down

2017-04-19 Thread ANtlord via Digitalmars-d
Hello! I don't know where I should to talk about this. http://dpaste.dzfl.pl is down for three days. Any of sample from documentation can't be ran. Is this service provided dlang faundation? If not sorry for this attention. http://screencloud.net/v/buvXp

Re: Exact arithmetic with quadratic irrationals

2017-04-19 Thread H. S. Teoh via Digitalmars-d
On Thu, Apr 20, 2017 at 02:01:20AM +0200, Timon Gehr via Digitalmars-d wrote: [...] > Yes, there is in fact a beautifully simple way to do better. :) > > Assume we want to compute some power of x. With a single > multiplication, we obtain x². Multiplying x² by itself, we obtain x⁴. > Repeating thi

Re: Exact arithmetic with quadratic irrationals

2017-04-19 Thread Timon Gehr via Digitalmars-d
On 20.04.2017 02:01, Timon Gehr wrote: My last post includes an implementation of this algorithm. ;) But in that implementation I used the parameter 'a' instead of the variable 'x' as a result of being tired, which makes it slightly more confusing than necessary even though it is correct. Mo

Re: Exact arithmetic with quadratic irrationals

2017-04-19 Thread Timon Gehr via Digitalmars-d
On 20.04.2017 02:01, Timon Gehr wrote: To get the formula for multiplicative inverses, one possible algorithm is: https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm#Polynomial_extended_Euclidean_algorithm Better reference: https://en.wikipedia.org/wiki/Polynomial_greatest_common_div

Re: DMD VS2017 Support

2017-04-19 Thread Meta via Digitalmars-d
On Wednesday, 19 April 2017 at 20:47:51 UTC, Jolly James wrote: I cannot even fix it myself because DMD is looking for "bin\link.exe". But with VS2017 the path would actually be something like "\bin\HostX64\x64". Please ignore Mike's answer. Visual D is maintained by Rainers Schuetze and is h

Re: Exact arithmetic with quadratic irrationals

2017-04-19 Thread Timon Gehr via Digitalmars-d
On 19.04.2017 23:39, H. S. Teoh via Digitalmars-d wrote: On Wed, Apr 19, 2017 at 10:47:04PM +0200, Timon Gehr via Digitalmars-d wrote: On 19.04.2017 21:32, H. S. Teoh via Digitalmars-d wrote: I alluded to this in D.learn some time ago, and finally decided to take the dip and actually write the

Re: Exact arithmetic with quadratic irrationals

2017-04-19 Thread H. S. Teoh via Digitalmars-d
On Wed, Apr 19, 2017 at 10:47:04PM +0200, Timon Gehr via Digitalmars-d wrote: > On 19.04.2017 21:32, H. S. Teoh via Digitalmars-d wrote: > > I alluded to this in D.learn some time ago, and finally decided to > > take the dip and actually write the code. So here it is: exact > > arithmetic with numb

Re: DMD VS2017 Support

2017-04-19 Thread Mike B Johnson via Digitalmars-d
On Wednesday, 19 April 2017 at 20:47:51 UTC, Jolly James wrote: I cannot even fix it myself because DMD is looking for "bin\link.exe". But with VS2017 the path would actually be something like "\bin\HostX64\x64". Edit your sc.ini in the dmd\windows\bin dir or use junctions to map directories.

Re: DMD VS2017 Support

2017-04-19 Thread Jolly James via Digitalmars-d
I cannot even fix it myself because DMD is looking for "bin\link.exe". But with VS2017 the path would actually be something like "\bin\HostX64\x64".

Re: Exact arithmetic with quadratic irrationals

2017-04-19 Thread Timon Gehr via Digitalmars-d
On 19.04.2017 21:32, H. S. Teoh via Digitalmars-d wrote: I alluded to this in D.learn some time ago, and finally decided to take the dip and actually write the code. So here it is: exact arithmetic with numbers of the form (a+b√r)/c where a, b, c are integers, c!=0, and r is a (fixed) square-free

Re: The lost Group

2017-04-19 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 19 April 2017 at 20:07:48 UTC, Jolly James wrote: https://forum.dlang.org/group/D does not appear in the forum's index or sidebar. There are groups on the DigitalMars news server that are obsolete and no longer used, or not related to D. They are accessible only by their URL.

Re: Interpolated strings

2017-04-19 Thread Walter Bright via Digitalmars-d
I forgot to mention - the pros and cons of whether the string interpolation is compile time or run time is a critical decision.

Re: The lost Group

2017-04-19 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 19 April 2017 at 20:07:48 UTC, Jolly James wrote: https://forum.dlang.org/group/D does not appear in the forum's index or sidebar. It is obsolete and should not be used for any new stuff anymore. That content now goes in "General" instead.

Re: Exact arithmetic with quadratic irrationals

2017-04-19 Thread H. S. Teoh via Digitalmars-d
On Wed, Apr 19, 2017 at 07:54:02PM +, Stanislav Blinov via Digitalmars-d wrote: > Awesome! Congrats and thanks for sharing. > > On Wednesday, 19 April 2017 at 19:32:14 UTC, H. S. Teoh wrote: > > > Haha, it seems that the only roadblocks were related to the > > implementation quality of std.n

Re: DConf 2017 Berlin - bicycles

2017-04-19 Thread Walter Bright via Digitalmars-d
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 around the city is on a bicycle. Can you recommend a place (preferably near the station) where I could rent a not-

Re: Interpolated strings

2017-04-19 Thread Walter Bright via Digitalmars-d
On 4/19/2017 5:04 AM, Jonas Drewsen wrote: On Tuesday, 18 April 2017 at 08:42:38 UTC, Walter Bright wrote: On 4/15/2017 1:04 PM, Jonas Drewsen wrote: [...] Thanks for doing the work to make a sample implementation, too. I don't know if this will make it into D, but Jonas is a fine example of

Re: Interpolated strings

2017-04-19 Thread H. S. Teoh via Digitalmars-d
On Wed, Apr 19, 2017 at 06:38:13PM +, Patrick Schluter via Digitalmars-d wrote: [...] > As a string interpolation sceptic I have to admit that I found one > application of that concept that is probably much better than the > current C derived format strings: Internationalisation. > > date

The lost Group

2017-04-19 Thread Jolly James via Digitalmars-d
https://forum.dlang.org/group/D does not appear in the forum's index or sidebar.

DMD VS2017 Support

2017-04-19 Thread Jolly James via Digitalmars-d
DMD does not support VS2017. Therefore I cannot link x64 applications. DMD installer only offers to install VS2013 (what I am absolutely not going to do, as that would be a real shame with the disk space it consumes). Any plans for supporting VS2017?

Re: Exact arithmetic with quadratic irrationals

2017-04-19 Thread Stanislav Blinov via Digitalmars-d
Awesome! Congrats and thanks for sharing. On Wednesday, 19 April 2017 at 19:32:14 UTC, H. S. Teoh wrote: Haha, it seems that the only roadblocks were related to the implementation quality of std.numeric.gcd... nothing that a few relatively-simple PRs couldn't fix. So overall, D is still awes

Exact arithmetic with quadratic irrationals

2017-04-19 Thread H. S. Teoh via Digitalmars-d
I alluded to this in D.learn some time ago, and finally decided to take the dip and actually write the code. So here it is: exact arithmetic with numbers of the form (a+b√r)/c where a, b, c are integers, c!=0, and r is a (fixed) square-free integer. Code: https://github.com/quickfur/qrat I wrot

Re: Compare boost::hana to D

2017-04-19 Thread Joakim via Digitalmars-d
On Wednesday, 19 April 2017 at 18:30:49 UTC, Adrian Matoga wrote: On Wednesday, 19 April 2017 at 18:26:20 UTC, Sebastiaan Koppe 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 Great article! Thanks! I should mention

Compile Error

2017-04-19 Thread MihailProg via Digitalmars-d
I use Visual Studio 2015 with the latest versions of D installed, and when i try to compile a simple hello world code i get this error: -- Build started: Project: LearningD, Configuration: Debug Win32 -- Building Win32\Debug\LearningD.exe... Microsoft (R) Incremental Linker Version 14

Re: Optilink bugs(or DMD)

2017-04-19 Thread Temtaime via Digitalmars-d
On Wednesday, 19 April 2017 at 15:15:21 UTC, Nierjerson wrote: On Wednesday, 19 April 2017 at 04:25:40 UTC, Stefan Koch wrote: On Wednesday, 19 April 2017 at 03:52:54 UTC, Nierjerson wrote: Major optilink bugs, blocker. Code is long but demonstrates the issue. Compiles with ldc. [...] There

Re: Compare boost::hana to D

2017-04-19 Thread Ali Çehreli via Digitalmars-d
On 04/19/2017 12:12 PM, Adrian Matoga wrote: On Wednesday, 19 April 2017 at 18:57:19 UTC, David Gileadi wrote: On 4/19/17 11:30 AM, Adrian Matoga wrote: On Wednesday, 19 April 2017 at 18:26:20 UTC, Sebastiaan Koppe wrote: On Wednesday, 19 April 2017 at 18:02:46 UTC, Adrian Matoga wrote: [2] h

Re: Compare boost::hana to D

2017-04-19 Thread Adrian Matoga via Digitalmars-d
On Wednesday, 19 April 2017 at 18:57:19 UTC, David Gileadi wrote: On 4/19/17 11:30 AM, Adrian Matoga wrote: On Wednesday, 19 April 2017 at 18:26:20 UTC, Sebastiaan Koppe 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

Re: DConf 2017 Berlin - bicycles

2017-04-19 Thread Fool via Digitalmars-d
No personal experience, but http://www.yaambike.de/ sounds like an option.

Re: Compare boost::hana to D

2017-04-19 Thread David Gileadi via Digitalmars-d
On 4/19/17 11:30 AM, Adrian Matoga wrote: On Wednesday, 19 April 2017 at 18:26:20 UTC, Sebastiaan Koppe 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 Great article! Thanks! I should mention I've also got somewhat

Re: Interpolated strings

2017-04-19 Thread Patrick Schluter via Digitalmars-d
On Wednesday, 19 April 2017 at 13:04:08 UTC, Jonathan Marler wrote: On Wednesday, 19 April 2017 at 12:03:47 UTC, Stefan Koch wrote: On Wednesday, 19 April 2017 at 11:59:51 UTC, Jonas Drewsen wrote: I can think of 3 reasons. 1. Requires GC. NOTE: I believe that most applcations should use GC

Re: Interpolated strings

2017-04-19 Thread H. S. Teoh via Digitalmars-d
On Tue, Apr 18, 2017 at 05:30:31PM -0700, Walter Bright via Digitalmars-d wrote: [...] > Reminds me of a story from the 1980s. Microsoft's MASM stood for > "Macro Assembler". Inevitably, Microsoft programmers invented a pile > of macros that sort of turned asm programming into a pseudo-high-level >

multiple `alias this` suggestion

2017-04-19 Thread Carl Sturtivant via Digitalmars-d
Currently only one `alias this` declaration is permitted, and the documentation https://dlang.org/spec/class.html#AliasThis says the following. "Multiple AliasThis are allowed. For implicit conversions and forwarded lookups, all AliasThis declarations are attempted; if more than one AliasThis

Re: Compare boost::hana to D

2017-04-19 Thread Adrian Matoga via Digitalmars-d
On Wednesday, 19 April 2017 at 18:26:20 UTC, Sebastiaan Koppe 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 Great article! Thanks! I should mention I've also got somewhat positive feedback from Louis [1]. [1] ht

Re: Compare boost::hana to D

2017-04-19 Thread Sebastiaan Koppe 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 Great article!

DConf 2017 Berlin - bicycles

2017-04-19 Thread Adrian Matoga via Digitalmars-d
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 place (preferably near the station) where I could rent a not-so-small bike for 4 days for a reasonable

Re: Compare boost::hana to D

2017-04-19 Thread Adrian Matoga via Digitalmars-d
On Wednesday, 19 April 2017 at 08:19:52 UTC, Ali Çehreli wrote: I'm brushing up on my C++ to prepare for my C++Now 2017 presentation[1]. boost::hana is an impressive library that overlaps with many D features: http://www.boost.org/doc/libs/1_64_0_b2/libs/hana/doc/html/index.html Have you

Re: Interpolated strings

2017-04-19 Thread Meta via Digitalmars-d
On Wednesday, 19 April 2017 at 15:07:55 UTC, Jonas Drewsen wrote: I'm talking about building format strings just yet... I'm just working with the suggestion that Walter brought up with converting the interpolated string into something that can be fed into format e.g.: $"The date is {%04d year

Re: Interpolated strings

2017-04-19 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 04/17/2017 03:41 PM, Jonas Drewsen wrote: On Monday, 17 April 2017 at 19:12:37 UTC, Martin Tschierschke wrote: defining a new method exho! (derived from echo + mixin...:-) auto exho(string x)(){ return mixin("writeln("~interp!x~")");} You can just write: exho!"The number ${num} d

Re: What are we going to do about mobile? [OT]

2017-04-19 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 04/13/2017 06:16 PM, Joakim wrote: From a certain point of view, you could say PC sales are only down 25% from their peak, that's not dead yet. But the chart I linked shows their share of personal computing devices, including mobile, has dropped from 78% to a little less than 14% over the la

Re: Compare boost::hana to D

2017-04-19 Thread Ali Çehreli via Digitalmars-d
On 04/19/2017 03:58 AM, Laeeth Isharc wrote: > Hope you're well. I'm doing very well. Hoping to see you at DConf. :) Here's another reminder to all: The registration deadline is this Sunday! > On the other hand I was reading some object oriented C++ code of 20k > lines split between 200 files.

Re: Interpolated strings

2017-04-19 Thread jmh530 via Digitalmars-d
On Wednesday, 19 April 2017 at 16:19:09 UTC, Ola Fosheim Grøstad wrote: Yup. And actually also "while" and "for". More minimal languages just have: block, conditional and jump-to-start-of-block. This reminds me of Rust's mid-level IR for some reason. For instance, according to one of the Ru

Re: Interpolated strings

2017-04-19 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 19 April 2017 at 09:49:16 UTC, Jacob Carlborg wrote: On 2017-04-19 08:51, Ola Fosheim Grøstad wrote: If you want AST-macros in D you should also argue for redefining the core language, and turn everything that is unnecessary and that can be done as lowering into macros (e.g. "fo

Re: Immovable types

2017-04-19 Thread Stanislav Blinov via Digitalmars-d
On Wednesday, 19 April 2017 at 14:45:59 UTC, Meta wrote: On Wednesday, 19 April 2017 at 02:53:18 UTC, Stanislav Blinov wrote: Non-copyable and immovable types will have to be explicitly initialized, as if they had @disable this(), as they can't even be initialized with .init: It's an interest

Re: Optilink bugs(or DMD)

2017-04-19 Thread Nierjerson via Digitalmars-d
On Wednesday, 19 April 2017 at 04:25:40 UTC, Stefan Koch wrote: On Wednesday, 19 April 2017 at 03:52:54 UTC, Nierjerson wrote: Major optilink bugs, blocker. Code is long but demonstrates the issue. Compiles with ldc. [...] There are two instances of void ForegroundColor(cSolidColor rhs) We

Re: Interpolated strings

2017-04-19 Thread Jonas Drewsen via Digitalmars-d
On Wednesday, 19 April 2017 at 14:02:43 UTC, Stefan Koch wrote: On Wednesday, 19 April 2017 at 12:10:33 UTC, Jonas Drewsen wrote: On Wednesday, 19 April 2017 at 12:03:47 UTC, Stefan Koch wrote: On Wednesday, 19 April 2017 at 11:59:51 UTC, Jonas Drewsen wrote: What about supporting an optiona

Re: Immovable types

2017-04-19 Thread Meta via Digitalmars-d
On Wednesday, 19 April 2017 at 02:53:18 UTC, Stanislav Blinov wrote: Non-copyable and immovable types will have to be explicitly initialized, as if they had @disable this(), as they can't even be initialized with .init: It's an interesting idea but I can't even begin to fathom how much code t

Re: Interpolated strings

2017-04-19 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 19 April 2017 at 12:03:47 UTC, Stefan Koch wrote: I really don't see how string interpolation is better then ` "The date is " ~ format("%04d", year)); ` That code is hideous, not hard to beat on every level... inefficient, hard to read. The built in thing could potentially opti

Re: Interpolated strings

2017-04-19 Thread Stefan Koch via Digitalmars-d
On Wednesday, 19 April 2017 at 12:10:33 UTC, Jonas Drewsen wrote: On Wednesday, 19 April 2017 at 12:03:47 UTC, Stefan Koch wrote: On Wednesday, 19 April 2017 at 11:59:51 UTC, Jonas Drewsen wrote: What about supporting an optional prefix inside the {} like: int year = 2017; format($"The date

Re: Immovable types

2017-04-19 Thread Stanislav Blinov via Digitalmars-d
On Wednesday, 19 April 2017 at 08:52:45 UTC, kinke wrote: On Wednesday, 19 April 2017 at 02:53:18 UTC, Stanislav Blinov wrote: But it is always assumed that a value can be moved. It's not just assumed, it's a key requirement for structs in D, as the compiler can move stuff automatically this

Re: DIP 1006 - Preliminary Review Round 1

2017-04-19 Thread Mike Parker via Digitalmars-d
On Wednesday, 12 April 2017 at 11:25:09 UTC, Mike Parker wrote: All review-related feedback on and discussion of the DIP should occur in this thread. The review period will end at 11:59 PM ET on April 26 (3:59 AM GMT), or when I make a post declaring it complete. Reminder: There's one wee

Re: Interpolated strings

2017-04-19 Thread Jonathan Marler via Digitalmars-d
On Wednesday, 19 April 2017 at 12:03:47 UTC, Stefan Koch wrote: On Wednesday, 19 April 2017 at 11:59:51 UTC, Jonas Drewsen wrote: What about supporting an optional prefix inside the {} like: int year = 2017; format($"The date is {%04d year}"); so if there is a % immediately following the { t

Re: Compare boost::hana to D

2017-04-19 Thread Nicholas Wilson via Digitalmars-d
On Wednesday, 19 April 2017 at 11:58:07 UTC, Kagamin wrote: On Wednesday, 19 April 2017 at 09:01:25 UTC, Sebastiaan Koppe wrote: Haven't used C++ for a while actually. And seeing it after some time, makes me tremble convulsively. // basic_string INSERTERS AND EXTRACTORS [...] :) Ah yes C++ st

Re: Interpolated strings

2017-04-19 Thread Jonas Drewsen via Digitalmars-d
On Wednesday, 19 April 2017 at 12:03:47 UTC, Stefan Koch wrote: On Wednesday, 19 April 2017 at 11:59:51 UTC, Jonas Drewsen wrote: What about supporting an optional prefix inside the {} like: int year = 2017; format($"The date is {%04d year}"); so if there is a % immediately following the { t

Re: Interpolated strings

2017-04-19 Thread Jonas Drewsen via Digitalmars-d
On Tuesday, 18 April 2017 at 08:42:38 UTC, Walter Bright wrote: On 4/15/2017 1:04 PM, Jonas Drewsen wrote: [...] Thanks for doing the work to make a sample implementation, too. I don't know if this will make it into D, but Jonas is a fine example of a champion. Thanks for the feedback. Nic

Re: Interpolated strings

2017-04-19 Thread Stefan Koch via Digitalmars-d
On Wednesday, 19 April 2017 at 11:59:51 UTC, Jonas Drewsen wrote: What about supporting an optional prefix inside the {} like: int year = 2017; format($"The date is {%04d year}"); so if there is a % immediately following the { then the chars until next whitespace is format specifier. You can

Re: Interpolated strings

2017-04-19 Thread Jonas Drewsen via Digitalmars-d
On Wednesday, 19 April 2017 at 00:08:19 UTC, Walter Bright wrote: On 4/18/2017 2:56 PM, Jonathan Marler wrote: Have you thought about supporting format specifiers as well? I looked at the C# version and it looks like they can specify them using a colon like this: $"{a} in hex is {a:x}"

Re: Compare boost::hana to D

2017-04-19 Thread Kagamin via Digitalmars-d
On Wednesday, 19 April 2017 at 09:01:25 UTC, Sebastiaan Koppe wrote: Haven't used C++ for a while actually. And seeing it after some time, makes me tremble convulsively. _STD_BEGIN // basic_string INSERTERS AND EXTRACTORS template inline basic_istream<_Elem, _Traits>& operator>>(

Re: Compare boost::hana to D

2017-04-19 Thread Joakim via Digitalmars-d
On Wednesday, 19 April 2017 at 10:58:06 UTC, Laeeth Isharc wrote: One last thing. D is a pretty good language for getting stuff done quickly in for a prototype that can be cleaned up quickly. That's a point Andy Smith made, and that Liran made in his talk also. I am having to deal with that i

Re: Compare boost::hana to D

2017-04-19 Thread Laeeth Isharc via Digitalmars-d
On Wednesday, 19 April 2017 at 08:19:52 UTC, Ali Çehreli wrote: I'm brushing up on my C++ to prepare for my C++Now 2017 presentation[1]. boost::hana is an impressive library that overlaps with many D features: http://www.boost.org/doc/libs/1_64_0_b2/libs/hana/doc/html/index.html Have you

Re: Interpolated strings

2017-04-19 Thread Nick Treleaven via Digitalmars-d
On Wednesday, 19 April 2017 at 00:08:19 UTC, Walter Bright wrote: There are additional problems, such as: $"{a} in %s {b}" % should be escaped: "%s in %%s %s". There would be no use for a single % otherwise. and positional parameters: $"{a} in {0}" That would be literal 0: `"%s

Re: Interpolated strings

2017-04-19 Thread Jacob Carlborg via Digitalmars-d
On 2017-04-19 08:51, Ola Fosheim Grøstad wrote: If you want AST-macros in D you should also argue for redefining the core language, and turn everything that is unnecessary and that can be done as lowering into macros (e.g. "for each"). If D had AST macros from the beginning, then yes, "foreach

Re: Interpolated strings

2017-04-19 Thread Jacob Carlborg via Digitalmars-d
On 2017-04-19 02:30, Walter Bright wrote: I'm not saying you cannot do cool and useful things with AST macros. My position is it encourages absolutely awful code as (usually inexperienced) programmers compete to show how clever their macros are. The language gets balkanized into a collection of

Re: Interpolated strings

2017-04-19 Thread Martin Tschierschke via Digitalmars-d
On Monday, 17 April 2017 at 19:41:14 UTC, Jonas Drewsen wrote: On Monday, 17 April 2017 at 19:12:37 UTC, Martin Tschierschke wrote: defining a new method exho! (derived from echo + mixin...:-) auto exho(string x)(){ return mixin("writeln("~interp!x~")");} You can just write: exho!"T

Re: Compare boost::hana to D

2017-04-19 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 19 April 2017 at 08:19:52 UTC, Ali Çehreli wrote: Have you used boost::hana? What are your thoughts on it? And please share your ideas for the presentation. There has been threads here about C++ closing the gap. Does D still bring competitive advantage or is it becoming irrelevan

Re: Immovable types

2017-04-19 Thread kinke via Digitalmars-d
On Wednesday, 19 April 2017 at 02:53:18 UTC, Stanislav Blinov wrote: But it is always assumed that a value can be moved. It's not just assumed, it's a key requirement for structs in D, as the compiler can move stuff automatically this way (making a bitcopy and then eliding the postblit ctor f

Re: Compare boost::hana to D

2017-04-19 Thread Nicholas Wilson via Digitalmars-d
On Wednesday, 19 April 2017 at 08:19:52 UTC, Ali Çehreli wrote: I'm brushing up on my C++ to prepare for my C++Now 2017 presentation[1]. boost::hana is an impressive library that overlaps with many D features: http://www.boost.org/doc/libs/1_64_0_b2/libs/hana/doc/html/index.html Have you

Compare boost::hana to D

2017-04-19 Thread Ali Çehreli via Digitalmars-d
I'm brushing up on my C++ to prepare for my C++Now 2017 presentation[1]. boost::hana is an impressive library that overlaps with many D features: http://www.boost.org/doc/libs/1_64_0_b2/libs/hana/doc/html/index.html Have you used boost::hana? What are your thoughts on it? And please share yo