News for hackers. Stuff that matters.
Re:Writing Snake in 12 Lines of PyTorch by auraham on Friday August 12, 2022 @01:09AM (#32434907)
I think that if someone can condense an algorithm using just a bunch of lines of code, that reflects a deep understanding of the problem domain. A lot of people can code an algorithm using a lot of lines of code. But it requires practice and experience to write short and expressive code. For example, Karpathy is famous for this, you can check his implementation of evolution strategies [1].

[1] https://openai.com/blog/evolution-strategies/

There are no comments on this comment yet.