Skip to main content

Losing energy & time with Python

No variable declaration

Python does not know variables declaration. Nice for starting programmers. But it comes at a cost.

Python (under the hood) needs to find out what type of variable it deals with. This is done in a smart way, but also at a calculation-time and energy cost.

Is it worth the effort?

I don't think so. Computing always is about modeling the real world in one or the other way. And also in the real world, it is essential to know the type of variable one is dealing with. And most of the time the unit of measurement is loosely interpreted in programming. Sometimes causing real disasters.

Why then making programmers neglecting the real nature of what they are programming and stay in tough with the real world at the cost of the program speed (time and energy)?

The better way

It would be better to have a variable declaration including the applied unit of measure. That way, the program stays in touch with the real physical environment it is used for. And the program does not need to waste time and energy finding out how to deal with a popping up variable. On top of it, the programmer makes fewer errors towards the real use of the program.

Comments

Popular posts from this blog

Brussels could do a better job

Abstract Legal systems should enable good public services, not just complicate things. We (the people) don't really need governments, we need good public services. These days, too little is done to ensure a level playing field for companies on a global scale. Enabling big companies to lock buyers into their influence sphere and squeeze as much as possible money out of them. Below three examples where our public services fail. Selling hardware with preinstalled OS should be illegal If a consumer buys a smartphone or a personal computer, it is always sold with an operating system preinstalled. This fixes the consumer into the commercial influence sphere of the hardware seller. Apparently, the Brussels bureaucracy is not really interested in a plane playing field that enables European suppliers to participate in the smartphone and desktop computing market. Would Brussels really be interested in a plane playing field, it would not be allowed to sell end-user devices (smartphones and pe...

The end of Windows is underway

Thanks to the virtual machine (VM) revolution, slowly but surely UX (unix like) operating systems are becoming the defacto industry standard. All Apple OS-es are UX based. Android is UX based. All internet is UX based. The whole Linux family of OS-es are UX based. The only remaining exception is Windows. The virtual machine revolution and cloud based (UX) computing is nail in the coffin for Windows however. Now  Google acquired Cameyo and with that brings Windows apps to ChromeOS. It is only a matter of time and all the functionality only available on Windows will be available as a SaaS or ( first  in VM mode) on Linux. All companies (for example SolidWorks ) start to offer SaaS, forced by the market. They feel the pressure  of OnShape . Most development work is already done on Linux based machines. Windows is also becoming legacy because there is extra cost involved to make apps for Windows compatible  with the newest generation of hardware (linke Tablets). This is...

Inconsistency in legislation

Good BDO Netherlands July 20 writes about the privacy paradox between PSD2 and the GDPR . PSD2 is a new European directive aimed at payment transactions in Europe. The law has five goals: Competition in the European payment market. Make innovations in the payment system better possible. Protect consumers better. Increase the security of payments. Contribute to a single European payment market. "However, where PSD2 requests open access to (confidential) transaction data, the GDPR imposes stricter requirements with regard to allowing this data and security to be shared." This is just one of the examples showing that the legislative process has completely got out of hand. How come? What is the quality of legislation? And is there something to do about it? How it comes In a word "islands". Too many people are involved in the legislative process in Europe. It certainly concerns thousands and perhaps tens of thousands of people. These work for different governments, diffe...