HomeTech PlusTECH & OTHER NEWSProgramming languages: Why Python hasn't taken off on mobile, or in the...

Programming languages: Why Python hasn’t taken off on mobile, or in the browser – according to its creator

Guido van Rossum, the creator of the hugely popular Python programming language, has given this thoughts on the language for the browser, mobile devices and upcoming rivals like Julia.

Van Rossum, the former “Benevolent dictator for life” of Python has, since November, been working at Microsoft as a distinguished engineer, helping the software giant give back to the Core Python (CPython) community which has helped make his creation one of the most popular programming languages today, thanks to the rise of machine learning and data science.

He’s made a few announcements over the past weeks in line with the PyCon 2021 conference, including that there is a plan to double the speed of CPython. Microsoft has funded a small Python team led by Van Rossum to “take charge of performance improvements” in the interpreted language.

But mobile app development is one of the key growth fields that Python hasn’t gained any traction in, despite it dominating in machine learning with libraries like NumPy and Google’s TensorFlow, as well as back-end services automation. Python isn’t exactly boxed into high-end hardware, but that’s where it’s gravitated to and it’s been left out of mobile and the browser, even if it’s popular on the back end of these services, he says.

Why? Python simply guzzles too much memory and energy from hardware, he admits. For similar reasons, he says Python probably doesn’t have a future in the browser despite WebAssembly, a standard that is helping make more powerful applications on websites.

Mobile app development in Python is a “bit of a sore point” says van Rossum in a recent video Q&A for Microsoft Reactor.

“It would be nice if mobile apps could be written in Python. There are actually a few people working on that but CPython has 30 years of history where it’s been built for an environment that is a workstation, a desktop or a server and it expects that kind of environment and the users expect that kind of environment,” he said.

“The people who have managed to cross-compile CPython to run on an Android tablet or even on iOS, they find that it eats up a lot of resources,” he said. “Compared to what the mobile operating systems expect, Python is big and slow. It uses a lot of battery charge so if you’re coding in Python you would probably very quickly run down your battery and quickly run out of memory,” he says.

But Python is popular for back-end web services, he argues, though he admits that JavaScript dominates front-end web development. Increasingly, Microsoft’s JavaScript superset TypeScript is being used by web developers.

“Python is a pretty popular language [at the back-end]. At Google I worked on projects that were sort of built on Python, although most Google stuff wasn’t. At Dropbox, the whole Dropbox server is built on Python. On the other hand, if you look at what runs in the browser, that’s the world of JavaScript and unless it translates to JavaScript you can’t run it,” van Rossum noted.

“I don’t mind so much different languages have to have different goals i mean nobody is asking Rust when you can write Rust in the browser at least that wouldn’t seem a useful sort of target for Rust either. Python should focus on the application areas where it’s good and for the web that’s the backend and for scientific data processing.”

Python’s benevolent dictator also had some words for would-be rival language in scientific computing and machine learning, Julia, a language that is gaining in popularity but doesn’t have the wealth of machine learning and data science libraries Python has.

Developers wonder whether Julia will remain a niche language or if it has the potential to reach the heights of Python. van Rossum says Julia, which emerged from MIT, was an “interesting take on something Python-like.”

“[Julia] has enough details that are very similar to Python that when you realize, oh, but all the indexing is one ranges are inclusive instead of exclusive, you think arrgggh!”

“Nobody should ever try to code in Julia and in Python on the same day,” he joked, describing it as a “niche language” compared to Python.

But he added: “If you’re in that niche, it is superior because the compiler optimizes your code in a way that Python probably never will. On the other hand it is much more limited in other areas and I wouldn’t expect that anybody ever is going to write a web server in Julia and get a lot of mileage out of it.” van Rossum is also fan of Rust but he reckons Google-created Go is the most “Pythonic” of all the new languages.

By ZDNet Source Link

Technology For You
Technology For Youhttps://www.technologyforyou.org
Technology For You - One of the Leading Online TECHNOLOGY NEWS Media providing the Latest & Real-time news on Technology, Cyber Security, Smartphones/Gadgets, Apps, Startups, Careers, Tech Skills, Web Updates, Tech Industry News, Product Reviews and TechKnowledge...etc. Technology For You has always brought technology to the doorstep of the Industry through its exclusive content, updates, and expertise from industry leaders through its Online Tech News Website. Technology For You Provides Advertisers with a strong Digital Platform to reach lakhs of people in India as well as abroad.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

spot_img
spot_img

CYBER SECURITY NEWS

TECH NEWS

TOP NEWS