Using std.net.curl to stream data

2015-01-28 Thread Trollgeir via Digitalmars-d-learn
I'm having some trouble trying to stream data to my plot.ly graph: https://plot.ly/62/~Trollgeir/ The API: https://plot.ly/streaming/ I am able to post messages that get recorded into the stream live, although right after curl uploads it, it just seems to wait for a response it's not

core.bitop.bt not faster than ?

2014-12-17 Thread Trollgeir via Digitalmars-d-learn
I've been doing some benchmarking the bt function (http://dlang.org/phobos/core_bitop.html) up against a regular bit -operator, and I'm a bit confused over the timings. I'd expect the bt function to be up to 32 times faster as I thought it only compared two bits, and not the entire length of

Re: core.bitop.bt not faster than ?

2014-12-17 Thread Trollgeir via Digitalmars-d-learn
On Wednesday, 17 December 2014 at 14:58:13 UTC, Adam D. Ruppe wrote: On Wednesday, 17 December 2014 at 14:12:16 UTC, Trollgeir wrote: I'd expect the bt function to be up to 32 times faster as I thought it only compared two bits, and not the entire length of bits in the uint. The processor

std.bitmanip - bitshift?

2014-12-12 Thread Trollgeir via Digitalmars-d-learn
http://dlang.org/phobos/std_bitmanip.html Does anyone know how to bit-shift a BitArray? I'm trying to make spikes in a neural network travel along the bits as they have various lengths.