Hacker News new | ask | show | jobs
by allpaca 788 days ago
C++ is evolving so much, however I don't understand this thing: why people continue to develop AI projects with Python? I'd choose C++ instead...
2 comments

Because they're python libraries that just wrap C and C++. All the performance upside with better ergonomics
Putting this another way, people use Python because it makes it way easier to compose together the underlying C++ code. Composition and polymorphism in C++’s static type system is rather weak.

Of course there is also the relative succintness of Python and other advantages, too.

Because you need a dynamic language to do rapid iteration.

You don't want to recompile, re-parse a 12GB parquet file, etc. everytime you try a new parameter in a model.