Julia 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?
Which programming language or compiler is faster
61–70 of 90 posts
Re: Which programming language or compiler is faster
#62Re: Which programming language or compiler is faster
#63What does it even mean for a language to be faster?
There's nothing stopping anyone from writing a fully standards compliant C interpreter that will have considerably slower process execution after all. In fact, a quick search shows that it's been done many times, for example this[1].
Re: Which programming language or compiler is faster
#64Re: Which programming language or compiler is faster
#65Earlier quoted context omitted.
On a single core processor, obviously not, but massive C++ codebase are compiled with multicore CPU, and often distributed. The advantage of the header inclusion model is you get an bunch of independent compilation units, and so it's straight forward to parallelize. 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 compile…
You show me that IDE for C++ who is using those multicore CPU's for compilation who's faster than Delphi, for same number of lines and/or external dependencies. Btw, Delphi is still using 32 bits for its IDE and a single core and still blows out of the water anything else in terms of millions of lines of code compilation time.
Also, here's a video of my edit-compile-run cycle ; cloc on that project gives me 506963 loc without counting dependencies. The software uses boost and fairly modern C++ with no particular feature restriction and templates going wild. It's not instant, but still, 2 seconds is somewhat tolerable (and definitely faster than various web stuff I've been involved with)
Re: Which programming language or compiler is faster
#66Julia 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?
Nowadays, the language is promoted as a general purpose language suitable for any task or domain.
However, the perception that Julia is primarily for scientific computing remains strong among many developers. Only time will tell if that perception changes.
Re: Which programming language or compiler is faster
#67Can anyone explain why C++ beats out C so clearly?
Re: Which programming language or compiler is faster
#68This 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
#69The faster programming language or compiler is the one you use. Always.
Re: Which programming language or compiler is faster
#70Julia 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?
Julia is incredibly slow to compile. Far worse than C++ last time I tried. For interactive notebooks, I found it’s common to have a single line take a couple minutes to compile - it’s simply not interactive in the way Python is, despite having good runtime performance once compiled. 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…