Re: Local module dependancy using dub

2021-10-01 Thread Winfred Raj via Digitalmars-d-learn
On Friday, 1 October 2021 at 20:59:40 UTC, Winfred Raj wrote: Hello all, I created a project using dub init and got it successfully built with main as the entry point. Dxml was a dependency which was used here. Now I have started another gtkd project using dub init and here I would like to

Re: Local module dependancy using dub

2021-10-01 Thread Winfred Raj via Digitalmars-d-learn
On Friday, 1 October 2021 at 21:15:54 UTC, Imperatorn wrote: On Friday, 1 October 2021 at 20:59:40 UTC, Winfred Raj wrote: Hello all, I created a project using dub init and got it successfully built with main as the entry point. Dxml was a dependency which was used here. Now I have started

Re: Using D "rocket" logo in outside presentation

2021-10-01 Thread Chris Piker via Digitalmars-d-learn
On Wednesday, 29 September 2021 at 05:44:59 UTC, Mike Parker wrote: On Wednesday, 29 September 2021 at 04:24:13 UTC, Chris Piker wrote: I'm to give a presentation to a combined NASA/ESA group in a few hours and would like to include a copy of the D "rocket" logo when mentioning new server side

Re: Local module dependancy using dub

2021-10-01 Thread Imperatorn via Digitalmars-d-learn
On Friday, 1 October 2021 at 20:59:40 UTC, Winfred Raj wrote: Hello all, I created a project using dub init and got it successfully built with main as the entry point. Dxml was a dependency which was used here. Now I have started another gtkd project using dub init and here I would like to

Local module dependancy using dub

2021-10-01 Thread Winfred Raj via Digitalmars-d-learn
Hello all, I created a project using dub init and got it successfully built with main as the entry point. Dxml was a dependency which was used here. Now I have started another gtkd project using dub init and here I would like to import the first project. How do I go about doing this??

Re: How use ldc pragmas?

2021-10-01 Thread james.p.leblanc via Digitalmars-d-learn
On Friday, 1 October 2021 at 20:19:39 UTC, Imperatorn wrote: Take a look at my post ;) YES! === Thanks to both Imperatorn, and Max for their helpful and quick responses. The problem is SOLVED! I didn't realize that the pragma had to be placed outside of the main() ... but it seems

Re: How use ldc pragmas?

2021-10-01 Thread Imperatorn via Digitalmars-d-learn
On Friday, 1 October 2021 at 20:14:01 UTC, james.p.leblanc wrote: On Friday, 1 October 2021 at 19:58:30 UTC, max haughton wrote: [...] [...] Hello Max, Thanks for the correction... unfortunately, even after changing the "32", to "f32", **I receive the same error**. So there is something

Re: How use ldc pragmas?

2021-10-01 Thread james.p.leblanc via Digitalmars-d-learn
On Friday, 1 October 2021 at 19:58:30 UTC, max haughton wrote: On Friday, 1 October 2021 at 19:23:06 UTC, james.p.leblanc Is it sqrt.32 or sqrt.f32? Try the latter, LLVM docs seem to agree. Hello Max, Thanks for the correction... unfortunately, even after changing the "32", to "f32", **I

Re: How use ldc pragmas?

2021-10-01 Thread Imperatorn via Digitalmars-d-learn
On Friday, 1 October 2021 at 19:23:06 UTC, james.p.leblanc wrote: D-ers, After experimenting with ldc's autovectorization of avx code, it appears there may be counter-intuitiveness to the autovectorization (especially for complex numbers). (My comment may be wrong, so any corrections are

Re: How use ldc pragmas?

2021-10-01 Thread max haughton via Digitalmars-d-learn
On Friday, 1 October 2021 at 19:23:06 UTC, james.p.leblanc wrote: D-ers, After experimenting with ldc's autovectorization of avx code, it appears there may be counter-intuitiveness to the autovectorization (especially for complex numbers). (My comment may be wrong, so any corrections are

How use ldc pragmas?

2021-10-01 Thread james.p.leblanc via Digitalmars-d-learn
D-ers, After experimenting with ldc's autovectorization of avx code, it appears there may be counter-intuitiveness to the autovectorization (especially for complex numbers). (My comment may be wrong, so any corrections are quite welcome). Based on this, I wanted to investigate the use of

Re: Sort bug / strangeness

2021-10-01 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, Oct 01, 2021 at 06:30:48PM +, Danny Arends via Digitalmars-d-learn wrote: [...] > Is there a sort() algorithm that avoids swapping the items themselves > and e.g. just returns the indexes so I can reorder the original array > myself ?

Re: Sort bug / strangeness

2021-10-01 Thread Danny Arends via Digitalmars-d-learn
On Friday, 1 October 2021 at 17:53:24 UTC, Steven Schveighoffer wrote: I think your struct is different than this, because this only happens if aliasing is inside the struct being sorted (i.e. it has pointers). Your presented struct doesn't have pointers, and the code you linked to is

Re: Sort bug / strangeness

2021-10-01 Thread Steven Schveighoffer via Digitalmars-d-learn
On 10/1/21 12:44 PM, Danny Arends wrote: Hey all, Using a modified 3D A* tile searching algorithm, full code see: https://github.com/DannyArends/CalderaD/blob/master/src/math/search.d I get the following AssertError, 'sometimes' but not always on running the code: mutation.d(2816): Swap:

Sort bug / strangeness

2021-10-01 Thread Danny Arends via Digitalmars-d-learn
Hey all, Using a modified 3D A* tile searching algorithm, full code see: https://github.com/DannyArends/CalderaD/blob/master/src/math/search.d I get the following AssertError, 'sometimes' but not always on running the code: mutation.d(2816): Swap: rhs points to lhs. the first time I hit

Re: Mutually recursive template expansion

2021-10-01 Thread jfondren via Digitalmars-d-learn
On Friday, 1 October 2021 at 14:03:06 UTC, Stephen wrote: This code should work should mutual recursion be supported. It still wouldn't work, because structs are value types and it's impossible to say how large either struct is: Error: struct `mutualrec.Ar` no size because of forward

Mutually recursive template expansion

2021-10-01 Thread Stephen via Digitalmars-d-learn
I've been trying out templates in more depth and one thing I was wondering was whether template expansions with circular dependencies might work. Here is an example that doesn't work: ```d mixin(A!()); mixin(B!()); void main() {} template A() { const char[] A = q{ struct Ar {

Re: Rather Bizarre slow downs using Complex!float with avx (ldc).

2021-10-01 Thread james.p.leblanc via Digitalmars-d-learn
On Thursday, 30 September 2021 at 16:52:57 UTC, Johan wrote: On Thursday, 30 September 2021 at 16:40:03 UTC, james.p.leblanc Generally, for performance issues like this you need to study assembly output (`--output-s`) or LLVM IR (`--output-ll`). First thing I would look out for is function