Hacker Times
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
toxik
on May 21, 2023
|
parent
|
context
|
favorite
| on:
Writing Python like it's Rust
I feel like the elephant in the room is that for most cases in this blog post, you either use NumPy arrays or something else like it. You can make ndarray subclasses and that helps but type hinting and NumPy feels so… poorly done.
patrickkidger
on May 21, 2023
[–]
Try using jaxtyping:
https://github.com/google/jaxtyping
.
It also supports numpy/pytorch/etc.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: