May std.range.cycle be empty?

2014-08-29 Thread Alexandr Druzhinin via Digitalmars-d
I filed bug https://issues.dlang.org/show_bug.cgi?id=13390 but have a question with it. I use cycle to implement simple ring buffer. struct RingBuffer(T) { private T[] _data; private size_t _index; private size_t _length; auto opSlice() const { return cycle(_data[0..

Re: D vs Go in real life

2013-11-05 Thread Alexandr Druzhinin
05.11.2013 22:17, Atila Neves пишет: this is with dmd? I wonder how those numbers would look if you could get ldc/gdc up and running. Yep, dmd. I mentioned the problems getting the whole thing (including vibe.d) to compile with ldc and gdc because I was trying those two exactly to try and eke m

Re: When will we have std.log?

2013-02-20 Thread Alexandr Druzhinin
20.02.2013 17:45, Colin Grogan пишет: On Sunday, 7 October 2012 at 18:05:08 UTC, José Armando García Sancio wrote: On Sat, Oct 6, 2012 at 11:47 PM, domain wrote: It has been suspended for a long time. Any plan? I have been working on it in my spare time. I have fixed some basic API issues