math icon indicating copy to clipboard operation
math copied to clipboard

Should we do a module?

Open NAThompson opened this issue 3 years ago • 6 comments

Compiler support is coming along, and we have a standalone which I assume is half the work.

NAThompson avatar Aug 30 '21 03:08 NAThompson

When I got regex standalone I started experimenting with this and msvc and concluded the support wasn't quite there yet. Have things changed?

But yes by all means lets experiment with this, maybe something near the core like the constants would be a place to start?

jzmaddock avatar Aug 30 '21 09:08 jzmaddock

This page lists MSVC as fully green right now on module support. I hope this means you tried this a few months ago? Otherwise you're probably right . . .

NAThompson avatar Aug 30 '21 14:08 NAThompson

Yes it was a good 6 months ago and things are changing fast.

I would tend to favour full module support as in:

import boost.math.constants ;

But that means quite a bit of braindead internal reorganisation I suspect.

jzmaddock avatar Aug 31 '21 08:08 jzmaddock

@NAThompson A fairly easy test bed could be ccmath; it is almost entirely self-contained (only math dependency is <boost/math/tools/is_constant_evaluated.hpp>). I haven't really read into implementing modules yet, but I can pursue it if we think it's time.

mborland avatar Sep 05 '21 17:09 mborland

Ok, looks like clang, gcc and MSVC at least have partial support. Not something to agonize over if we experience pain, but might be fun to try out and see where it goes.

NAThompson avatar Sep 06 '21 15:09 NAThompson

See #723

mborland avatar Nov 28 '21 12:11 mborland