Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Automatic Differentiation in 26 lines of Python
(
gist.github.com
)
2 points
by
montebicyclelo
on Sept 18, 2022
|
hide
|
past
|
favorite
|
3 comments
montebicyclelo
on Sept 18, 2022
|
next
[–]
Inspired by "Automatic Differentiation in 38 lines of Haskell",
https://news.ycombinator.com/item?id=32879734
tempodox
on Sept 19, 2022
|
prev
[–]
Funny, I find this harder to grok than the Haskell version. Haskell's static typing helps a lot.
montebicyclelo
on Sept 20, 2022
|
parent
[–]
Maybe familiarity with the languages? Though there probably is room to make this code more readable, without costing too many LOCs.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: