4 ms·
You can write slow programs in all languages. There are many cases where Julia's language features enable higher performance than in comparable C libraries. Ha
by ViralBShah 6y ago
You can write slow programs in all languages. There are many cases where Julia's language features enable higher performance than in comparable C libraries.
Have a look at Steve Johnson's keynote from JuliaCon 2019:
https://www.youtube.com/watch?v=mSgXWpvQEHE https://www.youtube.com/watch?v=mSgXWpvQEHE
- bjoli 6y agoPythons CSV reader is actually decently fast. It is just that speed wasnt a priority. I dislike the whole "faster than C" comparisons. Almost nothing is. If you want speed you chose C. If you want something that is plenty fast with a much better speed-to-effort ratio, Julia is a strong contender.
- johnisgood 6y agoExactly. Nothing is faster than C that is also high-level. If it is, then the C version is not equivalent to the code with what you are comparing. Or are there any examples where this is not the case? If you want performance in your language, you typically write those parts in C, and if it is in C and still not fast enough, you typically go for inline assembly.
- Mikhail_K 6y ago> Nothing is faster than C that is also high-level. That is myth. C is not necessarily faster on modern hardware, because it does not represent its structure correctly [C Is Not a Low-level Language. Your computer is not a fast PDP-11.](https://queue.acm.org/detail.cfm?id=3212479 https://queue.acm.org/detail.cfm?id=3212479)
- johnisgood 6y agoWould you sum it up for me and give me examples? Which programming language is generally faster than C that is also high-level? Why do you think people go for C if they want performance? In practice it seems like it is the fastest, popular, stable high-level language out there that has been around for decades. Maybe Forth whose compiler is in assembly, but due to its type system or lack thereof, doubt the same optimizations can be performed.
- Mikhail_K 6y ago> Would you sum it up for me and give me examples? Sure, subject to pre-payment for my time.