Re: Spawn as many thousand threads as you like and D

2014-05-07 Thread Bienlein via Digitalmars-d
I still don't understand what you mean by distributed. Spawning 50.000 tasks: import vibe.core.core; import std.stdio; void main() { foreach (i; 0 .. 50_000) runTask({ writefln(Hello, World!);

Re: Spawn as many thousand threads as you like and D

2014-05-07 Thread Sönke Ludwig via Digitalmars-d
Am 07.05.2014 17:28, schrieb Bienlein: Hello Sönke, would it be possible in vibe.d to spawn a task the usual actor-style way as it is done with kernel threads in D? What I mean is this: void spawnedFunc(Tid tid) { receive( (int i) { writeln(Received the number , i);} ); } auto

Re: Spawn as many thousand threads as you like and D

2014-05-07 Thread Sönke Ludwig via Digitalmars-d
Am 07.05.2014 19:06, schrieb Sönke Ludwig: Am 07.05.2014 17:28, schrieb Bienlein: Hello Sönke, would it be possible in vibe.d to spawn a task the usual actor-style way as it is done with kernel threads in D? What I mean is this: void spawnedFunc(Tid tid) { receive( (int i) {

Re: Spawn as many thousand threads as you like and D

2014-05-07 Thread Bienlein via Digitalmars-d
On Wednesday, 7 May 2014 at 17:13:07 UTC, Sönke Ludwig wrote: The Tid handling is currently a little different, but apart from that it should work like this: import vibe.core.core; import vibe.core.concurrency; void spawnedFunc(Tid tid) { receive( (int i) {

Re: Spawn as many thousand threads as you like and D

2014-04-19 Thread Sönke Ludwig via Digitalmars-d
Am 16.04.2014 16:43, schrieb Bienlein: On Wednesday, 16 April 2014 at 14:21:03 UTC, Sönke Ludwig wrote: I still don't understand what you mean by distributed. Spawning 50.000 tasks: import vibe.core.core; import std.stdio; void main() { foreach (i; 0 .. 50_000)

Re: Spawn as many thousand threads as you like and D

2014-04-19 Thread Sönke Ludwig via Digitalmars-d
Am 16.04.2014 20:34, schrieb Russel Winder via Digitalmars-d: On Wed, 2014-04-16 at 16:06 +0200, Sönke Ludwig via Digitalmars-d wrote: […] I agree, but I also wonder why you still keep ignoring vibe.d. It achieves exactly that - right now! Integration with std.concurrency would be great, but

Re: Spawn as many thousand threads as you like and D

2014-04-17 Thread Kagamin via Digitalmars-d
On Wednesday, 16 April 2014 at 13:59:15 UTC, Bienlein wrote: Being able to spawn as many thousand threads as needed without caring about it seems to be an important aspect for being an interesting offering for developing server-side software. It would be nice if D could also play in that

Spawn as many thousand threads as you like and D

2014-04-16 Thread Bienlein via Digitalmars-d
When looking at the success of Go it seems to me that it is caused to a large extend by the kind of multi-threading Go offers which is something like spawn as many thousand threads as you like. Being able to spawn as many thousand threads as needed without caring about it seems to be an

Re: Spawn as many thousand threads as you like and D

2014-04-16 Thread Sönke Ludwig via Digitalmars-d
Am 16.04.2014 15:59, schrieb Bienlein: When looking at the success of Go it seems to me that it is caused to a large extend by the kind of multi-threading Go offers which is something like spawn as many thousand threads as you like. Being able to spawn as many thousand threads as needed without

Re: Spawn as many thousand threads as you like and D

2014-04-16 Thread Bienlein via Digitalmars-d
On Wednesday, 16 April 2014 at 14:06:13 UTC, Sönke Ludwig wrote: I agree, but I also wonder why you still keep ignoring vibe.d. It achieves exactly that - right now! Integration with std.concurrency would be great, but at least for now it has an API compatible replacement that can be merged

Re: Spawn as many thousand threads as you like and D

2014-04-16 Thread Sönke Ludwig via Digitalmars-d
Am 16.04.2014 16:16, schrieb Bienlein: On Wednesday, 16 April 2014 at 14:06:13 UTC, Sönke Ludwig wrote: I agree, but I also wonder why you still keep ignoring vibe.d. It achieves exactly that - right now! Integration with std.concurrency would be great, but at least for now it has an API

Re: Spawn as many thousand threads as you like and D

2014-04-16 Thread Bienlein via Digitalmars-d
On Wednesday, 16 April 2014 at 14:21:03 UTC, Sönke Ludwig wrote: I still don't understand what you mean by distributed. Spawning 50.000 tasks: import vibe.core.core; import std.stdio; void main() { foreach (i; 0 .. 50_000)

Re: Spawn as many thousand threads as you like and D

2014-04-16 Thread Dicebot via Digitalmars-d
On Wednesday, 16 April 2014 at 14:16:30 UTC, Bienlein wrote: On Wednesday, 16 April 2014 at 14:06:13 UTC, Sönke Ludwig wrote: I agree, but I also wonder why you still keep ignoring vibe.d. It achieves exactly that - right now! Integration with std.concurrency would be great, but at least for

Re: Spawn as many thousand threads as you like and D

2014-04-16 Thread Sönke Ludwig via Digitalmars-d
Am 16.04.2014 16:43, schrieb Bienlein: On Wednesday, 16 April 2014 at 14:21:03 UTC, Sönke Ludwig wrote: I still don't understand what you mean by distributed. Spawning 50.000 tasks: import vibe.core.core; import std.stdio; void main() { foreach (i; 0 .. 50_000)

Re: Spawn as many thousand threads as you like and D

2014-04-16 Thread Russel Winder via Digitalmars-d
On Wed, 2014-04-16 at 13:59 +, Bienlein via Digitalmars-d wrote: When looking at the success of Go it seems to me that it is caused to a large extend by the kind of multi-threading Go offers which is something like spawn as many thousand threads as you like. A critically important

Re: Spawn as many thousand threads as you like and D

2014-04-16 Thread Russel Winder via Digitalmars-d
On Wed, 2014-04-16 at 16:06 +0200, Sönke Ludwig via Digitalmars-d wrote: […] I agree, but I also wonder why you still keep ignoring vibe.d. It achieves exactly that - right now! Integration with std.concurrency would be great, but at least for now it has an API compatible replacement that