FlintQS upstream

94 views
Skip to first unread message

Michael Orlitzky

unread,
Mar 23, 2023, 5:14:32 PM3/23/23
to sage-...@googlegroups.com
Does someone have access to https://github.com/sagemath/FlintQS ?

The build is broken with clang-16 and there's an open pull request to
fix it. A new release would be helpful.


Dima Pasechnik

unread,
Mar 23, 2023, 6:05:42 PM3/23/23
to sage-...@googlegroups.com
I promoted you to a maintainer of this repo.

HTH
Dima
>
>
> --
> 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+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/0e8f6be3967696c2001a14f7407394dba80fd17e.camel%40orlitzky.com.

Michael Orlitzky

unread,
Mar 25, 2023, 6:25:47 PM3/25/23
to sage-...@googlegroups.com
On Thu, 2023-03-23 at 22:05 +0000, Dima Pasechnik wrote:
> On Thu, Mar 23, 2023 at 9:14 PM Michael Orlitzky <mic...@orlitzky.com> wrote:
> >
> > Does someone have access to https://github.com/sagemath/FlintQS ?
> >
> > The build is broken with clang-16 and there's an open pull request to
> > fix it. A new release would be helpful.
>
> I promoted you to a maintainer of this repo.
>

Thanks. After spending some time with the code, I'd rather replace it.
There are unreported security issues with its use of /tmp,
and it's just generally pretty fragile. It also looks like a more
reliable (but often slower) implementation has been added to flint in
the meantime, as qsieve_factor().

On the examples I've tried, FlintQS is usually capable of factoring a
product of two primes, and relatively quickly. Switching the
implementation to qsieve_factor() slows it down a bit (2s to 3s, for
example). However, in cases like

qsieve(329884789374968270239373010571299817801707558079749117449)

which is a product of THREE primes, FlintQS gives you the wrong answer
in four seconds whereas qsieve_factor() takes six to get it right.

Number theorists, please speak up if you prefer to get less reliable
answers more quickly in some scenario that I haven't imagined.

Michael Orlitzky

unread,
Apr 6, 2023, 5:07:15 PM4/6/23
to sage-...@googlegroups.com
On Thu, 2023-03-23 at 22:05 +0000, Dima Pasechnik wrote:
>
> I promoted you to a maintainer of this repo.
>

I updated the README to say that FlintQS is obsolete, and there's a PR
at https://github.com/sagemath/sage/pull/35419 to replace it within
Sage. I also filed a CVE for the /tmp issues to make sure distros clean
it up eventually.

I would also suggest archiving the GH repo at this point if someone is
able to do that.

Dima Pasechnik

unread,
Apr 7, 2023, 5:20:37 AM4/7/23
to sage-...@googlegroups.com
done.

> --
> 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+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/e8212ce1b3a3eef4f407a0f778c1170d2aee655d.camel%40orlitzky.com.
Reply all
Reply to author
Forward
0 new messages