News for hackers. Stuff that matters.
Re:Polymorphic Types in C [pdf] by sfpotter on Thursday January 18, 2024 @11:32AM (#39043821)
What is an example of an embedded systems project which truly benefits from a generic library in the way that you described?
Re:Polymorphic Types in C [pdf] by sigsev_251 on Thursday January 18, 2024 @12:31PM (#39044672)
Aviation would be my personal experience. We have to implement services on the aircraft for structured communication support with the ground tower. Those would really benefit from something like that, since we wouldn't have to implement a backend for every project and we could simply reuse the whole library everywhere.
Re:Polymorphic Types in C [pdf] by sfpotter on Thursday January 18, 2024 @12:51PM (#39044938)
I don’t see how generic programming (a la polymorphic types as presented) is the only or even the best solution to this problem.