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

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

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

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

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

GC: Understanding potential sources of false pointers

2017-04-19 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-learn
According to : "Registers, the stack, and any other memory locations added through the GC.addRange function are always scanned conservatively." 1. Can that be safely assumed to be a canonical list of all possible sources of false pointers? 2. What

Windows X64 Calling conventions

2017-04-19 Thread Tofu Ninja via Digitalmars-d-learn
I am trying to learn the calling conventions in DMD, I am sure I will have more than one question about them so as I come across them I will ask them in this thread. I am mainly reading the MSDN docs on the x64 calls and looking at disassemblies to confirm what I learn. While I was looking

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

[Issue 17329] File.remove() has problems with long filenames (>128 bytes)

2017-04-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17329 --- Comment #4 from Rainer Koschnick --- I tried it with the path as you can see up there! --

Re: The DConf Experience

2017-04-19 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 4/19/17 11:26 AM, Joakim wrote: Nice post. What's the occupancy like for the event so far? Seemed pretty full last year, wondering how many more can sign up this year. There are still available seats. -- Andrei

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.

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:

[Issue 17329] File.remove() has problems with long filenames (>128 bytes)

2017-04-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17329 --- Comment #3 from b2.t...@gmx.com --- I meant fully qualified filename ! \\?\D:\_Development_\D\cbc\... --

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

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

[Issue 17334] New: Template constraints do short circuit semantic analysis for && and ||, but not for ?:

2017-04-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17334 Issue ID: 17334 Summary: Template constraints do short circuit semantic analysis for && and ||, but not for ?: Product: D Version: D2 Hardware: All OS: All

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

Re: Forwarding calls to objects of another type

2017-04-19 Thread Johan Fjeldtvedt via Digitalmars-d-learn
On Tuesday, 11 April 2017 at 02:01:19 UTC, Nicholas Wilson wrote: On Monday, 10 April 2017 at 21:27:34 UTC, Basile B. wrote: 2) This is about the reduce templates. As I've commented, I can't use a template lambda with reduce, but I can use a lambda taking ints as arguments. Why is this? The

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

Re: Forwarding calls to objects of another type

2017-04-19 Thread Johan Fjeldtvedt via Digitalmars-d-learn
On Monday, 10 April 2017 at 21:27:34 UTC, Basile B. wrote: On Monday, 10 April 2017 at 21:04:10 UTC, Johan Fjeldtvedt wrote: [...] One way: [...] Thanks for the reply. The traits way of doing it seems to be what I want. :) [...] [...]

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)

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

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

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. > >

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

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

Re: Cap'n Proto for D v0.1.2

2017-04-19 Thread Thomas Brix Larsen via Digitalmars-d-announce
On Wednesday, 19 April 2017 at 18:24:46 UTC, Jay Norwood wrote: [...] Ok, thanks. I took a look at several capnproto implementations just now, and didn't see any tests for a mmap 'feature'. The roadmap doc below indicates it doesn't exist, and perhaps there are some details yet to be

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

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

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. [...]

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]

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: Can we disallow appending integer to string?

2017-04-19 Thread Stanislav Blinov via Digitalmars-d-learn
On Wednesday, 19 April 2017 at 18:40:23 UTC, H. S. Teoh wrote: A few extra keystrokes to type cast(int) or cast(char) ain't gonna kill nobody. In fact, it might even save a few people by preventing certain kinds of bugs. Yup. Not to mention one could have @property auto

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: Can we disallow appending integer to string?

2017-04-19 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Apr 19, 2017 at 05:56:18PM +, Stanislav Blinov via Digitalmars-d-learn wrote: > On Wednesday, 19 April 2017 at 17:34:01 UTC, Jonathan M Davis wrote: > > Personally, I think that we should have taken the stricter approach > > and not had integral types implicit convert to character

[Issue 10001] string formatting with underscores

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

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

[Issue 10001] string formatting with underscores

2017-04-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10001 --- Comment #4 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/5de9af20ad07ebe485394309867073baa53b627b Merge pull request #5303 from

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

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]

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!

Re: Cap'n Proto for D v0.1.2

2017-04-19 Thread Jay Norwood via Digitalmars-d-announce
On Wednesday, 19 April 2017 at 16:52:14 UTC, Thomas Brix Larsen wrote: Take a look at FileDescriptor[1]. It is a class I've added to support read/write using File from std.stdio. You can create a similar streamer using std.mmfile. I believe that this would be enough for memory mapped reading.

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: Stuck with DMD, and Unit-Threaded

2017-04-19 Thread Atila Neves via Digitalmars-d-learn
On Tuesday, 18 April 2017 at 07:07:16 UTC, Russel Winder wrote: On Mon, 2017-04-17 at 22:56 +, Atila Neves via Digitalmars-d-learn wrote: […] https://github.com/russel/ApproxGC/pull/2 Unfortunately the auto generated integration test main file doesn't quite work (feel free to file a

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

Re: Can we disallow appending integer to string?

2017-04-19 Thread Stanislav Blinov via Digitalmars-d-learn
On Wednesday, 19 April 2017 at 17:34:01 UTC, Jonathan M Davis wrote: Personally, I think that we should have taken the stricter approach and not had integral types implicit convert to character types, but from what I recall, Walter feels pretty strongly about the conversion rules being the

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}

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

Re: Can we disallow appending integer to string?

2017-04-19 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, April 19, 2017 14:50:38 Stanislav Blinov via Digitalmars-d- learn wrote: > On Wednesday, 19 April 2017 at 14:36:13 UTC, Nick Treleaven wrote: > > This bug is fixed as the code no longer segfaults but throws > > instead: > > https://issues.dlang.org/show_bug.cgi?id=5995 > > > > void

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

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

Re: Cap'n Proto for D v0.1.2

2017-04-19 Thread Thomas Brix Larsen via Digitalmars-d-announce
On Wednesday, 19 April 2017 at 16:34:02 UTC, Jay Norwood wrote: [...] This info from stackoverflow also seems to imply that MappedByteBuffer would be required for some of the capnproto features. So, could you explain a little more about what are the capabilities of the current d library

Re: Cap'n Proto for D v0.1.2

2017-04-19 Thread Jay Norwood via Digitalmars-d-announce
On Tuesday, 18 April 2017 at 18:09:54 UTC, Thomas Brix Larsen wrote: "Cap’n Proto is an insanely fast data interchange format and capability-based RPC system. Think JSON, except binary. Or think Protocol Buffers, except faster." The features below, from the capnproto.org description, interest

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.

[Issue 17330] [REG 2.072] BigInt's constructor used to be pure

2017-04-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17330 --- Comment #1 from Jack Stouffer --- https://github.com/dlang/phobos/pull/5340 --

Re: The app hanging after reach 1750MB of RAM

2017-04-19 Thread Stanislav Blinov via Digitalmars-d-learn
On Wednesday, 19 April 2017 at 07:28:32 UTC, Suliman wrote: 1. You're measuring it wrong. Array length is already measured in terms of type size. So should I do: cargpspoints.length * cargpspoints[0].sizeof ? No. .sizeof is the statically known size of a type, it can't take into account

Re: The app hanging after reach 1750MB of RAM

2017-04-19 Thread Suliman via Digitalmars-d-learn
On Wednesday, 19 April 2017 at 15:18:32 UTC, crimaniak wrote: On Tuesday, 18 April 2017 at 11:43:24 UTC, Suliman wrote: I am writing app that extract data from DB to array of structures. void getSingleTrackInfo() { foreach(item;

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

Re: The DConf Experience

2017-04-19 Thread Joakim via Digitalmars-d-announce
On Wednesday, 19 April 2017 at 13:03:23 UTC, Mike Parker wrote: The registration deadline for DConf 2017 is just around the corner (this Sunday). As a fun way to remind you, a handful of past attendees have shared some anecdotes of their experiences. I've personally attended two conferences

[Issue 17330] [REG 2.072] BigInt's constructor used to be pure

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

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)

Re: The app hanging after reach 1750MB of RAM

2017-04-19 Thread crimaniak via Digitalmars-d-learn
On Tuesday, 18 April 2017 at 11:43:24 UTC, Suliman wrote: I am writing app that extract data from DB to array of structures. void getSingleTrackInfo() { foreach(item; getTablesGPSSensorList) { ResultRange

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

Re: Can we disallow appending integer to string?

2017-04-19 Thread Stanislav Blinov via Digitalmars-d-learn
On Wednesday, 19 April 2017 at 14:36:13 UTC, Nick Treleaven wrote: This bug is fixed as the code no longer segfaults but throws instead: https://issues.dlang.org/show_bug.cgi?id=5995 void main(){ string ret; int i = -1; ret ~= i; } Why is it legal to append an integer?

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

Can we disallow appending integer to string?

2017-04-19 Thread Nick Treleaven via Digitalmars-d-learn
This bug is fixed as the code no longer segfaults but throws instead: https://issues.dlang.org/show_bug.cgi?id=5995 void main(){ string ret; int i = -1; ret ~= i; } Why is it legal to append an integer?

[Issue 17333] Disallow concat of string with integer enum

2017-04-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17333 Nick Treleaven changed: What|Removed |Added Keywords||accepts-invalid --

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

[Issue 17333] Disallow concat of string with integer enum

2017-04-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17333 Nick Treleaven changed: What|Removed |Added Summary|Disallow CT concat of |Disallow concat of string

[Issue 17333] New: Disallow CT concat of string with integer

2017-04-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17333 Issue ID: 17333 Summary: Disallow CT concat of string with integer Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: minor

Re: The DConf Experience

2017-04-19 Thread Mike Parker via Digitalmars-d-announce
On Wednesday, 19 April 2017 at 13:03:23 UTC, Mike Parker wrote: The registration deadline for DConf 2017 is just around the corner (this Sunday). As a fun way to remind you, a handful of past attendees have shared some anecdotes of their experiences. I've personally attended two conferences

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

The DConf Experience

2017-04-19 Thread Mike Parker via Digitalmars-d-announce
The registration deadline for DConf 2017 is just around the corner (this Sunday). As a fun way to remind you, a handful of past attendees have shared some anecdotes of their experiences. I've personally attended two conferences and watched (portions of) two on livestream + IRC. If you've

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 {

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++

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 {

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.

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

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: Cap'n Proto for D v0.1.2

2017-04-19 Thread Jacob Carlborg via Digitalmars-d-announce
On 2017-04-18 23:08, Dmitry Olshansky wrote: Risking a flamewar but what's wrong with Java? I don't like any language that force me to write in a particular style or paradigm. Because all problems cannot be solved (or not in a good way) in the same way. That said, my D code is quite heavily

  1   2   >