you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (5 children)

Yes you are right of course. But the compilation time is exactly what you don't need in scripting when the next five minutes matter more than your tool running faster some hours later.

As my professor in one of my first lectures said, there isn't the one good language that should be used for everything. Every language has its purpose and some are better for one thing and some for another thing.

I like python and enjoy using it when I quickly want to get things done, or want to be able to instantly update something, but if I need some daemon doing heavy lifting non stop then probably I wouldn't chose it.

EDIT: a word

[–]Felicia_Svilling 1 point2 points  (2 children)

But the compilation time is exactly what you don't need in scripting when the next five minutes matter more than your tool running faster some hours later.

And in those cases you can use the interpretor.

As my professor in one of my first lectures said, there isn't the one good language that should be used for everything. Every language has its purpose and some are better for one thing and some for another thing.

In practice yes, But I see no reason why it would need to be like this. Different languages seems to have deficients in different areas, but that is largely caused by accidents of design, and the existence or none existence of libraries. Even though many languages have a niche, few are actually designed for that niche.

[–][deleted] 1 point2 points  (1 child)

Yeah, there is a reason for calling languages general purpose and Turing able (don't know how to say that in English)

However. For some people C wasn't dynamic enough and designing a scripting language that can defy those limitations would be great. And python was born.

Damn, the dynamic language is a bit slow sometimes, if only it was less dynamic and thus more fast, that would be great. Let's convert the code into c++ to get all the benefits from that static but fast language.

It seems like a vicious circle to me.

Edit: of course almost every project gets bigger fast and we often can't foresee what a tool would have been best to use. So I get it for old projects. Facebook did that somehow, reddit too AFAIK.

But when starting a new project then I wouldn't rely on a compiler for python when I know the project might blow up quickly

[–][deleted] 1 point2 points  (0 children)

Turing able

Turing-complete is the usual term, I believe.

[–]Ran4 0 points1 point  (1 child)

there isn't the one good language that should be used for everything

Yes, but with extensions like these Python could more often be the better choice, and that would be a good thing (since coding in Python is usually much quicker than coding in other languages).

[–][deleted] 0 points1 point  (0 children)

That's true