Are those languages really more suitable for fast prototyping?
Are those languages really more suitable for fast prototyping?
Posted Oct 29, 2024 8:51 UTC (Tue) by taladar (subscriber, #68407)Parent article: The performance of the Rust compiler
I question this commonly made statement.
When fast prototyping you usually do not have huge programs.
You also do not know the structure of your program very well so a compiler that checks for you that you don't use your data structures or functions wrong saves a lot of time when compared to only figuring that out when you reach that point in the code at runtime, even if the compiler run is slow compared to other languages.
When prototyping you also want to later be able to read the resulting code to turn it into the actual production implementation, spamming copy&paste code all over the place a la Go error handling or similarly verbose, less expressive languages seems counter-productive to that goal.
And last but not least, you wouldn't want to prototype in a language that is fundamentally very different from one suitable for the final implementation, so the whole idea to prototype in one language and then write the actual implementation in another is questionable at best.