Skip to content

Raise the minimum Julia version and remove all direct dependencies - #115

Merged
oscardssmith merged 4 commits into
masterfrom
aa/moar-ext
Sep 25, 2026
Merged

oscardssmith merged 4 commits into
masterfrom
aa/moar-ext

Conversation

@ararslan

Copy link
Copy Markdown
Member

This PR includes four separable commits, and I can separate (or drop) any of them if needed.

  1. Move the rand method definition to a package extension for Random
  2. Move the Printf.tofloat method to a package extension for Printf
  3. Raise the minimum Julia version to 1.10 (current LTS) from 1.6. This allows us to drop the dependency on Compat and fully move Random, Printf, and SpecialFunctions from direct to weak dependencies. Notably, 1.6 was not even being tested on CI, as we're using lts rather than min in the CI matrix.
  4. Unrelated to the prior three commits, update the README to reflect the state of the world following Add AArch64 support by using long double with libm #114, which I forgot to do in that PR.

The only use of Random was to define a `rand` method for `Float128`
samplers, which seems like a good candidate for an extension.
It was only being used to define a method for `Printf.tofloat`.
@ararslan

Copy link
Copy Markdown
Member Author

Oops, I broke it

The minimum had been set to 1.6, which means we did not have
`@assume_effects` nor package extensions. That necessessitated a
dependency on Compat as well as making all extended packages direct
dependencies rather than weak dependencies. Raising the minimum Julia
version means that this package now has no direct dependencies.
AArch64 Linux and FreeBSD should now work, though only the latter has
been verified.

The note about needing a "recent-ish" gcc for `__float128` may be
outdated since Julia ships libquadmath on platforms where it's
available, IIUC.
@ararslan

Copy link
Copy Markdown
Member Author

Okay, I unbroke it

@oscardssmith
oscardssmith merged commit ef65c68 into master Sep 25, 2026
10 checks passed
@oscardssmith
oscardssmith deleted the aa/moar-ext branch September 25, 2026 23:44
@JeffreySarnoff

JeffreySarnoff commented Sep 28, 2026 via email

Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants