3 ms·
Politics bear a part of the blame for some of GCC's more questionable architectural decisions. They intentionally made the architecture hard to write plugins f
by eru 9y ago
Politics bear a part of the blame for some of GCC's more questionable architectural decisions. They intentionally made the architecture hard to write plugins for.
- bkeroack 9y agoThe entire reason GCC exists is politics. The same can be said for the rest of the base GNU system.
- anitil 9y agoFor the ignorant: what decisions are you referring to? I've heard this a lot but am not sure what people mean.
- eru 9y agohttps://news.ycombinator.com/item?id=15408652 https://news.ycombinator.com/item?id=15408652 explains it better than I did. Basically, early on they didn't want GCC to be able to be used piecemeal with closed source compilers / plugins. Thus they made GCC hard to be used piecemeal. But using bits and pieces of your compiler is exactly what you'd want to be doing when you want to have good editor integration: eg syntax highlighting _should_ actually use the compiler instead of duplicating logic. Especially with a language that's Turing complete to even parse like C++; the logic just to figure out whether something is a type to be coloured eg blue or a variable name to be coloured eg green. (See http://blog.reverberate.org/2013/08/parsing-c-is-literally-undecidable.html http://blog.reverberate.org/2013/08/parsing-c-is-literally-u...)