Re: Slicing upward

2019-09-14 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, September 14, 2019 5:34:35 AM MDT Brett via Digitalmars-d-learn wrote: > I have an algorithm that is most efficiently implement by taking > an array and slicing it upward, meaning removing the leading > elements. > > Because the algorithm is complex(deterministic but chaotic) and >

Input engine

2019-09-14 Thread Joel via Digitalmars-d-learn
What is a good keyboard input handler or so? Just need one that picks up that a key is down, but not like a word processor.

Re: serve-d and spindump

2019-09-14 Thread Joel via Digitalmars-d-learn
On Saturday, 14 September 2019 at 10:14:19 UTC, psyscout wrote: On Friday, 13 September 2019 at 23:47:00 UTC, Joel wrote: [...] I had a similar issue with crazy CPU consumption when I used VS Code. The root cause for me was "autosave" and "build on save" settings turned on simultaneously.

Re: Moving '.dub' build directory outside of project root

2019-09-14 Thread Andre Pany via Digitalmars-d-learn
On Saturday, 14 September 2019 at 14:22:40 UTC, DMan wrote: Dear all, I need to keep the project root clean from build artifact, how I can tell DUB to store the '.dub' directory in a sibling directory of my project root directory? Thank This is currently not possible afaik. What is your

Re: Slicing upward

2019-09-14 Thread Paul Backus via Digitalmars-d-learn
On Saturday, 14 September 2019 at 11:34:35 UTC, Brett wrote: I have an algorithm that is most efficiently implement by taking an array and slicing it upward, meaning removing the leading elements. Because the algorithm is complex(deterministic but chaotic) and deals with multiple arrays it

Re: Slicing upward

2019-09-14 Thread Brett via Digitalmars-d-learn
On Saturday, 14 September 2019 at 11:39:21 UTC, rikki cattermole wrote: On 14/09/2019 11:34 PM, Brett wrote: I have an algorithm that is most efficiently implement by taking an array and slicing it upward, meaning removing the leading elements. Because the algorithm is complex(deterministic

Moving '.dub' build directory outside of project root

2019-09-14 Thread DMan via Digitalmars-d-learn
Dear all, I need to keep the project root clean from build artifact, how I can tell DUB to store the '.dub' directory in a sibling directory of my project root directory? Thank

Re: Slicing upward

2019-09-14 Thread rikki cattermole via Digitalmars-d-learn
On 14/09/2019 11:34 PM, Brett wrote: I have an algorithm that is most efficiently implement by taking an array and slicing it upward, meaning removing the leading elements. Because the algorithm is complex(deterministic but chaotic) and deals with multiple arrays it is difficult to

Slicing upward

2019-09-14 Thread Brett via Digitalmars-d-learn
I have an algorithm that is most efficiently implement by taking an array and slicing it upward, meaning removing the leading elements. Because the algorithm is complex(deterministic but chaotic) and deals with multiple arrays it is difficult to efficiently use slicing. Is there some easy

Re: serve-d and spindump

2019-09-14 Thread psyscout via Digitalmars-d-learn
On Friday, 13 September 2019 at 23:47:00 UTC, Joel wrote: On my macOS 10.14.6 computer, I close serve-d thread when it's using too much CPU, I also knock off spindump for the same reason. I get artifacts and junk that flash on my screen - I don't know if that's connected to removing those or