Sujet : Re: Python recompile
De : Muttley (at) *nospam* DastardlyHQ.org
Groupes : comp.lang.cDate : 17. Mar 2025, 13:07:34
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vr93a6$3i2s$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
On Sun, 16 Mar 2025 12:06:20 +0000
bart <
bc@freeuk.com> wibbled:
On 16/03/2025 10:06, Muttley@DastardlyHQ.org wrote:
Well does it do anything useful? You seem rather dismissive of including any
kind of OS API with it rendering it effectively useless except as an academic
>
exercise.
>
I first used it as an in-house product over 40 years ago. It was used
internally in my company that developed hardware, for writing test
software. Later it was used to make commercial low-end CAD products,
which included integrated scripting languages.
>
Basically, it could do anything C could do, but more comfortably (I
never managed to switch to C and prefered my product).
Anything C could do so long as you don't include all the standard C libraries
in "anything".
You plucked cpython out your arse and expect me to go download and build it?
Are you fucking kidding me, you think I have nothing better to do with my
time?
>
EXACTLY!
>
It was actually YOU who brought up the Python example, because you
thought that:
>
python file.py
>
for a scripting language with a lead module file.py was a fair
comparison with my product being able to do the same with:
You asked how to run a program in another language with 2 words. I gave you
an example. FWIW python does internally compile the code down to some
intermediate language before it runs it.
It's instant, like turning on a light switch. But using your normal
Linux tools would be more like first building a fire, then using that to
drive a steam-powered generator!
So how would your compiler know what libraries to link with? I imagine its
not a problem if you don't bother with libraries in the first place.
Only by people who don't know what they're doing.
>
I've only been writing compilers since 1979, so you could be right!
I'd find another hobby given no one has heard of any language you've written.
However, 'gcc *.c' worked!
Yes, you can use that old school method and sometimes it does work and leave
an a.out there, but more often that not different modules require different
compilation parameters and it all goes tits up. And thats assuming you don't
get multiple definition errors when it tries to link.