最近仕事でも個人開発でもPstackの形式検証(主にTLA+を使ったモデル検査)をよく使っている。
実際に通常のテストでは見落としていたバグや仕様の抜けが見つかっていて、品質向上に手応えを感じている。
ただ自分でもあやふやなところがあったので、理解をまとめるために初心者向けの資料にしてみた。
形式検証って何ぞやっていう人は読んでみると、そんなに怖くなくて気軽に使っていいんだって気分になれると思う。
何かツッコミあればぜひお願いします。
docs.google.com/presentation…
xitter.gq/agata/status/212595778…
実践入門の続編書きました。
前回の形式検証の話に続いて、今回はShopifyが紹介したモバイルアプリの設計「Reflex」の入門スライドを作ってみた。
Reflexの記事がでて2つのアプリでReflexを適用してみました。1つは新規アプリで1つは既存からあるアプリ。
React Native、Expo、Flutterなど、マルチプラットフォームアプリをいくつも書いてきたけど、Reflexでネイティブでいいやんってかなり思う。
ReflexをiOSとAndroidはそれぞれネイティブで実装しつつ、同じテストシナリオで、両方が仕様どおりに動くかを確かめる。実際に試してみると、古い通知が遅れて届いたときに、Androidだけ状態が巻き戻る不具合など、挙動のズレがいくつか見つかった。
今回も仕組みをちゃんと理解したくて入門資料にまとめてみた。どう設計すると同じシナリオを両OSで回せるのか、図にしてみたら自分の中でもだいぶ整理できたと思う。
Reflexって何?という人にも読んでもらえるとうれしいです。ツッコミもおまちしています。
英語版もリプに置いておきます。
docs.google.com/presentation…
1
161
前回の形式検証の話に続いて、今回はShopifyが紹介したモバイルアプリの設計「Reflex」の入門スライドを作ってみた。
Reflexの記事がでて2つのアプリでReflexを適用してみました。1つは新規アプリで1つは既存からあるアプリ。
React Native、Expo、Flutterなど、マルチプラットフォームアプリをいくつも書いてきたけど、Reflexでネイティブでいいやんってかなり思う。
ReflexをiOSとAndroidはそれぞれネイティブで実装しつつ、同じテストシナリオで、両方が仕様どおりに動くかを確かめる。実際に試してみると、古い通知が遅れて届いたときに、Androidだけ状態が巻き戻る不具合など、挙動のズレがいくつか見つかった。
今回も仕組みをちゃんと理解したくて入門資料にまとめてみた。どう設計すると同じシナリオを両OSで回せるのか、図にしてみたら自分の中でもだいぶ整理できたと思う。
Reflexって何?という人にも読んでもらえるとうれしいです。ツッコミもおまちしています。
英語版もリプに置いておきます。
docs.google.com/presentation…
I tried Shopify’s Reflex architecture in two apps and made a beginner’s guide to better understand how it works. Here’s the English version, with a walkthrough of how the same test caught an Android-only bug.
docs.google.com/presentation…
1
147
Agata retweeted
TLA+が何か掴むのはこの記事が分かりやすかった。
【TLA+】AIにテストケースを書かせるな。ルールを書け|karamage zenn.dev/karamage/articles/7… #zenn
形式検証を入れてから、私のレビューは、ほとんどTLA+ が出す状態遷移図を見るだけになった
pstack であれば、形式検証用のSkillも作れるし、/statechart で状態遷移図出して、それをPRにでも貼ってもらえば事足りる
そもそも、私の場合、/statechart 作らせたときに、バグが含まれていないかもエージェントに見てもらうので、
形式検証のモデルに決めた範囲ではバグが起きようないので、自信を持って no look merge しているよ
ついでに、PRごとか日次で /maintain-formal-verification-skill も走らせているからSkillが陳腐化する心配もない
ちなみに、TLA+ の代わりに tla-ts を状態遷移図の出力では使わせている!
形式検証が信頼できるのは、ツールで決めた範囲内であれば、全ツールを網羅した実装になっていることを検証できるので、その範囲ではバグも脆弱性も含まれていないことを証明できるからだ
最近仕事でも個人開発でもPstackの形式検証(主にTLA+を使ったモデル検査)をよく使っている。
実際に通常のテストでは見落としていたバグや仕様の抜けが見つかっていて、品質向上に手応えを感じている。
ただ自分でもあやふやなところがあったので、理解をまとめるために初心者向けの資料にしてみた。
形式検証って何ぞやっていう人は読んでみると、そんなに怖くなくて気軽に使っていいんだって気分になれると思う。
何かツッコミあればぜひお願いします。
docs.google.com/presentation…
Agata retweeted
github.com/yasuyuki-baba/syn…
Synth1の資産を活用できるソフトシンセ作ってます。
Agata retweeted
After 22 years of working for Apple and always traveling with a Mac laptop, this weekend I brought a Mac but not macOS. My M1 MacBook Pro is running Omarchy Linux.
Everything works! WiFi on the plane, Apple Music, speakers, airdrop. It’s super fast, and it’s AI native, you can literally just prompt what you want. Claude, grok bot, discord, all my go to apps just work.
It’s still got some rough edges but it’s freeing to have full control of your OS. Even if you don’t want to daily drive it any good techy should try it to see what an AI-first OS looks like.
Agata retweeted
Same story here. My MacBook Pro M4 Pro has sat untouched for weeks. Omarchy now runs my whole life: on the Xiaomi Pad 9 Pro Max (same XRING O3, tablet flagship AI SoC), on a 2011 iMac at home, and on my x86 + 4090 AI shed. Tiling + keyboard, everywhere. Software that fits you, not the other way around.
同感。我的 MacBook Pro M4 Pro 已经好几周没碰了。现在小米 Pad 9 Pro Max(同芯玄戒 O3,平板旗舰 AI SoC)、家里的 2011 年 iMac、x86 + 4090 AI shed 上全是 Omarchy,平铺桌面加键盘,走到哪都一样。软件迁就人,不再是人迁就软件。
After 20 years of being an Apple superfan, I made the full switch to @omarchy Linux. It has now been my sole setup for three months. Never going back.
Omarchy feels like a glimpse of the future. With AI, software is now free to write. It doesn't have to be one-size-fits-all anymore. It's now possible for your operating system to mold itself on-the-fly to your individual use cases and preferences. All you should ever have to do is ask it to do that for you.
Omarchy is the only serious effort fully embracing AI and on a sprint to make that vision real. Not to mention, this thing is fucking beautiful. @dhh + team + community really cooked here.
And sure, Apple products are also still beautiful. There's no denying that, but once you glimpse the world beyond, you will never again unsee the soft oppressiveness of their walled garden. Apple's ecosystem is governed by a brand of paternalism that doesn't trust you to handle your own machine. It believes that you will helplessly hurt yourself if—God forbid—you choose to change anything about how it works.
So you can't. They won't let you. And that was maybe fine back when Apple was an innovative company. At least the choices that they forced on you were good and on the cutting edge. Today, it just means that you're forever stuck with Siri.
So come join the movement 🚀
After 20 years of being an Apple superfan, I made the full switch to @omarchy Linux. It has now been my sole setup for three months. Never going back.
Omarchy feels like a glimpse of the future. With AI, software is now free to write. It doesn't have to be one-size-fits-all anymore. It's now possible for your operating system to mold itself on-the-fly to your individual use cases and preferences. All you should ever have to do is ask it to do that for you.
Omarchy is the only serious effort fully embracing AI and on a sprint to make that vision real. Not to mention, this thing is fucking beautiful. @dhh + team + community really cooked here.
And sure, Apple products are also still beautiful. There's no denying that, but once you glimpse the world beyond, you will never again unsee the soft oppressiveness of their walled garden. Apple's ecosystem is governed by a brand of paternalism that doesn't trust you to handle your own machine. It believes that you will helplessly hurt yourself if—God forbid—you choose to change anything about how it works.
So you can't. They won't let you. And that was maybe fine back when Apple was an innovative company. At least the choices that they forced on you were good and on the cutting edge. Today, it just means that you're forever stuck with Siri.
So come join the movement 🚀
Agata retweeted
「俺が言うのもなんやけど」のMV公開しました!
監督/撮影BIOMANによる散歩道の果てに生まれた一本。
動画概要欄にBIOMANによる撮影場所マップ+各所の一言コメントもリンク貼ってます。そちらと合わせて是非。
neco眠る - "俺が言うのもなんやけど" 【OFFICIAL MUSIC VIDEO】
youtu.be/huLWHR5RbyA?si=_B0a…















