[Info-vax] Python for x86?

Arne Vajhøj arne at vajhoej.dk
Mon Apr 17 19:33:22 EDT 2023


On 4/17/2023 1:46 PM, Simon Clubley wrote:
> On 2023-04-17, bill <bill.gunshannon at gmail.com> wrote:
>> On 4/17/2023 8:15 AM, Simon Clubley wrote:
>>> Besides, how would you even _use_ C or C++ as a scripting language
>>> in (for example) Blender anyway ?
>>
>> Any task you can do with a scripting language you can do with a real
>> language.  Picking the right language for the job is part of what used
>> to be software engineering.  But then, if your not going to have an
>> engineer design and build your software.  Let's apply that to other
>> tasks like bridges.  I can build nice bridges with Lego blocks so I
>> should be able to design and build the next big highway bridge.
> 
> Bill, there is a vast, vast, world out there that you are very clearly
> unaware of. The act of typing a program into an editor, and then
> compiling it into executable architecture-specific machine code from
> a command line is only a small part of the computing world.

True.

> Do you even know what Blender is (for example) ?
> 
> Here is a link I posted previously:
> 
> https://docs.blender.org/api/current/info_overview.html
> 
> How exactly would you use C or C++ to do scripting in such an environment ?

I don't think there is anything preventing such a thing.

Someone would need to develop a C interpreter or use a
callable C compiler.

I have never heard about such for C, but I cannot see any technical
reasons why it would be impossible.

The reason that it has not been done is that C would be a terrible
language for that purpose.

An embedded scripting language:
* should be very high level / powerful aka lot of functionality
   per line of code
* should not require any "how computers actually work" stuff, but
   let the developers just express the desired logic without worrying
   about data types, memory allocation and deallocation etc.

That is not C.

That is Python.

Arne




More information about the Info-vax mailing list