Coder Social home page Coder Social logo

Comments (8)

jpivarski avatar jpivarski commented on June 5, 2024

Owning boost would be a prerequisite for importing into boost.histogram, since changes to boost/__init__.py could lock you out of the use of that name. Even if you do own it, there's not a lot of value to using it as a namespace unless you expect there to be other, parallel boost.XYZ libraries.

Despite the ambiguity about - (sometimes used for package names) vs _ (always used for import names), there's a precedent. Quite a few libraries use - for a package name and _ for import. At worst, there's two things to try.

I don't think the - or _ is ideal; somebody might have a better idea.

from boost-histogram.

HDembinski avatar HDembinski commented on June 5, 2024

If there was no other package called boost, we could just grab the name and the package slot. Since there are issues using boost and we would like to avoid the - and _ issue, how about using another name? I am thinking that maybe having boost in the name is not a good idea, since this code is not officially reviewed by the Boost community and perhaps we should avoid any misunderstanding there.

What other names could we use? bhistogram?

from boost-histogram.

jpivarski avatar jpivarski commented on June 5, 2024

boosthistogram would not be terrible. Long enough words are easier to visually separate, particularly if both are very familiar, like this.

But I think the "standard" thing to use for a PyPI package like this, for better or worse, is boost-histogram (import boost_histogram).

from boost-histogram.

henryiii avatar henryiii commented on June 5, 2024

There is a package called boost - It's tagline is "Boost automatically toots from users of the Mastodon social network" - and only has one 0.1 release a couple of years ago. It's unlikely to be a problem, but we can avoid it.

from boost-histogram.

HDembinski avatar HDembinski commented on June 5, 2024

Just so that there is no misunderstanding, I am not fond of bhistogram, I am just brain-storming at this point. I think I can live with boost-histogram and boost_histogram. Users (except maybe me) will anyway not install boost-histogram, but hist, right? If boost-histogram is only used internally by hist, then we can live with this minor inconvenience.

from boost-histogram.

henryiii avatar henryiii commented on June 5, 2024

My thought is to have boost-histogram as the "Numpy" of histogramming. So a user who wants to fill and manipulate histograms will install boost-histogram; no dependencies save Numpy, and works everywhere. They can also build libraries on top of it like they would Numpy. If they want a "Pandas" of histogramming, they will install hist. Hist will use aghast, matplotlib, and potentially other dependencies, just like Pandas. Hist is aimed at physics analyses and similar uses.

from boost-histogram.

HDembinski avatar HDembinski commented on June 5, 2024

Yes, that sounds good to me. I think the module should be called boost_histogram because that's the least surprising when you install a package called boost-histogram.

from boost-histogram.

henryiii avatar henryiii commented on June 5, 2024

This was done in #110. I'll leave this open for a few days for any discussions about the way it was done, names, etc.

from boost-histogram.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.