Subject: Re: [boost] [next gen future-promise] What to call the monadic return type?
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2015-05-25 20:14:38
On 25 May 2015 at 18:33, Avi Kivity wrote:
> >>> ... turns into a "mov $5, %eax", so future<T> is now also a
> >>> lightweight monadic return transport capable of being directly
> >>> constructed.
> >> Can you post the code? I'd be very interested in comparing it with
> >> seastar's non-allocating futures.
> > I may do so once I've got the functioning constexpr reduction being
> > unit tested per commit.
> I'm looking forward to it! I've been bitten by the same compile time
> explosion problems and I'm curious to see how you solved them.
Now fully functional at:
I have the clang and GCC disassembler dumps there too so you can see
they all reduce to single opcodes on GCC only. clang isn't so good,
and I'm just about to send a large bug report to LLVM
(https://llvm.org/bugs/show_bug.cgi?id=23652) followed by email to
Chandler. The unit testing will later do a diff compare to ensure
that single opcode reduction always remains so per commit.
VS2015 RC can't cope with exception_ptr being inside an unrestricted
union, so it doesn't work there yet. I have a hacky macro workaround,
but I may just wait for VS2015 RTM.
-- ned Productions Limited Consulting http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk