3 ms·
As a human I would likely port it the same way. First a translation close to 1:1 from the source, then redesign/refactor areas little by little to match the tar
by dgellow 6mo ago
As a human I would likely port it the same way. First a translation close to 1:1 from the source, then redesign/refactor areas little by little to match the target language idioms
- anthk 6mo agoIn some cases it's impossible. C to TCL almost fine, C mapped to Scheme, or Prolog, hell awaits, because Scheme's functions can reduce tons of redundant functions to a single one.
- dgellow 6mo agoSure, but that doesn’t really apply to zig => rust
- hoppp 6mo agoSo don't port. Write a better version.