Hacker Newsnew | past | comments | ask | show | jobs | submit | sueszli's commentslogin

yeah, exactly. it's for explicit ownership transfer. you always own what you receive, sum it, release both inputs, done. no mutation tracking, no aliasing concerns.

https://github.com/sueszli/autograd.c/blob/main/src/autograd...

i wonder whether there is a more clever way to do this without sacrificing simplicity.


a heap-free implementation could be a really cool direction to explore. thanks!

i think you might be interested in MLIR/IREE: https://github.com/openxla/iree


woah, this got way more attention than i expected. thanks a lot.

if you are interested in the technical details, the design specs are here: https://github.com/sueszli/autograd.c/blob/main/docs/design....

if you are working on similar mlsys or compiler-style projects and think there could be overlap, please reach out: https://sueszli.github.io/


Saw this HN post yesterday: https://news.ycombinator.com/item?id=45422717

It sparked joy and some great discussions. I turned the idea into a tiny, compiler-agnostic header-only shim that provides defer-like semantics in C as a short-term workaround until the language (hopefully?) adds a defer statement - Yay! :)


This is just wonderful


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: