←back to thread

271 points mithcs | 1 comments | | HN request time: 0s | source
Show context
cachius ◴[] No.45953162[source]
A recent superpower was added by Fil aka the pizlonator who made C more Fil-C with FUGC, a garbage collector with minimal adjustments to existing code, turning it into a memory safe implementation of the C and C++ programming languages you already know and love.

https://news.ycombinator.com/item?id=45133938

https://fil-c.org/

replies(3): >>45953284 #>>45953390 #>>45954377 #
762236 ◴[] No.45953390[source]
Why would I want to run a garbage collector and deal with it's performance penalties?
replies(4): >>45953453 #>>45953598 #>>45953991 #>>45961132 #
palata ◴[] No.45953453[source]
Easy: because in your specific use-case, it's worth trading some performance for the added safety.
replies(1): >>45953695 #
762236 ◴[] No.45953695[source]
If I'm in C, I'm using JNI to work around the garbage collector of Kava
replies(1): >>45953970 #
1. palata ◴[] No.45953970[source]
Have you ever measured the performance impact of JNI? :-)