TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Fe – An emerging smart contract language for the Ethereum blockchain

114 pointsby 0xedbover 3 years ago

8 comments

miohtamaover 3 years ago
Another Solidity alternative is Vyper. It is statically typed, safe, Pythonic approach.<p><a href="https:&#x2F;&#x2F;vyper.readthedocs.io&#x2F;en&#x2F;stable&#x2F;" rel="nofollow">https:&#x2F;&#x2F;vyper.readthedocs.io&#x2F;en&#x2F;stable&#x2F;</a><p><a href="https:&#x2F;&#x2F;twitter.com&#x2F;vyperlang" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;vyperlang</a><p>Vyper is being used in Curve and Yearn (both billions of dollars of TVL): <a href="https:&#x2F;&#x2F;ethereum.org&#x2F;en&#x2F;developers&#x2F;docs&#x2F;programming-languages&#x2F;python&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ethereum.org&#x2F;en&#x2F;developers&#x2F;docs&#x2F;programming-language...</a>
评论 #29449507 未加载
评论 #29449708 未加载
mgraczykover 3 years ago
For those not familiar with Solidity, there is a peculiarity in the &quot;ABI&quot; that makes it painful to interop between languages.<p>In solidity, there are types called &quot;contracts&quot; which are like classes in other languages. When you call a function in a different contract, the dispatch is routed using the first few bytes of the has of the signature [1].<p>For example, to transfer ERC-20 tokens you dispatch using `hash(transfer(address, uint256))[:4]`, meaning that you put those first four bytes at the beginning of the data that you pass to the receiving contract.<p>Just like the native world, this causes a problem when you try to interface between different languages. In Fe, the types have different names so this hashing scheme can&#x27;t work without a translation layer. From some of the issues it looks like interoperability may be a problem [2]. That&#x27;s ok if you write all the contracts that your dApp interacts with, but as time goes on dApps interact and call into one another more and more often.<p>There are probably also lots of opportunities here for exploiting confusion at these boundaries, so if you&#x27;re inclined and know how to use tornado you may be able to make quite a bit of money off contracts that use Fe.<p>[1] <a href="https:&#x2F;&#x2F;docs.soliditylang.org&#x2F;en&#x2F;v0.8.10&#x2F;abi-spec.html#function-selector" rel="nofollow">https:&#x2F;&#x2F;docs.soliditylang.org&#x2F;en&#x2F;v0.8.10&#x2F;abi-spec.html#funct...</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;ethereum&#x2F;fe&#x2F;issues&#x2F;592" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ethereum&#x2F;fe&#x2F;issues&#x2F;592</a>
评论 #29452242 未加载
评论 #29452125 未加载
vertakover 3 years ago
To any Fe developers reading this: please put a non-trivial code snippet of Fe, with code comments that highlight the improvements over Solidity, front and center on the README.<p>I am a longtime smart contract developer who has been burned by Solidity’s downsides so I am excited about new EVM languages. I’ve read the Fe README, the announcement blog post, and the Uniswap v2 examples, but still have no concrete set of improvements over Solidity that I can point to. Maybe it’s just because things are still early, but from 15 minutes looking at Fe it still seems like Solidity but this a Pythonic syntax. As a Solidity dev, I want to see concretely how Fe improves on my existing smart contract language.<p>Thank you for pushing the frontier on smart contract development! I feel we’re in the very beginning of smart contract development and languages like Fe can be the path towards preventing tons of these hacks we see every week.
评论 #29452476 未加载
评论 #29451033 未加载
Fire-Dragon-DoLover 3 years ago
I started studying Solidity recently and found that code sharing and reuse is done through inheritance.<p>What&#x27;s the reasoning behind this? I thought we have a lot of documentation about inheritance being bad, but in Solidity not only this is core, but multiple inheritance is also core. This is then combined with (occasional) implicit access to permanently stored data, and with something that I can only describe as function inheritance.<p>While discovering this, I started having the thought that it was done on purpose (easy to find faulty contracts that could be hacked for money). This was a nasty thought, indeed, but I found a lot of anti-features.
egberts1over 3 years ago
Fe? Iron-clad contract?<p>Nice pun.
评论 #29459563 未加载
Swizecover 3 years ago
&gt; Decidability by limitation of dynamic program behavior<p>This claim sounds suspicious. If the authors really solved this, they have a bright future. A turing award for sure.
评论 #29449339 未加载
评论 #29449338 未加载
评论 #29449739 未加载
评论 #29452918 未加载
sfjailbirdover 3 years ago
And still not a single example of a good real world use case. I would love to be proven wrong, but all answers to this question I have seen so far devolve into a bunch of self-referential babble that leaves you no wiser at the end of it.<p>And I&#x27;m saying this as a fan of cryptocurrencies and someone who wants to see them succeed.
评论 #29452241 未加载
评论 #29449589 未加载
评论 #29449845 未加载
评论 #29450137 未加载
评论 #29449987 未加载
评论 #29449656 未加载
评论 #29450535 未加载
评论 #29449851 未加载
评论 #29450097 未加载
评论 #29450546 未加载
评论 #29449581 未加载
评论 #29449894 未加载
评论 #29450014 未加载
评论 #29450191 未加载
评论 #29449560 未加载
评论 #29450723 未加载
评论 #29450179 未加载
评论 #29450843 未加载
评论 #29449659 未加载
评论 #29449643 未加载
评论 #29450052 未加载
评论 #29450122 未加载
评论 #29449838 未加载
MereInterestover 3 years ago
Wait, the cryptocurrency community is going back to smart contracts? I thought the hype had died down there after (1) the DAO hack showed that smart contracts are nothing more than self-funded bug bounties, and (2) the founders using social pressure to override the DAO contract showed that smart contracts are just as vulnerable to human interpretation as any real contract.
评论 #29449307 未加载
评论 #29449445 未加载
评论 #29449995 未加载
评论 #29449422 未加载
评论 #29449647 未加载
评论 #29450605 未加载
评论 #29449615 未加载