takahirom (@new_runnable) 's Twitter Profile
takahirom

@new_runnable

Google Developers Expert for Android。ABEMA作ってます。Androidに近い様々なものに触れています qiita.com/takahirom github.com/takahirom English: twitter.com/_takahirom_

ID: 1498078405

calendar_today10-06-2013 11:32:45

9,9K Tweet

3,3K Followers

956 Following

takahirom (@new_runnable) 's Twitter Profile Photo

"自己認識をハックして、うまく自分を騙して行動に結びつける。" という羊さんの話があって、騙すコツをAsk the speakerで聞きにいった。"嫌いなところを直視しないようにする"ということで、食わず嫌いな食べ物を食べれるようになるのと、一緒の感覚みたいな話だった🫑 #droidkaigi

takahirom (@new_runnable) 's Twitter Profile Photo

Kotlin -> TypeScript -> JsonスキーマでLLMに書かせている。ただKoogのほうが良いかもしれない #DroidKaigi

takahirom (@new_runnable) 's Twitter Profile Photo

LLMにできるだけ詳細なコンテキストを渡す。例えば失敗したときにエラーメッセージを渡すなど。 LocationAwareSerializerWrapperで、どこでyamlでエラーがあるのかわかるようにしたそう。 github.com/ComposeFlow/Co… #DroidKaigi

takahirom (@new_runnable) 's Twitter Profile Photo

Yamlで値にエラーがあったときに初期値に変更する。 TextAlignWrapper github.com/ComposeFlow/Co… #DroidKaigi

takahirom (@new_runnable) 's Twitter Profile Photo

全量ログが使えないときのサンプリング Head based sampling 開始時にこれを使うか決める 。ランダム Tail based sampling 終了時に何を含んでいるかをみて使うかを決める。 Firebase PerformanceではTail based samplingができない #DroidKaigi

takahirom (@new_runnable) 's Twitter Profile Photo

Applicationクラスで起動開始時間を知るには Application.attachBaseContexxt で行うと良い。 #DroidKaigi

takahirom (@new_runnable) 's Twitter Profile Photo

@ Provideを書かなくても実装側に @ ContributesBnding(AppScope::class, binding = binding<Cache>) @ Inject CacheImpl(): Cache こんな感じで楽できる (Hiltにもほしい) #DroidKaigi

takahirom (@new_runnable) 's Twitter Profile Photo

Tarjan algorithmという線形時間で、DFSで連結部分を識別するアルゴリズムを使っているらしい #DroidKaigi

takahirom (@new_runnable) 's Twitter Profile Photo

OkHttpClientは共有されるべきっていうのがあるから、OkHttpClientに限っては渡せるほうが嬉しいかもしれない👀 > OkHttpClients Should Be Shared square.github.io/okhttp/5.x/okh… #droidkaigi

takahirom (@new_runnable) 's Twitter Profile Photo

高レベルなAPIと低レベルなAPIを両方提供することで、機能性と自由度を両立する。 #droidkaigi

takahirom (@new_runnable) 's Twitter Profile Photo

普通にプロンプトでGemini Nanoを使う場合、Google AI Edge SDKは非推奨になって、ML Kit Prompt APIを使うのが推奨になったみたい > Google AI Edge SDK is deprecated. We recommend using the ML Kit Prompt API to send custom prompts to Gemini Nano. developer.android.com/ai/gemini-nano…