| 1 |
= MLtonLibraryProject |
| 2 |
|
| 3 |
We have a https://github.com/MLton/mltonlib[MLton Library repository] |
| 4 |
that is intended to collect libraries. |
| 5 |
|
| 6 |
===== |
| 7 |
https://github.com/MLton/mltonlib |
| 8 |
===== |
| 9 |
|
| 10 |
Libraries are kept in the `master` branch, and are grouped according |
| 11 |
to domain name, in the Java package style. For example, |
| 12 |
<<VesaKarvonen#>>, who works at `ssh.com`, has been putting code at: |
| 13 |
|
| 14 |
===== |
| 15 |
https://github.com/MLton/mltonlib/tree/master/com/ssh |
| 16 |
===== |
| 17 |
|
| 18 |
<<StephenWeeks#>>, owning `sweeks.com`, has been putting code at: |
| 19 |
|
| 20 |
===== |
| 21 |
https://github.com/MLton/mltonlib/tree/master/com/sweeks |
| 22 |
===== |
| 23 |
|
| 24 |
A "library" is a subdirectory of some such directory. For example, |
| 25 |
Stephen's basis-library replacement library is at |
| 26 |
|
| 27 |
===== |
| 28 |
https://github.com/MLton/mltonlib/tree/master/com/sweeks/basic |
| 29 |
===== |
| 30 |
|
| 31 |
We use "transparent per-library branching" to handle library |
| 32 |
versioning. Each library has an "unstable" subdirectory in which work |
| 33 |
happens. When one is happy with a library, one tags it by copying it |
| 34 |
to a stable version directory. Stable libraries are immutable -- when |
| 35 |
one refers to a stable library, one always gets exactly the same code. |
| 36 |
No one has actually made a stable library yet, but, when I'm ready to |
| 37 |
tag my library, I was thinking that I would do something like copying |
| 38 |
|
| 39 |
===== |
| 40 |
https://github.com/MLton/mltonlib/tree/master/com/sweeks/basic/unstable |
| 41 |
===== |
| 42 |
|
| 43 |
to |
| 44 |
|
| 45 |
===== |
| 46 |
https://github.com/MLton/mltonlib/tree/master/com/sweeks/basic/v1 |
| 47 |
===== |
| 48 |
|
| 49 |
So far, libraries in the MLton repository have been licensed under |
| 50 |
MLton's <<License#>>. We haven't decided on whether that will be a |
| 51 |
requirement to be in the repository or not. For the sake of |
| 52 |
simplicity (a single license) and encouraging widest use of code, |
| 53 |
contributors are encouraged to use that license. But it may be too |
| 54 |
strict to require it. |
| 55 |
|
| 56 |
If someone wants to contribute a new library to our repository or to |
| 57 |
work on an old one, they can make a pull request. If people want to |
| 58 |
work in their own repository, they can do so -- that's the point of |
| 59 |
using domain names to prevent clashes. The idea is that a user should |
| 60 |
be able to bring library collections in from many different |
| 61 |
repositories without problems. And those libraries could even work |
| 62 |
with each other. |
| 63 |
|
| 64 |
At some point we may want to settle on an <<MLBasisPathMap#>> variable |
| 65 |
for the root of the library project. Or, we could reuse `SML_LIB`, |
| 66 |
and migrate what we currently keep there into the library |
| 67 |
infrastructure. |