0

What language is good at "Brute Force"?

I ran a brute force Python program to find a number and it took 3 hours to get to the answer. When I ran the same program in Java it only took 5 minutes. I think the reason is that Python runs it's code line by line while Java compiles it first and runs code much closer to machine language. 1. Is that the reason or is there more to it? 2. What languages are good for brute force and which aren't? 3. Is there a way to avoid brute force? Thanks!!!

20th Jun 2019, 11:26 AM
Ndkc
Ndkc - avatar
1 Antwort
0
List of interpreted languages (code interpreted line by line): * JavaScript * Python * PHP * Perl * Ruby * Shells (cmd, bat, Powershell Bourne-style shells etc.) * awk List of VM languages (languages that compile to machine independent byte code, and run in a virtual machine; much faster than interpreted) * Java * Kotlin * Other JVM languages * C# * Visual Basic * C++/CLI * Other .NET languages * Limbo List of compiled languages (languages that compile to machine language, faster than virtual machine languages) * C * C++ * Go * Fortran * Haskell * Rust * nim * Swift Lists are incomplete (obviously)
20th Jun 2019, 3:03 PM
Vlad Serbu
Vlad Serbu - avatar