JuliaAlgebra / DynamicPolynomials.jl

Multivariate polynomials implementation of commutative and non-commutative variables
Other
60 stars 21 forks source link

IDs of PolyVars #72

Closed David-Berghaus closed 3 years ago

David-Berghaus commented 3 years ago

I noticed that polyvar-ids are generated using gensym.

For me, this is not very convenient for two reasons: 1.) I am using the atom-editor and every time I reload the shell, a new instance of variables is created, which can then cause unexpected errors when suddenly two polyvars with the same name are not considered equal. 2.) I am distributing my algorithm among different cores and when I do something like @everywhere @ncpolyvar x, the workers might not have the same object of x which makes it more difficult to share tasks.

What if we generate the ids uniquely by their name (without any "randomness" that gensym adds)? For which usecases would this cause problems?

David-Berghaus commented 3 years ago

Ah sorry, just noticed that this is a replicate of #20 :D