3 ms·
Go is a high level language, it doesn’t share any quality with C, other than perhaps bad expressiveness.
by kaba0 5y ago
Go is a high level language, it doesn’t share any quality with C, other than perhaps bad expressiveness.
- pjmlp 5y ago"C Is Not a Low-level Language Your computer is not a fast PDP-11." https://queue.acm.org/detail.cfm?id=3212479 https://queue.acm.org/detail.cfm?id=3212479
- saagarjha 5y agoBut many microcontrollers are and their toolchains do treat it as such.
- pjmlp 5y agoJust like other programming languages, C is not a special snowflake. https://www.f-secure.com/en/consulting/foundry https://www.f-secure.com/en/consulting/foundry https://developer.arm.com/solutions/internet-of-things/languages-and-libraries/go https://developer.arm.com/solutions/internet-of-things/langu...
- badsectoracula 5y agoThat article completely misses the point - assembly (or machine code) might not be how the "metal" works on a modern desktop(-like) CPU, but that is irrelevant when that is the lowest level that said CPUs are exposing. On such CPUs C is at the lower levels possible. But also C isn't just for Intel, x86 and (some) ARM CPUs, there are other targets it has.
- pjmlp 5y agoNothing of that is exclusive to C, please provide an example of a CPU where C is the only compiler toolchain available, and exposes CPU capabilities without using language extensions. Any example with language extensions to ISO C, allows me to provide a counter example with language extensions. Any example where only a subset of ISO C is allowed, allows me to provide a counter example with a language subset.
- badsectoracula 5y agoAre you replying to the correct comment? I never claimed anything that would be exclusive to C. What i wrote applies equally to something like, e.g., most Pascal dialects that are around the same "level" as C.
- pjmlp 5y agoThis leaves room for such interpretation "On such CPUs C is at the lower levels possible.". Sorry if I misunderstood it.