PythonHub
2.55K subscribers
2.35K photos
50.2K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Write a coding agent from first principles: better tools

This tutorial builds on the coding agent you implemented in the tutorial “Write a coding agent from first principles”. In this tutorial, you'll take your agent and improve its capabilities by implementing the text edit and bash command tools that Anthropic provides.

https://mathspp.com/blog/write-a-coding-agent-from-first-principles-better-tools
Hamiltonian Neural Networks from a Differential Geometry Perspective

The post explains Hamiltonian Neural Networks through differential geometry, showing why a normal MLP can fit motion data but still invent or lose energy over long rollouts. It shows that by learning a scalar Hamiltonian and deriving motion through the symplectic gradient, HNNs make energy conservation structurally unavoidable instead of hoping the network learns it from data.

https://abscondita.com/blog/symplectic-sledgehammer-for-a-spring