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

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17336 --- Comment #4 from Adam D. Ruppe --- > if A or B has @disabled this(), then .init may actually fail even if A+B > actually compiles. That's not true, @disable this does not affect .init. .init WILL always compile. In

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

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17335 --- Comment #3 from Walter Bright --- https://github.com/dlang/dmd/pull/6713 --

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

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17334 --- Comment #2 from Walter Bright --- https://github.com/dlang/dmd/pull/6713 --

Re: Interpolated strings

2017-04-20 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 04/20/2017 04:43 PM, H. S. Teoh via Digitalmars-d wrote: But if you're printing lots of variables according to a precise template (e.g., rows of a table or a list of fields), format strings make more sense, e.g.: foreach (rec; records) { writefln("[%8d] %20s

[Issue 17289] With Xcode 8.3 linker, warnings of "pointer not aligned"

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17289 Steven Schveighoffer changed: What|Removed |Added Hardware|x86 |x86_64

Re: Windows X64 Calling conventions

2017-04-20 Thread Tofu Ninja via Digitalmars-d-learn
On Thursday, 20 April 2017 at 08:36:32 UTC, kinke wrote: On Thursday, 20 April 2017 at 01:16:11 UTC, Tofu Ninja wrote: My question is, why is it passed twice, both in xmm0 and rcx? The MSDN docs say floating point are passed in xmm registers, why is it also copied in into rcx? Is it necessary

Re: NG technical issues: Is it just me?

2017-04-20 Thread Ali Çehreli via Digitalmars-d
On 04/20/2017 12:45 PM, Nick Sabalausky (Abscissa) wrote: Using Thunderbird to access this NG, but as of about a couple months ago (IIRC), this problem started happening. Anybody else having this problem?: When I try to select a new unread message to read, I've got roughly a 10% or so chance

Re: NG technical issues: Is it just me?

2017-04-20 Thread captaindet via Digitalmars-d
When I try to select a new unread message to read, I've got roughly a 10% or so chance that it'll fail with a "The connection was refused when attempting to contact news.digitalmars.com:119." same here, started several weeks ago, very annoying. i have used the same local config/settings for

Re: Can we disallow appending integer to string?

2017-04-20 Thread H. S. Teoh via Digitalmars-d-learn
On Thu, Apr 20, 2017 at 10:39:01PM +, Stanislav Blinov via Digitalmars-d-learn wrote: > On Thursday, 20 April 2017 at 19:20:28 UTC, H. S. Teoh wrote: > > > > Another pernicious thing I encountered recently, related to implicit > > conversions, is this: > > > >

Re: Can we disallow appending integer to string?

2017-04-20 Thread Stanislav Blinov via Digitalmars-d-learn
On Thursday, 20 April 2017 at 19:20:28 UTC, H. S. Teoh wrote: Another pernicious thing I encountered recently, related to implicit conversions, is this: https://issues.dlang.org/show_bug.cgi?id=17336 It drew a very enunciated "WAT?!" from me. Yeah, that one is annoying. I've dealt

Re: NG technical issues: Is it just me?

2017-04-20 Thread Nick B via Digitalmars-d
On Thursday, 20 April 2017 at 21:16:38 UTC, David Gileadi wrote: On 4/20/17 2:05 PM, lawrence wrote: On 04/20/2017 02:09 PM, Timon Gehr wrote: On 20.04.2017 21:45, Nick Sabalausky (Abscissa) wrote: [snip] It's not just you. I have the same issues. I used to have this same problem, until I

Re: DMD VS2017 Support

2017-04-20 Thread Jolly James via Digitalmars-d
On Thursday, 20 April 2017 at 17:10:05 UTC, Meta wrote: On Thursday, 20 April 2017 at 17:06:15 UTC, Mike Parker wrote: On Thursday, 20 April 2017 at 14:44:54 UTC, Meta wrote: On Thursday, 20 April 2017 at 14:29:28 UTC, Jolly James wrote: What has the DMD compiler to do with a VS plugin that I

Re: Interpolated strings

2017-04-20 Thread Steven Schveighoffer via Digitalmars-d
On 4/18/17 4:50 AM, Walter Bright wrote: On 4/15/2017 4:51 PM, cym13 wrote: Removing imports is a good point, the first concrete one to be mentionned. I'm not sure it matters that much though as I think those imports are generic enough that I believe they would be imported anyway, but it's a

Re: NG technical issues: Is it just me?

2017-04-20 Thread David Gileadi via Digitalmars-d
On 4/20/17 2:05 PM, lawrence wrote: On 04/20/2017 02:09 PM, Timon Gehr wrote: On 20.04.2017 21:45, Nick Sabalausky (Abscissa) wrote: [snip] It's not just you. I have the same issues. I used to have this same problem, until I sent the server settings to check for updates every 2 minutes. I

Re: Exact arithmetic with quadratic irrationals

2017-04-20 Thread H. S. Teoh via Digitalmars-d
On Thu, Apr 20, 2017 at 09:11:56PM +0200, Timon Gehr via Digitalmars-d wrote: > On 20.04.2017 20:29, H. S. Teoh via Digitalmars-d wrote: [...] > > Having said that, I haven't scrutinized the performance > > characteristics of QRat too carefully just yet -- there is probably > > room for

Re: NG technical issues: Is it just me?

2017-04-20 Thread drug via Digitalmars-d
20.04.2017 22:45, Nick Sabalausky (Abscissa) пишет: Using Thunderbird to access this NG, but as of about a couple months ago (IIRC), this problem started happening. Anybody else having this problem?: Affirmative

Re: NG technical issues: Is it just me?

2017-04-20 Thread lawrence via Digitalmars-d
On 04/20/2017 02:09 PM, Timon Gehr wrote: On 20.04.2017 21:45, Nick Sabalausky (Abscissa) wrote: Using Thunderbird to access this NG, but as of about a couple months ago (IIRC), this problem started happening. Anybody else having this problem?: When I try to select a new unread message to

[Issue 17275] [REG 2.072.0] AssertError@declaration.d(2121): Assertion failure

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17275 Iain Buclaw changed: What|Removed |Added Status|RESOLVED|REOPENED

Re: Interpolated strings

2017-04-20 Thread H. S. Teoh via Digitalmars-d
On Thu, Apr 20, 2017 at 03:32:18PM -0400, Nick Sabalausky (Abscissa) via Digitalmars-d wrote: [...] > IMO, the only time a format string should be used instead of > std.conv.text() or interpolated strings is when: > > 1. You're just rendering *one* value at a time with non-standard > formatting

Re: multiple `alias this` suggestion

2017-04-20 Thread Carl Sturtivant via Digitalmars-d
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 this; // ... } could be interpreted to

Re: GC: Understanding potential sources of false pointers

2017-04-20 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-learn
On 04/20/2017 09:00 AM, Kagamin wrote: https://issues.dlang.org/show_bug.cgi?id=15723 Hmm, so apparently embedded data (even if it's from a C lib) can also be a source of false pointers. Thanks, good to know.

Re: Problems with Zlib - data error

2017-04-20 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 20 April 2017 at 20:19:31 UTC, Era Scarecrow wrote: I took the UnCompress example and tried to make use of it, however it breaks midway through my program with nothing more than 'Data Error'. See the tip of the week here: http://arsdnet.net/this-week-in-d/2016-apr-24.html In

Problems with Zlib - data error

2017-04-20 Thread Era Scarecrow via Digitalmars-d-learn
I took the UnCompress example and tried to make use of it, however it breaks midway through my program with nothing more than 'Data Error'. [code] //shamelessly taken for experimenting with UnCompress decmp = new UnCompress; foreach (chunk; stdin.byChunk(4096).map!(x => decmp.uncompress(x)))

Re: NG technical issues: Is it just me?

2017-04-20 Thread Timon Gehr via Digitalmars-d
On 20.04.2017 21:45, Nick Sabalausky (Abscissa) wrote: Using Thunderbird to access this NG, but as of about a couple months ago (IIRC), this problem started happening. Anybody else having this problem?: When I try to select a new unread message to read, I've got roughly a 10% or so chance that

[Issue 17270] std.experimental.Final fails on pointers

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17270 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/05620ead4b7b80984afb44fb5aa64528baa2fdca Fix issue 17270

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

2017-04-20 Thread Nordlöw via Digitalmars-d
On Thursday, 20 April 2017 at 14:54:20 UTC, Stefan Koch wrote: It's helpful for newCTFE's development. :) The I estimate the jit will easily be 10 times faster then my bytecode interpreter. which will make it about 100-1000x faster then the current CTFE. Wow.

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

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17336 --- Comment #3 from hst...@quickfur.ath.cx --- Oh, except that the latter check actually doesn't work, because the type of `(A a, B b) => a + b` is a delegate, not A. So it'd have to be the nausea-inducing: --- static if (is(typeof((A a, B b)

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

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17336 --- Comment #2 from hst...@quickfur.ath.cx --- On -m32, the test does exactly what it should: opBinary(int) *can* take size_t when size_t is 32-bit. The problem here is that T.init is the standard way to obtain an instance of T in generic code,

Re: Can we disallow appending integer to string?

2017-04-20 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-learn
On 04/19/2017 01:34 PM, Jonathan M Davis via Digitalmars-d-learn wrote: Yeah, which reduces the number of casts required when doing arithmetic on characters and thus reduces bugs there, Ugh, because apparently doing arithmetic on characters is such a common, important use-case in this modern

NG technical issues: Is it just me?

2017-04-20 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
Using Thunderbird to access this NG, but as of about a couple months ago (IIRC), this problem started happening. Anybody else having this problem?: When I try to select a new unread message to read, I've got roughly a 10% or so chance that it'll fail with a "The connection was refused when

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

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17336 Adam D. Ruppe changed: What|Removed |Added CC|

Re: Interpolated strings

2017-04-20 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 04/20/2017 02:28 PM, 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 characters. Atila The latter IS pretty good, I use it often. It's

Re: Exact arithmetic with quadratic irrationals

2017-04-20 Thread Timon Gehr via Digitalmars-d
On 20.04.2017 21:18, Timon Gehr wrote: On 20.04.2017 21:11, Timon Gehr wrote: Update: QRat now supports ^^. :-) Integral exponents only, of course. I also implemented negative exponents, because QRat supports division and the same algorithm can be easily reused for that purpose. ... Nice! :)

Re: Can we disallow appending integer to string?

2017-04-20 Thread H. S. Teoh via Digitalmars-d-learn
On Thu, Apr 20, 2017 at 11:05:00AM +, Nick Treleaven via Digitalmars-d-learn wrote: [...] > This is also a problem for overloading: > > alias foo = (char c) => 1; > alias foo = (int i) => 4; > > static assert(foo(7) == 4); // fails > > I would like to see some small changes to mitigate

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

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17336 Issue ID: 17336 Summary: Implicit type conversion of size_t.init to int causes standard type compatibility test to break Product: D Version: D2 Hardware: x86_64

Re: Exact arithmetic with quadratic irrationals

2017-04-20 Thread Timon Gehr via Digitalmars-d
On 20.04.2017 21:11, Timon Gehr wrote: Update: QRat now supports ^^. :-) Integral exponents only, of course. I also implemented negative exponents, because QRat supports division and the same algorithm can be easily reused for that purpose. ... Nice! :) It does not work with BigInt-based

Re: Exact arithmetic with quadratic irrationals

2017-04-20 Thread Timon Gehr via Digitalmars-d
On 20.04.2017 20:29, H. S. Teoh via Digitalmars-d wrote: On Thu, Apr 20, 2017 at 02:51:12PM +0200, Timon Gehr via Digitalmars-d wrote: On 20.04.2017 03:00, H. S. Teoh via Digitalmars-d wrote: On Thu, Apr 20, 2017 at 02:01:20AM +0200, Timon Gehr via Digitalmars-d wrote: [...] Yes, there is in

Re: Cap'n Proto for D v0.1.2

2017-04-20 Thread Paolo Invernizzi via Digitalmars-d-announce
On Thursday, 20 April 2017 at 18:25:03 UTC, Jonathan M Davis wrote: On Tuesday, April 18, 2017 18:09:54 Thomas Brix Larsen via Digitalmars-d- announce wrote: LOL. Oh, I remember a coworker bringing up this library. It's the one that the site claimed was infinitely faster than protocol

Re: Interpolated strings

2017-04-20 Thread Kagamin via Digitalmars-d
Also how various kinds of strings would work? r$"{can}\i\has{slashes}" $`same {here}` $q{{balanced}braces} For templates it's straightforward.

Re: Interpolated strings

2017-04-20 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 04/20/2017 02:40 PM, Nick Sabalausky (Abscissa) wrote: auto exho() { return writeln("${name} and this are app ${age*365*24} hours!"); } Correction: auto exho() { return writeln( ""~ _interp_text(name)~ " and this are app "~

Re: Interpolated strings

2017-04-20 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 04/20/2017 06:23 AM, Martin Tschierschke wrote: and this not? import scriptlike; // with exho definition outside the scope of the used vars auto exho(string x)(){return mixin("writeln("~interp!x~")");} void main() { auto name = userInput!string("Please enter your name"); auto age =

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

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

Re: Exact arithmetic with quadratic irrationals

2017-04-20 Thread H. S. Teoh via Digitalmars-d
On Thu, Apr 20, 2017 at 02:51:12PM +0200, Timon Gehr via Digitalmars-d wrote: > On 20.04.2017 03:00, H. S. Teoh via Digitalmars-d wrote: > > 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

Re: Interpolated strings

2017-04-20 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 20 April 2017 at 18:28:30 UTC, Atila Neves wrote: writeln($"{a} times 3 is {a * 3}"); is even marginally better than writeln(a, " times 3 is ", a * 3); // look ma, works right now! Matching up the correct commas and quotes is a bit of a pain in the latter. Though I don't

Re: Interpolated strings

2017-04-20 Thread Atila Neves via Digitalmars-d
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 substantial improvement. Not only does it clearly show what goes

[Issue 17332] optilink or dmd bug

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

Re: Cap'n Proto for D v0.1.2

2017-04-20 Thread Jonathan M Davis via Digitalmars-d-announce
On Tuesday, April 18, 2017 18:09:54 Thomas Brix Larsen via Digitalmars-d- announce 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." > > This is the initial public release of

Re: Dconference recordings and presentations

2017-04-20 Thread Ali Çehreli via Digitalmars-d
On 04/20/2017 01:06 AM, ix wrote: For this year's D conference would it be possible for speakers to give copies of the powerpoints to Andrei and Walter for distribution with recordings? Also please check the recordings are properly aimed at the speaker and that the microphone is picking up clear

Re: Interpolated strings

2017-04-20 Thread Faux Amis via Digitalmars-d
On 2017-04-19 03:45, Jon Degenhardt wrote: On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen wrote: I've been wanting to have support for interpolated strings in D for some time now that will allow you to write e.g.: [...] One place I'd appreciate interpolated strings is as an

Re: DMD VS2017 Support

2017-04-20 Thread Mike B Johnson via Digitalmars-d
On Thursday, 20 April 2017 at 00:13:29 UTC, Meta wrote: 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

Re: BLAS implementation for D

2017-04-20 Thread Ola Fosheim Grøstad via Digitalmars-d-announce
On Saturday, 15 April 2017 at 20:20:01 UTC, Bill Baxter wrote: And more than that, companies that are serious about avoiding litigation will make sure that everyone working on this new project has not even seen the source code for the library with the other license. If someone who has seen

Re: DMD VS2017 Support

2017-04-20 Thread Meta via Digitalmars-d
On Thursday, 20 April 2017 at 17:06:15 UTC, Mike Parker wrote: On Thursday, 20 April 2017 at 14:44:54 UTC, Meta wrote: On Thursday, 20 April 2017 at 14:29:28 UTC, Jolly James wrote: What has the DMD compiler to do with a VS plugin that I am not using? You said in your original post "DMD

Re: DMD VS2017 Support

2017-04-20 Thread Mike Parker via Digitalmars-d
On Thursday, 20 April 2017 at 14:44:54 UTC, Meta wrote: On Thursday, 20 April 2017 at 14:29:28 UTC, Jolly James wrote: What has the DMD compiler to do with a VS plugin that I am not using? You said in your original post "DMD installer only offers to install VS2013". This isn't the DMD

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

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17334 Andrei Alexandrescu changed: What|Removed |Added CC||and...@erdani.com

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

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17335 --- Comment #1 from Andrei Alexandrescu --- Related: https://issues.dlang.org/show_bug.cgi?id=17334 --

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

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17335 Issue ID: 17335 Summary: Function calls in conjunctions do not short circuit when evaluated during compilation Product: D Version: D2 Hardware: x86_64 OS: Linux

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

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17330 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/9e342bcc77f05b97fb8e0e176f5d9f5d44205dba Fix Issue 17330 - [REG 2.072] BigInt's constructor used

[Issue 4508] tuples should be indexable with foreach over range

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4508 ag0ae...@gmail.com changed: What|Removed |Added CC||ag0ae...@gmail.com --- Comment #3 from

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

2017-04-20 Thread Stefan Koch via Digitalmars-d
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. which will make it about 100-1000x faster then the current

Re: DMD VS2017 Support

2017-04-20 Thread Meta via Digitalmars-d
On Thursday, 20 April 2017 at 14:29:28 UTC, Jolly James wrote: What has the DMD compiler to do with a VS plugin that I am not using? You said in your original post "DMD installer only offers to install VS2013". This isn't the DMD installer but the Visual D installer that installs the plugin

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

2017-04-20 Thread Suliman via Digitalmars-d
On Thursday, 20 April 2017 at 12:56:11 UTC, Stefan Koch wrote: Hi Guys, I just begun work on the x86 jit backend. Because right now I am at a stage where further design decisions need to be made and those decisions need to be informed by how a _fast_ jit-compatible x86-codegen is

Re: DMD VS2017 Support

2017-04-20 Thread Jolly James via Digitalmars-d
On Thursday, 20 April 2017 at 05:02:37 UTC, Mike Parker wrote: On Thursday, 20 April 2017 at 04:58:55 UTC, Mike Parker wrote: [...] I should add that Mike's suggestion to edit sc.ini should do the trick, but I find it convenient to have both toolsets installed. I'll give it a try, thanks

Re: DMD VS2017 Support

2017-04-20 Thread Jolly James via Digitalmars-d
On Thursday, 20 April 2017 at 00:13:29 UTC, Meta wrote: On Wednesday, 19 April 2017 at 20:47:51 UTC, Jolly James wrote: [...] Please ignore Mike's answer. Visual D is maintained by Rainers Schuetze and is hosted here[1] on github. From the readme: For more information on installation, a

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

2017-04-20 Thread Stefan Koch via Digitalmars-d
On Thursday, 20 April 2017 at 12:56:11 UTC, Stefan Koch wrote: Hi Guys, I just begun work on the x86 jit backend. Because right now I am at a stage where further design decisions need to be made and those decisions need to be informed by how a _fast_ jit-compatible x86-codegen is

Re: Yu(玉) - 0.0.3 : A Dlang's Toolkit in My Used

2017-04-20 Thread DLangLearner via Digitalmars-d-announce
On Tuesday, 18 April 2017 at 09:26:28 UTC, Dsby wrote: On Tuesday, 18 April 2017 at 09:24:39 UTC, Dsby wrote: [...] In github : https://github.com/dushibaiyu/yu In dub : http://code.dlang.org/packages/yu It sounds great, I'll try it out, thanks for sharing it.

Re: GC: Understanding potential sources of false pointers

2017-04-20 Thread Kagamin via Digitalmars-d-learn
https://issues.dlang.org/show_bug.cgi?id=15723

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

2017-04-20 Thread Stefan Koch via Digitalmars-d
Hi Guys, I just begun work on the x86 jit backend. Because right now I am at a stage where further design decisions need to be made and those decisions need to be informed by how a _fast_ jit-compatible x86-codegen is structured. Since I do believe that this is an interesting topic; I will

Re: Exact arithmetic with quadratic irrationals

2017-04-20 Thread Timon Gehr via Digitalmars-d
On 20.04.2017 03:00, H. S. Teoh via Digitalmars-d wrote: 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. :) ... Ahh, so *that's* what it's all about. I figured that's what I was missing. :-D

Re: Interpolated strings

2017-04-20 Thread Kagamin via Digitalmars-d
On Thursday, 20 April 2017 at 10:23:30 UTC, Martin Tschierschke wrote: Can it be possible to allow a function to be defined outside the scope of use to return a "mixin object"? That's basically what I propose: https://forum.dlang.org/post/msotbcaqipiiqxiup...@forum.dlang.org this can be

Re: Dconference recordings and presentations

2017-04-20 Thread jmh530 via Digitalmars-d
On Thursday, 20 April 2017 at 08:06:32 UTC, ix wrote: For this year's D conference would it be possible for speakers to give copies of the powerpoints to Andrei and Walter for distribution with recordings? Also please check the recordings are properly aimed at the speaker and that the

[Issue 4508] tuples should be indexable with foreach over range

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4508 Nick Treleaven changed: What|Removed |Added CC||n...@geany.org --- Comment

Re: Can we disallow appending integer to string?

2017-04-20 Thread Nick Treleaven via Digitalmars-d-learn
On Wednesday, 19 April 2017 at 14:50:38 UTC, Stanislav Blinov wrote: Because integrals implicitly convert to characters of same width (byte -> char, short -> wchar, int -> dchar). Despite char.min > byte.min, char.max < byte.max. Anyway, appending an integer is inconsistent because

Re: Compare boost::hana to D

2017-04-20 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 20 April 2017 at 09:32:02 UTC, Ali Çehreli wrote: My motivation is learning enough about modern C++ to not make a fool of myself in front of an expert C++ crowd. :) If I hadn't known about boost::hana, I could have easily stressed D's compile-time features as if C++ did not have

Re: Interpolated strings

2017-04-20 Thread Martin Tschierschke via Digitalmars-d
On Wednesday, 19 April 2017 at 17:51:05 UTC, Nick Sabalausky (Abscissa) wrote: On 04/17/2017 03:41 PM, Jonas Drewsen wrote: [...] exho!"The number ${num} doubled is ${num * 2}!" Also, it only works if you're just sending the string to writeln. It doesn't help the general case :( you can

Re: Cap'n Proto for D v0.1.2

2017-04-20 Thread Thomas Brix Larsen via Digitalmars-d-announce
On Wednesday, 19 April 2017 at 19:30:03 UTC, Thomas Brix Larsen wrote: 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

[Issue 15481] GC profiler thinks reducing array.length triggers reallocation

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15481 Leandro Lucarella changed: What|Removed |Added See Also|

[Issue 17294] Incorrect -profile=gc data

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17294 Leandro Lucarella changed: What|Removed |Added See Also|

[Issue 17294] Incorrect -profile=gc data

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17294 Leandro Lucarella changed: What|Removed |Added See Also|

[Issue 16280] -profile=gc wrongly reports allocation when using reserve on dynamic arrays

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16280 Leandro Lucarella changed: What|Removed |Added CC|

[Issue 16280] -profile=gc wrongly reports allocation when using reserve on dynamic arrays

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16280 Leandro Lucarella changed: What|Removed |Added See Also|

[Issue 15481] GC profiler thinks reducing array.length triggers reallocation

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15481 Leandro Lucarella changed: What|Removed |Added CC|

[Issue 17294] Incorrect -profile=gc data

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17294 Leandro Lucarella changed: What|Removed |Added CC|

Re: Compare boost::hana to D

2017-04-20 Thread Ali Çehreli via Digitalmars-d
On 04/20/2017 02:06 AM, Ola Fosheim Grøstad wrote: > 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: >> >>

Re: Compare boost::hana to D

2017-04-20 Thread Ola Fosheim Grøstad 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: Windows X64 Calling conventions

2017-04-20 Thread kinke via Digitalmars-d-learn
On Thursday, 20 April 2017 at 01:16:11 UTC, Tofu Ninja wrote: My question is, why is it passed twice, both in xmm0 and rcx? The MSDN docs say floating point are passed in xmm registers, why is it also copied in into rcx? Is it necessary for anything? That is only required for variadics,

[Issue 11874] __traits(isPOD) does not check base elem of static arrays

2017-04-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11874 Iain Buclaw changed: What|Removed |Added Status|NEW |RESOLVED

Re: Thoughts from newcommer

2017-04-20 Thread Stefan Koch via Digitalmars-d
On Tuesday, 18 April 2017 at 16:42:38 UTC, Andrei Alexandrescu wrote: On 04/18/2017 03:00 AM, Shachar Shemesh wrote: D would have the ability to have a nice container that would do RAII (for classes since for structs, __dtors are called automatically) That's just it, though. They are not.

Dconference recordings and presentations

2017-04-20 Thread ix via Digitalmars-d
For this year's D conference would it be possible for speakers to give copies of the powerpoints to Andrei and Walter for distribution with recordings? Also please check the recordings are properly aimed at the speaker and that the microphone is picking up clear sound. Some of the previous

Re: GC: Understanding potential sources of false pointers

2017-04-20 Thread thedeemon via Digitalmars-d-learn
On Thursday, 20 April 2017 at 02:27:37 UTC, Nick Sabalausky (Abscissa) wrote: 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

Re: Compare boost::hana to D

2017-04-20 Thread Mike Parker via Digitalmars-d
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 post it, but not today. It will get more attention if I wait