Hacker News new | ask | show | jobs
by loadzero 2165 days ago
With these restoration projects, I am usually looking to maximise code portability and minimise dependencies, which for me means C.

Sticking with Pascal would have been more authentic to the original source code, but I think that would have been more painful for me to deal with, and come with a lot of unknown unknowns.

I would likely also have been sacrificing my ability to port it onto the web and other interesting targets.

2 comments

FreePascal WebAssembly is almost fully there and FPC already has plenty of supported targets, basically almost any CPU that matters.

However it is your project, your decisions.

Yeah, that makes sense, I mentioned freepascal specifically because it has pretty broad platform support (and can generate LLVM bitcode). But, maybe the cost of translating to C is worth it.