Posts

Showing posts from November, 2019

Side focus of programming again to renew m drive

I have a renewed interest in C and Ada programming.  Since I worked on a project for a long time that was ultimately in vain -- a shell written in pure Ada -- I have realized that with the Ada-run-time limitations, the only way I can create a shell that works on multiple operating systems is to write in the code base that is most common between them.  That is C.  Objective C is the primary for macOS, C++, and a little more and more C#, is the primary for MS Windows, but those directly support C calls and syntax and C is the primary for Linux, so there you go.  C preprocessing also allows me to write conditional code for each operating system, so that I can artificially create the kind of interface to the system that matches one Ada library regardless of what system it is compiled on.  These are the definitions I have fortunately discovered:     __linux__       Defined on Linux     __sun        ...