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
79
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Twitter専用のPCを作る / create a dedicated Twitter PC
Arata
February 07, 2023
More Decks by Arata
See All by Arata
デコンパイラ研究調査
arata_nvm
1
7
コンパイラ基盤を支える言語たち
arata_nvm
1
66
LLVMのDSL”TableGen”向け言語サーバーの開発
arata_nvm
0
20
5分でわかるPage-Fault Weird Machine
arata_nvm
2
290
eBPFを用いたAndroid向けデバッガ「eDBG」のx86_64 Linuxへの移植
arata_nvm
0
19
Pythonのcopy-and-patch JITの実装を読む
arata_nvm
0
130
eBPFを使った動的解析手法
arata_nvm
1
790
カーネルハック実験の振り返り
arata_nvm
1
58
Improving LLVM Backend Development with a New TableGen Language Server
arata_nvm
0
53
Featured
See All Featured
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
1
340
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.5k
Amusing Abliteration
ianozsvald
1
200
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
HDC tutorial
michielstock
2
700
30 Presentation Tips
portentint
PRO
1
320
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
770
What does AI have to do with Human Rights?
axbom
PRO
1
2.2k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.3k
Being A Developer After 40
akosma
91
590k
Ethics towards AI in product and experience design
skipperchong
2
300
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
140
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クライアントを作った • 世界中のオタクたちに補足された