Re: High performance producer/consumer

2016-11-12 Thread deadalnix via Digitalmars-d
On Saturday, 12 November 2016 at 18:13:20 UTC, Andrei Alexandrescu wrote: I got this reference from a colleague: https://multibuffer.codeplex.com/ Is there interest in porting this to D? Andrei I wanted to provide one a few years back, but the lack of proper implementation of shared was a

Re: VSCode D

2016-11-12 Thread bitwise via Digitalmars-d
On Saturday, 12 November 2016 at 20:33:14 UTC, WebFreak001 wrote: On Saturday, 12 November 2016 at 20:27:42 UTC, bitwise wrote: Not sure if anyone else noticed: https://code.visualstudio.com/updates#_format-document-format-selection See last of the 5 thumbnails. https://twitter.com/WebFreak00

Re: VSCode D

2016-11-12 Thread WebFreak001 via Digitalmars-d
On Saturday, 12 November 2016 at 20:27:42 UTC, bitwise wrote: Not sure if anyone else noticed: https://code.visualstudio.com/updates#_format-document-format-selection See last of the 5 thumbnails. https://twitter.com/WebFreak001/status/793923181769809924

VSCode D

2016-11-12 Thread bitwise via Digitalmars-d
Not sure if anyone else noticed: https://code.visualstudio.com/updates#_format-document-format-selection See last of the 5 thumbnails.

High performance producer/consumer

2016-11-12 Thread Andrei Alexandrescu via Digitalmars-d
I got this reference from a colleague: https://multibuffer.codeplex.com/ Is there interest in porting this to D? Andrei

Re: [OT] Re: CTFE Status

2016-11-12 Thread Nick Sabalausky via Digitalmars-d
On 11/12/2016 11:02 AM, Jacob Carlborg wrote: On 2016-11-09 20:07, Nick Sabalausky wrote: Although I have my doubts it would explain all the issues I've hit upon with git's CLI. For example: I don't see why annotated tags aren't the default. Or why non-annotated ones even exist at all. When I m

Re: [OT] Re: CTFE Status

2016-11-12 Thread Jacob Carlborg via Digitalmars-d
On 2016-11-10 06:31, Dicebot wrote: I think it is related, but is not necessary consequence. My understanding is that for a long time command line design was given zero thoughts on its own - it was directly exposing whatever git does internally with no usability considerations. Which is why it i

Re: [OT] Re: CTFE Status

2016-11-12 Thread Jacob Carlborg via Digitalmars-d
On 2016-11-09 20:07, Nick Sabalausky wrote: Although I have my doubts it would explain all the issues I've hit upon with git's CLI. For example: I don't see why annotated tags aren't the default. Or why non-annotated ones even exist at all. When I made

Third attempt for SUM

2016-11-12 Thread Ilya Yaroshenko via Digitalmars-d
Hi all, Advanced summation algorithms [3] from Mir project [1] are ready to be merged to Phobos. Many thanks to Walter Bright for the new Dlang floating point semantic [2]. Best regards, Ilya 1. https://github.com/libmir/mir 2. https://github.com/dlang/dmd/pull/6247 3. https://github.com/dla

Re: D-issapointed after using C# for a while.

2016-11-12 Thread Era Scarecrow via Digitalmars-d
On Saturday, 12 November 2016 at 03:59:08 UTC, Jonathan M Davis wrote: It would definitely be possible to make it so that std.bitmanip.bitfields could handle UDAs, but I don't expect that it would be particularly fun to implement. e.g. the example which is getting a bit ugly IMHO. But it wou

Re: Trailing catch on function?

2016-11-12 Thread Anonymouse via Digitalmars-d
On Wednesday, 9 November 2016 at 09:49:08 UTC, Daniel N wrote: On Tuesday, 8 November 2016 at 16:02:25 UTC, Manu wrote: scope(failure) doesn't catch... how is that function nothrow? Seems like you overlooked Anonymouse's comment? scope(failure) catches just fine. scope(failure) return -1; t

Re: UFCS for arguments other than first?

2016-11-12 Thread Heisenberg via Digitalmars-d
On Friday, 11 November 2016 at 23:27:30 UTC, Jonathan M Davis wrote: Ultimately, the only technical benefit from UFCS is that it allows you to call a function without caring whether it's a member function or a free function, which is of great benefit to generic code and not really much else. Ot

Re: UFCS for arguments other than first?

2016-11-12 Thread Heisenberg via Digitalmars-d
On Saturday, 12 November 2016 at 06:42:24 UTC, Temtaime wrote: You are wrong. We can use n1 for the second parameter. int someNumber(int a, int b) { return a + b; } int main() { int n1 = 5; return (n1.someNumber = n1); // 10 } In this specific case, yes - however: int getR

GitHub now supports editing the target branch for PR

2016-11-12 Thread Sönke Ludwig via Digitalmars-d
Not sure if this is common knowledge already, but it was new for me. If you click the edit button at the top of a pull request on GitHub, you now get a drop down to change the base branch to which the request will be pulled. Really handy for PRs that should be targeted at a stable branch, but i

{DMD-AST-Tool} For beginning DDMD hackers

2016-11-12 Thread Stefan Koch via Digitalmars-d
Hi Guys, I have written a small utility called dmd-ast-tool. It can be used to quickly generate boilerplate code for dmd-ast-visitors. Originally it was only written for my personal use, it used to work with a handwritten text-file representing dmds ast class hierarchy. However I recently up