What does it even mean for a language to be faster?
Which programming language or compiler is faster
21–30 of 90 posts
Re: Which programming language or compiler is faster
#22Can anyone explain why C++ beats out C so clearly?
https://stackoverflow.com/questions/2513741/c-vs-c-for-perfo...
from which I gather that if you're using an allocator function that zero's out memory then it will be slower of course.
Re: Which programming language or compiler is faster
#23Julia always seems to rank #1 or close to it when compared to other interpreted languages but I only ever see it used for research and math. Why doesn’t anyone use it for anything else?
Re: Which programming language or compiler is faster
#24Re: Which programming language or compiler is faster
#25The faster programming language or compiler is the one you use. Always.
The hardest part of learning a second and third programming language is overcoming your own frustration. Yes there are some pretty gnarly concepts in languages like Haskell. However, most mainstream programming languages are very similar to each other.
Re: Which programming language or compiler is faster
#26This is a really strange benchmark to use. Compiler speed is not an issue for these 100ish line standalone benchmarks. The question is how fast it is for a million-line project or worse. I doubt c or c++ do good there with their header file includes for dependencies.
A common way to speed things up even more is to merge some cpp file together, so each compiler thread is active for longer and common headers are compiled once.
With the new module feature of C++20, compilation is transformed into a DAG, and it is still unclear if it's really faster than just throwing a lot of cores at the problem.
Re: Which programming language or compiler is faster
#27Julia always seems to rank #1 or close to it when compared to other interpreted languages but I only ever see it used for research and math. Why doesn’t anyone use it for anything else?
Lack of integration with other massive libraries that Python, Java and C++ have. Lack of books, tutorials and extensive knowledge bases that Python, Java and C++ have.
Re: Which programming language or compiler is faster
#28This is a really strange benchmark to use. Compiler speed is not an issue for these 100ish line standalone benchmarks. The question is how fast it is for a million-line project or worse. I doubt c or c++ do good there with their header file includes for dependencies.
Re: Which programming language or compiler is faster
#29Julia always seems to rank #1 or close to it when compared to other interpreted languages but I only ever see it used for research and math. Why doesn’t anyone use it for anything else?
The deal breaker for me is that its compiler is JIT based whether you want it or not. Code will hang at runtime for multiple minutes as it compiles all the library dependencies and specializes them to the given data types.
Re: Which programming language or compiler is faster
#30Julia always seems to rank #1 or close to it when compared to other interpreted languages but I only ever see it used for research and math. Why doesn’t anyone use it for anything else?