どうでもいいことが気になるたちです。
最近Rustのプロジェクトをいくつか始めたいと思い、リポジトリ名がどうなってるのか気になりました。
調査方法
Githubの検索APIを叩いてプロジェクト名拾うスクリプトを組んで調べてみました。プロジェクト数は検索数上限の1000を超えてるのでサンプルはスター数多い順に1000プロジェクトです。実際のスクリプトはリンク先を見ていただければと。
結果
Rust
Rustはrust
とrs
がよく目につくのでその2つのキーワードをプレフィックス/サフィックス、-
か.
繋ぎか繋ぎなしかでそれぞれ抽出してみました。
key | num | example |
---|---|---|
none | 429 | hoge |
prefix_rust_dash | 270 | rust-hoge |
suffix_rs_dash | 114 | hoge-rs |
prefix_rust | 79 | rusthoge |
suffix_rust_dash | 39 | hoge-rust |
suffix_rs_dot | 33 | hoge.rs |
suffix_rs | 11 | hogers |
suffix_rust | 11 | hogerust |
prefix_rs | 6 | rshoge |
prefix_rs_dash | 5 | rs-hoge |
prefix_rust_dot | 2 | rust.hoge |
suffix_rust_dot | 1 | hoge.rust |
prefix_rs_dot | 0 | rs.hoge |
Go
Goはrust
rs
のかわりにgo
だけで調べてみました。
key | num | example |
---|---|---|
none | 509 | hoge |
prefix_rs | 245 | gohoge |
prefix_rs_dash | 168 | go-hoge |
suffix_rs | 38 | hogego |
suffix_rs_dash | 31 | hoge-go |
prefix_rs_dot | 7 | go.hoge |
suffix_rs_dot | 2 | hoge.go |
考察
まぁ以上のような感じでした。好き名前にすればよいのではないでしょうか。
ちなみに以前始めたプロジェクトは Github上はwoothee-rust で パッケージ名自体はwoothee にしました。