3 ms·
Julia is hardly the first (cf some common lisp environments, 20+ years ago). To really get near (say within 2x) of c you need some sort of type annotation or
by ska 8y ago
Julia is hardly the first (cf some common lisp environments, 20+ years ago). To really get near (say within 2x) of c you need some sort of type annotation or inference of course, and (more importantly) you have to structure your code such that this works, but it's quite do-able. Your code does tend to end up a bit c-like in those performance critical sections, but that's hardly surprising.
- 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 :)