<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Aimee Z on Medium]]></title>
        <description><![CDATA[Stories by Aimee Z on Medium]]></description>
        <link>https://medium.com/@Aimeedeer?source=rss-cfb4932c204f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*C9ydsuHqTNDjPY1t3HriuQ.jpeg</url>
            <title>Stories by Aimee Z on Medium</title>
            <link>https://medium.com/@Aimeedeer?source=rss-cfb4932c204f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 01:10:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Aimeedeer/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Rust in Blockchain #0 — May 2019]]></title>
            <link>https://medium.com/@Aimeedeer/rust-in-blockchain-0-may-2019-f4e264fa4bb1?source=rss-cfb4932c204f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4e264fa4bb1</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[rust]]></category>
            <dc:creator><![CDATA[Aimee Z]]></dc:creator>
            <pubDate>Fri, 14 Jun 2019 03:25:55 GMT</pubDate>
            <atom:updated>2019-06-14T07:13:09.479Z</atom:updated>
            <content:encoded><![CDATA[<h3>Rust in Blockchain #0 — May 2019</h3><p>Welcome to the first edition of Rust in Blockchain, the hypest newsletter about the hypest combination of technologies.</p><p>Blockchain technology brings together cryptography, mathematics, game theory, and economics to create distributed systems with uniquely powerful security properties. Rust is a high-performance programming language uniquely suited to creating secure distributed systems. Every edition we bring you the latest developer news related to blockchain technology in Rust, with the ambition of building a greater developer community around this family of projects. For more about why developers choose Rust for their blockchain projects, read <a href="https://medium.com/layerscrypto/why-rust-c877fba0ca94">Why Rust</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U2KC7Gycv5IhKGpkdq8ZCQ.jpeg" /></figure><h3>Project updates</h3><h3><a href="https://github.com/mimblewimble/grin">Grin</a></h3><p><a href="https://github.com/mimblewimble/grin/issues/2820">Byteorder crate does not play nicely with our “non-blocking” IO #2820</a> It is entirely possible for a u64 or other multi-byte value here to cause the non-blocking IO to fail on a partial read. So comes the question, Rust IO is kind of janky as they do not get <em>any</em> type safety here in terms of blocking/non-blocking behavior.</p><p><a href="https://github.com/mimblewimble/grin/issues/2779">Consider adopting a new git branching model #2779</a> Having discussed the git branching model, the team finally, decided to stay with the current model, with an action point taken to simplify the documentation for newcomers to understand and follow.</p><p><a href="https://github.com/mimblewimble/grin/issues/2585">Db/store full (forked) blocks cleanup #2585</a> The key takeaway from this thread, was to compact the blocks db periodically to remove historical full blocks from the db older than one week (which is based on the current chain by traversing back from the head of the chain). It was also stated, that you wouldn’t clean forked blocks up and the blocks will remain in the db indefinitely. Please check the thread for more discussion.</p><h3><a href="https://github.com/nervosnetwork/ckb">Nervos</a></h3><h4><a href="https://github.com/nervosnetwork/ckb">CKB</a></h4><p><a href="https://github.com/nervosnetwork/ckb/issues/903">Cross compile x86_64-unknown-linux-musl #903</a> Rocksdb depends on C++ standard library heavily, which might need a real C++ for musl to work.</p><p><a href="https://github.com/nervosnetwork/ckb/issues/626">Static Build CKB on CentOS 7 for exchanges #626</a> A centos 7 install guide.</p><p><a href="https://github.com/nervosnetwork/ckb/issues/562">Write a tool to dump well known hashes into a readable file #562</a> D<a href="https://github.com/doitian">oitian</a> made a tool to dump various hashes into a file and commit that file into the repository.</p><p><a href="https://github.com/nervosnetwork/ckb/issues/549">Memorize hash #549</a> <a href="https://github.com/zhangsoledad">Zhangsoledad</a> suggests fetching hashes from the database instead of computing them.</p><p><a href="https://github.com/nervosnetwork/ckb/pull/859">Feat: Use snappy to compress large messages #859</a> Use snappy to compress large messages (<a href="https://github.com/driftluo">Driftluo</a>), which saves bandwidth with CPU overhead.</p><p><a href="https://github.com/nervosnetwork/ckb/pull/913">New verification model #913</a> Verification model changes.</p><h4><a href="https://github.com/nervosnetwork/ckb-vm">CKB-VM</a></h4><p><a href="https://github.com/nervosnetwork/ckb-vm/pull/61">Chore: add an example named is13 #61</a> <a href="https://github.com/mohanson">Mohanson</a> as a newcomer of CKB-VM contributes an example for easier starting.</p><p><a href="https://github.com/nervosnetwork/ckb-vm/pull/53">Feat: W^X initial implementation #53</a> <a href="https://github.com/xxuejie">Xxuejie</a> adds initial <a href="https://en.wikipedia.org/wiki/W%5EX">W^X</a> implementation to CKB-VM, which also fixes a memory overflow situation in the assembly based interpreter.</p><p><a href="https://github.com/nervosnetwork/ckb-vm/pull/52">Feat: shrink VM’s memory from 16MB to 4MB #52</a> It reduces the load on requesting zero paged memory, providing enough time to come up with a better solution that doesn’t require zero pages. Plus, 4MB is still enough for a lot of use cases.</p><h3><a href="https://github.com/paritytech">Parity</a></h3><h4><a href="https://github.com/paritytech/substrate">Substrate</a></h4><p><a href="https://github.com/paritytech/substrate/issues/2631">How to get an ordered linked_map? #2631</a> <a href="https://github.com/liuchengxu">Liuchengxu</a> has a use case of generating a validator set from the top candidates in the staking module. With the election algorithm which is similar to the one before phragmen, they have to sort the candidates based on their total nominations to get the top ones.</p><p><a href="https://github.com/paritytech/substrate/issues/2605">Question: how to import `blake2_512` into runtime for wasm #2605</a> <a href="https://github.com/thiolliere">Thiolliere</a> explained forimplementing blake2_512 for std and no_std in a similar way to blake2_256, you need to modifie sr-io/with_std, sr-io/without_std and core/executor/src/wasm_executor.</p><p><a href="https://github.com/paritytech/substrate/issues/2566">Smart Contract deployment: Invalid transaction: FullBlock on empty block #2566</a> The team increased the gas block limit to solve the smart contract deployment issue.</p><p><a href="https://github.com/paritytech/substrate/issues/2443">Document storage key generating algorithm #2443</a> A breaking change.</p><h4><a href="https://github.com/paritytech/polkadot">Polkadot</a></h4><p><a href="https://github.com/paritytech/polkadot/issues/148">Node-specific limit on size of parachain candidates to validate. #148</a> <a href="https://github.com/rphmeier">Rphmeier</a> said validate_collation should reject block_data that is too big with an error code indicating that the block data is considered invalid but due to arbitrary reason. Most of which would happen in the validation crate, except for the portion in the CLI.</p><h3><a href="https://github.com/solana-labs/solana">Solana</a></h3><p><a href="https://github.com/solana-labs/solana/issues/4071">Need better architecture for transaction forwarding #4071</a> <a href="https://github.com/pgarg66">Pgarg66</a> found the problem that, the current transaction forwarding logic may not keep up with leader rotation, and in turn cause unnecessary load on the network and Proposed solutions as well.</p><h3><a href="https://github.com/zcash/librustzcash">Zcash</a></h3><p><a href="https://github.com/zcash/librustzcash/issues/76">Plans for pairing and crates.io? #76</a> <a href="https://github.com/afck">Afck</a> said, there are several projects that use pairing and would like to contribute to it. How does Zcash deal with PRs merge?</p><h3>Challenges</h3><p><a href="https://github.com/solana-labs/solana/issues/4336">Long chain attacks could disrupt the network #4336</a> (Source: Solana)</p><p>Problem long chain generated with a faster ASIC could lock the node out from the real network. Proposed Solution The proposed block should be near the local generated PoH before a node considers voting for it.</p><h3>Learning</h3><p><a href="https://gist.github.com/apiraino/76d878104d3b6f649e6a3db8f6510914">CKB Testnet First Run</a></p><p>Antonio shares his experience on how to start mining on CKB testnet.</p><p><a href="https://medium.com/@jimmysong/why-blockchain-is-hard-60416ea4c5c">Why Blockchain is Hard</a></p><p>Blockchain is used way too much as a buzzword to sell a lot of useless snake oil. The faster we get rid of the hype, the better off long-term we’ll all be.</p><p><a href="https://medium.com/@jimmysong/lessons-learned-from-teaching-over-500-developers-or-why-you-should-level-up-ad0e48bce067">Lessons Learned from Teaching Over 500 Developers or: Why You Should Level Up</a></p><p>To understand Bitcoin deeper through reading/coding/teaching.</p><p><a href="https://medium.com/@kevinmobrien1/instead-of-solving-the-blockchain-trilemma-focus-on-building-a-vibrant-cryptoeconomy-7064acb41a26">Instead Of Solving The ‘Blockchain Trilemma’, Focus On Building A Vibrant Cryptoeconomy</a></p><p><a href="https://medium.com/oasislabs/blockchain-flavored-wasi-50e3612b8eba">Blockchain-flavored WASI</a></p><p>General purpose computation on the blockchain using Web Assembly System Interface (WASI).</p><p>[Video] <a href="https://www.youtube.com/watch?v=HAOeR9Xh--A">Understanding Blockchain Programming Languages in 7 Minutes.</a></p><p>[Video] <a href="https://www.youtube.com/watch?v=vJdT05zl6jk&amp;list=PL1rXPCvogp_SsWBI_JpXFypBDhbgXVrSE">Blockchain in Rust series</a></p><p>[Audio] <a href="https://anchor.fm/stephan-livera/episodes/SLP73-Tamas-Blummer---Rust-Bitcoin--Threats-to-Bitcoin--Bitcoin-Data-Science-e44dhk">Rust-Bitcoin, Threats to Bitcoin &amp; Bitcoin Data Science</a></p><h3>Events</h3><p>June 6–14 | Online</p><p><a href="https://workfork.io/hackathon_dutchblockchainweek">The WorkFork Online Hackathon</a></p><p>June 8–9 | Breaking Bitcoin, Amsterdam</p><p><a href="https://breaking-bitcoin.com/">Breaking Bitcoin [Training &amp; Hackathon]</a></p><p>June 14–16 | San Francisco</p><p><a href="https://www.eventbrite.com/e/buidl-san-francisco-blockchain-hackathon-tickets-56603971001">BUIDL San Francisco [Blockchain Hackathon]</a></p><p>June 20 | Zurich Switzerland</p><p><a href="https://hackathon.trustsquare.ch/">Swiss Blockchain Hackathon</a></p><p>June 24–26 | Zug, Switzerland</p><p><a href="https://www.cryptovalleyconference.com/">Crypto Valley Conference</a></p><p>June 28–29 | Firenze FI, Italy</p><p><a href="https://www.rustlab.it/">RustLab</a></p><h3>Careers</h3><p>[Report]</p><p><a href="https://media.consensys.net/the-blockchain-jobs-report-2019-b2b911426c34">The Blockchain Jobs Report, 2019</a></p><p>Cryptape</p><p><a href="https://twitter.com/workfork_hq/status/1133424215087042560?s=12">Senior Rust Developer</a></p><p>Parity</p><p><a href="https://www.parity.io/jobs/#berlin-blockchain-runtime-engineer">Blockchain Runtime Engineers</a></p><p>Target</p><p><a href="https://twitter.com/adeebahmed26/status/1133843502465462274">Blockchain Engineer</a></p><h3>Interesting things</h3><p><a href="https://twitter.com/bascule/status/1131266407499309056?s=21">Rust Cryptography Working Group</a></p><p><a href="https://twitter.com/crypto_raiturk/status/1130947989692985344">Thread: wins, missteps, and next steps at Holochain and Holo.</a></p><h3>Acknowledgments</h3><p>A huge thank you to Mike, <a href="https://twitter.com/ashchan">Ash</a>, <a href="https://brson.github.io/">Brian</a>, <a href="https://twitter.com/a13xndra">Alexandra</a> and <a href="https://twitter.com/gnunicornBen">Ben</a> for your contributions and helping bring this newsletter to fruition. We finally made it!</p><p><strong>Join the action on our </strong><a href="https://www.reddit.com/r/RustInBlockchain/"><strong>subreddit</strong></a></p><p>Originally published <a href="https://rustinblockchain.org/2019/06/06/rust-in-blockchain/">https://rustinblockchain.org/2019/06/06/rust-in-blockchain/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4e264fa4bb1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A close touch with Rust community]]></title>
            <link>https://medium.com/hackernoon/a-close-touch-with-rust-community-4a8507b756d9?source=rss-cfb4932c204f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a8507b756d9</guid>
            <category><![CDATA[community]]></category>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[asia]]></category>
            <dc:creator><![CDATA[Aimee Z]]></dc:creator>
            <pubDate>Mon, 29 Apr 2019 11:49:07 GMT</pubDate>
            <atom:updated>2019-04-30T16:35:43.423Z</atom:updated>
            <content:encoded><![CDATA[<h3>A Close Encounter with Rust Community</h3><p><em>Notes from the Organizer</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HMpews2V2QVgCFEPWQ5ueg.jpeg" /></figure><p>A huge thanks to our attending dev community, presenters, organizing team, sponsors, enthusiasts, volunteers and other stakeholders for coming together for a phenomenal community gathering!<br> <br>First things first, video of all sessions, will be posted on <a href="https://www.youtube.com/channel/UCaYhcUwRBNscFNUKTjgPFiA">Rust YouTube channel</a> as soon as our post production team can finish them. Presentation slides, from those presenters who wish to make them available, can be found at <a href="https://talk.citahub.com/t/topic/590">https://talk.citahub.com/t/topic/590</a>. There are currently 14 decks from talks and 9 from workshops. Updates will be made as more decks come in. <br> <br>Photos are also ready <a href="https://www.dropbox.com/sh/t6s39rupk492ntq/AACSMbbeE-uYLqqlyJmXXGUPa?dl=0">here</a>.<br> <br>It was with pleasure that I was able to take part in the planning and execution of this conference on behalf of Cryptape. There had been a great deal of curiosity about things happening in the Asian/Chinese Rust community.</p><p>As an active Rust community member company, Cryptape considered this a great opportunity to bridge, however slightly, the gap currently existing between the Eastern and Western worlds. It had also allowed me to engage with our fellow Rust development community more than any other way could. <br> <br>It was a bit nerve-wracking to try and meet the expectation of our community, especially because it was the first gathering in this region. When we finally opened the event, everyone felt the time, effort and work to plan such an event was worth it.</p><h3>About RustCon Asia 2019：</h3><p>There was definitely a little bit of everything for everyone attended. It was heartwarming to see people enjoying their experience from talks and at the same time meeting new and old friends. The portion of the attendees was just beginning with Rust benefited from talks such as Olivia’s RustBridge for beginners, Nick’s thinking in Rust and Alex’s <a href="https://zhuanlan.zhihu.com/p/63232238">How to learn Rust efficiently</a>.<br> <br>RustCon Asia had 27 speakers in total for talks and workshops. They came from different countries around the world and brought topics they were experienced with and shared with us all.<br> <br>The opening remarks from Cryptape, PingCAP, and Baidu X-Lab were followed by Nick Cameron from Rust core team started the first welcoming talk “Making Rust Delightful.”<br> <br>For the rest of the first day, we had a series of Rust in-depth talks: Linux from Scratch, competitive programming, implementing secp256k1 and p2p network libraries, Futures, Cargo, Distributed Actor System, stackful coroutine based Rust async story, how to write a custom derive, how to think about systems and more.<br> <br>On the first half of the 2nd day, there were Rust in production talks, with production experience sharing and use cases in Bilibili, Aliyun, and Zhihu. Many were impressed by the number and quality of Rust projects in Asia. To conclude, Nick as the “housekeeper” gave a closing talk on Rust projects and community update on the whole.<br> <br>Despite how young the Rust language is, we are already seeing the formation of a community so unique and valuable even to the greater open-source ecosystem. A curated R&amp;D-centric program to enable developers to come together in real-time, face-to-face at least once a year is arguably one of the best ways to serve the community. <br> <br>The Rust conference experience naturally embodied a kind of cohesiveness in spite of a realm that typically communicates virtually/remotely and asynchronously. In any case, the energy and excitement at the conference are not quite tangible unless one is physically present.<br> <br>We connected with new friends out of China as well as old friends from Rust online community or other developer communities. Developers paired together to attend workshops for the next 2 days and had an excellent experience from spending time with speakers. Hands-on workshops were IoT, WebAssembly usage, Rust FFI, microservice interface service, security service, RESP parser, etc. And some workshops about learning mindset such as RustBridge and Thinking in Rust.<br> <br>There were blockchain workshops from Cryptape, Blockstack, and Parity. Speakers shared their project progress and their experience of how to implement blockchain in Rust, which brought us confidence in blockchain technology and the future of the Internet.<br> <br>We were proud to see many great local projects such as search engine in Zhihu, security in Baidu X-Lab, image web server in Aliyun, live streaming service in Bilibili, database in PingCAP and blockchain framework as well as p2p network framework in Cryptape. These projects use Rust in production.</p><h3>Event Highlights:</h3><p>Brian Anderson came to the conference. He talked to many attendees and found everybody was super excited to be part of it. He reemphasized to us that this first Rust conference went “just too well”.<br> <br>Bhuztez had disappeared online since RubyConf China 2017. When he finally showed up as a speaker to the developers who have known him and were looking forward to his presentation, his particularly fun style had nobody disappointed.<br> <br>A shout out to Jiang Jun, who as a Beijing local, compiled a long list of food recommendation during RustCon Asia (<a href="https://talk.citahub.com/t/topic/477">https://talk.citahub.com/t/topic/477</a>). Make sure you utilize this list for your next visit to Beijing. Wayslog sponsored 9 Rust badges, and Liu Qi donated two Rust hoodies to the conference. We gave them away during Q&amp;A and a wechat lucky draw.<br> <br>Initially, we didn’t offer live streaming. Finally, on the last day of the workshop, attendees did it on their own. So we ended up having three links for each room. Everything turned out fine.</p><h3>On Preparation and the Execution side:</h3><p>There was of course much room for improvement and even the best event could be better. Ana, for instance, joked about how “computers never worked” and we couldn’t have coffee breaks but only breaks. These were, unfortunately, due to a lack of human resource and budget constraint which would certainly improve for the years to come.<br> <br>Another area we devoted a lot of energy to is the choosing of real-time translators. To make the experience as seamless as possible, we selected only those who had experience in real-time technical translation. We shared some Rust development documentation and some of the slides with the two translators in order to work out the details of interpretation. For example, Future in Rust is not the future we talk in daily life. Developers were surprised at the quality of translation in the end, which made us much relaxed. We have to admit that it was a challenge for the translator because they needed to understand a little bit Rust definition, Mathematics, operation systems as well as a developer’s terminology.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tEfHVoOahUs9wmMlSqbN-w.png" /></figure><p>It is no secret that Rust developers are in demand and recruitment offered a challenge. To help address this need, we offered a space for advertisement. Attendees could bring their A1 or A2 size posters here. And it worked very well.</p><p>Conference accepted Bitcoin and ETH as payment, even though nobody uses it because nobody wants to spend it out at the current low fiat price I guess. But if you would like to support the next Rust conference in Asia, the two addresses are still available for you, either for donation or ticket payment.<br> <br>We introduced speakers in advance with bios by digging their Twitter, GitHub, blog and even Instagram for better connection to the speakers (<a href="https://talk.citahub.com/t/topic/527">https://talk.citahub.com/t/topic/527</a>). Anyone is welcome to add to it.</p><h3>Acknowledgment:</h3><p>Many thanks go out to all the teams and individuals involved in the planning and execution in no particular order: the tech committees for RustCon Asia consisting of Yiming, Nick, Ana, Luo Chao, Zhiwei Ning and Daniel Lv. They worked together on topics selection that brought us all the great knowledge and excellent speakers.<br> <br>Florian from Berlin helped with running the CFP app, which opened the opportunities to the whole world and brought potential speakers from a much wider range. Antonio from RustFest Rome helped with lots of details about our first Global conference that crosses the western and eastern culture.<br> <br>All speakers were quite patient on the stage when we had equipment problems. We felt sorry for not making it smooth, and we will definitely make sure the equipment gets thoroughly checked. Thanks to all those developers in Rust community who spread words for the event in different ways, Twitter, weekly newsletters, wechat moments, telegram and wechat groups and so on. <br> <br>The organizing team from Cryptape and PingCAP did tons of communication and logistic works, which absolutely cannot be ignored. Organizing a conference is never easy, and teams from the two companies made it happen.<br> <br>It was definitely a great honor to have Baidu X-Lab as a sponsor, along with Qtum, SNZ Holding, Ferrous System, and Mozilla.<br> <br>Finally and most importantly, it is the attending community that cares about Rust R&amp;D that is absolutely part and parcel of the positive, constructive and high energy this conference brings together. Our event is a testimony to this amazing community of people, which has been growing, evolving and gathering more momentum as time goes by.</p><h3>What to do next</h3><p>With 4-day worth of video footage to be edited, our post production team is busy with editing and suffering with English subtitles. Please be patient.</p><p>Immediately after saying goodbye to each other, attendees were already discussing in which city to organize RustCon Asia 2020. We are so looking forward to the conference next year! See you all soon!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wfeZvQKHz0YSJUzeWJj0UQ.jpeg" /></figure><p>Thanks to <a href="https://medium.com/u/ed6893e8394c">Toya B</a> for editing and review!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a8507b756d9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/a-close-touch-with-rust-community-4a8507b756d9">A close touch with Rust community</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Rust?]]></title>
            <link>https://medium.com/@Aimeedeer/why-rust-c877fba0ca94?source=rss-cfb4932c204f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c877fba0ca94</guid>
            <category><![CDATA[cryptoeconomics]]></category>
            <category><![CDATA[ckb]]></category>
            <category><![CDATA[nervos]]></category>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Aimee Z]]></dc:creator>
            <pubDate>Thu, 21 Feb 2019 08:28:11 GMT</pubDate>
            <atom:updated>2019-03-12T12:29:23.717Z</atom:updated>
            <content:encoded><![CDATA[<h4>A simple and elegant choice.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gkrn75uj3EpvBES1uQubjQ.jpeg" /></figure><p>Why did you decide to use Rust for Nervos CKB, not C++, Go or Haskell? The answer from CKB developers is as simple as their code — because it’s elegant.<br> <br>I have always been curious about Nervos CKB development team’s choice for adopting Rust as the language with which our base layer blockchain would be built, because the language itself was still so young one year ago. I asked many of them the question: why Rust, not C++ or Haskell? Their answers are as simple as their code — because Rust is elegant.</p><h3>Excellent features of Rust</h3><p>If you are a developer, you might have already found out that the Rust community is very welcoming and active, which gives you much confidence. As developers are also pretty new to this young language, there comes lots of articles and questions on comparing Rust with other programming languages, such as C++, Go, Haskell, etc. But well, newcomers would be trained by the Rust compiler for a while. You are going to love it once you are getting well with it. Someone said it’s Rust let him fall in love with programming again, that you do not worry about your program once the compilation is complete.<br> <br>Parity and its Substrate, Grin and ChainX are written in Rust, Zcash is considering switching to Rust, there are more than you can see. Check <a href="https://www.reddit.com/r/rust/comments/a93dv8/cryptocurrencies_written_in_rust/">Cryptocurrencies written in Rust</a>.<br> <br>People love Rust because:<br> <br>Performance: There is no GC (garbage collector), no runtime, which made memory safety, and integrates with other languages easily.<br> <br>Reliability: The ownership model guarantee is the unique feature, which Aaron Turon called it as Rust’ <a href="https://blog.rust-lang.org/2015/04/10/Fearless-Concurrency.html">secret weapon</a>.<br> <br>Productivity: The good compiler will turn you into an excellent developer in many ways, such as editor support, type inspections, better formatter, friendly error warning, and a lot more.</p><h3>Why Rust is perfect for blockchain development</h3><p>Why Rust is a good fit for blockchain projects?<br> <br>Building a crypto project usually involve cryptography, mathematics, game theory, economics, etc. There are already many cutting-edge in cryptography such as zero-knowledge proof, ring signature is made in Rust, and there will be more because of the great prospects in Cryptoeconomics. P2P Network and 24/7 network services demand critical highly reliable and performance requirement. The technology is speedily progressed in the Cryptoeconomics world, and a great programming language can speed up blockchain technical iteration in rapid prototyping.<br> <br>There are C++ implementations for Bitcoin, Zcash, Ethereum, and some cryptography libraries; Fabric, Ethereum Geth and IPFS are written in Go, which was designed as replacements for the C++ implementation; Cardano and Dfinity both use Haskell, because of the language’s powerful type system. Python, Kotlin, Java present some other options for different specific objects.<br> <br>You may find that programming languages are chasing the same goals, while C can implement extraordinary performance but with lower abstraction and results in human mistakes easily. Functional programming languages, such as Haskell, Idris, are reliable at an excellent level but has a problem with low performance, which is almost no way to raise. Moreover, we see a clear trend towards either projects or developers switching to Rust from C++.<br> <br><strong>Rust optimizes the system as a whole.</strong> It has a competent performance with C++ and outstanding compiler that allows you to program as easy as in Go. With the primary goal of resource management (which including memory, files, network, and thread, etc), it controls resource directly without any abstraction; For reliability, it manages resource and avoids problems such as resource leaks, releases repeated and data race, etc. In terms of productivity, well, just try the excellent compiler.<br> <br>In conclusion, <strong>Rust is a language designed for control</strong>, which allows developers to fully manage system resources on their own for more sophisticated primitives, in an elegant way. Not to mention the welcoming and helpful Rust community.</p><h3>How Nervos bet on Rust</h3><p><a href="http://nervos.org/">Nervos</a> is a layered Cryptoeconomics network, CKB is its base layer with the full name Common Knowledge Base. CKB team members have been working in the technical area for decades, keep paying attention and never stop trying new technologies as well as contributions to the community.<br> <br>The conversation of programming language selection started in the fall of 2016. We were eager to find a favorite language that our team would enjoy everyday programming as well as long term blockchain development. <br> <br>There were Haskell, Erlang, Java, C++, Go and Rust on the table, the first two are too niche that may difficult for recruitment, even though we like Haskell a lot because of its pure functional programming goal. We know Java, C++ and Go very well that we prefer C++’s performance and Go’s efficiency. <br> <br>Rust is a modern programming language that has absorbed decades of excellence in language design as well as compiler design. We like it very much. Our philosophy is the pursuit of perfection. It’s represented by not only architecture but also the implementation details, whereas there are conflicts between GC and high performance, that we tend to choose Rust without GC. <br> <br>At that time, we also did a test to compare Go and Rust, a program was written in Rust and Go versions. The Rust version program was still running after 24 hours. All is said and done that security and better performance are the most important points for our product, so that Rust’s standing out addressed the adoption. And, Rust is cool! Especially Rust has shown great strength in engineering which proved the right choice we made.</p><p>By the way, there was a story in the earlier time came under the great influence. Ethereum got a DDoS attack (Distributed Denial-of-Service), which affected all clients written in Go and Rust before. Since clients in Rust kept working after that, all miners switched to Rust clients. And most miners and mining pools are using Rust clients nowadays.<br> <br>Beyond Rust language itself, the Rust community is growing openly with a tolerant magnanimous mind and breadth that we most admire. You would know that every step of Rust improvement is negotiated, consensus achieved and then implemented through the RFC (Request for Comments). The RFC based mechanism has given the Rust language itself great vitality and openness.<br> <br>We believe that an open culture will bring luck to our team and a better approach to CKB’ success. What’s more, for every Rust programmer, reading the vast amount of high-quality discussion on RFC is in itself a great pleasure and rewarding experience, so we borrowed the RFC mechanism to our Nervos CKB, see <a href="https://github.com/nervosnetwork/rfcs">Nervos RFC</a>.</p><h3>A little more about Nervos</h3><p>The Nervos CKB team is building a public blockchain project with Rust, check it out, <a href="https://medium.com/nervosnetwork/hello-ckb-17b8c8fdfba2">Hello CKB</a> and in our <a href="https://github.com/nervosnetwork/ckb">GitHub</a> (open-sourced!)<br> <br>We started organizing monthly <a href="https://www.meetup.com/Rust-Hangzhou/">Rust meetup</a> in Hangzhou since November last year, and we have met some great rust developers in the community. <br> <br>We are organizing the first <a href="https://rustcon.asia/">RustCon Asia</a> in Beijing on April 20–23rd, and we’d hope you could <a href="https://ti.to/cryptape/rustcon-asia">join us</a>! If you want to speak at the conference, click <a href="https://cfp.rustcon.asia/">here</a> to submit your speaking proposal! <br> <br>Our team will host a workshop after RustCon Asia, and more frequent Rust meetups in 2019, Nervos dedicates to involve heavily in Rust shortly.<br> <br><strong>Note</strong></p><p>Much appreciate for <a href="https://github.com/rink1969">Zhiwei</a>’s input, this post cannot be complete without his comments and reviews. Thanks to <a href="https://medium.com/@cryp_TOTO">Jane</a> and <a href="https://medium.com/@toya_84359">Toya</a>’ edit and review, make this article readable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c877fba0ca94" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>