第38章へようこそ。
今日のテーマは「チャネル」です。
第36章で、moveが値の所有権を新しいスレッドへ移すことを見ました。
あのときの移動は、スレッドを生成する一度きりのものでした。
クロージャに渡した値が、新しいスレッドへ移って、そこで使われる。
チャネルは、この所有権の移動を、スレッドが動いている間ずっと繰り返せるようにする仕組みです。
1つの流れが値を送り出し、別の流れがそれを受け取る。
送り出した側は、その値の所有権を手放す。
受け取った側が、新しい所有者になる。
more
第37章へようこそ。
今日のテーマは、SendとSyncです。
前章で、スレッドに値を渡すときは所有権ごと渡すことを見ました。
moveが、外側の値の所有権をクロージャへ移し、新しいスレッドへ持ち込む。
ただし、すべての値がスレッド境界を越えてよいわけではありません。
ある値をスレッドに渡すと、データ競合という危険が生じる場合がある。
データ競合は、複数の流れが同じ値に同時に触れ、少なくとも一方が書き換えるときに起こる、結果の定まらない状態のことです。
Rustは、この危険を実行し... more
第36章へようこそ。
今日から、並行処理を扱う一連の章に入ります。
最初のテーマは「スレッド」です。
スレッドは、プログラムの中で独立して進む実行の流れのことです。
1つのプログラムが複数の流れを同時に持つと、別々の処理が並行して進む。
並行処理は、所有権の規律が新しい場面に置かれる領域です。
これまで所有権は、1つの実行の流れの中で、値がいつ生きていつ解放されるかを決めてきました。
スレッドが増えると、値が2つ以上の流れにまたがる可能性が出てくる。
値が流れをまたぐとき、誰がそ... more
第35章へようこそ。
今日のテーマは「手続き的マクロ」です。
これまでの3章で扱ってきたのは宣言的マクロでした。
macro_rules!の宣言で、パターンと展開の組をルールとして並べる。
入力のトークンがパターンに照らされ、対応する展開が呼び出し位置に差し込まれる。
宣言的マクロには表現の限界があります。
パターンと展開の対応で書ける範囲を超えた変換、たとえば構造体のフィールド名を文字列として取り出して別のコードに埋め込む、こうした処理は宣言的の枠を超える。
これを扱うために用意... more
How this podcast ranks in the Apple Podcasts, Spotify and YouTube charts.
Apple Podcasts | #237 |
Listeners, social reach, demographics and more for this podcast.
| Listeners per Episode | Gender Skew | Location | |||
|---|---|---|---|---|---|
| Interests | Professions | Age Range | |||
| Household Income | Social Media Reach | ||||
Rephonic provides a wide range of podcast stats for 聞き流しプログラミング言語学習. We scanned the web and collated all of the information that we could find in our comprehensive podcast database. See how many people listen to 聞き流しプログラミング言語学習 and access YouTube viewership numbers, download stats, audience demographics, chart rankings, ratings, reviews and more.
Rephonic provides a full set of podcast information for three million podcasts, including the number of listeners. View further listenership figures for 聞き流しプログラミング言語学習, including podcast download numbers and subscriber numbers, so you can make better decisions about which podcasts to sponsor or be a guest on. You will need to upgrade your account to access this premium data.
Rephonic provides comprehensive predictive audience data for 聞き流しプログラミング言語学習, including gender skew, age, country, political leaning, income, professions, education level, and interests. You can access these listener demographics by upgrading your account.
To see how many followers or subscribers 聞き流しプログラミング言語学習 has on Spotify and other platforms such as Castbox and Podcast Addict, simply upgrade your account. You'll also find viewership figures for their YouTube channel if they have one.
These podcasts share a similar audience with 聞き流しプログラミング言語学習:
1. 佐々木亮の宇宙ばなし
聞き流しプログラミング言語学習 launched 4 months ago and published 172 episodes to date. You can find more information about this podcast including rankings, audience demographics and engagement in our podcast database.
Our systems regularly scour the web to find email addresses and social media links for this podcast. We scanned the web and collated all of the contact information that we could find in our podcast database. But in the unlikely event that you can't find what you're looking for, our concierge service lets you request our research team to source better contacts for you.
Rephonic pulls ratings and reviews for 聞き流しプログラミング言語学習 from multiple sources, including Spotify, Apple Podcasts, Castbox, and Podcast Addict.
View all the reviews in one place instead of visiting each platform individually and use this information to decide if a show is worth pitching or not.
Rephonic provides full transcripts for episodes of 聞き流しプログラミング言語学習. Search within each transcript for your keywords, whether they be topics, brands or people, and figure out if it's worth pitching as a guest or sponsor. You can even set-up alerts to get notified when your keywords are mentioned.