[Info-vax] Python for x86?

Simon Clubley clubley at remove_me.eisner.decus.org-Earth.UFP
Mon Apr 17 13:46:56 EDT 2023


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.

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 really miss the days before software engineering when we had
> domain specific languages and program were actually designed to
> accomplish specific tasks.  Oh wait, we have Agile now and there
> is no longer a need for a design because reaching an endpoint is
> no longer required.
>

In many ways, Python is effectively a domain specific language, but
due to the way the domain knowledge is implemented in Python, the
same language can be used in multiple areas.

>From the above page:

|Here is a simple example which moves a vertex attached to an object named
|"Cube":
|
|import bpy
|bpy.data.objects["Cube"].data.vertices[0].co.x += 1.0
|
|This modifies Blender's internal data directly. When you run this in the
|interactive console you will see the 3D Viewport update.

How exactly is that not effectively a domain specific language ?

The same is true for all the other applications that have integrated
Python into them as a scripting and automation language.

Simon.

-- 
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.



More information about the Info-vax mailing list