[Issue 17913] New: [Visual D] Exceptions in Visual Studio 2017

2017-10-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17913 Issue ID: 17913 Summary: [Visual D] Exceptions in Visual Studio 2017 Product: D Version: D2 Hardware: x86_64 URL: http://dlang.org/ OS: Windows Status:

Re: Beta 2.077.0

2017-10-18 Thread Walter Bright via Digitalmars-d-announce
On 10/17/2017 5:50 PM, Martin Nowak wrote: On Monday, 16 October 2017 at 23:14:05 UTC, kinke wrote: Congratz, looking forward to the new compact mangles Mangling is solely due to Rainer Schütze's persistence. Yes, thanks Rainer! and SIMD improvements. Indeed that wasn't mentioned, the

Re: Making template instantiations more lazy

2017-10-18 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, October 18, 2017 09:13:47 Per Nordlöw via Digitalmars-d-learn wrote: > Are there any nearby plans to make more template instantiations > (especially aggregate members) lazy in DMD? > > Are there any specific obstacles against doing that or has it > just not been prioritized?

dtor of std.container.array.Array

2017-10-18 Thread drug via Digitalmars-d-learn
Is there any reason `std.container.array.Array.__dtor` isn't @safe, @pure etc?

Re: Will D continu to live after walter death?

2017-10-18 Thread Eugene Wissner via Digitalmars-d
On Wednesday, 18 October 2017 at 09:54:41 UTC, moechofe wrote: Iain, Adam: Can I concider working with GCD, knowing that only 1 guy knows everything about the project? There are two people behind GDC, don't forget about Johannes Pfau. And don't forget that they are responsible only for the

[Issue 17900] FreeBSD 10.3 runnable/cpp_abi_tests.d(94): Assertion failure (test suite)

2017-10-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17900 --- Comment #4 from Walter Bright --- https://github.com/dlang/dmd/pull/7230 --

Re: DCompute v0.1.0 supporting OpenCL 2.1+ and CUDA

2017-10-18 Thread Walter Bright via Digitalmars-d-announce
On 10/14/2017 10:57 PM, Nicholas Wilson wrote: I am very pleased to announce the first proper release of DCompute, a framework for heterogeneous computing for D. It wraps the OpenCL and CUDA runtimes to run compute kernels for computationally intensive workloads.

[Issue 17596] dmd d 2.073.2 and 2.074.1 interim generated dmd segfaults on FreeBSD 12-CURRENT

2017-10-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17596 --- Comment #15 from Walter Bright --- (In reply to Walter Bright from comment #14) > Is there a FreeBSD syscall that will give the version? Looks like uname(3) does the trick:

Re: debugging in vs code on Windows

2017-10-18 Thread evilrat via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 07:57:25 UTC, Dmitry wrote: On Tuesday, 17 October 2017 at 10:09:12 UTC, Dmitry wrote: On Tuesday, 17 October 2017 at 08:38:20 UTC, Arjan wrote: Before this will work, one must install the Microsoft C/C++ Addin i.e. ms-vscode.cpptools. Start debugging and

Re: debugging in vs code on Windows

2017-10-18 Thread Dmitry via Digitalmars-d-learn
On Tuesday, 17 October 2017 at 10:09:12 UTC, Dmitry wrote: On Tuesday, 17 October 2017 at 08:38:20 UTC, Arjan wrote: Before this will work, one must install the Microsoft C/C++ Addin i.e. ms-vscode.cpptools. Start debugging and select the C++ debugger. Yep

Re: Writing some built-in functions for Bash, possible?

2017-10-18 Thread evilrat via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 03:48:01 UTC, Ky-Anh Huynh wrote: Hi, I'm using Bash heavily in my systems. Things become slow and slow when I have tons of scripts :) And sometimes it's not easy to manipulate data. You may have heard of recutils [1] which has a C extension to be loaded by

Re: testing if data is allocated on the stack or heap

2017-10-18 Thread Biotronic via Digitalmars-d-learn
It's worth pointing out, btw, that the main reason for this code is to help drug diagnose his or her problem, not to be the be-all, end-all of stack identifying functions. :) It will of course not correctly identify pointers to variables on other threads' stacks, and fiber stacks probably

Re: Writing some built-in functions for Bash, possible?

2017-10-18 Thread Andrea Fontana via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 03:48:01 UTC, Ky-Anh Huynh wrote: Hi, I'm using Bash heavily in my systems. Things become slow and slow when I have tons of scripts :) And sometimes it's not easy to manipulate data. You may have heard of recutils [1] which has a C extension to be loaded by

Re: Writing some built-in functions for Bash, possible?

2017-10-18 Thread evilrat via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 08:15:53 UTC, evilrat wrote: ... extern(C) static int test_builtin(WORD_LIST* list) ... This of course should be nothrow also, because if it throws something really bad may(will) happen

[Issue 17596] dmd d 2.073.2 and 2.074.1 interim generated dmd segfaults on FreeBSD 12-CURRENT

2017-10-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17596 Walter Bright changed: What|Removed |Added CC|

Re: Will D continu to live after walter death?

2017-10-18 Thread moechofe via Digitalmars-d
Thank you all for those answers. For me, open source is not a sufficient reason. Look at any random open source github project that has 1 contributor, 10 commits, and dead since 3 years. (like mine) Look at this crapy PHP thing. It as 22 years old, and not ready to be dead yet. Look at that

[Issue 17596] dmd d 2.073.2 and 2.074.1 interim generated dmd segfaults on FreeBSD 12-CURRENT

2017-10-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17596 --- Comment #16 from Walter Bright --- This should help: https://github.com/dlang/druntime/pull/1947 --

Re: Making template instantiations more lazy

2017-10-18 Thread Per Nordlöw via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 10:36:41 UTC, Per Nordlöw wrote: Yeah I've thought of that. I still would like to have it built-in to the compiler. Would such a change cause any serious breakage?

Re: Splitting a sequence using a binary predicate on adjacent elements

2017-10-18 Thread Nordlöw via Digitalmars-d-learn
On Tuesday, 17 October 2017 at 14:15:02 UTC, Andrea Fontana wrote: auto splitBy(alias F, R)(R range) Because of lazyness shouldn't it be named something with splitter, say splitterBy, instead?

My two cents

2017-10-18 Thread Satoshi via Digitalmars-d
Hi, I had been using D for almost 6 years and I want to share my opinion with you. I don't want to blame anyone but I'll focus more on bad things and possible improvements. And this is just how I see D from my perspective. (Sorry for my English, I'm too lazy to take the lessons). First, D

Re: testing if data is allocated on the stack or heap

2017-10-18 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, October 17, 2017 18:33:02 drug via Digitalmars-d-learn wrote: > My code fails and I guess the reason is I have a slice to data in the > stack and it becomes garbage in some moment. So I need a way to check > where data is placed. Is it right that it can be done in linux using > `sbrk`

Re: Splitting a sequence using a binary predicate on adjacent elements

2017-10-18 Thread Andrea Fontana via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 06:45:37 UTC, Nordlöw wrote: On Tuesday, 17 October 2017 at 14:15:02 UTC, Andrea Fontana wrote: auto splitBy(alias F, R)(R range) Because of lazyness shouldn't it be named something with splitter, say splitterBy, instead? Yes but I think it is something

[Issue 17900] FreeBSD 10.3 runnable/cpp_abi_tests.d(94): Assertion failure (test suite)

2017-10-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17900 --- Comment #3 from Walter Bright --- The problem turns out to be the C++ compiler returns: struct S { float a = 1; } in ST0: _Z15passthrough_ptrP1S: movEAX,4[ESP] fldfloat ptr [EAX] ret

Re: testing if data is allocated on the stack or heap

2017-10-18 Thread Biotronic via Digitalmars-d-learn
On Tuesday, 17 October 2017 at 23:59:19 UTC, Steven Schveighoffer wrote: On 10/17/17 7:32 PM, flamencofantasy wrote: On Tuesday, 17 October 2017 at 17:27:17 UTC, Biotronic wrote: On Tuesday, 17 October 2017 at 15:33:02 UTC, drug wrote: [...] I have very little knowledge about sbrk, so

Re: Writing some built-in functions for Bash, possible?

2017-10-18 Thread evilrat via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 08:22:09 UTC, Andrea Fontana wrote: On Wednesday, 18 October 2017 at 03:48:01 UTC, Ky-Anh Huynh wrote: You can write your script in D using #!/usr/local/bin/rdmd as shebang line. Or, using dstep, you can convert C headers to D imports, so you can compile your

Re: My two cents

2017-10-18 Thread Satoshi via Digitalmars-d
+syntactic sugar for dynamic types some better explaining tutorials and examples about shared. After 6 years I'm still unable to use it properly.

Skynet 1M Fiber microbenchmark in D

2017-10-18 Thread Per Nordlöw via Digitalmars-d-learn
I'm curious about Fiber/coroutine performance in D compared to other languages such as Rust. How should the following test be implemented in D? Creates an actor (goroutine, whatever), which spawns 10 new actors, each of them spawns 10 more actors, etc. until one million actors are created on

Re: My two cents

2017-10-18 Thread Andrea Fontana via Digitalmars-d
I think you missed many things for example: On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: e.g. auto result = device.start(foo, bar); // This is RPC to remote server returning Task!Bar // do some important stuff return await result; // wait for RPC finish, then return it's

Making template instantiations more lazy

2017-10-18 Thread Per Nordlöw via Digitalmars-d-learn
Are there any nearby plans to make more template instantiations (especially aggregate members) lazy in DMD? Are there any specific obstacles against doing that or has it just not been prioritized?

Re: Making template instantiations more lazy

2017-10-18 Thread Nordlöw via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 09:32:39 UTC, Jonathan M Davis wrote: On Wednesday, October 18, 2017 09:13:47 Per Nordlöw via Digitalmars-d-learn wrote: Are there any nearby plans to make more template instantiations (especially aggregate members) lazy in DMD? Are there any specific

Re: Making template instantiations more lazy

2017-10-18 Thread Per Nordlöw via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 10:17:38 UTC, Biotronic wrote: Make them templates, that should solve the problem: struct S(T) { void foo()() { compileerror; } } Yeah I've thought of that. I still would like to have it built-in to the compiler.

Re: My first experience as a D Newbie

2017-10-18 Thread codephantom via Digitalmars-d
On Friday, 13 October 2017 at 06:58:10 UTC, Peter R wrote: If I, as a new user, don't have a solid first impression, I'd have no expectation that the rest of the D ecosystem is polished, and I would return to C++ But the D 'ecosystem' is *not* polished. It's an evolving work in progress,

Re: Splitting a sequence using a binary predicate on adjacent elements

2017-10-18 Thread Andrea Fontana via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 07:26:20 UTC, Nordlöw wrote: On Wednesday, 18 October 2017 at 07:01:19 UTC, Andrea Fontana wrote: If you try to use your data with chunkBy!"a != b+1", it does not work, as expected. What's the motivation behind this limitation? Without it chunkBy!"a + 1

Re: Splitting a sequence using a binary predicate on adjacent elements

2017-10-18 Thread Nordlöw via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 07:01:19 UTC, Andrea Fontana wrote: If you try to use your data with chunkBy!"a != b+1", it does not work, as expected. What's the motivation behind this limitation? Without it chunkBy!"a + 1 == b" is exactly what I want.

Re: What is the Philosophy of D?

2017-10-18 Thread Dukc via Digitalmars-d
On Wednesday, 18 October 2017 at 00:05:06 UTC, codephantom wrote: Again, philosophy != religion. Why do these terms get confused so much? I didn't mean they would be. I think that "D is not a religion" means that whatever philosophy it has it is not cast in stone. Not that it has no

Re: My two cents

2017-10-18 Thread Satoshi via Digitalmars-d
On Wednesday, 18 October 2017 at 09:03:27 UTC, Andrea Fontana wrote: I think you missed many things for example: On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: e.g. auto result = device.start(foo, bar); // This is RPC to remote server returning Task!Bar // do some important

Re: Making template instantiations more lazy

2017-10-18 Thread Biotronic via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 09:56:33 UTC, Nordlöw wrote: On Wednesday, 18 October 2017 at 09:32:39 UTC, Jonathan M Davis wrote: On Wednesday, October 18, 2017 09:13:47 Per Nordlöw via Digitalmars-d-learn wrote: Are there any nearby plans to make more template instantiations (especially

Re: Skynet 1M Fiber microbenchmark in D

2017-10-18 Thread Biotronic via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 11:01:56 UTC, Per Nordlöw wrote: On Wednesday, 18 October 2017 at 09:01:30 UTC, Per Nordlöw wrote: Creates an actor (goroutine, whatever), which spawns 10 new actors, each of them spawns 10 more actors, etc. until one million actors are created on the final

Re: Skynet 1M Fiber microbenchmark in D

2017-10-18 Thread Per Nordlöw via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 09:01:30 UTC, Per Nordlöw wrote: Creates an actor (goroutine, whatever), which spawns 10 new actors, each of them spawns 10 more actors, etc. until one million actors are created on the final level. Then, each of them returns back its ordinal number (from 0 to

Re: My first experience as a D Newbie

2017-10-18 Thread Laeeth Isharc via Digitalmars-d
On Thursday, 19 October 2017 at 01:32:14 UTC, codephantom wrote: The open-source community is mostly driven by 'volunteers'...who work on what they want to work on, when they have some spare time to work on it. I think too many people do not understand this, and so come in with bloated

Re: My first experience as a D Newbie

2017-10-18 Thread Laeeth Isharc via Digitalmars-d
On Monday, 16 October 2017 at 08:56:21 UTC, Rion wrote: When you invest this time into a language, you have expectations. A person expects for a language this old, that every puzzle fits together without issue. I can't say that your process for forming expectations is wrong, but it's

[Issue 17891] forum is dog slow

2017-10-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17891 b2.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 17915] [REG 2.073] core.exception.AssertError@ddmd/optimize.d(614): Assertion failure

2017-10-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17915 Iain Buclaw changed: What|Removed |Added CC||ibuc...@gdcproject.org

[Issue 17915] New: [REG 2.073] core.exception.AssertError@ddmd/optimize.d(614): Assertion failure

2017-10-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17915 Issue ID: 17915 Summary: [REG 2.073] core.exception.AssertError@ddmd/optimize.d(614): Assertion failure Product: D Version: D2 Hardware: All

Re: what means... auto ref Args args?

2017-10-18 Thread Dave Jones via Digitalmars-d
On Wednesday, 18 October 2017 at 22:16:32 UTC, Moritz Maxeiner wrote: On Wednesday, 18 October 2017 at 21:38:41 UTC, Dave Jones wrote: Poking around in the source code for emplace and I noticed... T* emplace(T, Args...)(T* chunk, auto ref Args args) what does the "auto ref" do in this

[Issue 17915] [REG 2.073] core.exception.AssertError@ddmd/optimize.d(614): Assertion failure

2017-10-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17915 b2.t...@gmx.com changed: What|Removed |Added CC||b2.t...@gmx.com --

[Issue 17914] New: Accidental per-process limit of fiber uses

2017-10-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17914 Issue ID: 17914 Summary: Accidental per-process limit of fiber uses Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Keywords: industry

Re: what means... auto ref Args args?

2017-10-18 Thread Jonathan M Davis via Digitalmars-d
On Thursday, October 19, 2017 00:00:54 Dave Jones via Digitalmars-d wrote: > On Wednesday, 18 October 2017 at 22:16:32 UTC, Moritz Maxeiner > > wrote: > > On Wednesday, 18 October 2017 at 21:38:41 UTC, Dave Jones wrote: > >> Poking around in the source code for emplace and I noticed... > >> > >>

Re: My first experience as a D Newbie

2017-10-18 Thread Jonathan M Davis via Digitalmars-d
On Thursday, October 19, 2017 02:08:13 Laeeth Isharc via Digitalmars-d wrote: > There's an old joke about hiring. I haven't heard that one before, but I've heard essentially the same joke except that it was Bill Gates who died, and it turns out that the version of Hell that he visited on the

Re: My first experience as a D Newbie

2017-10-18 Thread codephantom via Digitalmars-d
On Wednesday, 18 October 2017 at 18:02:24 UTC, Ecstatic Coder wrote: But make the installation and learning curve as smooth as possible for less-skilled developers, by allowing them to download an all-in-one bundled installer (compiler+ide+tutorials+examples), and they will be much more to

Re: Why Physicists Still Use Fortran

2017-10-18 Thread XavierAP via Digitalmars-d
Good read, and totally agree there's no point in trying to convince programmers to use a new tool other than their own choice. C++ evangelists should read this. On Monday, 16 October 2017 at 01:36:57 UTC, Walter Bright wrote: On 10/15/2017 5:26 PM, H. S. Teoh wrote: 1-based array indexing...

[Issue 17899] Cannot initialise contextless delegate at compile time

2017-10-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17899 RazvanN changed: What|Removed |Added CC|

Re: What is the Philosophy of D?

2017-10-18 Thread Ola Fosheim Grøstad via Digitalmars-d
On Tuesday, 17 October 2017 at 09:24:39 UTC, Dukc wrote: This is in contrast to Java and C# which almost force you to use object-oriented styles I don't think C# force you to use object oriented modelling? Clearly the GC and the standard library skews what you end up doing. and Python

Re: What is the Philosophy of D?

2017-10-18 Thread XavierAP via Digitalmars-d
On Monday, 16 October 2017 at 13:22:12 UTC, Ali wrote: So if I may ... the current philosophy of D enthusiasts should be "write code, not blogs" Haha... :)

Re: What is the Philosophy of D?

2017-10-18 Thread Ali via Digitalmars-d
On Wednesday, 18 October 2017 at 12:40:07 UTC, Andrea Fontana wrote: On Monday, 16 October 2017 at 21:04:15 UTC, Moritz Maxeiner wrote: "Get it done, but also right" Just D it C#, without the runtime inspired by the post by satoshi's two cents post

Re: Skynet 1M Fiber microbenchmark in D

2017-10-18 Thread Nordlöw via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 11:52:08 UTC, Biotronic wrote: It seems to make very little difference in terms of run time, though. I tried using a mix of these approaches - parallel at low depth, basically just to fill up the cores, and serial closer to the leaves. The difference is still

Re: Skynet 1M Fiber microbenchmark in D

2017-10-18 Thread Nordlöw via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 11:04:10 UTC, Biotronic wrote: On Wednesday, 18 October 2017 at 11:01:56 UTC, Per Nordlöw wrote: On Wednesday, 18 October 2017 at 09:01:30 UTC, Per Nordlöw wrote: Creates an actor (goroutine, whatever), which spawns 10 new actors, each of them spawns 10 more

Re: Why Physicists Still Use Fortran

2017-10-18 Thread Stefan Koch via Digitalmars-d
On Wednesday, 18 October 2017 at 13:42:04 UTC, XavierAP wrote: Dennis Ritchie did only two things wrong: placing the * at the wrong side in pointer declarations; and making arrays as unsafe, raw pointers -- and in consequence providing two redundant ways to do one same thing: [2] or arr+2

Re: Skynet 1M Fiber microbenchmark in D

2017-10-18 Thread Biotronic via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 12:32:31 UTC, Nordlöw wrote: Further, are we forced to use the GC for Fiber allocation or can a sub-class of Fibers implement its own allocation strategy? Afraid it's set in stone. Now, it doesn't actually use the GC for allocating the stack memory, instead

Re: Skynet 1M Fiber microbenchmark in D

2017-10-18 Thread ikod via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 11:52:08 UTC, Biotronic wrote: On Wednesday, 18 October 2017 at 11:34:57 UTC, Nordlöw wrote: Another thing...how should the synchronization between the fibers figure out when the total number of fibers have reached one million?...via an atomic counter fed by

Re: Skynet 1M Fiber microbenchmark in D

2017-10-18 Thread drug via Digitalmars-d-learn
18.10.2017 16:37, ikod пишет: I ran this under linux perf, and here is top from 'perf report' # Overhead  Command  Shared Object   Symbol #   ...  .. ... # 7.34%  t 

Re: AWS SDK

2017-10-18 Thread Andre Pany via Digitalmars-d
On Wednesday, 18 October 2017 at 01:32:51 UTC, Ky-Anh Huynh wrote: On Tuesday, 28 June 2016 at 00:36:31 UTC, Brad Roberts wrote: On 6/27/16 10:53 AM, Brad Roberts via Digitalmars-d wrote: On 6/26/2016 4:06 PM, Jadbox via Digitalmars-d wrote: [...] I have some old code here:

Re: Making template instantiations more lazy

2017-10-18 Thread Biotronic via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 10:55:49 UTC, Per Nordlöw wrote: On Wednesday, 18 October 2017 at 10:36:41 UTC, Per Nordlöw wrote: Yeah I've thought of that. I still would like to have it built-in to the compiler. Would such a change cause any serious breakage? Seems unlikely - when did

[Issue 16744] We should have a TypeOf template so that typeof can be used with templates like staticMap

2017-10-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16744 github-bugzi...@puremagic.com changed: What|Removed |Added Status|REOPENED|RESOLVED

[Issue 16744] We should have a TypeOf template so that typeof can be used with templates like staticMap

2017-10-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16744 --- Comment #14 from github-bugzi...@puremagic.com --- Commit pushed to MetaLang-traits-typeof at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/e6d1fc25e55612d513ff0b27893d1dd40642f884 Fix Issue 16744: Add Typeof (Redux)

Re: Skynet 1M Fiber microbenchmark in D

2017-10-18 Thread Biotronic via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 11:34:57 UTC, Nordlöw wrote: Another thing...how should the synchronization between the fibers figure out when the total number of fibers have reached one million?...via an atomic counter fed by reference to the constructor...or are there better ways? Because I

Re: What is the Philosophy of D?

2017-10-18 Thread Andrea Fontana via Digitalmars-d
On Monday, 16 October 2017 at 21:04:15 UTC, Moritz Maxeiner wrote: "Get it done, but also right" Just D it

Re: DCompute v0.1.0 supporting OpenCL 2.1+ and CUDA

2017-10-18 Thread Nicholas Wilson via Digitalmars-d-announce
On Wednesday, 18 October 2017 at 09:21:29 UTC, Walter Bright wrote: On 10/14/2017 10:57 PM, Nicholas Wilson wrote: I am very pleased to announce the first proper release of DCompute, a framework for heterogeneous computing for D. It wraps the OpenCL and CUDA runtimes to run compute kernels for

Re: What is the Philosophy of D?

2017-10-18 Thread Andrea Fontana via Digitalmars-d
On Wednesday, 18 October 2017 at 13:26:52 UTC, Ali wrote: On Wednesday, 18 October 2017 at 12:40:07 UTC, Andrea Fontana wrote: On Monday, 16 October 2017 at 21:04:15 UTC, Moritz Maxeiner wrote: "Get it done, but also right" Just D it C#, without the runtime inspired by the post by

Re: Trait to identify if a type is a struct one

2017-10-18 Thread user1234 via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 15:16:21 UTC, drug wrote: 18.10.2017 18:11, pham пишет: Is there a way to identify if a type is a struct, something like isStruct similar to isArray. struct X { } isStruct!X == true? Also, there are isAbstractClass & isFinalClass but want to check if type

Re: My first experience as a D Newbie

2017-10-18 Thread Ecstatic Coder via Digitalmars-d
On Monday, 16 October 2017 at 08:56:21 UTC, Rion wrote: On Sunday, 15 October 2017 at 20:27:35 UTC, Laeeth Isharc wrote: D is much less gratifying than other languages for most people. Just like Windows was more gratifying than Linux for most people in 2000. And I suppose that's likely to

Re: Skynet 1M Fiber microbenchmark in D

2017-10-18 Thread drug via Digitalmars-d-learn
18.10.2017 14:34, Nordlöw пишет: And how do I parallelize this over multiple worker threads? AFAICT fibers are by default all spawned in the same main thread, right? Probably it will works - every fiber substract 1 from its argument, then divides remainder by count of child fibers and spawns

[Issue 17878] Add __traits(isFuture, ...)

2017-10-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17878 RazvanN changed: What|Removed |Added CC|

Re: My two cents

2017-10-18 Thread Ali via Digitalmars-d
On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: For me, it seems like Walter is solving edge case problems like return ref parameters and return functions but is unable to add some basic stuff. Thanks for your time. - Satoshi well, i've been following this forum for a while

Trait to identify if a type is a struct one

2017-10-18 Thread pham via Digitalmars-d-learn
Is there a way to identify if a type is a struct, something like isStruct similar to isArray. struct X { } isStruct!X == true? Also, there are isAbstractClass & isFinalClass but want to check if type is a class regardless? something like isClass? Thanks Pham

[Issue 6043] Chainable template mixin

2017-10-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6043 RazvanN changed: What|Removed |Added Status|NEW |RESOLVED

Re: Garbage Collector profiling and the dynamic array reserve() function

2017-10-18 Thread Steven Schveighoffer via Digitalmars-d-learn
On 10/18/17 1:40 AM, Tony wrote: On Tuesday, 17 October 2017 at 13:27:24 UTC, Steven Schveighoffer wrote: I don't know what "allocations" represents, but reserve actually calls gc_malloc, and the others do not (the space is available to expand into the block). There should be only one

[Issue 5055] hasAssignableElements etc only check forward range primitives

2017-10-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5055 RazvanN changed: What|Removed |Added Status|ASSIGNED|RESOLVED

Re: Trait to identify if a type is a struct one

2017-10-18 Thread drug via Digitalmars-d-learn
18.10.2017 18:11, pham пишет: Is there a way to identify if a type is a struct, something like isStruct similar to isArray. struct X { } isStruct!X == true? Also, there are isAbstractClass & isFinalClass but want to check if type is a class regardless? something like isClass? Thanks Pham

Re: Making template instantiations more lazy

2017-10-18 Thread Nordlöw via Digitalmars-d-learn
On Wednesday, 18 October 2017 at 11:18:31 UTC, Biotronic wrote: I'm not actually sure why D behaves this way - C++ doesn't. I guess there is some value as tests - instantiating the type tests that all its methods compile. Not actually sure that's more of a positive than a negative, but it's

Re: Trait to identify if a type is a struct one

2017-10-18 Thread Ali Çehreli via Digitalmars-d-learn
On 10/18/2017 10:05 AM, user1234 wrote: On Wednesday, 18 October 2017 at 15:16:21 UTC, drug wrote: 18.10.2017 18:11, pham пишет: Is there a way to identify if a type is a struct, something like isStruct similar to isArray. struct X { } isStruct!X == true? Also, there are isAbstractClass &

[Issue 17900] FreeBSD 10.3 runnable/cpp_abi_tests.d(94): Assertion failure (test suite)

2017-10-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17900 Walter Bright changed: What|Removed |Added Hardware|All |x86 --- Comment

Re: testing if data is allocated on the stack or heap

2017-10-18 Thread flamencofantasy via Digitalmars-d-learn
On Tuesday, 17 October 2017 at 23:59:19 UTC, Steven Schveighoffer wrote: On 10/17/17 7:32 PM, flamencofantasy wrote: On Tuesday, 17 October 2017 at 17:27:17 UTC, Biotronic wrote: On Tuesday, 17 October 2017 at 15:33:02 UTC, drug wrote: [...] I have very little knowledge about sbrk, so

Re: Splitting a sequence using a binary predicate on adjacent elements

2017-10-18 Thread Nordlöw via Digitalmars-d-learn
On Tuesday, 17 October 2017 at 15:47:25 UTC, Andrea Fontana wrote: More phobos-ized version: https://run.dlang.io/is/iwgeAl Thanks!

Re: AWS SDK

2017-10-18 Thread aberba via Digitalmars-d
On Wednesday, 18 October 2017 at 11:11:35 UTC, Andre Pany wrote: On Wednesday, 18 October 2017 at 01:32:51 UTC, Ky-Anh Huynh wrote: On Tuesday, 28 June 2016 at 00:36:31 UTC, Brad Roberts wrote: On 6/27/16 10:53 AM, Brad Roberts via Digitalmars-d wrote: On 6/26/2016 4:06 PM, Jadbox via

Some tasks in D app

2017-10-18 Thread Orkhan via Digitalmars-d
Hello. I have an app for multiplayer game website. I am Facing an issue about stacking terminal. Also the app does not save the logs which is supposed to. I need someone who can fix this. Will send the app to developer. in total The tasks are : 1) Fix stacking issue in the terminal, 2) Fix

Re: My two cents

2017-10-18 Thread aberba via Digitalmars-d
On Wednesday, 18 October 2017 at 16:45:33 UTC, Ali wrote: On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote: [...] well, i've been following this forum for a while now and i remember seeing posts by either Walter or Andrei Alexandrescu, saying something in the sense that D, has

Re: AWS SDK

2017-10-18 Thread Andre Pany via Digitalmars-d
On Wednesday, 18 October 2017 at 19:28:30 UTC, aberba wrote: What's up with proprietary stuff in this? At least give us the setup for us to generate the apis on our own if you have your private stuff in there. I have been waiting for a D AWS SDK for "years"... At least any cloud SDK. The

Re: Making template instantiations more lazy

2017-10-18 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, October 18, 2017 10:36:41 Per Nordlöw via Digitalmars-d-learn wrote: > On Wednesday, 18 October 2017 at 10:17:38 UTC, Biotronic wrote: > > Make them templates, that should solve the problem: > > > > struct S(T) { > > > > void foo()() { > > > > compileerror; > > > > }

[Issue 17507] Associative Array range operations should be marked @safe

2017-10-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17507 Lucia Cojocaru changed: What|Removed |Added CC|

Re: AWS SDK

2017-10-18 Thread ikod via Digitalmars-d
Hello, On Wednesday, 18 October 2017 at 20:05:28 UTC, Andre Pany wrote: On Wednesday, 18 October 2017 at 19:28:30 UTC, aberba wrote: The implementation is straight forward. For every api definition (e.g. https://github.com/aws/aws-sdk-js/blob/master/apis/iam-2010-05-08.normal.json) create a

Re: AWS SDK

2017-10-18 Thread Stephan Dilly via Digitalmars-d
On 2017-10-18 20:19:20 +, ikod said: Hello, On Wednesday, 18 October 2017 at 20:05:28 UTC, Andre Pany wrote: On Wednesday, 18 October 2017 at 19:28:30 UTC, aberba wrote: The implementation is straight forward. For every api definition (e.g.

what means... auto ref Args args?

2017-10-18 Thread Dave Jones via Digitalmars-d
Poking around in the source code for emplace and I noticed... T* emplace(T, Args...)(T* chunk, auto ref Args args) what does the "auto ref" do in this situiation? Cant seem to find any explanation in the docs.

Re: what means... auto ref Args args?

2017-10-18 Thread Dave Jones via Digitalmars-d
On Wednesday, 18 October 2017 at 21:38:41 UTC, Dave Jones wrote: Poking around in the source code for emplace and I noticed... T* emplace(T, Args...)(T* chunk, auto ref Args args) what does the "auto ref" do in this situiation? Cant seem to find any explanation in the docs. sorry meant to

Re: AWS SDK

2017-10-18 Thread ikod via Digitalmars-d
On Wednesday, 18 October 2017 at 20:51:48 UTC, Stephan Dilly wrote: On 2017-10-18 20:19:20 +, ikod said: Hello, On Wednesday, 18 October 2017 at 20:05:28 UTC, Andre Pany wrote: [...] Is there any docs from Amazon on this, beside json's itself? I will be very grateful for link. Are

Re: what means... auto ref Args args?

2017-10-18 Thread Moritz Maxeiner via Digitalmars-d
On Wednesday, 18 October 2017 at 21:38:41 UTC, Dave Jones wrote: Poking around in the source code for emplace and I noticed... T* emplace(T, Args...)(T* chunk, auto ref Args args) what does the "auto ref" do in this situiation? Cant seem to find any explanation in the docs. It means that

Re: AWS SDK

2017-10-18 Thread Stephan Dilly via Digitalmars-d
On 2017-10-18 22:25:23 +, ikod said: On Wednesday, 18 October 2017 at 20:51:48 UTC, Stephan Dilly wrote: On 2017-10-18 20:19:20 +, ikod said: Hello, On Wednesday, 18 October 2017 at 20:05:28 UTC, Andre Pany wrote: [...] Is there any docs from Amazon on this, beside json's itself?

Re: AWS SDK

2017-10-18 Thread Andre Pany via Digitalmars-d
On Wednesday, 18 October 2017 at 20:19:20 UTC, ikod wrote: Hello, On Wednesday, 18 October 2017 at 20:05:28 UTC, Andre Pany wrote: On Wednesday, 18 October 2017 at 19:28:30 UTC, aberba wrote: The implementation is straight forward. For every api definition (e.g.

Re: Netflix opensources its first D library: Vectorflow

2017-10-18 Thread Stephan Dilly via Digitalmars-d-announce
On 2017-08-02 21:31:19 +, Walter Bright said: https://www.reddit.com/r/programming/comments/6r6dwp/netflix_opensources_its_first_d_library_vectorflow/ D got another mention in Netflix's popular tech blog: https://medium.com/netflix-techblog/machine-learning-platform-meetup-ddec090f3c17