Re: Blog Post #76: Nodes and Noodles, Part II

2019-10-06 Thread Ron Tarrant via Digitalmars-d-learn
On Sunday, 6 October 2019 at 23:00:51 UTC, Zekereth wrote: Here's the correct URL https://gtkdcoding.com/2019/10/04/0076-app-01-iii-noodles-and-mouse-clicks.html Great tutorial(s)! Thanks! LOL! Thanks, Zekereth.

Re: Blog Post #76: Nodes and Noodles, Part II

2019-10-06 Thread Zekereth via Digitalmars-d-learn
On Friday, 4 October 2019 at 11:36:52 UTC, Ron Tarrant wrote: Here's the second instalment of the Nodes-n-noodles series wherein noodle drawing on a DrawingArea is now complete. You can find it here: http://localhost:4000/2019/10/04/0076-cairo-xi-noodles-and-mouse-clicks.html Here's the corre

Re: Ranges to deal with corner cases and "random access"

2019-10-06 Thread Brett via Digitalmars-d-learn
Here is a sort of proof of concept: struct CtsExtend { static auto opCall(T)(T a) { struct _CtsExtend { T _a; auto opIndex(int i) { if (i < 0) r

Re: do mir modules run in parallell

2019-10-06 Thread David via Digitalmars-d-learn
On Sunday, 6 October 2019 at 05:32:34 UTC, 9il wrote: mir-blas, mir-lapack, and lubeck parallelism depend on system BLAS/LAPACK library (OpenBLAS, Intel MKL, or Accelerate Framework for macos). mir-optim by default single thread but can use TaskPool from D standard library as well as user-def

Re: initialize float4 (core.simd)

2019-10-06 Thread Bogdan via Digitalmars-d-learn
On Sunday, 6 October 2019 at 11:53:29 UTC, NaN wrote: You should probably have a look at this... https://github.com/AuburnSounds/intel-intrinsics Thanks, that looks quite useful. Also, it seems that I need to use either LDC or GDC instead of DMD. :)

Re: initialize float4 (core.simd)

2019-10-06 Thread NaN via Digitalmars-d-learn
On Saturday, 21 September 2019 at 12:50:46 UTC, Bogdan wrote: I'm trying to understand how to use the `core.simd` functionality, and I'm having trouble initializing a float4 vector. Here's my example code: ``` import std.stdio; import core.simd; void main() { float[4] values = [1.0f, 2.0f,

Re: initialize float4 (core.simd)

2019-10-06 Thread Bogdan via Digitalmars-d-learn
On Saturday, 21 September 2019 at 14:31:15 UTC, Stefan Koch wrote: On Saturday, 21 September 2019 at 13:42:09 UTC, Bogdan wrote: Well, this seems to be working: float[4] doSimd(float[4] values, float delta) { float4 v_delta = delta; float4 v_values = __simd(XMM.ADDPS,