Tangentially... I'm grateful that these new batches of systems languages have chosen to use the u8, i32, etc, style integer types. Rather than the uint8_t and int32_t style. First thing I do in any of my low level embedded C projects is put in the various uNN/iNN types.
Problems of C, and how Zig addresses them
31–40 of 290 posts
Re: Problems of C, and how Zig addresses them
#32You can repeat "C is a minimal abstraction over assembly" as many times as you want, it doesn't make it true.
“C is actually assembly” was quite a plot twist from there.
Re: Problems of C, and how Zig addresses them
#33You can repeat "C is a minimal abstraction over assembly" as many times as you want, it doesn't make it true.
Re: Problems of C, and how Zig addresses them
#34You can repeat "C is a minimal abstraction over assembly" as many times as you want, it doesn't make it true.
I can't name another language for which this is true.
I get that you're hinting at the insane level of undefined behaviour enforcement by compilers, but I don't think it matters all that much once you understand how optimizing compilers work.
Re: Problems of C, and how Zig addresses them
#35You can repeat "C is a minimal abstraction over assembly" as many times as you want, it doesn't make it true.
Re: Problems of C, and how Zig addresses them
#36Re: Problems of C, and how Zig addresses them
#37Not having the standard define what is compile time and not is a feature not a bug, and one of the reasons that C continues to enjoy healthy compiler development. (I'm not taking a stand for or against Zig, other then that i support the development of new languages)
Re: Problems of C, and how Zig addresses them
#38Re: Problems of C, and how Zig addresses them
#39OK, so Zig to C is like Typescript to Javascript.
I don't think I fully understand the analogy. Typescript has almost identical semantics to Javascript but adds typing syntax to improve developer experience and make it easier to manage a large-scale JS codebase. Zig is a fundamentally different language than C that has a lot of new features. Two great examples are comptime and allocators which have complements in C, but are really very different from what C provides…
Re: Problems of C, and how Zig addresses them
#40OK, so Zig to C is like Typescript to Javascript.
I don't think I fully understand the analogy. Typescript has almost identical semantics to Javascript but adds typing syntax to improve developer experience and make it easier to manage a large-scale JS codebase. Zig is a fundamentally different language than C that has a lot of new features. Two great examples are comptime and allocators which have complements in C, but are really very different from what C provides…