// the find
ameliatastic/seahorse-lang
Write Anchor-compatible Solana programs in Python
Seahorse compiles a Python subset into Anchor-compatible Rust for Solana programs, aimed at devs who know Python but not Rust and want to write on-chain programs without hand-writing Anchor boilerplate. It's a community project built on top of Anchor, not a Solana Labs effort.
The compiler pipeline is a real multi-pass design (parse via rustpython, namespace/sign/check/build/generate) rather than a naive transpiler, which is why it can do actual type checking before emitting Rust. It generates real Anchor Rust source you can inspect, so you're not locked into an opaque runtime — you can eyeball or hand-tune the output. Interop with existing Rust/Anchor code is a stated goal, useful if you need to drop into native Rust for anything Seahorse can't express.
The README says outright it's beta and 'not production-ready,' and the repo hasn't been pushed to since March 2024 — that's over two years of no activity on a project maintaining a compiler for a fast-moving chain SDK (Anchor). The claim of 'safety guarantees of every Rust program' is misleading: Solana program safety is mostly about account validation and PDA/ownership checks, not Rust's borrow checker, and Seahorse doesn't obviously encode that domain-specific safety model. Test coverage is thin — a handful of compiled-example snapshot tests and one test case under tests/test-cases, nothing that looks like it exercises edge cases in the type checker. Anyone adopting this now is betting on an unmaintained abstraction layer over an SDK (Anchor) that has kept shipping without it.