py2hs VS vyper

Compare py2hs vs vyper and see what are their differences.

py2hs

A complementary resource that helps python programmers to learn Haskell (by cffls)

vyper

Pythonic Smart Contract Language for the EVM (by vyperlang)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
py2hs vyper
2 11
37 4,773
- 0.4%
3.0 9.5
about 1 year ago 7 days ago
Python Python
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

py2hs

Posts with mentions or reviews of py2hs. We have used some of these posts to build our list of alternatives and similar projects.
  • [py2hs] - An informative repository for Python developers who are learning Haskell
    1 project | /r/CardanoDevelopers | 14 Nov 2021
    As a practice and a form of learning reinforcement, I created a project, py2hs, to document how some frequently used programming patterns (e.g. functor, applicative) are implemented in Python and Haskell respectively. If you are a Python developer who just started learning Haskell, hope you can find this material helpful in some way.
  • Can I use python to build apps/sites on the Cardano network?
    1 project | /r/cardano | 8 Apr 2021
    I am a python developer, who recently started learning Haskell. To reinforce my knowledge, I created a gihub repo to document the similarities and differences I found between python and Haskell. Hope it helps for some python developers who are interested in leaning Haskell and building apps on Cardano. https://github.com/cffls/py2hs

vyper

Posts with mentions or reviews of vyper. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-08.
  • Create your own Uniswap DeFi Application🦄! From scratch using Vyper & Python🐍
    3 projects | dev.to | 8 Dec 2023
    🚧 To do this, we need to create a mocks/ folder inside the contracts/ folder, and within it, create an Token.vy file. You can add the code from the following link to this file: Vyper ERC20 Token.
  • Daily General Discussion - February 28, 2023
    2 projects | /r/ethfinance | 27 Feb 2023
    Patrick Collins, CEO of uh "Chain Accel / Cyfrin / Alpha Chain" (video, kinda) gave a different kind of talk than most, focusing on the differences between Solidity and Vyper in terms of their compilation strategies and optimizations. Maybe it's just nice to see a talk that's just a collection of technical fun facts rather than trying to shill me on their product. I'll admit I didn't realize people still used Vyper, but I'm not a smart contract dev and their github is still active at least. An interesting look into compiled EVM bytecode/opcode.
  • Challenge #0: 🎟 Simple NFT Example | Speedrun Ethereum With Vyper 🐍
    3 projects | dev.to | 15 Feb 2023
    Feel stuck? Take a look at the Vyperlang Official Implemenation
  • Introducing AMM and Proof of Trade Protocol.
    1 project | /r/ethfinance | 17 May 2022
    Swap.Dance is an Ethereum dApp which allows anyone to swap ERC20 tokens and ETH with low slippage. Proof of Trade concept provides a new type of staking mechanism for LP providers. Smart contracts were deployed on Vyper v0.3.3 and are immutable and not upgradeable. Github.
  • A Harmony DAO opinion: Harmony must steer away from its DAO focus, or a new anti-dao leader must take over.
    2 projects | /r/harmony_one | 12 Apr 2022
    Vyper - Pythonic Smart Contract Language for the EVM
  • ERC20 Token with Vyper and Brownie
    2 projects | dev.to | 29 Dec 2021
    Create a new file named SampleToken.vy in contracts/ directory. Then implement a smart contract while referring to the Vyper ERC20 example.
  • I know Python and want to enter blockchain programming
    1 project | /r/Python | 11 Dec 2021
    How about vyper? https://github.com/vyperlang/vyper
  • What are some good open-source repositories that I can contribute to as a beginner blockchain developer?
    10 projects | /r/ethdev | 6 Oct 2021
    1) Research the community that surrounds the project and see how the general ecosystem works. Normally, on Discord or Telegram you can start talking with devs and get a deeper understanding of the project. 2) Try to narrow down, which kind of project you want to contribute. A DEX / DeFi project like UniSwap or SushiSwap or yarn.finance? Or more like a tool like MetaMask? Or even, more like an Ethereum client like Besu, Geth or Erigon? Or even, Vyper or Solidity?
  • Can I Contribute Through Python?
    2 projects | /r/ethdev | 3 Jun 2021
    You could try Vyper if you'd want to try developing smart contracts.
  • Ethereum Isn't Fun Anymore
    7 projects | news.ycombinator.com | 22 Feb 2021
    > I need a hero, and by that, I mean that I need a usable methodology for building scaleable decentralized apps. Yes, you've heard that right. We don't need more "Ethereum killers" that can do 10x more tx/s than Ethereum. Those are useless.

    Having worked on large Ethereum smart contracts (running an auction on chain) over two years, I fully agree with this. Ethereum needs better smart contract languages, better compilers and better dev tooling.

    As our smart contract written in Vyper (for ease of auditing) grew larger and larger, eventually we failed to deploy on the testnet, and closer inspection reveal that the compiler was blowing up code size which I had to patch[0]. Down the line upstream further increased gas costs by emitting code that zeroed out every member of an array (note the EVM already has all memory set to 0). To support efficient insertion/deletion of bids we had to handroll a skip list on the blockchain(!), because there are no Vyper libraries.

    On the language development side, things don't look too pretty either, I ended up having to write an EVM assembler from scratch[1], but deeper still are problems such as a lack of a separate call stack in EVM, so procedure calls always end up clunky and implementation-dependent.

    Perhaps eWASM will alleviate some of these concerns. But until then, the entire dev process for writing smart contracts is painful.

    [0] https://github.com/vyperlang/vyper/pull/1488

    [1] https://github.com/ActorForth/evm-assembler/blob/master/docs...

What are some alternatives?

When comparing py2hs and vyper you can also consider the following projects:

lambda-calculus-interpreter

brownie - A Python-based development and testing framework for smart contracts targeting the Ethereum Virtual Machine.

stylish-haskell - Haskell code prettifier [Moved to: https://github.com/haskell/stylish-haskell]

solc-select - Manage and switch between Solidity compiler versions

viper - Pythonic Smart Contract Language for the EVM [Moved to: https://github.com/vyperlang/vyper]

language-python-test - Code for testing the language-python library

yearn-protocol - Yearn smart contracts

py-evm - A Python implementation of the Ethereum Virtual Machine

curve-contract - Vyper contracts used in Curve.fi exchange pools.

solana - Web-Scale Blockchain for fast, secure, scalable, decentralized apps and marketplaces.

market-maker-keeper - Maker Keeper Framework: Market maker keepers for OasisDEX, EtherDelta, 0x (RadarRelay, ERCdEX), Paradex, DDEX, IDEX, Bibox, Ethfinex, GoPax, HitBTC, TheOcean, OKEX and Gate.io.

turbo-geth - Ethereum implementation on the efficiency frontier