# Packs or packages?

**URL:** <https://swi-prolog.discourse.group/t/packs-or-packages/3133>\
**Category:** Split Topic\
**Created:** [May 29, 2020, 10:17pm UTC](https://swi-prolog.discourse.group/t/packs-or-packages/3133 "2020-05-29T22:17:46Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [May 29, 2020, 10:17pm UTC](https://swi-prolog.discourse.group/t/packs-or-packages/3133/1 "2020-05-29T22:17:46Z")

</div>

> [@Pack Ann: Real + proSQLite --- for SWI 8.2.0](https://swi-prolog.discourse.group/t/pack-ann-real-prosqlite-for-swi-8-2-0/2431/1):
>
> would it be at all possible to add “packs” as an “optional tag”

I did it for this topic ![image](https://global.discourse-cdn.com/free1/uploads/swiprolog/original/2X/4/4a9cd7e11aecf3ea35187da2ecdad86a257df0a4.png) does that work for you?

I can change the name or even make it a sub-category so it gets two colors, e.g. ![image](https://global.discourse-cdn.com/free1/uploads/swiprolog/original/2X/d/d37b7d64bf7150ed95f75b5205cf1b7aa9c6ea14.png)

---

<div class="post-metadata">

**Author:** ![nicos](https://avatars.discourse-cdn.com/v4/letter/n/7feea3/32.png) [@nicos](https://swi-prolog.discourse.group/u/nicos)\
**Post date:** [May 30, 2020, 9:04am UTC](https://swi-prolog.discourse.group/t/packs-or-packages/3133/2 "2020-05-30T09:04:20Z")

</div>

Dear Eric,

Many thanks for picking this up.

I am not really familiar with the message structure in the forum.  
I would have thought a two colour approach where the first is for announcements  
would work better. Personally I prefer Packs, to Packages.

Thanks again,

Nicos

---

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [May 30, 2020, 10:01am UTC](https://swi-prolog.discourse.group/t/packs-or-packages/3133/3 "2020-05-30T10:01:18Z")

</div>

> [@nicos](#):
>
> I am not really familiar with the message structure in the forum.

There is no formal structure. About the only two categories that seem to be consistent is [Release](https://swi-prolog.discourse.group/c/releases/5) which is used almost exclusively by Jan and [Wiki](https://swi-prolog.discourse.group/c/wiki/12) with [Wiki Discussion](https://swi-prolog.discourse.group/c/wiki-discussion/18) where topics are created exclusively by me but others can ask.

I try to add some consistency to the other categories but with the exception of Help are not used very often.

[Help](https://swi-prolog.discourse.group/c/help/6) is the most used and other than tags which are not used often enough is just unorganized with three subcategories; [Predicate](https://swi-prolog.discourse.group/c/help/predicate-choice/20), [Tools](https://swi-prolog.discourse.group/c/help/help-tools/19), and [Algorithm](https://swi-prolog.discourse.group/c/help/algorithm/21)

---

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [May 30, 2020, 11:32am UTC](https://swi-prolog.discourse.group/t/packs-or-packages/3133/4 "2020-05-30T11:32:45Z")

</div>

> [@nicos](#):
>
> I would have thought a two colour approach where the first is for announcements  
> would work better.

Your wish is my command. 😀

![image](https://global.discourse-cdn.com/free1/uploads/swiprolog/original/2X/3/3b3aa260517d4964f312dfc4b0e01c81483c1540.png)

* * *

What I prefer to do is something like they do at [SonarSource](https://community.sonarsource.com/latest).

![image](https://global.discourse-cdn.com/free1/uploads/swiprolog/original/2X/c/cc50b834f33a5c0c3b32c5cc2521f29dd948a40d.png)

Where tags get a square before them but I would also like the category and subcategory to also get a square like ![image](https://global.discourse-cdn.com/free1/uploads/swiprolog/original/2X/7/75998b036f79682e70d7ed6d0aea41d4c8c802ba.png)

It could probably be done as a Discourse Theme but I have more important things to do for now.

---

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [May 30, 2020, 3:23pm UTC](https://swi-prolog.discourse.group/t/packs-or-packages/3133/5 "2020-05-30T15:23:11Z")

</div>

After [posting](https://swi-prolog.discourse.group/t/how-to-use-or-create-avl-tree-sets-analog-to-assoc-maps/2434/6) in a question I decided that you are right and it should `pack` and not `package` as they are clearly different.

So I made the change.

For those not familiar with the differences there are [packs](https://www.swi-prolog.org/pack/list) and [packages](https://www.swi-prolog.org/pldoc/doc_for?object=packages). If that confuses you, I use to be confused also. Just don’t ask me to explain the differences as I really can’t.

---

<div class="post-metadata">

**Author:** ![swi](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@swi](https://swi-prolog.discourse.group/u/swi)\
**Post date:** [May 31, 2020, 5:11pm UTC](https://swi-prolog.discourse.group/t/packs-or-packages/3133/6 "2020-05-31T17:11:17Z")

</div>

**packs** : are _not_ bundled at compile time with any SWI-Prolog installation; must be installed afterwards by running pack\_install/2.

**packages** : _can_ be bundled at compile time with an SWI-Prolog installation (by choosing [Cmake](https://www.swi-prolog.org/build/unix.html) options)

---

<div class="post-metadata">

**Author:** ![swi](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@swi](https://swi-prolog.discourse.group/u/swi)\
**Post date:** [May 31, 2020, 5:25pm UTC](https://swi-prolog.discourse.group/t/packs-or-packages/3133/7 "2020-05-31T17:25:58Z")

</div>

BTW, I think it would be a good idea to change the name **packages** to **build-time extensions** ; change the name **pack** to **add-on** , providing a term\_expansion from `addon_install/[1,2]` to `pack_install/[1,2]` and all the other related predicates.

The website also needs to use consistent naming, as it uses both **add-ons** (on the main menu) and **packs** on the page listing all the available **packs**.

NOTE: Perhaps we should break this to another topic called: Packs or Add-ons?

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [June 1, 2020, 8:20am UTC](https://swi-prolog.discourse.group/t/packs-or-packages/3133/8 "2020-06-01T08:20:51Z")

</div>

> [@swi](#):
>
> **packages** to **build-time extensions**

That is a good suggestion. I’m rather reluctant though. The name `packages` appears throughout the sources, git locations, etc. That is surely possible to modify, but it will result in a lot of issues with upgrades, builds, etc. for a long time. Considering the _packages_ are mostly internal I don’t think that is worth the work and regression.

A bit easier might be to change the [Packages](https://www.swi-prolog.org/pldoc/doc_for?object=packages) page. That is probably limited to PlDoc changes and regression will be limited to the documentation rather than distribution and builds.

> [@swi](#):
>
> `addon_install/[1,2]` to `pack_install/[1,2]`

Especially if we get rid of _Packages_ page I think I’d be more in favor of dropping _add on_ as this is (I think?) a less common name and only used in a few places.

I certainly agree having “packages” and “packs” wasn’t a great idea ☹ Other opinions on how to get this improved?

---

<div class="post-metadata">

**Author:** ![swi](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@swi](https://swi-prolog.discourse.group/u/swi)\
**Post date:** [June 1, 2020, 12:27pm UTC](https://swi-prolog.discourse.group/t/packs-or-packages/3133/9 "2020-06-01T12:27:11Z")

</div>

> [@jan](#):
>
> The name `packages` appears throughout the sources, git locations, etc.

I don’t think there is any need to change the name in the sources, git locations or other internal parts. Only the user-facing parts would need to be changed, such as the website and the documentation.

> [@jan](#):
>
> Especially if we get rid of _Packages_ page I think I’d be more in favor of dropping _add on_ as this is (I think?) a less common name and only used in a few places.

You mean to drop the name ‘add-on’ and use the name ‘pack’ consistently? That would clear the confusion if we change the name ‘packages’ to ‘build-time extensions’ (in the user-facing parts).

It took me a while to figure out a clear distinction between packs and packages, so I think this would be a great improvement and has little cost if we do the change only on the external user-facing parts.

---

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [June 2, 2020, 8:16pm UTC](https://swi-prolog.discourse.group/t/packs-or-packages/3133/10 "2020-06-02T20:16:41Z")

</div>

> [@swi](#):
>
> **packages** : _can_ be bundled at compile time with an [SWI-Prolog](https://www.swi-prolog.org/pldoc/doc_for?object=manual) installation (by choosing [Cmake](https://www.swi-prolog.org/build/unix.html) options)

FYI

In installing a daily build just now saw

![image](https://global.discourse-cdn.com/free1/uploads/swiprolog/original/2X/6/696fe4124aeba5c5a6a3bf43e5c02bff53f66af3.png)

where they are called a `component` but [SWI-Prolog ODBC Interface](https://www.swi-prolog.org/pldoc/doc_for?object=section(%27packages/odbc.html%27)) is a package. 🙁

---

<div class="post-metadata">

**Author:** ![swi](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@swi](https://swi-prolog.discourse.group/u/swi)\
**Post date:** [June 2, 2020, 8:24pm UTC](https://swi-prolog.discourse.group/t/packs-or-packages/3133/11 "2020-06-02T20:24:12Z")

</div>

ODBC\_Interface still **bundled** at compile time, but one can choose to install it or not.

I don’t see any problem with the name “components” since examples, documentation, Perl\_regex are different types of things, so using the name components is okay because we are not just choosing what packages to install, but we are choosing other things too (e.g. examples and documentation)
