Welcome to the world of Web3, where cryptocurrencies, blockchain, and a unique culture converge. Entering the world of Web3 can be both thrilling and overwhelming, especially when faced with the seemingly cryptic language used by enthusiasts. Don't worry if you feel they sound like some secret codes, we are here to unravel their meaning. In this article, we are going to introduce [EVM+].
EVM+ represents an enhancement to the Ethereum Virtual Machine (EVM), as outlined in its proposal: "EIP: Decimal math for EVM. If EVM is a basic calculator, EVM+ is a scientific calculator." It introduces advanced mathematical capabilities directly into Ethereum's core computation environment through the addition of decimal float OPCODEs. These OPCODEs allow for more sophisticated arithmetic and mathematical functions, such as exponential, logarithmic, and trigonometric calculations, making EVM+ a powerful tool for applications in finance, science, and beyond.
(Source: EVMPlus, Github)
EVM+ enhances the standard EVM by implementing new OPCODEs specifically designed for high-precision decimal calculations. These include DECADD for addition, DECNEG for negation, DECMUL for multiplication, and DECINV for finding the multiplicative inverse. Furthermore, it supports complex mathematical functions like DECEXP (exponential), DECLN (logarithm), DECSIN (sine), among others. Values are precisely represented up to the maximum precision allowed by a int256 data type, ensuring accurate results across a wide range of inputs.
The implementation utilizes a variety of mathematical techniques, including Taylor series and continued fractions, to guarantee the convergence and accuracy of calculations. The system is built on a fork of Go Ethereum (geth) and incorporates gas calculations from the ground up to manage computational costs effectively.
(Source: EthGlobal)
EVM+ was developed as a project during ETHOnline 2023, where it emerged as the winner of ETHOnline Hackathon. The initiative aimed to bridge the gap between Ethereum's computational capabilities and the demands of applications requiring complex and precise mathematical operations. By enabling such functionalities, EVM+ opens new possibilities for developers in fields like mathematical finance, machine learning, and digital arts, who can now leverage Ethereum for their computationally intensive applications.
(Source: EthGlobal)
The integration of EVM+ significantly enhances the computational capabilities of the Ethereum blockchain. By incorporating decimal arithmetic directly into the Ethereum Virtual Machine (EVM), EVM+ extends Ethereum's utility beyond simple transactional functionalities to more complex scientific, financial, and artistic applications. This advancement allows for the accurate execution of calculations that are crucial in fields like mathematical finance, where precise computation of formulas such as the Black-Scholes model for options pricing is required.
Financial Modeling: EVM+ enables the implementation of intricate financial models directly on the blockchain. For instance, the Black-Scholes formula, which is used to determine the fair price of options, can be computed efficiently and accurately within smart contracts. This capability reduces reliance on external systems for financial analysis, thereby enhancing the blockchain's autonomy and security.
(Source: EVMPlus, Github)
Scientific Calculations: With the ability to perform high-precision calculations, scientists and researchers can leverage Ethereum for simulations and experiments that require rigorous mathematical computations. This includes solving differential equations, performing statistical analysis, and more, all within a decentralized environment.
Digital Art and Gaming: Artists and game developers can utilize the advanced mathematical functions of EVM+ to create complex generative art and sophisticated game mechanics. For example, using trigonometric functions to generate patterns or calculate physics interactions in games directly on the blockchain.
Machine Learning: The decimal arithmetic capabilities of EVM+ pave the way for implementing basic neural network models like sigmoid-activated neurons. This introduces the potential for decentralized machine learning applications where models could be trained and run entirely on-chain.
EVM+ is not just a technical upgrade; it is a gateway to expanding the Ethereum ecosystem's applicability and functionality. Integrating advanced mathematical functions directly into the EVM, EVM+ invites a wider range of developers and industries to explore the possibilities of building on Ethereum. Whether you're developing smart contracts for financial models, creating simulations, or exploring new forms of digital art, EVM+ provides the tools necessary for innovation and precision in blockchain computing.