4 ms·
by the way, it is a ports from 11 lines python version here: http://iamtrask.github.io/2015/07/12/basic-python-network/ http://iamtrask.github.io/2015/07/12/bas
by ghosthamlet 10y ago
by the way, it is a ports from 11 lines python version here: http://iamtrask.github.io/2015/07/12/basic-python-network/ http://iamtrask.github.io/2015/07/12/basic-python-network/, isn't it more readable concise and beautiful than python version?
if our all ML codes use apl, it will be a cool world.
- cwyers 10y ago> isn't it more readable concise and beautiful than python version? No.
- minimaxir 10y agoTo add to this, the which-loop-in-one-line-of-code is not self-documenting, which is important for data/ML in particular when others need to verify your code.
- cwyers 10y agoAnd it's not any shorter in terms of statements, they're just using the diamond operator to put all the statements in the loop on one line.
- klibertp 10y agoIt could simply be a badly written bit of APL. Although I don't know APL, I have some experience with J and I think the `:while` construct used here suggest more or less literal translation of the Python code.