Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choose a good name for this library #4

Closed
fzyzcjy opened this issue Oct 5, 2021 · 35 comments
Closed

Choose a good name for this library #4

fzyzcjy opened this issue Oct 5, 2021 · 35 comments
Labels
enhancement New feature or request

Comments

@fzyzcjy
Copy link
Owner

fzyzcjy commented Oct 5, 2021

Context

In addition to what is discussed in this issue, there are also some discussions in Reddit:

https://www.reddit.com/r/rust/comments/q0wrhr/comment/hfbnom7/?utm_source=share&utm_medium=web2x&context=3

Names for other code generators

Let's look at how others name it.

python

  • pyo3 4.7k
  • rust-cpython 1.5k
  • milksnake 0.7k (inactive)

c/c++

  • cxx 3.2k
  • cbindgen 1.2k
  • autocxx 1.2k
  • cc-rs 0.8k
  • rust-cpp 0.5k
  • flapigen-rs 0.5k (multi language)

java

  • flapigen-rs 0.5k (multi language)
  • jni-rs 0.5k
  • java-rust-example 0.3k
  • j4rs 0.2k
  • robusta 0.1k
  • rjni 0.06k

javascript/js/node

  • neon 5.8k
  • napi-rs 1.1k
  • node-bindgen 0.2k

go/golang

  • rust-plus-golang 0.3k
  • rure-go 0.2k

Official doc

https://rust-lang.github.io/api-guidelines/naming.html

Crate names should not use -rs or -rust as a suffix or prefix. Every crate is Rust! It serves no purpose to remind users of this constantly.

rust-lang/api-guidelines#29

Most downloaded crates

https://crates.io/crates?sort=recent-downloads

  • cfg-if
  • range_core
  • rand
  • syn
  • proc-macro2
  • libc
  • unicode-xid
  • quote
  • getrandom
  • rand_chacha
  • autocfg
  • serde
  • bitflags
  • memchr
  • base64
  • lazy_static
@fzyzcjy fzyzcjy added the enhancement New feature or request label Oct 5, 2021
@shreyashsaitwal
Copy link

shreyashsaitwal commented Oct 5, 2021

Before you publish the packages to crates.io and pub.dev, do you have any plans to rename the project like suggested by some people on Reddit? To me, flutter_rust_bridge seems something very Flutter-related at first glance, which in fact is not true since the package is 100% compatible with pure Dart as well.

@fzyzcjy
Copy link
Owner Author

fzyzcjy commented Oct 5, 2021

@shreyashsaitwal Ah good question! Indeed people in Reddit also suggests:

If you plan on releasing it on both, I'd give it the same name so people don't get confused. A bunch of crates have rust or rs in them, its not a big deal.

So maybe I should use the same name to publish package for both flutter/dart and rust.

To me flutter_rust_bridge, seems something very Flutter-related at first glance, which in fact is not true since the package is 100% compatible with pure Dart as well.

Yes I totally agree. I originally thought it should be named dart_rust_bridge. But people in Reddit seems to be interested in how it can ease the programming Flutter+Rust. In addition, most people who uses Dart are using Flutter. Dart seems not to be widely used and the main usage is for Flutter.

I mention "Dart" in README as well. Let me emphasize it a bit more.

@fzyzcjy
Copy link
Owner Author

fzyzcjy commented Oct 5, 2021

README edited: efc14e5

@shreyashsaitwal
Copy link

shreyashsaitwal commented Oct 5, 2021

So maybe I should use the same name to publish package for both flutter/dart and rust.

Yes, I think it makes more sense to publish it under the same name.

Also, do you have any nominees for the new name?

@fzyzcjy
Copy link
Owner Author

fzyzcjy commented Oct 5, 2021

@shreyashsaitwal Good question. People also suggest flechette and flap.

IMHO, if someone wants a ffi generator between Flutter/Dart and Rust, he may Google: flutter rust or things like that. The package name makes it possible to be found. On the contrary, if it has a fancy name, people may not be able to find it unless this package is really famous. Just my two cents.

@shreyashsaitwal
Copy link

It doesn't really matter to me what type of name you opt-in for -- fancy or descriptive. It's just that the current name seems too long to me. IMO, lib/package names shouldn't really exceed more than two words.

@fzyzcjy
Copy link
Owner Author

fzyzcjy commented Oct 5, 2021

Good question. What do you think if I create a new Reddit post (or just add a comment in the current post?) asking for people to suggest and vote names?

@shreyashsaitwal
Copy link

What do you think if I create a new Reddit post (or just add a comment in the current post?) asking for people to suggest and vote names?

Nice idea, go ahead. 👍🏻

@fzyzcjy
Copy link
Owner Author

fzyzcjy commented Oct 5, 2021

I am worried: I have already create one post yesterday about this lib. If I create one today, will people dislike this?

@shreyashsaitwal
Copy link

shreyashsaitwal commented Oct 5, 2021

Given how great this project is, I don't think anyone would dislike it. But because the current post has already got some good engagement, IMO editing it (or adding a comment in it) would be a good idea.

@fzyzcjy
Copy link
Owner Author

fzyzcjy commented Oct 5, 2021

Thanks. Let me edit it.

@fzyzcjy
Copy link
Owner Author

fzyzcjy commented Oct 5, 2021

I have edited it. Did you receive any kinds of notifications?

@shreyashsaitwal
Copy link

Did you receive any kinds of notifications?

Nope, I didn't (and I've no idea if other people who commented would receive it. I don't use Reddit much). But after I refreshed the page I saw the edit.

@coderedart
Copy link

I think any name is fine that is short. something like flut-rs or anything like that. people won't get reddit notifications when you edit post :) If you want to ask the community, ask in rust and rust-community discords, where people can reply immediately.

@coderedart
Copy link

anyone who searches for a "flutter rust" is going to find it anyway because of the description or ReadMe. name doesn't really need to be too descriptive.

@shreyashsaitwal
Copy link

shreyashsaitwal commented Oct 5, 2021

Okay, this just struck my mind rn. What if we called it ferb? Inspired from Flutter Rust Bridge (frb).

@fzyzcjy
Copy link
Owner Author

fzyzcjy commented Oct 5, 2021

@shreyashsaitwal That sounds like an animation https://en.wikipedia.org/wiki/Ferb_Fletcher

@shreyashsaitwal
Copy link

shreyashsaitwal commented Oct 5, 2021

That sounds like an animation https://en.wikipedia.org/wiki/Ferb_Fletcher

Oh, that might cause copyright overhead I guess. Thanks for pointing it out.

@fzyzcjy
Copy link
Owner Author

fzyzcjy commented Oct 5, 2021

@shreyashsaitwal You are welcome!

@fzyzcjy fzyzcjy changed the title Publish to Rust Crate and Flutter Pub Choose a good name for this library Oct 5, 2021
@shreyashsaitwal
Copy link

Sorry, I should probably have created a new issue.

@fzyzcjy
Copy link
Owner Author

fzyzcjy commented Oct 5, 2021

No problem, I have renamed it

@fzyzcjy
Copy link
Owner Author

fzyzcjy commented Oct 5, 2021

I come up with a few names. What do you guys think?

  • fridge: Flutter Rust brIDGE
  • flat: FLutter And rusT
  • rust_dart

@fzyzcjy
Copy link
Owner Author

fzyzcjy commented Oct 6, 2021

Maybe I choose fridge?

@shreyashsaitwal
Copy link

Yes, fridge sounds nice.

@fzyzcjy
Copy link
Owner Author

fzyzcjy commented Oct 6, 2021

Oops, fridge rust means your fridge has some rust on it when you google it... Let me think twice

@coderedart
Copy link

I think this is getting way more efffort put in, than it is needed. half the rust libraries get drowned in rust (iron oxide) related search results, and the rest get drowned in the rust (the game) results. fridge should be fine. or flust/flut . rust_dart seems like a reasonable option too. if this turns out great, people will not really care about the name.

@fzyzcjy
Copy link
Owner Author

fzyzcjy commented Oct 6, 2021

Well let me think twice... Some of my friends think the current name is better. So let me focus on the code itself first

@shreyashsaitwal
Copy link

shreyashsaitwal commented Oct 6, 2021

I completely agree with @coderedart. You're thinking way too much about this. Every new project takes some time to show up in search engine results. And how would you get any relevant result even before renaming the project?!

Also, if you don't want to change the name, it's completely fine. No one's forcing you to do so. At the end of the day, what matters is the project itself, not it's name.

@mjablecnik
Copy link

And what about name dart_rust_bridge?

@shreyashsaitwal
Copy link

Again, it's too big.

@mjablecnik
Copy link

No it is not too big name I think..

@coderedart
Copy link

Very few popular crates have 3 words, and I think having a _ is always confusing. I would still recommend a single word name or 5 letters like flust or flur or drust or darust or flutrust or rufler etc..

@mjablecnik
Copy link

It is not about name. It is about functionality what depends about how package will be popular or not..
In https://pub.dev is a lot of packages with quite same long names and _:
image

@coderedart
Copy link

Yeah. That was what I said long ago in this thread. But this thread literally is about naming, so I recommended short names, and it's easier to remember one word than 2.

@sachaarbonel
Copy link

Feel free to take dodge, when I was searching for a name, looking for "rust dart" I was finding images of Dodge cars. It's nice because of dodge in a sense of "avoid doing bindings by hand"

Repository owner locked and limited conversation to collaborators Oct 12, 2021
@fzyzcjy fzyzcjy closed this as completed Oct 12, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants