4 ms·
A better example of 'engineering not academy' would be explicit vectorization, memory layout support and a good FFI. (all the stuff that in theory is better man
by ansgri 10y ago
A better example of 'engineering not academy' would be explicit vectorization, memory layout support and a good FFI. (all the stuff that in theory is better managed by compilers, in practice it either doesn't matter at all or else should be left to humans).
Please correct me if I'm wrong, but Kotlin doesn't improve on Java in these areas.
- misja111 10y agoIt would be awesome if there would be some JVM language that supported explicit vectorization, memory layout support and a good FFI. But it also seems impossible. How would any JVM language have memory layout support while at the same time running in the memory managed sandbox of the JVM?
- aardvark179 10y agoWell, project Panama is aiming to add those things to the JVM, so you may get your wish in a few years.
- premium-concern 10y agoHave a look at Scala Native. Despite its young age it creates really fast, tight code (they have issues benchmarking things because Dotty Linker + LLVM gets rid of too much stuff).
- ansgri 10y agoThanks. It is too early to say if it would be of any use, however, since they don't talk about freeing these native data structures.
- premium-concern 10y agoYou can have both managed (T) and unmanaged pointers (Ptr[T]).