On 08/10/2017 12:22, Paul Moore wrote:
When developing scripts, applications, or any form of code, I use good
ideas from anywhere, as I doubt that I have the monopoly on knowing
the perfect way to write code. Some of those good ideas come from
Unix-based systems. That's not "because Linux is so much better", it's
because someone other than me had a good idea, and I acknowledge the
fact.
When developing code I use whatever tools and techniques I like.
But if I want to someone else to build one of my applications, I make it
as easy as possible for them, even to to the extent of translating it to
a language that they will be able to build.
Here, for example, is a C compiler (which, actually, is not written in
C, but is presented as a C program):
www.bcas.freeuk.com/mcc64.c
One file only. But it is only for 64 bits. Build on Windows or Linux
(for Linux it is 'gcc -m64 mcc64.c -omcc -lm'). Runs on either (but
generates code for win64 ABI).
Another: www.bcas.freeuk.com/pcc64.c, a byte-code interpreter, builds
and runs on either OS, one file. That needs a separate byte-code
compiler, www.bcas.freeuk.com/qcc64.c. Again, one file. Again, runs on
either OS. And I believe each file works with any C compiler.
(Actually, I just found it had a dependency on a Windows time function;
I've removed that temporarily for this upload.)
See the pattern here? Simplicity not complexity. Consideration for
others by making life easier.)
--
bartc
--
https://mail.python.org/mailman/listinfo/python-list