News for hackers. Stuff that matters.
Re:Deep Learning in JavaScript by modeless on Friday March 29, 2024 @11:52AM (#39865536)
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)).
Re:Deep Learning in JavaScript by throwaway4aday on Friday March 29, 2024 @09:02PM (#39870818)
Depending on what you learned first, dots and parentheses are a lot simpler to understand than math expressions.
Re:Deep Learning in JavaScript by DanielHB on Saturday March 30, 2024 @03:58AM (#39872797)
You could probably build tagged template literal like:

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

Not ideal, but much better and without magic pre processors