Re:The V Programming Language
by IshKebab on Saturday February 01, 2020 @10:45AM
(#22211089)
> The translation from C and compile being 25x faster than just compiling C seems nearly impossible.
It's easy to make a language that compiles faster than C. First get rid of the C preprocessor, and fix the syntax so it is easier to parse (e.g. `name: Type` rather than `Type name`). You can go even further and make it possible to parse each line independently (I think Zig does this?).
Second use a simple modern code generator that doesn't do much optimisation.
It's easy to make a language that compiles faster than C. First get rid of the C preprocessor, and fix the syntax so it is easier to parse (e.g. `name: Type` rather than `Type name`). You can go even further and make it possible to parse each line independently (I think Zig does this?).
Second use a simple modern code generator that doesn't do much optimisation.