FWIW I once wrote a monomial ideal implementation in Sage/Cython, probably for some related reason though I forget exactly why I couldn't use Singular. Its presumably similar to the code you wrote already. It doesn't do weights but does implement the refined HS. A reasonably fast implementation that is more flexible than Singular would surely be useful to have.
https://github.com/vbraun/hilbert_series/blob/master/monomial_ideal.pyx -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.