News for hackers. Stuff that matters.
Re:Better C – A subset of D Programming Language by msla on Tuesday April 28, 2020 @02:28PM (#23010185)
> C is about giving you maximal control over memory, with a very thin layer of abstraction over the hardware.

Which suggests an avenue I haven't seen anyone take yet: Pick a subset of features common to sane hardware and write a language which gives access to those features in a way which is reasonably portable and as explicit as C.

Pick a spot midway between a macro assembler and a language with a complicated optimizer and give as much access to the hardware as possible while not wedding yourself to a single ISA. Make cross-compilation a first-class feature using a module system, and error out if the programmer tries to use SIMD intrinsics when compiling for an MSP430 or something.

There are no comments on this comment yet.