9 votes
Accepted

Should I ignore features of one language when I plan to port my code to another which doesn't have such features?

Based on my experience writing compilers and related tools in C and similar languages, I would NOT choose to write a compiler in C if I had any other, better choices. And in 2016, there are plenty of ...
Jonathan Eunice's user avatar
7 votes

Should I ignore features of one language when I plan to port my code to another which doesn't have such features?

Ignoring features in such a case does not make sense to me. The typical reason for using Python for prototyping is exactly because you can implement things in a fraction of time and "space" (=lines ...
Doc Brown's user avatar
  • 207k
7 votes

How to port gcnew and gcroot from Visual C++ to gcc

Those calls can't be ported, at least not directly. gcnew is not a C++ keyword, it is from "C++/CLI", which is a different language currently not supported by gcc. This older SO question says there ...
Doc Brown's user avatar
  • 207k
6 votes
Accepted

Is C is a portable language for new architectures or it is specific to ISAs?

in general, every new architecture needs a new port of the C compiler (along with the rest of the C tool chain) Usually this starts with the development of a 'cross compiler' on a known ...
user3629249's user avatar
6 votes

Is C is a portable language for new architectures or it is specific to ISAs?

How C language is portable to any instruction set (I mean for new architecture). It is not, but C is portable to most reasonable instruction sets close to existing ones. As an hypothetical counter-...
Basile Starynkevitch's user avatar
4 votes

Merging Python2.7 code to its ported Python3.9 version

I guess the most effective solution is not a technical one, but an organizational solution (which is mostly independent from the version control system you are using): make it mandatory for everyone ...
Doc Brown's user avatar
  • 207k
4 votes
Accepted

How I can organise a project in more programming languages in Git repos?

This is very personal and depends on your style of maintaining your code and how you work with code repositories. Then again there are recommended "best practices", that are there for a pretty good ...
Todor Todorov's user avatar
3 votes

What changes are needed to run a 32 bit software on a 64 bit system?

If the software is well-written, it should be none. If the software makes assumptions as to the native word and pointer sizes, you'd have to track down and fix those.
Simon B's user avatar
  • 9,621
3 votes

Should I ignore features of one language when I plan to port my code to another which doesn't have such features?

Any Turing-Complete language feature can be implemented in any other Turing-Complete language. Were that not the case, we'd still be stuck with the first programming language ever invented. So ...
Robert Harvey's user avatar
2 votes

Is C is a portable language for new architectures or it is specific to ISAs?

Yes. The instruction set is defined, machine code, an assembly language syntax is defined along with an assembler. Most likely a linker, and then you are ready for a port of the C compiler. And ...
old_timer's user avatar
  • 969
2 votes

How I can organise a project in more programming languages in Git repos?

If it is the same project, it makes sense to have all "versions" of it (in different languages) in the same repository, so that you will be able to easily track changes in each version (a subdirectory ...
Patrick Mevzek's user avatar
2 votes

Should I ignore features of one language when I plan to port my code to another which doesn't have such features?

You wrote your Python program in order to proof a concept, I understand - I think that is perfectly fine and admirable. Your plan was, from the start to eventually implement in C. Fine as well, I ...
tofro's user avatar
  • 901
2 votes
Accepted

When to port vs when to develop?

You'll have to look at it from a cost-benefit perspective, which is going to be specific to your project. What you're looking for is which will cost you less in effort over the long term. That said, ...
Blrfl's user avatar
  • 20.4k
2 votes

What does "de-MFC'ifying"a GUI app consist of?

Done that, in different directions. You want to have your app, with additional header files, and some source files implementing the same functionality for windows and Linux (where the code needs to be ...
gnasher729's user avatar
  • 45.1k
2 votes
Accepted

Merging Python2.7 code to its ported Python3.9 version

Doing a Big Rewrite is usually a mistake. Trying to maintain two separate codebases takes a lot of effort, as you have discovered. With a Python 2 → 3 migration, the typical approach is to gradually ...
amon's user avatar
  • 134k
1 vote
Accepted

Windows Qt5-based app porting to Linux

Can't answer definitely - but the libraries you list should be okay in Linux. So far, the only library I couldn't compile with on Linux was QtWebEngine which is Chromium based. Other than that - Qt ...
HorusKol's user avatar
  • 4,131
1 vote

What changes are needed to run a 32 bit software on a 64 bit system?

Most systems (like Windows and many Linux flavors) provide a sub system for that and will run your 32 bit executable with next to no overhead. Ideally you could recompile it as a 64 bit program. ...
Mario's user avatar
  • 1,499
1 vote

When to port vs when to develop?

You find the license of the library, give it to your boss, who gives it to your legal team, and they determine whether that license is acceptable for your purposes or not. For example, if the company ...
gnasher729's user avatar
  • 45.1k
1 vote

Is C is a portable language for new architectures or it is specific to ISAs?

If the capabilities of your new ISA are similar to existing ones, then you can save a lot of work. For example, you could add a new backend to LLVM and get many programming languages for free. To do ...
gnasher729's user avatar
  • 45.1k
1 vote

Is C is a portable language for new architectures or it is specific to ISAs?

We don't have to write a C Compiler for every new architecture. For example the Lisp Machine and the Java VM can do very well without a C compiler. However, if you really want to, C is portable even ...
Peter G.'s user avatar
  • 117

Only top scored, non community-wiki answers of a minimum length are eligible