TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Flow Playground – learn resource-oriented programming

31 点作者 rohamg大约 5 年前

1 comment

rohamg大约 5 年前
Hey Hackernews! We are excited to show you Flow Playground, the first time anyone can write smart contracts in Cadence, our new programming language<p>Cadence pairs linear types with object capabilities to create a secure and declarative model for digital ownership<p>All of this was built with love over the past couple of years by a small yet mighty team based in Vancouver, Canada<p>For more on resources, check out our blog post (<a href="https:&#x2F;&#x2F;hackernoon.com&#x2F;resources-programming-ownership-on-the-blockchain-lzb832d1" rel="nofollow">https:&#x2F;&#x2F;hackernoon.com&#x2F;resources-programming-ownership-on-th...</a>)<p>Smart contracts are uniquely suited to managing ownership of valuable assets, but most programming languages – even those designed specifically for smart contracts – don’t have any native abstractions for managing ownership, until Resources.<p>Resources have 3 rules:<p>1. Each Resource exists in exactly one place: no duplication, double-spend, or accidental deletion<p>2. Ownership of a Resource is defined by where it&#x27;s stored: no central ledger or smart contract<p>3. Access to methods on a Resource is limited to the owner<p>Check it out and let us know what you think