Mach7 icon indicating copy to clipboard operation
Mach7 copied to clipboard

Stand-alone with C++17 std library, no boost

Open elefthei opened this issue 7 years ago • 7 comments

I was wondering if there's any plan to making Mach7 stand-alone with the introduction of std::variant and std::visit in C++, in comparison to boost::variant currently used on master. I briefly searched open issues but maybe I missed the relevant conversation.

Is there any additional dependencies on boost except variant?

elefthei avatar Apr 23 '18 18:04 elefthei

I'll try to find time to write the necessary adapter for std::variant in the next couple of days. Thanks for the reminder!

solodon4 avatar Apr 24 '18 22:04 solodon4

Thanks @solodon4 for the fast response! Two more cents from me, an unimportant one first; In addition to std::variant, std::any made it into C++17 which could replace boost::any which should be all the need for boost at this point.

And a more important one; clang 3.9-4 might be required to support these features and--std=gnu++17 https://clang.llvm.org/cxx_status.html

Unfortunately, some experiments I run gave me a very bad performance in generated executables with later versions of clang (clang++-6.0 is what I tried). I would be interested in helping debug and fix these runtime problems with later clang.

elefthei avatar Apr 24 '18 23:04 elefthei

I looked into boost::any a while back in my discussion with Andrzej and that one will require a bit more work to be correct. I will concentrate on std::variant first as that one should be straightforward.

solodon4 avatar Apr 26 '18 21:04 solodon4

Curious if there's any update on this front as my project which uses Mach7 just updated to C++17.

elfprince13 avatar Nov 21 '19 03:11 elfprince13

No updates yet unfortunately - was busy with other projects. I left Microsoft though recently and while I'm on sort of sabbatical I should have a better chance to look at this. Will post here with updates once i do

solodon4 avatar Nov 21 '19 22:11 solodon4

Check out the functional C++17 I am generating, I started with Mach7 but ended up writing my own with std::variant

https://github.com/mit-pdos/mcqc

Look at the test folder.

On Thu, Nov 21, 2019 at 5:43 PM Yuriy Solodkyy [email protected] wrote:

No updates yet unfortunately - was busy with other projects. I left Microsoft though recently and while I'm on sort of sabbatical I should have a better chance to look at this. Will post here with updates once i do

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/solodon4/Mach7/issues/78?email_source=notifications&email_token=AAF3HLGLOWHLGUK5QU55H63QU4FHLA5CNFSM4E4BPOO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE347TY#issuecomment-557305807, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF3HLBRGGFRDFJQXUICX5LQU4FHLANCNFSM4E4BPOOQ .

-- Lefteris Ioannidis, MIT 2014

elefthei avatar Nov 21 '19 22:11 elefthei

Please don't mind, I just want to care. Is there any progress on remove boost dependent?

sgf avatar Jul 02 '20 09:07 sgf