Historical Data

2020-01-16 Thread ish via Digitalmars-d-learn
Which site is good to find up to 3 years of historical data through CSV?

Parallel example fron documentation does not compile

2016-02-19 Thread Ish via Digitalmars-d-learn
This code snippet is from: http://dlang.org/phobos/std_parallelism.html --- import std.algorithm, std.parallelism, std.range; void main() { // Parallel reduce can be combined with // std.algorithm.map to interesting effect. // The following example (thanks to Russel Winder) //

gdc-4.4 on sparc64 debian linux?

2015-12-02 Thread Ish via Digitalmars-d-learn
Where can I find help on this? -ish

mutex usage problem?

2015-12-02 Thread Ish via Digitalmars-d-learn
The following code does core dump (compiled with gdc). Pointers will be appreciated. import std.stdio; import std.conv; import std.math; import std.concurrency; import core.thread; import core.sync.mutex; enum count = 5; __gshared double rslt = 0.0; __gshared Mutex mutex; void

taskPool.reduce() help

2015-11-28 Thread Ish via Digitalmars-d-learn
The following code does not compile (with gdc) but if the line containing taskPool.reduce is reduce it does compile. Any pointers will be appreciated. import std.stdio; import std.math; import std.algorithm; import std.parallelism; // does not work!! import core.thread; double

Re: Thread in detached state?

2015-11-20 Thread Ish via Digitalmars-d-learn
On Thursday, 19 November 2015 at 22:07:19 UTC, ZombineDev wrote: On Friday, 13 November 2015 at 15:35:11 UTC, Ish wrote: [...] If you're more familiar with pthreads, you can just use them from core.sys.posix.pthread [1]. After all this what core.thread uses on Posix [2]. In general you can

Re: Thread in detached state?

2015-11-19 Thread Ish via Digitalmars-d-learn
On Friday, 13 November 2015 at 19:45:58 UTC, Ali Çehreli wrote: On 11/13/2015 07:35 AM, Ish wrote: [...] I think the following is the idea: import std.stdio; import core.thread; extern(C) void rt_moduleTlsDtor(); void threadFunc() { writeln("Worker thread started");

A new instance of a variable?

2015-11-13 Thread Ish via Digitalmars-d-learn
foreach (i; 0..5) { immutable int j = i; etc. } I want each j to be assigned separate memory so that it can be passed to a calle function and not overwritten by next value of i in foreach()??

Thread in detached state?

2015-11-13 Thread Ish via Digitalmars-d-learn
I was directed here from General list, so be patient with me. I am looking for syntax for creating a detached-state thread in the spirit of POSIX thread attribute PTHREAD_CREATE_DETACHED (the thread resources are released on termination and not when the main thread terminates - allows for a

Re: A new instance of a variable?

2015-11-13 Thread Ish via Digitalmars-d-learn
On Friday, 13 November 2015 at 18:10:38 UTC, Marc Schütz wrote: On Friday, 13 November 2015 at 17:44:31 UTC, Ish wrote: On Friday, 13 November 2015 at 16:06:51 UTC, Alex Parrill wrote: [...] immutable int* j = new immutable int(i); gives error: locks1.d:27: error: no constructor for

Re: A new instance of a variable?

2015-11-13 Thread Ish via Digitalmars-d-learn
On Friday, 13 November 2015 at 16:06:51 UTC, Alex Parrill wrote: On Friday, 13 November 2015 at 15:49:01 UTC, Ish wrote: foreach (i; 0..5) { immutable int j = i; etc. } I want each j to be assigned separate memory so that it can be passed to a calle function and not overwritten by next