News for hackers. Stuff that matters.
Re:Show HN: Uscope, a New Linux Debugger Written from Scratch by leni536 on Friday January 31, 2025 @05:06PM (#42892774)
> one time I wanted to write generic printers. E.g. printer of any type which support C++ iterators.

How would that work for types where the required functions are not instantiated, or not instantiated as a standalone function? Most iterators' operator++ are inlined and probably never instantiated as a distinct function.

Re:Show HN: Uscope, a New Linux Debugger Written from Scratch by feelamee on Friday January 31, 2025 @05:26PM (#42893026)
> How would that work for types where the required functions are not instantiated

Obviously, it will not. But why not to try?)

> Most iterators' operator++ are inlined

Sure, it's sad.

But I'm still think that such feature - calling C++ functions from Python API - can be useful.