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

https://github.com/acbits/reftrack-plugin

Hey, I wrote this GCC plugin to automate reference counting in C. Any bug reports welcome.


https://github.com/acbits/reftrack-plugin

I wrote a compiler extension just for this issue since there wasn't any.


https://github.com/acbits/reftrack-plugin

I wrote this GCC plugin for this exact reason. Let's see whether the kernel team is interested in adopting it.


I searched lore.kernel.org and couldn't find any postings that propose using this in the kernel. I'd encourage you to share a proposal, otherwise the "kernel team" will never be interested, because they'll never hear of it.


I will send it again. It probably got lost in the high traffic volume of LKML last year.


That's cool, but it'd be nice to also have a distinction between a get and a copy (like ObjC) or borrow/move (like Rust) to avoid redundant increments and decrements.


I love high quality C++ that reads like C but doesn’t throw away the STL or litter everything with const


Author here. The project started as a way to tag reference counters inside C structures, but ended up being generic enough to roll your own GC.


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

Search: