Re:Zig self hosted compiler is now capable of building itself
by Comevius on Saturday April 16, 2022 @04:01PM
(#31055613)
SIMD is not a problem, it's hardware. Compilers tend to take advantage of the CPU-specific SIMD registers and instructions, or you can use them explicitly.
Writing generic SIMD code is more portable. C has libraries, and Zig also has vector primitives available through built-in functions.
Re:Zig self hosted compiler is now capable of building itself
by pjmlp on Saturday April 16, 2022 @04:14PM
(#31055716)
Any language can have libraries, C is not special here, nor is Zig.
In fact, a few GC enabled languages have explicit SIMD support.
Re:Zig self hosted compiler is now capable of building itself
by turminal on Saturday April 16, 2022 @03:15PM
(#31055193)
Are there languages that "solve" SIMD?
Re:Zig self hosted compiler is now capable of building itself
by pjmlp on Saturday April 16, 2022 @04:13PM
(#31055704)
ISPC for one.
So how do you solve SIMD with C, without language extensions?
C is not a special snowflake.