My answer is a provision of something that converts source code to compile in different OS. It is about tool and souce program, not absolutely what the standard the source conforming to.
For example, lots problems about 'text' and pure cstring.
If 'portability' is desired with this issue of text (esp. to/from MS-Window), considerations like using Qt library may be more real than whatever c++std provides.
And even within Window, portability between early version and later is a problem.
What is the real portability?
To me, Portability means that it is OS agnostic.
My answer is a provision of something that converts source code to compile in >different OS. It is about tool and souce program, not absolutely what the >standard the source conforming to.
For example, lots problems about 'text' and pure cstring.
If 'portability' is desired with this issue of text (esp. to/from MS-Window), >considerations like using Qt library may be more real than whatever c++stdĀ >provides.
And even within Window, portability between early version and later is a problem.
What is the real portability?
On Fri, 29 Nov 2024 17:05:19 +0800, wij wrote:
My answer is a provision of something that converts source code to compile in >>different OS. It is about tool and souce program, not absolutely what the >>standard the source conforming to.
For example, lots problems about 'text' and pure cstring.
If 'portability' is desired with this issue of text (esp. to/from MS-Window), >>considerations like using Qt library may be more real than whatever c++stdĀ >>provides.
And even within Window, portability between early version and later is a problem.
What is the real portability?
the portability is easy, one subset of one language is portable if
1) use the same laguage with same undefinite beaviours
2) use the same tipes
3) use the same functions or operations on types of 2 above
Configure+make is not so portable and not so easy for more complex
projects. Nowadays, a more portable and much easier solution is provided
by CMake.
On 11/29/2024 04:05, wij wrote:
My answer is a provision of something that converts source code to
compile in
different OS. It is about tool and souce program, not absolutely what the
standard the source conforming to.
For example, lots problems about 'text' and pure cstring.
If 'portability' is desired with this issue of text (esp. to/from MS-
Window),
considerations like using Qt library may be more real than whatever c+
+std
provides.
And even within Window, portability between early version and later is
a problem.
What is the real portability?
This type of question is going to be subjective I believe.
To me, Portability means that it is OS agnostic.
With the above stated...
source code portability means that I do not have to modify any code (as
the person compiling) in order to make it work. I should be able to
simply ./configure (or ./configure --OS=<OS Ident>) && ./make and it
will build for the correct OS.
On 11/30/2024 13:26, Paavo Helde wrote:
Configure+make is not so portable and not so easy for more complex
projects. Nowadays, a more portable and much easier solution is
provided by CMake.
This is one of the marketing lies of CMake. CMake is not more or less portable then CMMI. CMMI and CMake are capable of building for all the
same platforms and architectures and one is not "better" then the other.
They just do things differently. Actually there are some very old
platforms that CMMI can build for that CMake cannot. I'm not able to
build a few projects for the 81066 processor which is used in a lot of
radio flyer models (Cessna and Bravo series model planes for example)
and a few modern drones. However, CMMI is more then capable of doing so. While this is a niche use-case, it still drives home the fact that CMake
is not "better" more "more portable" then CMMI. In 95% of cases CMMI and CMake can build the same things, and CMMI is slightly more capable for specialized cases which is the other 5%.
(Correction: CMake can build for the 81066-B processor but not the
original 81066 processor)
My answer is a provision of something that converts source code to compile in different OS. It is about tool and souce program, not absolutely what the standard the source conforming to.
For example, lots problems about 'text' and pure cstring.
If 'portability' is desired with this issue of text (esp. to/from MS-Window), considerations like using Qt library may be more real than whatever c++std provides.
And even within Window, portability between early version and later is a problem.
What is the real portability?
Am 29.11.2024 um 10:05 schrieb wij:
My answer is a provision of something that converts source code to
compile in
different OS. It is about tool and souce program, not absolutely what the
standard the source conforming to.
For example, lots problems about 'text' and pure cstring.
If 'portability' is desired with this issue of text (esp. to/from MS-
Window),
considerations like using Qt library may be more real than whatever c+
+std
provides.
And even within Window, portability between early version and later is
a problem.
What is the real portability?
Portability is the emeny of performance. If you abstract OS-specific
APIs into a portable layer they usually become >= 100 times slower.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 495 |
Nodes: | 16 (2 / 14) |
Uptime: | 41:34:28 |
Calls: | 9,743 |
Calls today: | 3 |
Files: | 13,742 |
Messages: | 6,183,797 |