3 ms·
This is not rocket science.* I did a Pascal to C translator back in the 80s. It was something like a two week project back then, with another month or so when
by russell 15y ago
This is not rocket science.* I did a Pascal to C translator back in the 80s. It was something like a two week project back then, with another month or so when we decided to make it a commercial product. Most of the effort was not the translation but implementing a string package that duplicated the Pascal semantics without the brain-dead Pascal typing, where string[10] was a different and incompatible type from string[11]. (Actually, we got around that in the original code by writing a Pascal to Pascal interface written in C.)
His conclusion that things stay the same is totally wrong. Pascal is a very primitive language, and it is usually straight forward to translate from a primitive language to a richer one. And C was richer. Programming in C was like breathing fresh air. My productivity doubled. There are more doublings with modern languages like Python and JavaScript.
* I posted a comment yesterday mentioning some work I had done on Project Apollo. That WAS rocket science. ;-)