News for hackers. Stuff that matters.
Re:Why Are There So Many Programming Languages? (2015) by Talinx on Tuesday October 13, 2020 @05:15AM (#24763708)
In some cases interpreted gives you more flexibility/possibilities.

For example in Julia you can define a function and compile it for all possible types. But what if you import a package with a new type? You have to recompile the function for parameters of that type or can't use it. Or if a function has 3 parameters and there are, say, 20 different types. That's a lot of combinations, compiling them all would be wasteful.

(I don't know how Julia handles these things internally so I might be wrong.)

There are no comments on this comment yet.