3 ms·
>Anything else is amateur hour. Such as writing the optimizing compilers that make it feasible for you to use C at all?
by mannykannot 10y ago
>Anything else is amateur hour.
Such as writing the optimizing compilers that make it feasible for you to use C at all?
- jblow 10y agoI don't understand your reply. How is this not a non sequitur?
- sowbug 10y agoThe output of a modern C compiler is unpredictable in terms of performance. Yet mannykannot suspects you still use such tools. Please explain your inconsistency.
- et1337 10y agoEven if this weren't a fallacious argument, he's actually in the process of replacing Thekla's C/C++ workflow with a custom language called Jai.
- megabochen 10y agoIsn't Jai piggybacking on C?
- et1337 10y agoHe started with two backends. One generates bytecode for an internal interpreter, and this is still needed because all Jai code can be run at compile time. The other backend generates C code, but it's a temporary measure. He just added the LLVM backend: https://www.youtube.com/watch?v=HLk4eiGUic8 https://www.youtube.com/watch?v=HLk4eiGUic8
- megabochen 10y agooh thanks, I didn't see the last one :)
- imtringued 10y agoWell his argument is that if you need e.g. CoW you shouldn't rely on the OS doing that implicitly for you and instead you should explicitly use the CoW features of the OS. There should be a way to explicitly demand the optimization instead of relying on the behavior of a specific compiler to implicitly optimize the code. Shifting beyond the bitwidth is undefined behavior. Why can't shifts be checked by default. Let me explicitly demand the undefined behavior when I really need it.
- imtringued 10y agoIs C now so bloated that it needs optimizing compilers just to get executed at all? Is a C interpreter is unfeasable? Apparently even an unoptimizing compiler is not enough.
- mannykannot 10y agoI am not aware of any change to the C language that has introduced bloat - perhaps you could explain? FYI optimizing compilers are also used to produce efficient instruction streams.