4/3 Gleam Weekly

読み終わるまでの目安 約3分

2 つめがなかなか来ないなぁと思っていたら 6 日前に来てました。気が付かなかった…

This week in Gleam

Monitoring Processes

Trapping Exits (1/3)
Trapping Exits (1/3) favicon https://code-change.nl/gleam-blog/20240322-monitoring-processes.html

gleam/otpには Erlang VM 上のprocessを実行できるけれど、この方法だと呼び出し先でクラッシュすると呼び出し元も巻き込まれてクラッシュする。 それを防ぐために呼び出し先のprocessを監視し、安全に実行する方法を解説している。

Getting to know Actors in Gleam. Code BEAM SF 2024

Getting to know Actors in Gleam - Raúl Chouza | Code BEAM America 2024
✨This keynote talk was recorded at Code BEAM America 2024, a conference by Code Sync ✨https://codebeamamerica.comGleam is a programming language that makes t...
Getting to know Actors in Gleam - Raúl Chouza | Code BEAM America 2024 favicon https://www.youtube.com/watch?v=WaHx6n2UZJg
Getting to know Actors in Gleam - Raúl Chouza | Code BEAM America 2024

Code BEAM America で発表された Gleam の型付けに関するセッション。

Lustre v4.0.0 released.

GitHub - lustre-labs/lustre: An Elm-inspired framework for building HTML templates, single page applications, and server-rendered components in Gleam!
An Elm-inspired framework for building HTML templates, single page applications, and server-rendered components in Gleam! - lustre-labs/lustre
GitHub - lustre-labs/lustre: An Elm-inspired framework for building HTML templates, single page applications, and server-rendered components in Gleam! favicon https://github.com/lustre-labs/lustre
GitHub - lustre-labs/lustre: An Elm-inspired framework for building HTML templates, single page applications, and server-rendered components in Gleam!

Gleam で SPA を開発できるフレームワーク Lustre が v4 に到達した。Elixir Phoenix に影響を受けているらしく、個人的にかなり期待しているプロジェクト。 いつか記事を書きたい。

Exploring Gleam with Genetic Algorithms

Exploring Gleam with Genetic Algorithms
Meet Gleam, one of the most popular new functional programming languages by building a simple word-solving genetic algorithm.
Exploring Gleam with Genetic Algorithms favicon https://silasmarvin.dev/exploring-gleam-with-genetic-algorithms
Exploring Gleam with Genetic Algorithms

Gleam で遺伝的アルゴリズムを Gleam で書いてみるというもの。遺伝的アルゴリズム自体馴染みがないので後でじっくり読んでみたい。

Exploring the Gleam FFI

Jonas Hietala: Exploring the Gleam FFI
Jonas Hietala: Exploring the Gleam FFI favicon https://www.jonashietala.se/blog/2024/01/11/exploring_the_gleam_ffi/

Gleam で Erlang/Elixir/Rust/JavaScript と連携する方法を書いた記事。

Even more great Gleam stuff

Gleam’s Core Team in the House. Beam Radio Podcast

Gleam's Core Team in the House!
The BeamRadio panel chats all things Gleam with the Core Team!
Gleam's Core Team in the House! favicon https://www.beamrad.io/72
Gleam's Core Team in the House!

Gleam コアチームのポッドキャスト。

Why the number of Gleam programmers is growing so fast Blog post

Why the number of Gleam programmers is growing so fast? — Taha Shashtari
Gleam is a beautiful language. Read this if you are unsure about learning it.
Why the number of Gleam programmers is growing so fast? — Taha Shashtari favicon https://tahazsh.com/blog/why-gleam-is-good
Why the number of Gleam programmers is growing so fast? — Taha Shashtari

Gleam の人気が高まっている理由を解説した記事。最近は構文がシンプルな言語が好まれる傾向があるのかも…なんて思った。

PostgreSQL protocol decoder/encoder Project update

GitHub - grodaus/postgresql_protocol: PostgreSQL Protocol encoder/decoder for Gleam
PostgreSQL Protocol encoder/decoder for Gleam. Contribute to grodaus/postgresql_protocol development by creating an account on GitHub.
GitHub - grodaus/postgresql_protocol: PostgreSQL Protocol encoder/decoder for Gleam favicon https://github.com/grodaus/postgresql_protocol
GitHub - grodaus/postgresql_protocol: PostgreSQL Protocol encoder/decoder for Gleam

PostgreSQL とクライアント間で通信されるプロトコルを Gleam 実装したライブラリがアップデートされたらしい。

Act, compose stateful actions to simulate mutable state Project update

GitHub - MystPi/act: 🎬 Compose stateful actions to simulate mutable state
🎬 Compose stateful actions to simulate mutable state - MystPi/act
GitHub - MystPi/act: 🎬 Compose stateful actions to simulate mutable state favicon https://github.com/MystPi/act
GitHub - MystPi/act: 🎬 Compose stateful actions to simulate mutable state

Gleam で可変な状態を表現するためのライブラリ。Actor と区別するためこのような命名になったらしい。個人的に気になっているライブラリ。

Monitoring processes (2/3) Blog post

Monitoring Processes (2/3)
Monitoring Processes (2/3) favicon https://code-change.nl/gleam-blog/20240324-monitoring-processes.html

冒頭に紹介した記事の続編。今回のニュースレターにはないけれどこの次の記事も公開されている。 3/3 では Supervisors を使ったプロセスの監視を解説している。

Supervisors (3/3)
Supervisors (3/3) favicon https://code-change.nl/gleam-blog/20240326-monitoring-processes.html

余談

今回はprocess関連の話が多かった気がする。 Erlang VM の真価は軽量な process とそれを元にした堅牢なシステムなので当たり前っちゃそうかもしれない。

次回はどんな News が来るのか楽しみ。 あとメールの自動振り分けを設定したので次は来たらすぐ投稿できると思う。