Algorand courts Python devs in ‘seismic change’

The Algorand Foundation touts the network as first to go after pool of 10 million global developers

article-image

Python and Adobe Stock modified by Blockworks

share

A choice of programming language is not the be-all and end-all of smart contract development. But it does influence the security, efficiency and accessibility of blockchain applications.

Each language comes with its own set of capabilities and limitations that can impact how contracts are executed, the potential for vulnerabilities, and the ease of finding and fixing errors. 

Algorand is becoming the first layer-1 blockchain to adopt Python as its canonical language, in what the Algorand Foundation Chief Technology Officer John Woods calls a “seismic change.”

“Python is a massive step forward on the roadmap towards removing all barriers to entry for developers,” said Woods.

With over 10 million developers worldwide, it’s perhaps surprising that the language has been historically overlooked by smart contract platforms, given that the total pool of specialized smart contract developers remains relatively tiny.

Read more: Electric Capital finds veteran Web3 devs are on the rise

Mariano Dominguez, software developer at Vestige.fi, an Algorand-based DeFi dapp, told Blockworks there are a few reasons for this.

For one, “most chains that have a smart contract execution layer operate in a resource constraint scenario that isn’t typical in modern development environments,” Dominguez said. “Because of this, it’s oftentimes easier and cheaper to build a Domain Specific Language (so Solidity, PyTEAL/TEAL, or Move for example), than it is to integrate a “normal” language since you can exercise these limitations from the get go.”

TEAL was Algorand’s earlier smart contract language and PyTEAL was a mechanism to call TEAL instructions from a Python file.

The difference now, the Foundation told Blockworks, is that native Python is compiled to the bytecode of the Algorand Virtual Machine (AVM), making it compatible with Python-native tooling, including testing suites.

That sets it apart from both PyTEAL and languages like Vyper for the EVM, which are only “Python-like.”

Read more: Move Chains are making moves

However, Dominguez added, Python’s “simplistic nature…makes it hard to adapt to a blockchain context.”*

That simplicity is a double-edged sword, agreed Deian Stefan, co-founder and chief scientist at Cubist, a developer of hardware-backed, non-custodial key storage and signing infrastructure.

“I think it’s fair to say the barrier to entry for the average Python developer is lower,” Stefan told Blockworks. However, he added, “from our experience working with different teams in the ecosystem: It’s not [yet] clear that the barrier is the language so much as everything around it.”

Stefan finds technical factors related to core platform performance, the ease of end-user onboarding, as well as non-technical factors like liquidity and network effects as being more significant.

While Algorand offers technological advantages like high throughput and low transaction fees, the network has historically struggled to attract a critical mass of compelling use cases and dapps, despite its strong roots in foundational cryptography and theoretical computer science.

Algorand’s latest effort, AlgoKit 2.0, is an attempt to “build tools that meet devs where they are,” Dominguez said, estimating that for a skilled Python dev, time needed to make the jump to writing smart contracts would shrink from “weeks” to “a matter of hours.”

It also helps Vestige’s own business, enabling the dapp to integrate a new dex written in Python for Algorand within days, or even quicker with access to the source code, he said.

“At the end of the day, the faster you can go from idea to product, the more things you can try out and the more innovation can occur,” Dominguez said.

But will it be safe?

Dean Tribble, CEO of smart contract platform developer focused on Javascript, Agoric OpCo, has his doubts.

“It’s a non-starter from a security perspective,” Tribble told Blockworks, citing technical reasons that Python is widely used for data analysis by the likes of Google, but not for applications managing trillions of dollars.

Read more: Solving Web3’s developer problem: Web2 remains hesitant

“We’ve already paid $10 billion dollars in losses for the current Solidity DeFi contracts that have been battle tested and survived,” Tribble said. “This is not to suggest we should be afraid to use contracts out there — they’ve paid the price (and it’s a steep check!) — but doing new, innovative work is very dangerous.”

For both adoption and security, the ability to use existing libraries and design patterns like battle-tested OpenZeppelin contracts in Solidity is key to the success of any language, Cubist’s Stefan said, noting that nuts and bolts factors like securely managing cryptographic keys, testing infrastructure deployments and executing upgrades are more important in practice.

Read more: Stellar sparks smart contract upgrade — and it’s not an EVM

AlgoKit 2.0 ships with a new templating system, a comprehensive library of smart contract templates, and all necessary infrastructure to run applications locally, according to the Algorand Foundation.

The hope is to court a range of developers, from students fresh out of computer science classes to advanced AI and machine learning researchers.

For dapp users, the chain, programming language or other technical factors shouldn’t matter, according to Dominguez. What does is “that the app they’re using solves the need that they have.”

“I think with Algorand the type of products and solutions that can be built are on par, and in some cases even better, than those that employ legacy systems,” Dominguez said, pointing to real estate tokenization platform Lofty as an example, where “people can invest in individual properties that they proceed to own as a legal DAO, without going through a custodian.”

Customers of these dapps will care about security, whether or not they understand the technical underpinnings. There, Tribble was skeptical.

“It is not likely to me that Python will ever be a language that you could run robustly on a blockchain,” the Agoric CEO said.

As for the number of Python developers? It’s a non-issue, he said: “Most Python developers already know JavaScript!”

Updated Friday, Apr. 26, 2024 at 5:20 am — Clarification on the work of Cubist.


*Such as the lack of static typing and uint math — arithmetic operations using unsigned integers to avoid negative numbers.


Start your day with top crypto insights from David Canellis and Katherine Ross. Subscribe to the Empire newsletter.

Explore the growing intersection between crypto, macroeconomics, policy and finance with Ben Strack, Casey Wagner and Felix Jauvin. Subscribe to the On the Margin newsletter.

The Lightspeed newsletter is all things Solana, in your inbox, every day. Subscribe to daily Solana news from Jack Kubinec and Jeff Albus.

Tags

Upcoming Events

Salt Lake City, UT

MON - TUES, OCT. 7 - 8, 2024

Blockworks and Bankless in collaboration with buidlbox are excited to announce the second installment of the Permissionless Hackathon – taking place October 7-8 in Salt Lake City, Utah. We’ve partnered with buidlbox to bring together the brightest minds in crypto for […]

Salt Lake City, UT

WED - FRI, OCTOBER 9 - 11, 2024

Permissionless is a conference for founders, application developers, and users. Come meet the next generation of people building and using crypto.

recent research

Research Report Templates (1).png

Research

Solana Mobile is a highly ambitious foray into the mobile consumer hardware market, seeking to open up a crypto-native distribution channel for mobile-first applications. The market for Solana Mobile devices has demonstrated a phenomenon whereby external market actors (e.g. Solana-native projects) continuously underwrite subsidies to Mobile consumers. The value of these subsidies, coming in the form of airdrops, trial programs, and exclusive NFT mints, have consistently covered the cost of the phone and generated positive returns for consumers. Given this trend in subsidies, the unit economics in the market for Mobile devices, and the initial growth rate and trajectory of sales, it should be expected that Solana mobile can clear 1M to 10M units over the coming years. As more devices circulate amongst users, Solana Mobile presents a promising venue for the emergence of killer-applications uniquely enabled by this mobile-first, crypto-native distribution channel.

article-image

Crypto’s Wild West era is over — it’s time to embrace regulation to secure the future of digital assets

article-image

Plus, Solana has now surpassed Ethereum in trailing 30-day decentralized exchange volume

article-image

Polymarket betters say Kamala Harris has better odds than Biden of winning against Trump

article-image

Bitcoin’s down Tuesday, while ETH-correlated assets like ENS and ARB see growth

article-image

Plus, let’s check on the nine ether ETFs now trading on US exchanges