Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Since most models require little code compared to big software projects, why not use c++ or any other compiled language directly. Python with it’s magic functions, shortcuts is just hiding too much complexity which can result in bug performance issues. Plus code is more hard to maintain


> Python with it’s magic functions, shortcuts is just hiding too much complexity

One counterpoint would be that verbosity, especially in the heavy syntax style of languages such as C++, distracts the reader and helps bugs hide in plain sight. For a silly example, imagine trying to read and verify the correctness of an academic paper from its uncompiled LaTeX source.


A lot of AI (not a huge amount but more than you'd think) people can't code in any sense that would get them a job at a normal software company, Python is easy and fast enough to last until the model is obsolete.


Which magic functions and shortcuts in the posted code do you feel might introduce bugs?


In general, the article is fine.


I’m curious as well, what specific lines would cause an issue or abstracts too much.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: