▲ | pizlonator 5 days ago | ||||||||||||||||||||||||||||||||||
You are posting on HN in a browser presumably. I am familiar with the stack of C/C++ code involved in that because I was a browser dev for 10+ years. Most of that code is definitely not perf sensitive in the sense that if you slowed it down by 4x, you might not notice most of the time (Browser performance is like megapixels or megahertz … a number that marketing nerds can use to flex, but that is otherwise mostly irrelevant) When I say 99% of the C code you use, I mean “use” as a human using a computer, not “use” as a dependency in your project. I’m not here to tell you that your C or C++ project should be compiled with Fil-C. I am here to tell you that most of the C/C++ programs you use as an end user could be compiled with Fil-C and you wouldn’t experience an degraded experience if that happened | |||||||||||||||||||||||||||||||||||
▲ | julieeee 5 days ago | parent | next [-] | ||||||||||||||||||||||||||||||||||
>I am here to tell you that most of the C/C++ programs you use as an end user could be compiled with Fil-C and you wouldn’t experience an degraded experience if that happened Since performance is largely correlated to battery life, of course I would notice. An Nx reduction in battery life would certainly be a degraded experience. | |||||||||||||||||||||||||||||||||||
▲ | mike_hearn 5 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
You're absolutely right about all of this. People under-estimate how much code gets written in these languages just because decades ago they were chosen as the default language of the project and people are resistant to going full polyglot. Then everything gets written that way including cold paths, utilities, features that are hardly ever used, UI code that's bottlenecked by the network... | |||||||||||||||||||||||||||||||||||
▲ | gf000 5 days ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||
This discussion is absolutely meaningless without specifying what kind of software we are talking about. 4x slowdown may be absolutely irrelevant in case of a software that spends most of its time waiting on IO, which I would wager a good chunk of user-facing software does. Like, if it has an event loop and does a 0.5 ms calculation once every second, doing the same calculation in 2 ms is absolutely not-noticeable. For compilers, it may not make as much sense (not even due to performance reasons, but simply because a memory issue taking down the program would still be "well-contained", and memory leaks would not matter much as it's a relatively short-lived program to begin with). And then there are the truly CPU-bound programs, but seriously, how often do you [1] see your CPU maxed out for long durations on your desktop PC? [1] not you, pizlonator, just joining the discussion replying to you | |||||||||||||||||||||||||||||||||||
|