Skip to content

Remove Future dependency and use built-in copy!#193

Merged
blegat merged 1 commit into
bl/multfrom
claude/fix-julia-pre-ci-WaN8J
Apr 3, 2026
Merged

Remove Future dependency and use built-in copy!#193
blegat merged 1 commit into
bl/multfrom
claude/fix-julia-pre-ci-WaN8J

Conversation

@blegat

@blegat blegat commented Apr 3, 2026

Copy link
Copy Markdown
Member

Summary

This PR removes the dependency on the Future package and replaces all Future.copy! calls with the built-in copy! function from Base Julia. The Future module was being used solely for the copy! function, which is now available in the standard library.

Changes Made

  • Removed import Future statement from src/DynamicPolynomials.jl
  • Removed Future from the [deps] section in Project.toml
  • Replaced all 8 occurrences of Future.copy! with copy! across the codebase:
    • src/mult.jl: 3 replacements in operate_to! function
    • src/monomial_vector.jl: 2 replacements in __add_variables! function
    • src/poly.jl: 2 replacements in polynomialclean_to! and map_coefficients_to! functions
    • src/mono.jl: 1 replacement in __add_variables! function
    • src/operators.jl: 1 replacement in operate_to! function
    • src/subs.jl: 1 replacement in _subsmap function

Implementation Details

The copy! function is part of Julia's Base library and provides the same functionality that was previously imported from the Future package. This change simplifies dependencies while maintaining full backward compatibility with existing code.

https://claude.ai/code/session_01SGAgzkbRVNAL51y3Fo9fni

Future.copy! is deprecated in Julia pre-release, causing CI failures
since tests run with depwarn=error. Base.copy! has had the same
resizing semantics since Julia 1.1, so Future is no longer needed.

https://claude.ai/code/session_01SGAgzkbRVNAL51y3Fo9fni
@blegat blegat merged commit efd748d into bl/mult Apr 3, 2026
5 of 6 checks passed
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.

2 participants