RE: C++ "sort"
July 9, 2020 at 4:07 am
(This post was last modified: July 9, 2020 at 4:09 am by FlatAssembler.)
(July 6, 2020 at 4:37 pm)Abaddon_ire Wrote:(July 6, 2020 at 10:57 am)FlatAssembler Wrote: Well, the executable programs for 32-bit Linux, 64-bit Linux, 32-bit Windows and FreeDOS are all available in this ZIP-archive, and at least one of them should be relatively easy to run on any actual computer of today. And compiling it for some other i686-compatible platform (basically, any computer less than 20 years old running whichever operating system) should also be easy. Yeah, it's written in my own programming language, but the compiler for it can be run in Duktape, that is, on any platform with a C99 compiler (including FreeDOS), and it (in this case) generates assembly compatible with GNU Assembler (also with archaic versions of it). So, I see no reason why having to work on some other computer than you usually work on would make it hard to run my program.
Why? You already stated you identified the error and it was not yours. I see no purpose to it.
That was about a different program. Nevertheless, I figured this Heisenbug by myself, it's about running out of stack memory (but since I used my own stack rather than the system stack, I sometimes got Segmentation Fault and sometimes it just failed silently). Some guy on CodeReview identified even more potential problems.
(July 6, 2020 at 11:32 am)Brian37 Wrote: I was scared of computers growing up. Not in the sense that I didn't like them, I do. But in the sense that I always ran into people smarter than me that made me feel stupid.For me, installing and using programs on DOS is more confusing than writing a simple C++ program. And writing C++ programs for DOS is incredibly complicated, something I've only recently discovered how to do.
The irony is, now that towers are going the way of the dinosaurs, at least with hardware, I am no longer afraid. Much like a car mechanic can tell you what a carburetor is or alternator are. I now know what a heat sink is on a tower and what an expansion slot is and what a motherboard is.
But I never did grasp literal computer language. I can tell you how to erase an entire hard drive and reformat it it in DOS, "Format C:" from the C: promt. But that does not work now. Too many security levels now.
Outside that I did not understand the "If then, go to" language. And C++ was even more confusing to me than DOS.