Hacker News new | past | comments | ask | show | jobs | submit login

What's wrong is it obscures simple math expressions behind tons of dots and parentheses. The thing is that the core of deep learning algorithms is usually very simple math. It's useful to be able to translate that math directly from research papers into straightforward expressions that mirror the structure in the paper like a = b / c + d * e rather than something less similar like a = b.divide(c).add(d.multiply(e)).



Depending on what you learned first, dots and parentheses are a lot simpler to understand than math expressions.


You could probably build tagged template literal like:

a = e`${b} / ${c}`

Not ideal, but much better and without magic pre processors




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

Search: