[Info-vax] Python on VMS

Arne Vajhøj arne at vajhoej.dk
Fri Jan 18 15:35:49 EST 2019


On 1/17/2019 9:32 PM, Dave Froble wrote:
> On 1/17/2019 7:46 PM, Arne Vajhøj wrote:
>> On 1/17/2019 4:57 PM, Dave Froble wrote:
>>> On 1/17/2019 12:46 PM, Arne Vajhøj wrote:
>>>> But Python almost always have something and more important
>>>> something that is relative easy to use.
>>>>
>>>> Python is a language where one usually get positive
>>>> surprised if one need top get something done without
>>>> too much hassle.
>>>
>>> No, such products are for those who will not or can not develop their
>>> own.
>>
>> Or those that even though they could develop their own
>> don't want to waste their time doing something in a cumbersome
>> way when easier ways exist.
> 
> Well, that depends ...
> 
> Sounds like an echo ...
> 
> If it's something to be done once, or a few times, then yes, tools 
> already available are great.
> 
> But what if performance is an issue, or the tools don't do 100% exactly 
> what you want?
> 
> We're running services that get beat on all day long.  Sometimes very 
> heavily. Performance is a critical issue.  I'm thinking that if I 
> cobbled something together from off the shelf tools, I may not have the 
> performance to do the job.

Obviously one need to evaluate any library/tool for
the specific context.

There is almost always something available.

But far from all may be suited for the context.

Performance requirements is one among many
other things to consider.

Some of the stuff out there is actually designed
for very high performance. A few random examples:
Hadoop clusters with over 4000 nodes, Kafka
clusters processing over 1 trillion messages
per day.

Other is not.

We talked about Python and requests package for
RESTful web service client.

That is really 3 choices:
* JSON/HTTP as protocol
* Python as programming language
* requests as web service library

My expectation would be that it could do
around 300 requests/second or 18000 requests
per minute.

If you need more then you will need to change
one or more of the choices.

But for many it will be sufficient.

Python is quite well liked by many.

But Python is not the right solution for all
problems.

Maybe you need something custom CPU intensive code
and need it compiled (either AOT or JIT).

Maybe you want to use a threading model that does
not work with CPython GIL.

Maybe you prefer a static strong typed language
to catch some bugs in the compiler.

Arne



Arne





More information about the Info-vax mailing list