This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Add Mathematical Special Functions status page
AbandonedPublic

Authored by philnik on May 1 2022, 5:01 AM.

Details

Reviewers
Mordante
ldionne
var-const
jdoerfert
Group Reviewers
Restricted Project

Diff Detail

Event Timeline

philnik created this revision.May 1 2022, 5:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 1 2022, 5:01 AM
Herald added a subscriber: arphaman. · View Herald Transcript
philnik requested review of this revision.May 1 2022, 5:01 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a reviewer: Restricted Project. · View Herald Transcript

I want to review it later again, open-std.org is down again, so I can't review the status list you added.

libcxx/docs/Status/MathematicalSpecialFunctions.rst
2

copy paste

16

I think it would be good to add a link to p0226r1 here.

libcxx/docs/Status/MathematicalSpecialFunctionsProjects.csv
2

Why not use Section, Description,Dependencies,Assignee,Complete like most other status pages?

libcxx/docs/index.rst
51

Currently the list is in alphabetic order.

open-std.org is up again, so I finished the review.
I miss the addition of tgmath.h and ctgmath in the status list, however it seems we've already implemented this.

philnik updated this revision to Diff 427592.May 6 2022, 3:50 AM
philnik marked 2 inline comments as done.
  • Address comments
libcxx/docs/Status/MathematicalSpecialFunctions.rst
16

I think adding a link to https://wg21.link/sf.cmath would be a lot more helpful, since P0226R1 doesn't actually list the changes.

libcxx/docs/Status/MathematicalSpecialFunctionsProjects.csv
2

It feels to me like we don't actually use the assignee part in the other status pages very well. We also don't have an assignee field for the main papers and they are just fine. I don't think dependencies are necessary since the functions don't depend on anything AFAICT.

Mordante added inline comments.May 6 2022, 9:45 AM
libcxx/docs/Status/MathematicalSpecialFunctions.rst
16

True, I didn't see that during my initial review. I still think the link is useful since the paper adds a feature-test macro.
I don't mind a link to sf.cmath, but I don't see that as required. You already added nice links for all functions in this section.

libcxx/docs/Status/MathematicalSpecialFunctionsProjects.csv
2

Fair point, it was mainly for consistency.

ldionne requested changes to this revision.May 11 2022, 9:24 AM

The current plan for implementing those was to use the ones in Boost.Math. If we do that, we'd be able to implement all of them in one go, and we wouldn't need to add this status page to track the status of the partially-implemented paper. Ideally we'd do that and avoid adding this status page at all. WDYT?

This revision now requires changes to proceed.May 11 2022, 9:24 AM

The current plan for implementing those was to use the ones in Boost.Math. If we do that, we'd be able to implement all of them in one go, and we wouldn't need to add this status page to track the status of the partially-implemented paper. Ideally we'd do that and avoid adding this status page at all. WDYT?

Wouldn't we have to essentially rewrite these functions if we snack them from boost? I'm not sure how much work it would be to add them all in one go, but it's definitely not just a copy-paste.

The current plan for implementing those was to use the ones in Boost.Math. If we do that, we'd be able to implement all of them in one go, and we wouldn't need to add this status page to track the status of the partially-implemented paper. Ideally we'd do that and avoid adding this status page at all. WDYT?

Mainly curious, is the Boost license compatible with the LLVM license?

Any update on this?

Any update on this?

Not really. We're currently focusing on ranges to get as much as possible into LLVM15. After that I want to work on std::pmr. Would you like to work on the mathematical special functions?

We're currently focusing on ranges to get as much as possible into LLVM15. After that I want to work on std::pmr.

Sounds good.

Would you like to work on the mathematical special functions?

Currently more interested as a user, but when the times comes and I'm less under water, then I might try!

fsb4000 added a subscriber: fsb4000.Aug 5 2022, 5:21 AM

@Mordante

Mainly curious, is the Boost license compatible with the LLVM license?

I believe yes.
Because MSVC STL uses Boost.Math and MSVC STL has the same license like LLVM, word by word: "The Microsoft C++ Standard Library is under the Apache License v2.0 with LLVM Exception

https://github.com/microsoft/STL/blob/main/LICENSE.txt"

philnik abandoned this revision.Jan 16 2023, 5:57 PM

Why abandon this revision? Wouldn't it be useful for this issue to have more visibility rather than less?

Why abandon this revision? Wouldn't it be useful for this issue to have more visibility rather than less?

I've started implementing the functions with the boost::math versions, and with that approach we can just implement all the functions in a single PR, so we don't need a status page.