Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Twitter専用のPCを作る / create a dedicated Twitter PC
Search
Arata
February 07, 2023
0
68
Twitter専用のPCを作る / create a dedicated Twitter PC
Arata
February 07, 2023
Tweet
Share
More Decks by Arata
See All by Arata
Pythonのcopy-and-patch JITの実装を読む
arata_nvm
0
80
eBPFを使った動的解析手法
arata_nvm
0
650
カーネルハック実験の振り返り
arata_nvm
0
33
Improving LLVM Backend Development with a New TableGen Language Server
arata_nvm
0
26
コードエディターのシンタックスハイライトの話
arata_nvm
0
180
LLVMのコード自動生成機構におけるコード記述を支援するツールの作成
arata_nvm
0
81
TableGenの言語サーバーをつくる
arata_nvm
0
590
pwn入門 / introduction to pwn
arata_nvm
1
2.6k
TableGenと和解せよ / make peace with TableGen
arata_nvm
0
160
Featured
See All Featured
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
0
120
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
130
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
340
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
65
35k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
A designer walks into a library…
pauljervisheath
210
24k
Utilizing Notion as your number one productivity tool
mfonobong
2
200
How to make the Groovebox
asonas
2
1.9k
Un-Boring Meetings
codingconduct
0
180
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Transcript
Twitter専用のPCを作る @Arata
Q. 新しいPCを買って何をする?
Q. 新しいPCを買って何をする? A. Twitter
Q. 新しいスマホを買って何をする?
Q. 新しいスマホを買って何をする? A. Twitter
Twitterができれば {Windows, macOS} いらなくね?
Twitter専用のPCを作る @Arata 再掲
どうやって作るのか UEFIを使う
どうやって作るのか UEFIを使う
UEFI is 何 PCの電源を入れると、最初に起動するもの https://ja.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface
UEFIの機能 • コンピューターの初期化 ◦ どんなハードウェアが接続されているか • メモリの管理 • ファイルシステム •
ネットワーク
UEFIの機能 • コンピューターの初期化 ◦ どんなハードウェアが接続されているか • メモリの管理 • ファイルシステム •
ネットワーク
OSがなくてもインターネットが使える → Twitterができる
まずはTwitter APIの申請から
まずはTwitter APIの申請から
まずはTwitter APIの申請から
UEFIからTwitter APIを叩く やるだけ
UEFIからTwitter APIを叩く 1. UEFIの仕様書を読む 2. 仕様に従ってコードを書く 3. ビルドする 4. PCで動かす
HTTPでリクエストを飛ばす手順 1. gBS->LocateHandle() でハンドラを取得する 2. gBS->HandleProtocol() でハンドラからプロトコルを取 得する 3. プロトコルのもつインターフェースを呼び出す
HTTPでリクエストを飛ばす手順 1. gBS->LocateHandle() でハンドラを取得する 2. gBS->HandleProtocol() でハンドラからプロトコルを取 得する 3. プロトコルのもつインターフェースを呼び出す
大変なところ • 登場する仕様が多い ◦ UEFI ◦ Twitter API ◦ OAuth
1.0 ◦ JSON • UEFIが標準で日本語に対応していない ◦ 💪力💪でなんとかする
完成したもの
その後 • Twitterで反応をもらえた
その後 • Twitterで反応をもらえた
その後 • Twitterで反応をもらえた
その後 • Twitterで反応をもらえた
その後 • Twitterで反応をもらえた • 海外のニュースサイトに記事ができた
その後 • Twitterで反応をもらえた • 海外のニュースサイトに記事ができた
その後 • Twitterで反応をもらえた • 海外のニュースサイトに記事ができた • GitHubでスターをたくさんもらえた
その後 • Twitterで反応をもらえた • 海外のニュースサイトに記事ができた • GitHubでスターをたくさんもらえた
まとめ • OSが必要ないTwitterクライアントを作った • 世界中のオタクたちに補足された