What's the oldest Mac targeted by D programmers?

2016-12-06 Thread Walter Bright via Digitalmars-d
I've been experimenting with code generation in DMD for the AVX instruction set, in particular the replacement of SSE 16 byte vectors with AVX 16 byte vectors (no, not the 32 byte ones!). In my experiments on my machines, two of them support the AVX instruction set, one of which is my Mac Mini,

Re: What's the oldest Mac targeted by D programmers?

2016-12-06 Thread Johan Engelen via Digitalmars-d
On Tuesday, 6 December 2016 at 09:12:16 UTC, Walter Bright wrote: My Mac Mini sez: ~> sysctl -a | grep machdep.cpu.features machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 PCLMULQDQ DTES64

Re: What's the oldest Mac targeted by D programmers?

2016-12-06 Thread John Colvin via Digitalmars-d
On Tuesday, 6 December 2016 at 09:12:16 UTC, Walter Bright wrote: I've been experimenting with code generation in DMD for the AVX instruction set, in particular the replacement of SSE 16 byte vectors with AVX 16 byte vectors (no, not the 32 byte ones!). In my experiments on my machines, two of

Re: What's the oldest Mac targeted by D programmers?

2016-12-06 Thread Walter Bright via Digitalmars-d
On 12/6/2016 1:31 AM, Johan Engelen wrote: AVX2 is not listed in machdep.cpu.features, at least not on my machine; you need to look in the machdep.cpu.leaf7_features list. https://csharpmulticore.blogspot.nl/2014/12/how-to-check-intel-avx2-support-on-mac-os-x-haswell.html Bummer. Seems like I

Re: What's the oldest Mac targeted by D programmers?

2016-12-06 Thread Guillaume Piolat via Digitalmars-d
On Tuesday, 6 December 2016 at 09:12:16 UTC, Walter Bright wrote: This leads to the question is AVX support a minimum configuration for Macs? Can AVX instruction generation become the default for OSX? No opinion. My whole segment runs on SSE. Zero interest in AVX here, because optimizing fo

Re: What's the oldest Mac targeted by D programmers?

2016-12-06 Thread Walter Bright via Digitalmars-d
On 12/6/2016 5:11 AM, Guillaume Piolat wrote: No opinion. My whole segment runs on SSE. Zero interest in AVX here, because optimizing for the users which already have the fastest machines is not going to make a difference while optimizing for the lower end does. Hence it's critically important t

Re: What's the oldest Mac targeted by D programmers?

2016-12-06 Thread Nick Sabalausky via Digitalmars-d
On 12/06/2016 08:11 AM, Guillaume Piolat wrote: optimizing for the users which already have the fastest machines is not going to make a difference while optimizing for the lower end does. Very wise. "Latest is greatest" has become such a sacred cow in the tech sector that far too few develope

Re: What's the oldest Mac targeted by D programmers?

2016-12-06 Thread Guillaume Piolat via Digitalmars-d
On Tuesday, 6 December 2016 at 16:00:43 UTC, Nick Sabalausky wrote: "Latest is greatest" has become such a sacred cow in the tech sector that far too few developers these days understand basic common-sense logic like that. I guess it's all about if you control the target hardware. It would

Re: What's the oldest Mac targeted by D programmers?

2016-12-06 Thread Guillaume Piolat via Digitalmars-d
On Tuesday, 6 December 2016 at 14:28:37 UTC, Walter Bright wrote: dmd generates SSE code for OSX 32. Unfortunately Windows + 32-bit is disproportionately important for my line of work.