3 ms·
>Your code does tend to end up a bit c-like in those performance critical sections, but that's hardly surprising. That isn't true. Closures, higher order funct
by byt143 8y ago
>Your code does tend to end up a bit c-like in those performance critical sections, but that's hardly surprising.
That isn't true. Closures, higher order functions and fused broadcast array expressions are all very fast except in some corner cases.
- ska 8y agoI'm not sure we disagree. In my experience you can get "pretty fast" but not "c-like fast" while keeping many language features. The more you chase c-like performance (or even better fortran), the more you start restructuring things in a c-like way. This isn't universal of course, and I don't think it has anything specific to do with c language, just that it is a semi reasonable proxy for hardware architecture (ignoring SIMD). Anyway, this isn't really Julia specific, and I haven't tried with Julia recently so I may be wrong :)