# ANN: DiceRolls.jl

**URL:** <https://discourse.julialang.org/t/ann-dicerolls-jl/44972>\
**Category:** Package Announcements\
**Created:** [August 15, 2020, 1:37am UTC](https://discourse.julialang.org/t/ann-dicerolls-jl/44972 "2020-08-15T01:37:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![abelsiqueira](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abelsiqueira/32/47269_2.png) [@abelsiqueira](https://discourse.julialang.org/u/abelsiqueira)\
**Post date:** [August 15, 2020, 1:37am UTC](https://discourse.julialang.org/t/ann-dicerolls-jl/44972/1 "2020-08-15T01:37:32Z")

</div>

Hi all, I am pleased to announce the release of the package ~~[Dices.jl](https://abelsiqueira.github.io/Dices.jl/stable)~~, [DiceRolls.jl](https://abelsiqueira.github.io/DiceRolls.jl/dev) for playing around with dice rolls, histograms, and other fun stuff. Nothing exceptional, just having fun. If someone decides to create a virtual tabletop, it should be helpful 🙂

[![](https://global.discourse-cdn.com/julialang/original/3X/6/f/6fec0a92accf9758c3e0f1026713853888b0367a.png) **DiceRolls.jl** ](https://abelsiqueira.github.io/DiceRolls.jl/stable)

---

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [August 15, 2020, 2:22am UTC](https://discourse.julialang.org/t/ann-dicerolls-jl/44972/2 "2020-08-15T02:22:12Z")

</div>

Cool! Using the implicit multiplication to make `roll(3d4)` work is a great idea 🙂

`<begin linguistics rant>`

By the way, the plural “dices” is fairly uncommon in English. Originally, the singular was “die” (still used occasionally) and the plural was “dice”. American English has shifted towards using “dice” both as the singular and plural, but “dices” as a plural is rarely used (I’ve never actually seen it before, although it does appear in some dictionaries).

“Fun” fact: The word “pea” in English as a singular unit of “peas” is actually the result of a similar linguistic change from hundreds of years ago: Originally, there was only “peas” or “pease”, meaning a collection of grain, much like “corn”, or “what” (edit: “wheat”, sorry) which have no singular form. The idea of “pea” being the singular of “peas” is a result of people mistaking the “s” at the end of “pease” for a plural marker. Basically, English plurals are a mess.

`<end linguistics rant>`

---

<div class="post-metadata">

**Author:** ![greg\_plowman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/greg_plowman/32/8100_2.png) [@greg\_plowman](https://discourse.julialang.org/u/greg_plowman)\
**Post date:** [August 15, 2020, 7:58am UTC](https://discourse.julialang.org/t/ann-dicerolls-jl/44972/3 "2020-08-15T07:58:00Z")

</div>

> [@rdeits](#):
>
> “corn”, or “what”

What?  
What’s that? (Ha ha, is what’s the plural of what)  
Perhaps it is “wheat”?

---

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [August 15, 2020, 3:10pm UTC](https://discourse.julialang.org/t/ann-dicerolls-jl/44972/4 "2020-08-15T15:10:01Z")

</div>

Whoops, yeah, should have been “wheat”.

---

<div class="post-metadata">

**Author:** ![abelsiqueira](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abelsiqueira/32/47269_2.png) [@abelsiqueira](https://discourse.julialang.org/u/abelsiqueira)\
**Post date:** [August 17, 2020, 1:26pm UTC](https://discourse.julialang.org/t/ann-dicerolls-jl/44972/5 "2020-08-17T13:26:39Z")

</div>

🤦‍♂️ Thanks for pointing out, @rdeits. I think that crossed my mind at some point but I pushed it back for some reason. Since it conflicts with DICE.jl and Dice.jl would only has four letters, I’m gonna change the name to DiceRolls.jl.

---

<div class="post-metadata">

**Author:** ![abelsiqueira](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abelsiqueira/32/47269_2.png) [@abelsiqueira](https://discourse.julialang.org/u/abelsiqueira)\
**Post date:** [August 17, 2020, 3:08pm UTC](https://discourse.julialang.org/t/ann-dicerolls-jl/44972/6 "2020-08-17T15:08:50Z")

</div>

[https://github.com/JuliaRegistries/General/pull/19662](https://github.com/JuliaRegistries/General/pull/19662)

---

<div class="post-metadata">

**Author:** ![anon37204545](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@anon37204545](https://discourse.julialang.org/u/anon37204545)\
**Post date:** [August 17, 2020, 3:23pm UTC](https://discourse.julialang.org/t/ann-dicerolls-jl/44972/7 "2020-08-17T15:23:07Z")

</div>

@rdeits @abelsiqueira

Regarding the package name:

> [@](#):
>
> Packages that provide most of their functionality in association with a new type should have pluralized names.
> 
> - `DataFrames` provides the `DataFrame` type.
> - `BloomFilters` provides the `BloomFilter` type.
> - In contrast, `JuliaParser` provides no new type, but instead new functionality in the `JuliaParser.parse()` function.

(from [5. Creating Packages · Pkg.jl](https://julialang.github.io/Pkg.jl/v1/creating-packages/#Package-naming-guidelines-1))

If you ask me, `Dice` ≠ “dice”, hence `Dices` is a legit plural of `Dice`. With that name it’s clear that the package is exporting the `Dice` type.

---

<div class="post-metadata">

**Author:** ![abelsiqueira](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abelsiqueira/32/47269_2.png) [@abelsiqueira](https://discourse.julialang.org/u/abelsiqueira)\
**Post date:** [August 17, 2020, 7:18pm UTC](https://discourse.julialang.org/t/ann-dicerolls-jl/44972/8 "2020-08-17T19:18:25Z")

</div>

Interesting take on the subject, but I think I prefer the DiceRolls name, and I also export a `DiceRoll`, so that also works.
