<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Airic Yu</title>
    <description>The latest articles on Forem by Airic Yu (@airicyu).</description>
    <link>https://forem.com/airicyu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1057704%2F36edb155-9c9a-49fc-b04f-b1cdc8ca85a4.png</url>
      <title>Forem: Airic Yu</title>
      <link>https://forem.com/airicyu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/airicyu"/>
    <language>en</language>
    <item>
      <title>solana-dev-docker</title>
      <dc:creator>Airic Yu</dc:creator>
      <pubDate>Sun, 16 Apr 2023 13:25:29 +0000</pubDate>
      <link>https://forem.com/airicyu/solana-dev-docker-1k53</link>
      <guid>https://forem.com/airicyu/solana-dev-docker-1k53</guid>
      <description>&lt;p&gt;I just made a docker dev env which pre-setup essential tools for Solana development.&lt;/p&gt;

&lt;p&gt;included:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Rust v1.68&lt;/li&gt;
&lt;li&gt;Solana-cli v1.14.17&lt;/li&gt;
&lt;li&gt;Node v18.16.0, with NPM/YARN&lt;/li&gt;
&lt;li&gt;Anchor v0.27.0&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The setup repo:&lt;br&gt;
&lt;a href="https://github.com/airicyu/solana-dev-docker"&gt;https://github.com/airicyu/solana-dev-docker&lt;/a&gt;&lt;/p&gt;

</description>
      <category>solana</category>
      <category>docker</category>
    </item>
    <item>
      <title>「同學」對學習的幫助</title>
      <dc:creator>Airic Yu</dc:creator>
      <pubDate>Mon, 10 Apr 2023 07:29:18 +0000</pubDate>
      <link>https://forem.com/airicyu/tong-xue-dui-xue-xi-de-bang-zhu-2j7</link>
      <guid>https://forem.com/airicyu/tong-xue-dui-xue-xi-de-bang-zhu-2j7</guid>
      <description>&lt;p&gt;近來有個感覺是,&lt;br&gt;
關於學習，其實學伴﹑同學對學習也是有莫大益處。&lt;/p&gt;

&lt;p&gt;老師的教學能力﹑學生自身的學習能力，是最直接影響知識傳遞效益。&lt;br&gt;
但其實「同學」之間的互動，對學習也是有不少益處。&lt;/p&gt;

&lt;p&gt;同學互動，能提升學習氛圍(講白話就是「大家一齊去經歷學一樣野會開心D」)。&lt;br&gt;
學生之間一知半解，但彼此一知半解也是一種共同理解，對談討論﹑無知發問，有時會激發到一些思考，更易消化。&lt;/p&gt;

&lt;p&gt;這就令我發覺,&lt;br&gt;
作為成年人去學一樣野，不一定就是自己上網google﹑youtube，孤狼作戰地學習。&lt;br&gt;
其實認真去學一件事的話，最好是加入相關社群，在相關領域中去找同路人一齊學習。&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Typescript project template (NodeJS)</title>
      <dc:creator>Airic Yu</dc:creator>
      <pubDate>Sun, 09 Apr 2023 11:03:01 +0000</pubDate>
      <link>https://forem.com/airicyu/typescript-project-template-nodejs-1ojn</link>
      <guid>https://forem.com/airicyu/typescript-project-template-nodejs-1ojn</guid>
      <description>&lt;p&gt;TLDR&lt;br&gt;
This is a minimum setup of Typescript project template (NodeJS).&lt;/p&gt;

&lt;p&gt;Github repo:&lt;br&gt;
&lt;a href="https://github.com/airicyu/typescript-project-template"&gt;https://github.com/airicyu/typescript-project-template&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;I faced some setup issues some time ago.&lt;br&gt;
The typescript stuff X nodejs module type bla bla bla....&lt;br&gt;
I also spent some time to find correct setup to debug with typescript that looks fit.&lt;br&gt;
All I want is sth that "It just works" and let me start coding.&lt;/p&gt;

&lt;p&gt;After all, recently I find this template looks good and I used in several projects as starter template.&lt;br&gt;
So I also want to share it with other developers, especially those who are new to learn NodeJS/Typescript.&lt;/p&gt;

</description>
      <category>typescript</category>
      <category>javascript</category>
      <category>node</category>
      <category>beginners</category>
    </item>
    <item>
      <title>關於throughput</title>
      <dc:creator>Airic Yu</dc:creator>
      <pubDate>Sat, 08 Apr 2023 07:49:42 +0000</pubDate>
      <link>https://forem.com/airicyu/guan-yu-throughput-356</link>
      <guid>https://forem.com/airicyu/guan-yu-throughput-356</guid>
      <description>&lt;p&gt;講processing性能有時要留意一樣野。&lt;/p&gt;

&lt;p&gt;例子:&lt;br&gt;
"10個女人"用10個月可以生產到10個BB。&lt;br&gt;
throughput(吞吐量) = 平均每個月生產到1個BB&lt;br&gt;
但係我地如果想生產一個BB，然後跟據吞吐量，我地俾一個月時間去生產一個BB，件事係唔work。&lt;br&gt;
實際上單個BB，係需要用10個月生產出來。&lt;br&gt;
吞吐量係包含埋平行處理能力。&lt;/p&gt;




&lt;p&gt;當去了解blockchain性能,&lt;br&gt;
除左講求throughput，有幾多transaction per second,&lt;br&gt;
仲需要去了解，實際上單個transaction，幾耐出到個block (confirm = 1)?&lt;br&gt;
實際上去到finalize (confirm = N), 又係要幾耐?&lt;/p&gt;

&lt;p&gt;以eth為例,&lt;br&gt;
throughput大約2x-5x trx/s。&lt;br&gt;
佢大約12秒出一個block。&lt;br&gt;
如果要12個confirm，就大約要2-3分鐘，先可以好大機會肯定個transaction係已經完全成功左。&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Aptos client sample - Do 10 times wallet transfer</title>
      <dc:creator>Airic Yu</dc:creator>
      <pubDate>Sat, 08 Apr 2023 06:38:41 +0000</pubDate>
      <link>https://forem.com/airicyu/aptos-client-sample-do-10-times-wallet-transfer-40i5</link>
      <guid>https://forem.com/airicyu/aptos-client-sample-do-10-times-wallet-transfer-40i5</guid>
      <description>&lt;p&gt;This is some sample client code for using Aptos JS client to do 10 times wallet transfer.&lt;/p&gt;

&lt;p&gt;Github repo:&lt;br&gt;
&lt;a href="https://github.com/airicyu/aptos-sample-client-wallet-transfer"&gt;https://github.com/airicyu/aptos-sample-client-wallet-transfer&lt;/a&gt;&lt;/p&gt;

</description>
      <category>apto</category>
      <category>blockchain</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Solana client sample - Do 100 times wallet transfer</title>
      <dc:creator>Airic Yu</dc:creator>
      <pubDate>Sat, 08 Apr 2023 06:36:05 +0000</pubDate>
      <link>https://forem.com/airicyu/solana-client-sample-do-100-times-wallet-transfer-356l</link>
      <guid>https://forem.com/airicyu/solana-client-sample-do-100-times-wallet-transfer-356l</guid>
      <description>&lt;p&gt;Recently I am learning Solana blockchain. So I will write some sample code or sharing posts during my learning journey.&lt;/p&gt;

&lt;p&gt;This time, I would like to share some sample client code for doing 100 times wallet transfer.&lt;/p&gt;

&lt;p&gt;Github repo:&lt;br&gt;
&lt;a href="https://github.com/airicyu/solana-sample-client-wallet-transfer"&gt;https://github.com/airicyu/solana-sample-client-wallet-transfer&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you can see, doing 100 transfer operation and get a confirm is just taking ~900ms.&lt;br&gt;
In terms of interactions we do with BLOCKCHAIN nowadays. Performing a series of 100 operation get confirm(Not finalized yet though) in 900ms is very amazing.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#################### Test Transfer in batch #####################
trx time=103.29119999706745 ms, send batch[1], trx hash=DbS7ZM4yEstTKkJPtRCqQC9tVT7UUM2Ye4YUeKnUmAa9JnV33qxrHH9z9HGzPmZKnKfDD6RPQDjbwnTYRRqrkuA
trx time=104.26439999789 ms, send batch[0], trx hash=2kSADoeq9KAmpGm4uPLZgzLz1khi47GQyjRvYmhwgtckj13J9vryo2VZSZy3QEnRWjyBtxNJZUaNoj45xtf9g9de
trx time=182.70139999687672 ms, send batch[4], trx hash=38WG3dZAZGumWRrrStJ7ENSmuTUDehYeqc2cRD5GWZ56gcLQ1Hrg25iDCCH1u7K574hcUyCoCs9iUnVaZ2SAAGJy
trx time=183.33809999376535 ms, send batch[2], trx hash=HjdfTFJcgx87Z6VSnSDpPZ844rUHK2wyq8yM8JUzQT5hASLnc9phW7fFUogLiAN2ZoRHppvB7SV1r2iTtQtjeTF
trx time=186.82880000025034 ms, send batch[3], trx hash=3eNSWQ7Hr9bpqFQdh4fSuifMmUceuM9prhJdihz1HZrFq6abr7NfTGuznSJntoAgE89uWeHTyEYJu1gs6sH9v1FQ
Sent all trx. Total elapsed time: 187.63710000365973 ms
confirm trx 3eNSWQ7Hr9bpqFQdh4fSuifMmUceuM9prhJdihz1HZrFq6abr7NfTGuznSJntoAgE89uWeHTyEYJu1gs6sH9v1FQ
confirm trx 2kSADoeq9KAmpGm4uPLZgzLz1khi47GQyjRvYmhwgtckj13J9vryo2VZSZy3QEnRWjyBtxNJZUaNoj45xtf9g9de
confirm trx 38WG3dZAZGumWRrrStJ7ENSmuTUDehYeqc2cRD5GWZ56gcLQ1Hrg25iDCCH1u7K574hcUyCoCs9iUnVaZ2SAAGJy
confirm trx HjdfTFJcgx87Z6VSnSDpPZ844rUHK2wyq8yM8JUzQT5hASLnc9phW7fFUogLiAN2ZoRHppvB7SV1r2iTtQtjeTF
confirm trx DbS7ZM4yEstTKkJPtRCqQC9tVT7UUM2Ye4YUeKnUmAa9JnV33qxrHH9z9HGzPmZKnKfDD6RPQDjbwnTYRRqrkuA
Confirmed all trxs. Total elapsed time: 919.9912000000477 ms
#########################################
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is rather crazy speed, and that's why I am diving in to learn Solana now.&lt;/p&gt;

</description>
      <category>solana</category>
      <category>blockchain</category>
      <category>javascript</category>
    </item>
    <item>
      <title>new to here</title>
      <dc:creator>Airic Yu</dc:creator>
      <pubDate>Fri, 07 Apr 2023 16:18:27 +0000</pubDate>
      <link>https://forem.com/airicyu/new-to-here-1lhn</link>
      <guid>https://forem.com/airicyu/new-to-here-1lhn</guid>
      <description>&lt;p&gt;I wanna find a blog for recording or sharing my dev stuffs.&lt;br&gt;
Let me try to use dev.to then.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
