Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
|
|
|
|
Poster | Thread | simplex
| |
Re: Cloanto acquire Amiga Inc Trademark Posted on 15-Apr-2021 23:51:00
| | [ #1 ] |
| |
|
Cult Member |
Joined: 5-Oct-2003 Posts: 896
From: Hattiesburg, MS | | |
|
| @NutsAboutAmiga
Quote:
And this the problem, when you are dealing with compiled programs, also you have union’s, this will also break. |
Oh, I deal with compiled languages, but typically avoid these sorts of optimizations precisely because they're bug-prone, non-portable, and hard to understand to boot. I understand where the code you write would arise, but it's a programming practice one ought to avoid. I'd submit that one reason for the Amiga's inability to shake the past is that so many of its users think that bit-banging is the be-all and end-all of programming. To wit, the Vampire crowd. (As far as I can tell.)
It reminds me of a recent "competition" where I saw the advocates of one language produce code that was faster than C/C++. They did this by implementing a different algorithm, which monkeyed with the machine representation of float, converting it to integer, masking with a magic number, then converting back. Sure, that'll work. It's also not a serious argument that the language is really faster than C/C++.
But, yes, I grudgingly admit that, OK, in this case the code would not be portable because the following code will work differently on big- and little-endian code:
smart_t dumb_practice;
dumb_practice.data = 10; printf("%d %d\n", dumb_practice.low, dumb_practice.high);_________________ I've decided to follow an awful lot of people I respect and leave AmigaWorld. If for some reason you want to talk to me, it shouldn't take much effort to find me. |
| Status: Offline |
| |
|
|
|
[ home ][ about us ][ privacy ]
[ forums ][ classifieds ]
[ links ][ news archive ]
[ link to us ][ user account ]
|