5 ms·
> and you cannot usually make browser extensions in C Why in the heavens name... would you want to do that?
by geysersam 4y ago
> and you cannot usually make browser extensions in C
Why in the heavens name... would you want to do that?
- zzo38computer 4y agoFor a few reasons: - More efficient codes - Be able to interact with anything else on the system, that can be interacted by C codes, including external programs - More control, than using JavaScripts A web browser designed only for advanced users, who are assumed to know what they are doing, would be a good thing to have. (And, if you do not understand something, then read the documentation; programs must have good documentation, and unfortunately many do not, and that is what makes them difficult to understand.)
- drpyser22 4y agoC is understood to be a footgun not worth the risks for most common usages. There are better choices nowadays.
- zzo38computer 4y agoI disagree, although even if there is a C interface, it can still be made to work with many other programming languages too, so if you prefer Rust (or Python, etc) instead, then you can use Rust and you do not have to use C. Either way, it allows native code will full system capabilities, which an end user might want in a browser extension. (JavaScript-based browser extensions are still useful to make simple things without writing as much code, and also useful when you want to distribute portable sandboxed code for browser extensions, but for many other uses, C will be better.) (It is true the C programming language has some problems, but so do all programming languages.)