in reply to Re^2: Introducing the C Perl-Powered Pre-Processor
in thread Introducing the C Perl-Powered Pre-Processor
I was over-egging the pudding a bit, for humorous(?) effect. Within the PDL-o-sphere, its DSL makes it quite close to fun to write n-dimensional loops. It has some slightly deranged, borderline "cpp abuse" levels of macro to generate per-supported-type code within proper C code (PDL_GENERICSWITCH et al if you're interested), and PDL has infrastructure to generate one version of given "code" per supported type.
The above results in something a bit like, but more deranged and worse than, https://github.com/rofl0r/order-pp/blob/master/example/array_ops.c
I keep thinking that there are various parts of PDL that would work as standalone parts, and the type-generic stuff is one. Probably a different direction from what your tool enables.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Introducing the C Perl-Powered Pre-Processor
by NERDVANA (Priest) on May 13, 2024 at 22:16 UTC | |
by etj (Priest) on May 14, 2024 at 12:39 UTC |